/* ═══════════════════════════════════════════════════════
   CAPR OFFICIAL WEBSITE — MASTER DESIGN SYSTEM
   Collectif des Artisans de la Paix et la Réconciliation
   Kicukiro, Kigali, Rwanda · Est. 2003
═══════════════════════════════════════════════════════ */

:root {
  /* Brand Greens */
  --green: #1b5e20;
  --green-bright: #2e7d32;
  --green-deep: #0d3311;
  --green-glow: rgba(46, 125, 50, 0.15);
  --green-subtle: rgba(46, 125, 50, 0.08);
  --green-border: rgba(46, 125, 50, 0.25);
  --green-border-hover: rgba(46, 125, 50, 0.55);

  /* Accent — Donate & CTA ONLY */
  --orange: #f97316;
  --orange-hot: #ea580c;
  --orange-glow: rgba(249, 115, 22, 0.30);

  /* Secondary Accents */
  --blue: #0369a1;
  --blue-bright: #0ea5e9;
  --blue-glow: rgba(14, 165, 233, 0.15);
  --blue-border: rgba(14, 165, 233, 0.25);

  /* Backgrounds — Richer "White & Green" Mixture */
  --bg-primary: #f4fdf6;
  --bg-secondary: #e9f6ed;
  --bg-tertiary: #dbf1e2;
  --bg-card: #ffffff;
  --bg-card-hover: #ecfdf5;
  --bg-overlay: rgba(255, 255, 255, 0.65);

  /* Text */
  --text-primary: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --border-green: rgba(46, 125, 50, 0.25);
  --border-hover: rgba(46, 125, 50, 0.50);

  /* Typography */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad: 7rem 6rem;
  --card-pad: 1.8rem;

  /* Shape */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* Motion */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 0.18s;
  --t-med: 0.30s;
  --t-slow: 0.60s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

p {
  text-align: justify;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

button {
  cursor: none;
  font-family: var(--sans);
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ── Typography ─────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--green);
  flex-shrink: 0;
}

.t-hero {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.t-hero em {
  font-style: italic;
  color: var(--green-bright);
  font-weight: 700;
}

.t-h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-primary);
}

.t-h2 em {
  font-style: italic;
  color: var(--green-bright);
}

.t-h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.t-body {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.8;
  text-align: justify;
}

