/**
 * Chumvi — Laikipia community borehole (275m, donor-funded)
 * Depth descent layout · dry-aquifer drama · drip future
 */
@import url('kisima-project-ngatataek.css');

.kisima-chumvi-page {
  --cv-rust: #c2410c;
  --cv-dust: #d6d3d1;
  --cv-deep: #1e1b4b;
  --cv-gold: #eab308;
  --cv-teal: #0d9488;
  --cv-sand: #fafaf9;
  --ng-sky: #6366f1;
  --ng-water: #4f46e5;
  --ng-navy: #1e1b4b;
  --ng-earth: #c2410c;
  --ng-sand: #fafaf9;
  background: var(--cv-sand);
}

/* ——— Opening: depth theatre ——— */
.cv-opening {
  position: relative;
  min-height: clamp(520px, 92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.cv-opening__bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
}

.cv-opening__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #1e1b4b 0%, rgba(30, 27, 75, 0.75) 35%, rgba(30, 27, 75, 0.4) 100%),
    linear-gradient(90deg, rgba(30, 27, 75, 0.85) 0%, transparent 55%);
}

.cv-opening__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.cv-opening__crumb {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.cv-opening__crumb a {
  color: #a5b4fc;
  text-decoration: none;
}

.cv-opening__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.cv-flag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cv-flag--donor {
  background: linear-gradient(135deg, #ca8a04, #eab308);
  color: #1c1917;
  border: none;
}

.cv-flag--yield {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #042f2e;
  border: none;
}

.cv-opening h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.cv-opening__lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  max-width: 40rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}

.cv-depth-meter {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cv-depth-meter__num {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: #a5b4fc;
  letter-spacing: -0.04em;
}

.cv-depth-meter__meta {
  padding-bottom: 0.5rem;
}

.cv-depth-meter__meta strong {
  display: block;
  font-size: 1.1rem;
  color: #fcd34d;
}

.cv-depth-meter__meta span {
  font-size: 0.82rem;
  opacity: 0.85;
}

.cv-opening__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

/* ——— Dry landscape strip ——— */
.cv-dry-strip {
  background: #292524;
  color: #e7e5e4;
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--cv-rust);
}

.cv-dry-strip__inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.cv-dry-strip__item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fca5a5;
}

.cv-dry-strip__item span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* ——— Two-world: before travel / after water ——— */
.cv-two-world {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.cv-two-world__side {
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cv-two-world__side--before {
  background: linear-gradient(145deg, #44403c, #292524);
  color: #d6d3d1;
}

.cv-two-world__side--after {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  color: #14532d;
}

.cv-two-world__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.cv-two-world__side h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.cv-two-world__side p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.cv-two-world__side ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.cv-two-world__side li {
  font-size: 0.88rem;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.45;
}

.cv-two-world__side--before li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #fca5a5;
}

.cv-two-world__side--after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

/* ——— Depth descent timeline ——— */
.cv-descent {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: #fff;
}

.cv-descent__track {
  position: relative;
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding-left: 3rem;
  border-left: 4px solid #e7e5e4;
}

.cv-descent__track::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  width: 4px;
  height: 72%;
  background: linear-gradient(180deg, #fca5a5 0%, #c2410c 45%, #4f46e5 72%, #0d9488 100%);
}

.cv-descent__node {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
}

.cv-descent__dot {
  position: absolute;
  left: -3rem;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: -0.625rem;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--cv-rust);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.2);
}

.cv-descent__node--aquifer .cv-descent__dot {
  border-color: #4f46e5;
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.25);
  width: 1.5rem;
  height: 1.5rem;
  margin-left: -0.75rem;
  left: -3.05rem;
}

.cv-descent__node--strike .cv-descent__dot {
  border-color: #0d9488;
  background: #14b8a6;
  box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.3);
}

.cv-descent__depth {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cv-rust);
  margin-bottom: 0.25rem;
}

.cv-descent__node--aquifer .cv-descent__depth { color: #4f46e5; }
.cv-descent__node--strike .cv-descent__depth { color: #0d9488; }

.cv-descent__node h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #1c1917;
}

.cv-descent__node p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #57534e;
  margin: 0;
}

/* ——— Donor + community cards ——— */
.cv-partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.cv-partner-card {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #e7e5e4;
  background: #fff;
}

.cv-partner-card--donor {
  border-color: #fde68a;
  background: linear-gradient(145deg, #fffbeb, #fff);
}

.cv-partner-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.cv-partner-card--donor h3 { color: #a16207; }
.cv-partner-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #57534e;
  margin: 0;
}

/* ——— Six acres drip band ——— */
.cv-drip-band {
  background: linear-gradient(135deg, #14532d 0%, #166534 50%, #15803d 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.cv-drip-band::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cv-drip-band__inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.cv-drip-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cv-drip-band p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 0.85rem;
}

.cv-acres-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  margin-top: 0.5rem;
}

.cv-acres-badge strong {
  font-size: 2.5rem;
  font-weight: 800;
  color: #86efac;
}

.cv-drip-band__img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.cv-drip-band__img img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
}

/* ——— Photo grid ——— */
.cv-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 120px;
  gap: 0.5rem;
  margin-top: 2rem;
}

.cv-mosaic__item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.cv-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-mosaic__item--a { grid-column: span 6; grid-row: span 2; }
.cv-mosaic__item--b { grid-column: span 3; grid-row: span 2; }
.cv-mosaic__item--c { grid-column: span 3; grid-row: span 1; }
.cv-mosaic__item--d { grid-column: span 3; grid-row: span 1; }
.cv-mosaic__item--e { grid-column: span 4; grid-row: span 2; }
.cv-mosaic__item--f { grid-column: span 4; grid-row: span 1; }
.cv-mosaic__item--g { grid-column: span 4; grid-row: span 1; }
.cv-mosaic__item--h { grid-column: span 6; grid-row: span 1; }
.cv-mosaic__item--i { grid-column: span 3; grid-row: span 1; }
.cv-mosaic__item--j { grid-column: span 3; grid-row: span 1; }

.cv-mosaic__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
}

.cv-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cv-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.kisima-chumvi-page .ng-quote__scrim {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(20, 83, 45, 0.9));
}

.kisima-chumvi-page .ng-quote__text,
.kisima-chumvi-page .ng-quote__author {
  color: #fff;
}

.kisima-chumvi-page .ng-quote__author {
  color: #d1fae5;
}

@media (max-width: 900px) {
  .cv-two-world,
  .cv-partners,
  .cv-drip-band__inner,
  .cv-dry-strip__inner {
    grid-template-columns: 1fr;
  }

  .cv-dry-strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .cv-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }

  .cv-mosaic__item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .cv-mosaic__item--a {
    grid-column: span 2 !important;
    grid-row: span 2 !important;
  }
}
