/* ═══════════════════════════════════════════════════
   VCPTU Website — Ifakara Health Institute
   Colour palette:
     IHI Green:    #1a7a3e
     Deep Green:   #0f5429
     Accent Gold:  #c8922a
     Dark:         #1a1f2e
     Text:         #2d3748
     Light grey:   #f7f8fa
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #1a7a3e;
  --green-dk:   #0f5429;
  --green-lt:   #e8f5ed;
  --gold:       #c8922a;
  --gold-lt:    #fef3e2;
  --dark:       #1a1f2e;
  --text:       #2d3748;
  --text-light: #718096;
  --border:     #e2e8f0;
  --bg-light:   #f7f8fa;
  --white:      #ffffff;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.14);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── Utility ── */
.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-lt);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
}
.section-header.center { text-align: center; margin-bottom: 56px; }
.section-header.center .section-desc { margin: 12px auto 0; }

em { font-style: italic; }
strong { font-weight: 600; }
a { color: var(--green); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,122,62,.35); }
.btn-outline {
  border-color: rgba(255,255,255,.7);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

/* ════════════════════════════════════
   NAVBAR
════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 12px 0;
}
.navbar.scrolled {
  background: var(--green-dk);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  padding: 8px 0;
}
.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border-radius: 8px;
  padding: 5px 10px;
}
.nav-vcptu-logo {
  height: 56px;
  width: auto;
  display: block;
  filter: none;
}
.navbar.scrolled .nav-vcptu-logo { filter: none; }
.navbar.scrolled .brand-logo { background: rgba(255,255,255,.15); }
.brand-logo-ihi { padding: 6px 12px; }
.nav-ihi-logo {
  height: 44px;
  width: auto;
  display: block;
}
.navbar.scrolled .brand-logo-ihi { background: var(--white); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
}
.navbar.scrolled .brand-sub { color: rgba(255,255,255,.75); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  padding: 7px 12px;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: .01em;
}
.nav-links a:hover { background: rgba(255,255,255,.15); color: var(--white); }
.navbar.scrolled .nav-links a { color: var(--white); font-weight: 600; }
.navbar.scrolled .nav-links a:hover { background: rgba(255,255,255,.15); color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-anniversary {
  position: absolute;
  right: 40px;
  top: 104px;
  width: 138px;
  z-index: 6;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.45));
  pointer-events: none;
}
.hero-anniversary svg { width: 100%; height: auto; display: block; }
@media (max-width: 992px) {
  .hero-anniversary { width: 92px; right: 14px; top: 78px; }
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-static {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(15,84,41,.85) 0%,
    rgba(26,31,46,.75) 60%,
    rgba(15,84,41,.6) 100%);
}
/* 3-column hero layout */
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px 100px;
}
.hero-content {
  text-align: center;
}
.hero-panel {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 28px 24px;
  color: rgba(255,255,255,0.92);
}
.hero-panel-left  { text-align: left; }
.hero-panel-right { text-align: right; }
.hero-panel-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero-panel p {
  font-size: .88rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(255,255,255,0.88);
}
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding: 100px 24px 80px;
  }
  .hero-panel { display: none; }
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.95);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-accent { color: #6fcf97; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.hero-tagline {
  margin-bottom: 36px;
}
.tagline-text {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats-title {
  grid-column: 1 / -1;
  margin-top: 36px;
  margin-bottom: -4px;
  text-align: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .01em;
}
.hero-stats {
  grid-column: 1 / -1;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  flex-wrap: nowrap;
  gap: 6px;
}
.hstat {
  text-align: center;
  padding: 6px 6px;
  flex: 1 1 0;
  min-width: 0;
}
.hstat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hstat-plus { font-size: 1.1rem; font-weight: 800; color: #6fcf97; }
.hstat-label {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
  margin-top: 4px;
}
.hstat-div {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  animation: bounce 2s infinite;
  transition: var(--transition);
}
.hero-scroll svg { width: 20px; height: 20px; }
.hero-scroll:hover { border-color: var(--white); background: rgba(255,255,255,.15); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════
   ABOUT
════════════════════════════════════ */
.about { background: #eef4f0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
.about-text p {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.about-mission { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.mission-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--green);
}
.mission-icon {
  width: 36px; height: 36px;
  background: var(--green-lt);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.mission-icon svg { width: 20px; height: 20px; }
.mission-item strong { display: block; font-size: .9rem; color: var(--green); margin-bottom: 4px; }
.mission-item p { margin: 0; font-size: .9rem; color: var(--text-light); }

.about-images { position: sticky; top: 100px; }

/* ── About section — 4-panel activity mosaic ── */
.about-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 10px;
  border-radius: var(--radius-lg);
  overflow: visible;
  width: 100%;
}

/* Individual activity panel (label + photos) */
.activity-panel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.ap-label {
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 7px 10px;
  color: #fff;
  flex-shrink: 0;
}
.ap-field     .ap-label { background: var(--green-dk); }
.ap-insectary .ap-label { background: #1a4d7a; }
.ap-iact      .ap-label { background: #7b3300; }
.ap-semifield .ap-label { background: #0a7a6e; }

/* Photo grid inside each panel */
.ap-photos {
  flex: 1;
  display: grid;
  gap: 2px;
  background: #ccc;
  overflow: hidden;
}
.ap-1 { grid-template-columns: 1fr; }
.ap-2 { grid-template-columns: 1fr 1fr; }
.ap-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ap-full { grid-column: 1 / -1; }

.ap-photo {
  position: relative;
  overflow: hidden;
}
.ap-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ap-photo:hover img { transform: scale(1.05); }

.ap-sub {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 16px 6px 4px;
}

/* GLP badge — anchored above the word "Testing" */
.testing-anchor { position: relative; }
.mosaic-badge {
  position: absolute;
  bottom: calc(100% + 6px);
  left: calc(50% + 95px);
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  padding: 9px 14px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
  z-index: 3;
}
.badge-txt { text-align: left; }
.badge-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.mosaic-badge small { font-weight: 400; opacity: .85; }

/* ════════════════════════════════════
   SERVICES
════════════════════════════════════ */
.services { position: relative; overflow: hidden; }
.services-bg {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 0;
}
.services .container { position: relative; z-index: 1; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.service-icon svg { width: 36px; height: 36px; }
.service-icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.sc-green  { background: #e8f5ed; color: #1a7a3e; }
.sc-blue   { background: #e8f0fd; color: #2b5ec7; }
.sc-teal   { background: #e0f7f4; color: #0a7a6e; }
.sc-orange { background: #fff3e0; color: #c8611a; }
.sc-purple { background: #f3e8ff; color: #7c3aed; }
.sc-red    { background: #fee8e8; color: #c7281a; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-card p { font-size: .9rem; color: var(--text-light); margin-bottom: 14px; }
.svc-readmore {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}
.svc-readmore:hover { color: var(--green-dk); text-decoration: underline; }
.svc-subhead {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-dk);
  margin: 4px 0 8px;
}
.service-list { list-style: none; padding: 0; margin-bottom: 14px; }
.service-list li {
  font-size: .85rem;
  color: var(--text);
  padding: 4px 0 4px 20px;
  position: relative;
}
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.svc-lead {
  margin-top: auto;
  padding-top: 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--green);
  border-top: 1px solid #e0ece5;
}
.svc-lead-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.svc-lead-btn:hover { color: var(--green-dk); }

.phases-section {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
}
.phases-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  color: #6fcf97;
}
.phases-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}
.phase {
  flex: 1;
  text-align: center;
  padding: 24px;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
}
.phase-num {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.phase h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.phase p { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.phase-arrow {
  font-size: 1.5rem;
  color: var(--green);
  flex-shrink: 0;
}

/* ════════════════════════════════════
   PRODUCT EVALUATION PORTFOLIO
════════════════════════════════════ */
.portfolio-section { background: #eef4f0; }

.portfolio-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.portfolio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.portfolio-table thead tr {
  background: linear-gradient(135deg, var(--green-dk) 0%, var(--green) 100%);
  color: var(--white);
}

.portfolio-table thead th {
  padding: 18px 24px;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.portfolio-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.portfolio-table thead th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }

.portfolio-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.portfolio-table tbody tr:last-child { border-bottom: none; }

.portfolio-table tbody tr:nth-child(even) { background: var(--bg-light); }
.portfolio-table tbody tr:nth-child(odd)  { background: var(--white); }

.portfolio-table tbody tr:hover { background: var(--green-lt); }

.portfolio-table tbody td {
  padding: 16px 24px;
  vertical-align: middle;
  color: var(--text);
  line-height: 1.5;
}

.portfolio-table tbody td:first-child {
  font-size: .9rem;
  border-left: 3px solid transparent;
}

.portfolio-table tbody tr:hover td:first-child {
  border-left-color: var(--green);
}

.portfolio-table tbody td strong {
  color: var(--dark);
  font-weight: 600;
}

.portfolio-table tbody td:nth-child(2) {
  font-weight: 500;
  color: var(--green-dk);
  white-space: nowrap;
}

/* Matrix table overrides */
.portfolio-matrix thead th {
  padding: 14px 12px;
  text-align: center;
  font-size: .78rem;
}
.portfolio-matrix thead th:first-child { text-align: left; padding-left: 20px; }
.th-sub { display: block; font-weight: 400; font-size: .7rem; opacity: .8; text-transform: none; letter-spacing: 0; }
.portfolio-matrix tbody td { padding: 14px 12px; text-align: center; font-size: .88rem; }
.portfolio-matrix tbody td:first-child { text-align: left; padding-left: 20px; }
.matrix-yes { color: var(--green); font-weight: 800; font-size: 1rem; }
.matrix-no  { color: #ccc; font-size: 1rem; }
.matrix-note { font-size: .78rem; color: var(--text-light); text-align: center; margin-top: 12px; }

.portfolio-table a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.portfolio-table a:hover {
  color: var(--green-dk);
  text-decoration: underline;
}

/* ════════════════════════════════════
   METHODOLOGIES
════════════════════════════════════ */
.methods-section { background: #ffffff; }

.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.method-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 28px 28px;
  border-top: 4px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .25s, box-shadow .25s;
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.method-badge {
  display: inline-block;
  background: var(--green-lt);
  color: var(--green-dk);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.method-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-icon svg { width: 32px; height: 32px; }
.mi-green { background: #e8f5ed; color: #1a7a3e; }
.mi-gold  { background: #fdf3e3; color: #b07918; }
.mi-teal  { background: #e0f7f4; color: #0a7a6e; }

.method-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.35;
}

.method-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.method-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.method-list li {
  font-size: .85rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.method-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Read More toggle */
.readmore-btn {
  display: inline-block;
  margin: 10px 0 0;
  background: none;
  border: none;
  padding: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  letter-spacing: .02em;
  transition: color .2s;
}
.readmore-btn:hover { color: var(--green-dk); text-decoration: underline; }
.readmore-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.readmore-body.readmore-open {
  max-height: 9999px;
}
.gallery-seemore-wrap { text-align: center; margin-top: 28px; }
.seemore-btn {
  display: inline-block;
  background: none;
  border: 2px solid var(--green);
  border-radius: 99px;
  padding: 10px 28px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  letter-spacing: .03em;
  transition: all .2s;
}
.seemore-btn:hover { background: var(--green); color: var(--white); }
.readmore-body .service-list { margin-top: 12px; }

.method-pub {
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}
.method-pub .pub-label {
  font-weight: 700;
  color: var(--green-dk);
  margin-right: 4px;
}

@media (max-width: 1024px) {
  .methods-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .methods-grid { grid-template-columns: 1fr; }
  .method-card { padding: 24px 20px; }
}

/* ════════════════════════════════════
   FACILITIES
════════════════════════════════════ */
.facilities { background: #eef4f0; }
.fac-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}
.fac-photo-stack { position: sticky; top: 100px; }
.fac-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  margin-bottom: 12px;
}
.fac-img-small {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 16/7;
}
.fac-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fac-img-pair img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/3;
}
@media (min-width: 1025px) {
  .fac-grid { align-items: stretch; }
  .fac-photo-stack {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
  }
  .fac-photo-stack > .fac-img-main {
    aspect-ratio: auto;
    flex: 1.3 1 0;
    min-height: 0;
    margin-bottom: 0;
  }
  .fac-photo-stack > .fac-img-pair {
    flex: 1 1 0;
    min-height: 0;
  }
  .fac-photo-stack > .fac-img-pair img {
    aspect-ratio: auto;
    height: 100%;
  }
}
.fac-items { display: flex; flex-direction: column; gap: 0; }
.fac-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.fac-item:last-child { border-bottom: none; }
.fac-icon {
  width: 44px; height: 44px;
  background: var(--green-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.fac-icon svg { width: 24px; height: 24px; }
.fac-thumb {
  width: 160px; height: 108px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 600px) { .fac-thumb { width: 96px; height: 72px; } }
.fac-detail h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.fac-detail p { font-size: .88rem; color: var(--text-light); line-height: 1.65; }

.strains-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.strains-table-wrap { overflow-x: auto; }
.strains-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.strains-table th {
  background: var(--green);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
}
.strains-table th:first-child { border-radius: 8px 0 0 0; }
.strains-table th:last-child  { border-radius: 0 8px 0 0; }
.strains-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.strains-table tr:nth-child(even) td { background: var(--bg-light); }
.strains-table tr:hover td { background: var(--green-lt); }
.strains-table td em { color: var(--text); }
.strains-table th.rs-col { text-align: center; }
.strains-table td.rs {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
.strains-table td.rs-s { color: #1a7a3e; }
.strains-table td.rs-r { color: #c7281a; }
.strains-legend {
  margin-top: 12px;
  font-size: .82rem;
  color: var(--text-light);
}

/* ════════════════════════════════════
   ACHIEVEMENTS
════════════════════════════════════ */
.achievements { position: relative; overflow: hidden; }
.achievements-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0f5429 0%, #1a1f2e 100%);
}
.achievements .container { position: relative; z-index: 1; }
.achievements .section-label { background: rgba(111,207,151,.15); color: #6fcf97; }
.achievements .section-title { color: var(--white); }

/* Timeline */
.timeline {
  position: relative;
  margin: 32px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.2);
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 46%;
  margin-bottom: 20px;
}
.tl-item::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  top: 20px;
  box-shadow: 0 0 0 4px rgba(200,146,42,.3);
}
.tl-right { margin-left: 54%; }
.tl-right::before { left: -7%; }
.tl-left  { margin-left: 0; text-align: right; }
.tl-left::before  { right: -7%; }

.tl-content {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px 20px;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.tl-content:hover { background: rgba(255,255,255,.1); border-color: var(--gold); }
.tl-year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.tl-content h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.tl-content p  { font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.65; }

/* Stats row */
.stats-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}
.stat-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  min-width: 160px;
  flex: 1;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: inline-block;
}
.stat-plus {
  font-size: 1.5rem;
  font-weight: 800;
  color: #6fcf97;
  display: inline-block;
}
.stat-label {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  margin-top: 8px;
  line-height: 1.4;
}

/* ════════════════════════════════════
   PUBLICATIONS
════════════════════════════════════ */
.publications { background: #ffffff; }
.pub-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.pub-btn {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.pub-btn.active,
.pub-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.pub-list {
  list-style: decimal;
  padding-left: 22px;
  margin-bottom: 48px;
  display: block;
}
.pub-item {
  padding: 14px 0 14px 6px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text);
  transition: var(--transition);
}
.pub-item:first-child { border-top: 1px solid var(--border); }
.pub-item.hidden { display: none; }
.pub-item:hover { background: var(--bg-light); }
.pub-authors {
  font-weight: 500;
  color: var(--text);
}
.pub-year-inline {
  color: var(--gold);
  font-weight: 700;
  margin: 0 4px;
}
.pub-title {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  margin-right: 4px;
  transition: var(--transition);
}
.pub-title:hover { color: var(--green-dk); text-decoration: underline; }
.pub-journal {
  color: var(--text-light);
  font-style: italic;
}
.pub-cta { text-align: center; }
.pub-cta p { color: var(--text-light); margin-bottom: 16px; }
.pub-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-orcid {
  display: inline-flex;
  align-items: center;
  background: #a6ce39;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}
.btn-orcid:hover { background: #8db530; color: #fff; }

/* ════════════════════════════════════
   PARTNERS
════════════════════════════════════ */
.partners { position: relative; overflow: hidden; }
.partners-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-light);
}
.partners .container { position: relative; z-index: 1; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.partner-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-logo {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--green-lt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.partner-abbr {
  font-size: .75rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: .05em;
  text-align: center;
}
.partner-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.partner-card p { font-size: .78rem; color: var(--text-light); line-height: 1.5; }

.network-banner {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.network-icon {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.network-icon svg { width: 36px; height: 36px; }
.network-banner h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.network-banner p { font-size: .9rem; color: rgba(255,255,255,.85); }

/* ════════════════════════════════════
   HUT TYPES
════════════════════════════════════ */
.hut-types { margin-bottom: 0; }
.hut-types-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-lt);
}
.hut-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hut-type-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.hut-type-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.hut-type-img { height: 200px; overflow: hidden; }
.hut-type-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hut-type-card:hover .hut-type-img img { transform: scale(1.06); }
.hut-img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.hut-img-duo .hut-img-a,
.hut-img-duo .hut-img-b { height: 200px; width: 100%; object-fit: cover; transition: transform .5s ease; }
.hut-type-card:hover .hut-img-duo img { transform: scale(1.06); }
.hut-type-body { padding: 20px; }
.hut-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.primary-badge   { background: #e8f5ed; color: var(--green); }
.secondary-badge { background: #e8f0fd; color: #2b5ec7; }
.tertiary-badge  { background: #fff3e0; color: #c8611a; }
.hut-type-body h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.hut-type-body p  { font-size: .85rem; color: var(--text-light); line-height: 1.65; }

/* ════════════════════════════════════
   GALLERY
════════════════════════════════════ */
.gallery-section { background: #eef4f0; padding: 96px 0; }

.gal-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.gal-tab {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
}
.gal-tab.active,
.gal-tab:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.gallery-masonry {
  columns: 3;
  column-gap: 14px;
}
.gm-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}
.gm-wide { break-inside: avoid; }
.gm-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}
.gm-item:hover img { transform: scale(1.04); }
.gm-item .gal-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white);
  font-size: .78rem;
  padding: 28px 14px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
  line-height: 1.4;
}
.gm-item:hover .gal-caption { opacity: 1; transform: translateY(0); }
.gm-item.gal-hidden { display: none; }

/* ════════════════════════════════════
   TEAM
════════════════════════════════════ */
.team-section { position: relative; overflow: hidden; }
.team-bg {
  position: absolute;
  inset: 0;
  background: var(--white);
}
.team-section .container { position: relative; z-index: 1; }

.team-photo-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.team-img-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.team-img-main img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.team-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: var(--white);
  font-size: .82rem;
  padding: 40px 20px 18px;
  line-height: 1.5;
}
.team-img-pair {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team-img-small {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex: 1;
}
.team-img-small img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; }

.team-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.role-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.role-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow); }
.role-icon {
  width: 48px; height: 48px;
  background: var(--green-lt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--green);
}
.role-icon svg { width: 22px; height: 22px; }
.role-card h4 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.role-card p  { font-size: .83rem; color: var(--text-light); line-height: 1.6; }

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact { background: #1a2e22; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact .section-label { background: rgba(111,207,151,.15); color: #6fcf97; }
.contact .section-title { color: var(--white); }
.contact-info p { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #6fcf97;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: .85rem; color: var(--white); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: .9rem; color: rgba(255,255,255,.7); }

.contact-leads { margin-top: 28px; }
.contact-leads h4 { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.leads-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.leads-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.leads-table td:first-child { font-weight: 600; color: var(--white); white-space: nowrap; }
.leads-table td:last-child a { color: var(--gold); text-decoration: none; }
.leads-table td:last-child a:hover { text-decoration: underline; }
.leads-table tr:last-child td { border-bottom: none; }

.testing-window { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.testing-window h4 { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.season-indicator {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.si {
  height: 28px;
  border-radius: 4px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  color: var(--text-light);
  font-weight: 600;
  cursor: default;
}
.si.active { background: var(--green); color: var(--white); }
.season-legend {
  font-size: .75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 16px;
}
.legend-active, .legend-off {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  margin-right: 4px;
}
.legend-active { background: var(--green); }
.legend-off { background: var(--border); }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 12px;
}
.map-embed iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}
.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: #6fcf97;
  font-weight: 600;
}
.location-tag svg { width: 16px; height: 16px; }

/* ════════════════════════════════════
   STAFF
════════════════════════════════════ */
.staff-section { background: #eef4f0; }

/* ── Staff filter tabs ── */
.staff-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
  position: sticky;
  top: 72px;
  background: var(--bg-light);
  padding: 14px 0 10px;
  z-index: 90;
  border-bottom: 1px solid var(--border);
}
.stab {
  padding: 8px 22px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.stab:hover { border-color: var(--green); color: var(--green); }
.stab-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.staff-cat-hidden { display: none !important; }

/* ── Bio modal ── */
.bio-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.bio-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.bio-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform .25s ease;
}
.bio-overlay.active .bio-modal { transform: translateY(0); }
.bio-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.bio-close:hover { background: var(--bg-light); color: var(--dark); }
.bio-modal-inner {
  display: flex;
  gap: 28px;
  padding: 36px 32px;
}
.bio-modal-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 160px;
}
.bio-modal-avatar .staff-avatar {
  width: 120px; height: 120px;
  font-size: 2rem;
}
.bio-modal-avatar .staff-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-modal-meta { text-align: center; }
.bio-modal-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.bio-modal-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}
.bio-modal-inst {
  font-size: .72rem;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.4;
}
.bio-modal-email {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  word-break: break-all;
}
.bio-modal-email:hover { text-decoration: underline; }
.bio-modal-right { flex: 1; }
.bio-modal-desc {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}
/* clickable cue on cards */
.staff-card { cursor: pointer; }
.staff-card:hover { transform: translateY(-3px); }

.staff-category { margin-top: 56px; }

.staff-cat-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  border-left: 3px solid var(--green);
  padding-left: 12px;
  margin-bottom: 28px;
}

.staff-grid { display: grid; gap: 20px; }
.staff-grid-lead { grid-template-columns: repeat(2, 1fr); }
.staff-grid-4    { grid-template-columns: repeat(4, 1fr); }

.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}

.staff-card-featured {
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}
.staff-card-featured .staff-info { flex: 1; }
.staff-card-featured .staff-avatar { margin-bottom: 0; flex-shrink: 0; }

.staff-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  flex-shrink: 0;
  margin-bottom: 16px;
  overflow: hidden;
}
.staff-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}
.avatar-initials {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 1.5rem; font-weight: 800;
  border-radius: 50%;
}
.sa-green { background: var(--green-lt); color: var(--green-dk); }
.sa-teal  { background: #dff4f7; color: #1a6a7a; }
.sa-blue  { background: #eaedff; color: #2d3e8c; }
.sa-gold  { background: var(--gold-lt); color: #7a5500; }
.sa-grey  { background: #eff1f5; color: #4a5568; }

.staff-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.staff-title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 2px;
}
.staff-inst {
  font-size: .73rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.45;
}
.staff-desc {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}
.staff-email {
  display: inline-block;
  margin-top: 10px;
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.staff-email:hover { text-decoration: underline; }

.staff-pubmed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px 3px 8px;
  margin-top: 8px;
  letter-spacing: .02em;
  transition: all .2s;
}
.staff-pubmed::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #0072b1;
  flex-shrink: 0;
}
.staff-pubmed:hover {
  border-color: #0072b1;
  color: #0072b1;
  background: #e8f4fb;
}

.staff-orcid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 3px 10px 3px 8px;
  margin-top: 8px;
  letter-spacing: .02em;
  transition: all .2s;
}
.staff-orcid::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #a6ce39;
  flex-shrink: 0;
}
.staff-orcid:hover {
  border-color: #a6ce39;
  color: #5a8a00;
  background: #f3fadf;
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo .logo-ihi {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.footer-logo-text { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.footer-logo-sub  { font-size: .72rem; color: rgba(255,255,255,.6); }
.footer-tagline {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-links h5,
.footer-services h5,
.footer-accred h5 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer-links ul,
.footer-services ul {
  list-style: none;
}
.footer-links li, .footer-services li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer-links a:hover { color: #6fcf97; }
.footer-services li { font-size: .85rem; color: rgba(255,255,255,.6); }

.accred-badge {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.ab-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: .05em;
}
.accred-badge strong { font-size: .85rem; display: block; margin-bottom: 2px; }
.accred-badge small  { font-size: .75rem; color: rgba(255,255,255,.55); line-height: 1.4; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-rights a { color: rgba(255,255,255,.55); }
.footer-rights a:hover { color: #6fcf97; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dk); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ════════════════════════════════════
   ANIMATIONS
════════════════════════════════════ */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos].aos-active {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ── 1. Hero content entrance — staggered slide-up-fade ── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge   { animation: heroIn .7s cubic-bezier(.4,0,.2,1) both; animation-delay: .2s; }
.hero-title   { animation: heroIn .8s cubic-bezier(.4,0,.2,1) both; animation-delay: .45s; }
.hero-sub     { animation: heroIn .7s cubic-bezier(.4,0,.2,1) both; animation-delay: .7s; }
.hero-tagline { animation: heroIn .7s cubic-bezier(.4,0,.2,1) both; animation-delay: .9s; }
.hero-cta     { animation: heroIn .7s cubic-bezier(.4,0,.2,1) both; animation-delay: 1.1s; }
.hero-stats   { animation: heroIn .7s cubic-bezier(.4,0,.2,1) both; animation-delay: 1.35s; }

/* ── 3. Tagline: gold shimmer sweep ── */
@keyframes shimmerSweep {
  0%   { background-position:  200% center; }
  100% { background-position: -200% center; }
}
.tagline-text {
  background: linear-gradient(
    90deg,
    var(--gold) 30%,
    #fff4cc 45%,
    #ffe57a 50%,
    #fff4cc 55%,
    var(--gold) 70%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerSweep 4s linear infinite;
  animation-delay: 2s;
}

/* ── 4. Timeline: animated line-draw + dot pulse ── */
.timeline::before {
  transform-origin: top center;
  transform: translateX(-50%) scaleY(0);
  transition: transform 1.8s cubic-bezier(.4,0,.2,1);
}
.timeline.tl-drawn::before {
  transform: translateX(-50%) scaleY(1);
}
@keyframes tlDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200,146,42,.3); }
  50%       { box-shadow: 0 0 0 10px rgba(200,146,42,.08); }
}
.timeline.tl-drawn .tl-item::before {
  animation: tlDotPulse 2.5s ease-in-out infinite;
}

/* ── 5. Staff card stagger reveal (triggered via JS) ── */
.staff-grid .staff-card,
.staff-grid-lead .staff-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease,
              box-shadow var(--transition), border-color var(--transition);
}
.staff-grid .staff-card.card-in,
.staff-grid-lead .staff-card.card-in {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid    { grid-template-columns: 1fr; gap: 48px; }
  .about-images  { position: static; }
  .about-mosaic  { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .fac-grid      { grid-template-columns: 1fr; }
  .fac-photo-stack { position: static; }
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .partners-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hut-types-grid  { grid-template-columns: 1fr 1fr; }
  .team-roles      { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 2; }
  .staff-grid-4    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .portfolio-table thead th,
  .portfolio-table tbody td { padding: 12px 14px; font-size: .82rem; }
  .services-grid { grid-template-columns: 1fr; }
  .pub-list      { padding-left: 18px; }
  .phases-grid   { flex-direction: column; }
  .phase-arrow   { transform: rotate(90deg); }
  .contact-grid  { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
  .hut-types-grid  { grid-template-columns: 1fr; }
  .team-photo-row  { grid-template-columns: 1fr; }
  .team-roles      { grid-template-columns: 1fr 1fr; }
  .staff-grid-lead { grid-template-columns: 1fr; }
  .staff-card-featured { flex-direction: column; }
  .bio-modal-inner { flex-direction: column; align-items: center; padding: 28px 20px; }
  .bio-modal-left { width: 100%; }
  .bio-modal-meta { text-align: center; }
  .timeline::before { left: 12px; }
  .tl-item, .tl-right, .tl-left { width: 100%; margin-left: 0; text-align: left; }
  .tl-item::before { left: 5px; right: auto; }
  .tl-content { margin-left: 28px; }
  .hero-stats { gap: 0; padding: 20px; }
  .hstat-div  { width: 1px; height: 36px; }
  .hstat      { padding: 0 12px; }
  .hstat-num  { font-size: 1.5rem; }

  /* Navbar mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--white) !important; font-size: 1.2rem; padding: 14px 32px; }
  .hamburger { display: flex; z-index: 1001; }
  .footer-grid { grid-template-columns: 1fr; }
  .network-banner { flex-direction: column; text-align: center; padding: 28px 20px; }
  .stats-row { gap: 12px; }
  .stat-box { min-width: 120px; }
}

@media (max-width: 480px) {
  .hero-title  { font-size: 2rem; }
  .portfolio-table tbody td:nth-child(2) { white-space: normal; }
  .hero-stats  { flex-wrap: wrap; }
  .hstat-div   { display: none; }
  .hstat       { width: 45%; padding: 10px 0; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .season-indicator { grid-template-columns: repeat(6, 1fr); }
  .staff-grid-4  { grid-template-columns: 1fr; }
  /* Mosaic: 2x2 grid on very small screens */
  .about-mosaic  { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; }
  .ap-3          { grid-template-rows: 1fr 1fr; }
}