.t-small {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.t-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Layout ─────────────────────────────────── */
.section {
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-tertiary {
  background-color: var(--bg-tertiary);
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 640px;
}

.section-header .eyebrow {
  margin-bottom: 0.9rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.8;
  text-align: justify;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Floating Orbs ──────────────────────────── */
.orb {
  position: absolute;
  pointer-events: none;
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
}

.orb-green {
  background: radial-gradient(circle, var(--green-bright), transparent 70%);
}

.orb-teal {
  background: radial-gradient(circle, #0d9488, transparent 70%);
}

.orb-navy {
  background: radial-gradient(circle, #1e293b, transparent 70%);
}

.orb-orange {
  background: radial-gradient(circle, var(--orange), transparent 70%);
}


/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: none;
  transition:
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    background var(--t-fast);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 0.88rem 2.1rem;
  box-shadow: 0 4px 24px var(--green-glow);
}

.btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 8px 36px rgba(22, 163, 74, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-body);
  padding: 0.88rem 2.1rem;
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--green);
  color: var(--green);
}

.btn-donate {
  background: var(--orange);
  color: #fff;
  padding: 0.62rem 1.5rem;
  font-size: 0.88rem;
  box-shadow: 0 0 20px var(--orange-glow);
}

.btn-donate:hover {
  background: var(--orange-hot);
  box-shadow: 0 4px 28px rgba(249, 115, 22, 0.55);
}

.btn-sm-green {
  background: var(--green-subtle);
  color: var(--green-bright);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-pill);
  transition: all var(--t-fast);
}

.btn-sm-green:hover {
  background: rgba(22, 163, 74, 0.15);
  border-color: var(--green-border-hover);
}

/* ── Glass Card ─────────────────────────────── */
.glass-emerald {
  background: rgba(27, 94, 32, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.glass-blue {
  background: rgba(3, 105, 161, 0.05);
  border: 1px solid rgba(3, 105, 161, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  transition:
    transform var(--t-med) var(--ease),
    border-color var(--t-med),
    box-shadow var(--t-med),
    background var(--t-med);
  will-change: transform;
}

.glass-card:hover {
  transform: translateY(-7px);
  background: var(--bg-card-hover);
  border-color: var(--green-border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--green-border);
}

/* ── Program Card ───────────────────────────── */
.prog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-med) var(--ease);
}

.prog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  background: var(--bg-card-hover);
}

.prog-card-img-wrapper {
  width: 100%;
  height: 200px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.prog-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.prog-card:hover .prog-card-img-wrapper img {
  transform: scale(1.05);
}

.prog-card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prog-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.prog-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  text-align: justify;
}

.prog-card-readmore {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.prog-card-readmore:hover {
  color: var(--green-bright);
}

.prog-card-stat {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}

/* ── Project Card ───────────────────────────── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--green-border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.project-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.project-card-body {
  padding: 1.5rem;
}

.project-card-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

/* ── Stat Strip ─────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.stat-item {
  padding: 2.2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-bright);
  line-height: 1;
}

.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.stat-women {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--orange);
  margin-top: 0.3rem;
}

/* Alias for section-code.md compatibility */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-card .stat-num {
  display: block;
}

.stat-card .stat-label {
  display: block;
}

/* ── Hero Slideshow ─────────────────────────── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-fade 60s linear infinite;
}

@keyframes hero-fade {
  0% {
    opacity: 0;
  }

  2% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  27% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.hero-slide:nth-child(1) {
  background-image: url('../assets/images/1.webp');
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  background-image: url('../assets/images/2.webp');
  animation-delay: 15s;
}

.hero-slide:nth-child(3) {
  background-image: url('../assets/images/3.webp');
  animation-delay: 30s;
}

.hero-slide:nth-child(4) {
  background-image: url('../assets/images/4.webp');
  animation-delay: 45s;
}

/* ── Hero Ambient Orbs ──────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 3;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.18) 0%, transparent 70%);
  animation: orb-drift-1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: 100px;
  right: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  animation: orb-drift-2 15s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  right: 30%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  animation: orb-drift-3 18s ease-in-out infinite;
}

@keyframes orb-drift-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.97);
  }
}

@keyframes orb-drift-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, -40px) scale(1.08);
  }
}

@keyframes orb-drift-3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(20px, 30px);
  }

  66% {
    transform: translate(-15px, -10px);
  }
}

/* ── Hero Buttons ───────────────────────────── */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  border-radius: 50px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s var(--ease);
  cursor: none;
  text-decoration: none;
  white-space: nowrap;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(46, 125, 50, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  transition: all 0.25s var(--ease);
  cursor: none;
  text-decoration: none;
  white-space: nowrap;
}

.hero-btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero-btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 50px;
  border: none;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.4);
  transition: all 0.25s var(--ease);
  cursor: none;
  text-decoration: none;
  white-space: nowrap;
}

.hero-btn-donate:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(249, 115, 22, 0.55);
}

/* ── Hero Stat Cards (right cluster) ────────── */
.hero-stat-cluster {
  min-width: 220px;
}

.hero-stat-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-stat-card:hover {
  transform: translateX(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ── Hero Bottom Stats ──────────────────────── */
.hero-bottom-stat {
  padding: 1.8rem 2rem;
  text-align: center;
  position: relative;
  transition: background 0.25s;
}

.hero-bottom-stat:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hero-bottom-stat::after {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-bottom-stat:last-child::after {
  display: none;
}

/* ── Scroll indicator dot ───────────────────── */
@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(16px);
    opacity: 0;
  }

  71% {
    transform: translateY(0);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Live badge pulse ───────────────────────── */
@keyframes live-pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

/* ── Load animation extras ──────────────────── */
.load-2b {
  opacity: 0;
  animation: fade-up 0.9s 0.45s var(--ease) forwards;
}

.load-3b {
  opacity: 0;
  animation: fade-up 0.9s 0.65s var(--ease) forwards;
}

/* ── Responsive hero stat cluster ──────────── */
@media (max-width: 1100px) {
  .hero-stat-cluster {
    display: none;
  }
}

@media (max-width: 1024px) {
  #impact-stats {
    padding: 0 2rem !important;
    margin-top: -3.5rem !important;
  }

  .stat-divider {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-bottom-stat {
    padding: 1.4rem 1rem;
  }

  .hero-bottom-stat span:first-child {
    font-size: 1.8rem !important;
  }
}

.bg-glow-green {
  background: var(--bg-secondary);
}

.bg-glow-green-reverse {
  background: var(--bg-tertiary);
}

.rel {
  position: relative;
  z-index: 5;
}

/* ── Partner Ticker ─────────────────────────── */
.ticker-wrapper {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrapper::before {
  left: 0;
  background: transparent;
}

.ticker-wrapper::after {
  right: 0;
  background: transparent;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.ticker-item:hover {
  color: var(--text-primary);
  border-color: var(--green-border);
}

.ticker-logo {
  height: 44px;
  width: auto;
  filter: none;
  opacity: 0.95;
  transition: all var(--t-med) var(--ease);
}

.ticker-item:hover .ticker-logo {
  opacity: 1;
  transform: scale(1.1);
}

.partner-card-logo {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

/* ── Scroll Animations ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children>* {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal-children.visible>*:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.00s;
}

.reveal-children.visible>*:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}

.reveal-children.visible>*:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.16s;
}

.reveal-children.visible>*:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.24s;
}

.reveal-children.visible>*:nth-child(5) {
  opacity: 1;
  transform: none;
  transition-delay: 0.32s;
}

.reveal-children.visible>*:nth-child(6) {
  opacity: 1;
  transform: none;
  transition-delay: 0.40s;
}

.reveal-children.visible>*:nth-child(7) {
  opacity: 1;
  transform: none;
  transition-delay: 0.48s;
}

.reveal-children.visible>*:nth-child(8) {
  opacity: 1;
  transform: none;
  transition-delay: 0.56s;
}

.reveal-children.visible>*:nth-child(9) {
  opacity: 1;
  transform: none;
  transition-delay: 0.64s;
}

.reveal-children.visible>*:nth-child(10) {
  opacity: 1;
  transform: none;
  transition-delay: 0.72s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.load-1 {
  opacity: 0;
  animation: fade-up 0.9s 0.15s var(--ease) forwards;
}

.load-2 {
  opacity: 0;
  animation: fade-up 0.9s 0.35s var(--ease) forwards;
}

.load-3 {
  opacity: 0;
  animation: fade-up 0.9s 0.55s var(--ease) forwards;
}

.load-4 {
  opacity: 0;
  animation: fade-up 0.9s 0.75s var(--ease) forwards;
}

.load-5 {
  opacity: 0;
  animation: fade-up 0.9s 0.95s var(--ease) forwards;
}

@keyframes bounce-y {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.bounce {
  animation: bounce-y 2s ease-in-out infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--text-muted);
  animation: bounce-y 2s ease-in-out infinite;
}

/* ── Utilities ──────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.divider-green {
  border: none;
  border-top: 1px solid var(--green-border);
  margin: 3rem 0;
}

.text-green {
  color: var(--green);
  font-weight: 500;
}

.text-blue {
  color: var(--blue);
  font-weight: 500;
}

.text-orange {
  color: var(--orange);
  font-weight: 500;
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-6 {
  margin-top: 3rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 2rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ── Custom Cursor ──────────────────────────── */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--green-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 11000;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(74, 222, 128, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.2s;
}

.footer-green {
  background: var(--green) !important;
  color: #ffffff !important;
  border-top: 6px solid #ff7518;
  /* Pumpkin Orange */
}

.footer-green a {
  color: #ffffff !important;
  transition: all 0.2s;
  opacity: 0.8;
}

.footer-green a:hover {
  color: #ffffff !important;
  opacity: 1;
}

.footer-green p,
.footer-green div:not(.footer-title) {
  color: #ffffff !important;
}

.footer-title {
  color: #ff7518 !important;
}

/* ── Responsive — base breakpoints ──────────────────── */
/* Tablet */
@media (max-width: 1100px) {
  :root {
    --section-pad: 5rem 3.5rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip .stat-item:nth-child(2) {
    border-right: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem 1.5rem;
  }

  html {
    font-size: 15px;
  }

  body {
    cursor: auto;
  }

  #cursor,
  #cursor-ring {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* Mobile S */
@media (max-width: 480px) {
  :root {
    --section-pad: 3rem 1.25rem;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-num {
    font-size: 2rem;
  }
}

/* ── About-style 3-col inline stat grids → responsive col ─ */
/* Targets the repeat(3, 1fr) grid used in About / index stats */
@media (max-width: 767px) {

  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (min-width: 480px) and (max-width: 767px) {

  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}


.prog-card {
  border-top: 4px solid var(--green);
}

.prog-card:nth-child(even) {
  border-top: 4px solid var(--blue);
}

.project-card {
  border-left: 6px solid var(--blue);
}

.project-card:nth-child(even) {
  border-left: 6px solid var(--green);
}

nav {
  border-bottom: 4px solid var(--blue);
}

/* ── Modals ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--bg-secondary);
  transform: rotate(90deg);
}

.modal-body {
  overflow-y: auto;
  padding: 0;
}

.modal-img-wrapper {
  width: 100%;
  height: 350px;
  background: var(--bg-secondary);
}

.modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text {
  padding: 3rem;
}

.modal-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.modal-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .modal-text {
    padding: 2rem;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-img-wrapper {
    height: 250px;
  }
}

/* ── Loader ─────────────────────────────────── */
.loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--green-subtle);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: var(--green-bright);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ── Featured Project Grid (Tunga Ihene) ─────────────── */
.fp-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-areas:
    "titles image"
    "details image";
  gap: 0 5rem;
  align-items: center;
}

.fp-titles {
  grid-area: titles;
  align-self: end;
}

.fp-details {
  grid-area: details;
  align-self: start;
}

.fp-image {
  grid-area: image;
}

/* ── Generic Project Grid Layout ──────────────────────── */
.project-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .project-grid-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Flatten the text wrapper so its children participate in flex ordering */
  .project-grid-layout>div:not([style*="border-radius:var(--radius-lg)"]):not([style*="border-radius"]) {
    display: contents !important;
  }

  /* 1. TITLES */
  .project-grid-layout .badge,
  .project-grid-layout .t-h2,
  .project-grid-layout .section-line {
    order: 1 !important;
    width: 100% !important;
  }

  .project-grid-layout .badge {
    margin-bottom: 0.8rem !important;
    margin-top: 1.5rem !important;
  }

  .project-grid-layout .t-h2 {
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
  }

  .project-grid-layout .section-line {
    margin-bottom: 2rem !important;
  }

  /* 2. PHOTO */
  .project-grid-layout>div[style*="border-radius:var(--radius-lg)"],
  .project-grid-layout>div[style*="border-radius"] {
    order: 2 !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
  }

  /* 3. CONTENT */
  .project-grid-layout blockquote,
  .project-grid-layout .t-body {
    order: 3 !important;
    width: 100% !important;
  }

  .project-grid-layout blockquote {
    margin-bottom: 1.5rem !important;
  }

  .project-grid-layout .t-body {
    margin-bottom: 1rem !important;
  }

  /* 4. STATS (Always the 2nd to last div inside the text wrapper) */
  .project-grid-layout>div:not([style*="border-radius"])>div:nth-last-child(2) {
    order: 4 !important;
    width: 100% !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
  }

  /* 5. CTA (Always the last div inside the text wrapper) */
  .project-grid-layout>div:not([style*="border-radius"])>div:last-child {
    order: 5 !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
  }
}