/**
 * Pap Onditi · Kisumu County
 * "Tool-Swap Drill" theme
 * 6 m³/hr domestic · alternating clay/murram requiring hammer ↔ drag bit swaps
 */
@import url('kisima-project-ngatataek.css');

.kisima-paponditi-page {
  --po-ink: #0f172a;
  --po-paper: #f7f5f0;
  --po-steel: #475569;
  --po-steel-dark: #1e293b;
  --po-chrome: #cbd5e1;
  --po-chrome-light: #e2e8f0;
  --po-clay: #ca8a04;
  --po-clay-light: #fde68a;
  --po-clay-dark: #78350f;
  --po-murram: #9a3412;
  --po-murram-light: #fdba74;
  --po-lake: #0369a1;
  --po-lake-dark: #0c4a6e;
  --po-aqua: #06b6d4;
  --po-amber: #f59e0b;
  --po-line: #d6d3d1;
  --ng-water: #0369a1;
  --ng-sky: #06b6d4;
  --ng-navy: #0f172a;
  --ng-earth: #9a3412;
  background: var(--po-paper);
  color: var(--po-ink);
}

/* ——— HERO: dark workshop theme with dual-tool clash ——— */
.po-hero {
  position: relative;
  min-height: clamp(580px, 96vh, 880px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: #0a0f1c;
}

.po-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/blog/images/projects/pap-onditi/IMG_3984.JPG');
  background-size: cover;
  background-position: center;
  filter: grayscale(0.4) brightness(0.5);
  z-index: 0;
}

.po-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.po-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, 0.78) 0%, rgba(10, 15, 28, 0.55) 40%, rgba(10, 15, 28, 0.95) 100%),
    radial-gradient(80% 60% at 20% 30%, rgba(3, 105, 161, 0.32) 0%, transparent 60%),
    radial-gradient(80% 60% at 80% 70%, rgba(202, 138, 4, 0.18) 0%, transparent 60%);
  z-index: 2;
}

.po-hero__inner {
  position: relative;
  z-index: 4;
  width: min(1300px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  min-height: clamp(580px, 96vh, 880px);
  display: flex;
  flex-direction: column;
}

.po-hero__crumb {
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.po-hero__crumb a { color: #67e8f9; text-decoration: none; }

.po-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: auto;
}

.po-hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.po-hero__loc i { color: #67e8f9; }

/* Dual-tool centrepiece */
.po-hero__center {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.po-hero__duel {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #cbd5e1;
}

.po-hero__tool {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.po-hero__tool--hammer { color: #fdba74; border-color: rgba(253, 186, 116, 0.45); background: rgba(253, 186, 116, 0.08); }
.po-hero__tool--bit { color: #fde68a; border-color: rgba(253, 230, 138, 0.45); background: rgba(253, 230, 138, 0.08); }

.po-hero__tool i { font-size: 1.1rem; }

.po-hero__vs {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: #67e8f9;
  animation: po-swap 2.4s ease-in-out infinite;
}

@keyframes po-swap {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.15); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.15); }
}

.po-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0 auto 1rem;
  max-width: 22ch;
}

.po-hero h1 .po-swap-text {
  background: linear-gradient(135deg, #fdba74 0%, #fde68a 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.po-hero__lead {
  font-size: clamp(1rem, 1.85vw, 1.18rem);
  line-height: 1.6;
  opacity: 0.92;
  max-width: 48rem;
  margin: 0 auto 1.75rem;
}

.po-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.po-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.po-pill--yield { background: linear-gradient(135deg, #0369a1, #06b6d4); color: #fff; border-color: transparent; }
.po-pill--use { background: linear-gradient(135deg, #15803d, #65a30d); color: #fff; border-color: transparent; }

.po-hero__strap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  max-width: 56rem;
  margin: 0 auto;
}

.po-hero__stat {
  padding: 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  text-align: left;
}

.po-hero__stat strong {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #67e8f9;
  line-height: 1.1;
}

.po-hero__stat span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.po-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ——— Section frame ——— */
.po-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
}

.po-section--paper { background: var(--po-paper); }
.po-section--dark {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
}
.po-section--lake {
  background: linear-gradient(180deg, #f7f5f0 0%, #e0f2fe 100%);
}

.po-wrap {
  width: min(1280px, 100% - 2rem);
  margin-inline: auto;
}

.po-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--po-lake);
  margin-bottom: 0.75rem;
}

.po-eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: currentColor;
}

.po-eyebrow--clay { color: var(--po-clay); }
.po-eyebrow--murram { color: var(--po-murram); }
.po-eyebrow--dark { color: #67e8f9; }

.po-h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.po-h2 em { font-style: italic; color: var(--po-murram); }
.po-h2 b { font-weight: 800; color: var(--po-lake); }

.po-section--dark .po-h2 { color: #f8fafc; }
.po-section--dark .po-h2 em { color: #fdba74; }
.po-section--dark .po-h2 b { color: #67e8f9; }

.po-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  max-width: 44rem;
}

.po-section--dark .po-lead { color: #cbd5e1; }

/* ——— Brief / fact strip ——— */
.po-brief {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.po-brief__card {
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--po-line);
  position: relative;
  overflow: hidden;
}

.po-brief__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.po-brief__card--depth::before { background: linear-gradient(90deg, var(--po-lake), var(--po-aqua)); }
.po-brief__card--yield::before { background: linear-gradient(90deg, var(--po-aqua), #67e8f9); }
.po-brief__card--swap::before { background: linear-gradient(90deg, var(--po-murram), var(--po-clay)); }
.po-brief__card--use::before { background: linear-gradient(90deg, #15803d, #65a30d); }

.po-brief__card i {
  font-size: 1.4rem;
  color: var(--po-lake);
  margin-bottom: 0.6rem;
  display: block;
}

.po-brief__card--swap i { color: var(--po-murram); }
.po-brief__card--use i { color: #15803d; }

.po-brief__num {
  font-family: ui-monospace, monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--po-ink);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.po-brief__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  font-weight: 700;
}

/* ——— The tool swap diagram — signature visual ——— */
.po-swap {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
}

.po-swap__column {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.4);
}

.po-band {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  align-items: center;
  padding: 0.65rem 0.85rem;
  gap: 0.85rem;
  position: relative;
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.po-band:last-child { border-bottom: none; }

.po-band--clay {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, #fde68a 0%, #fcd34d 50%, #ca8a04 100%);
  color: #422006;
}

.po-band--murram {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 5px, transparent 5px 11px),
    linear-gradient(90deg, #fdba74 0%, #f97316 45%, #9a3412 100%);
  color: #431407;
}

.po-band__rod {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  text-align: center;
  line-height: 1.25;
}

.po-band__rod span {
  display: block;
  font-size: 0.62rem;
  opacity: 0.75;
  font-weight: 600;
  letter-spacing: 0;
}

.po-band__formation {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
}

.po-band__formation span {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.78;
  margin-top: 0.15rem;
}

.po-band__tool {
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.4rem;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--po-ink);
  line-height: 1.2;
}

.po-band__tool i {
  font-size: 1rem;
  display: block;
  margin-bottom: 0.15rem;
}

.po-band--clay .po-band__tool i { color: var(--po-clay-dark); }
.po-band--murram .po-band__tool i { color: var(--po-murram); }

/* Swap badge between bands */
.po-band__swap {
  position: absolute;
  right: -14px;
  top: -14px;
  background: #dc2626;
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  z-index: 3;
  white-space: nowrap;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.po-swap__copy h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--po-ink);
}

.po-swap__copy p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0.85rem;
}

.po-swap__copy p strong { color: var(--po-murram); }

.po-swap__points {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.po-swap__point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--po-line);
  border-left: 4px solid var(--po-murram);
  border-radius: 10px;
}

.po-swap__point i {
  font-size: 1.15rem;
  color: var(--po-murram);
  margin-top: 0.1rem;
}

.po-swap__point strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.po-swap__point span {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

/* ——— Cost of a swap (dark section, three cards) ——— */
.po-cost {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.po-cost__card {
  padding: 1.75rem 1.65rem 1.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.po-cost__card::after {
  content: attr(data-step);
  position: absolute;
  top: 0.85rem;
  right: 1.25rem;
  font-family: ui-monospace, monospace;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(103, 232, 249, 0.08);
  line-height: 1;
}

.po-cost__card i {
  font-size: 1.85rem;
  color: #67e8f9;
  margin-bottom: 0.75rem;
  display: block;
}

.po-cost__card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #f8fafc;
}

.po-cost__card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

/* ——— Shallow-well comparison band ——— */
.po-shallow {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.po-shallow__card {
  padding: 1.85rem 1.85rem 2rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.po-shallow__card--bad {
  background: linear-gradient(160deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
  color: var(--po-clay-dark);
}

.po-shallow__card--good {
  background: linear-gradient(160deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid var(--po-lake);
  color: var(--po-lake-dark);
}

.po-shallow__tag {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.po-shallow__card--bad .po-shallow__tag { background: var(--po-clay-dark); color: #fef3c7; }
.po-shallow__card--good .po-shallow__tag { background: var(--po-lake-dark); color: #e0f2fe; }

.po-shallow__card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.po-shallow__card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.92;
}

/* ——— 6 m³/hr domestic band ——— */
.po-usage {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #0369a1 0%, #075985 60%, #0c4a6e 100%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.po-usage::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.22), transparent 70%);
}

.po-usage__inner {
  position: relative;
  z-index: 2;
}

.po-usage__h {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  max-width: 32rem;
}

.po-usage__h em { color: #67e8f9; font-style: italic; }

.po-usage__lead {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.po-usage__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.po-usage__tile {
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.po-usage__tile i {
  font-size: 1.45rem;
  color: #67e8f9;
  display: block;
  margin-bottom: 0.4rem;
}

.po-usage__tile strong {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.po-usage__tile span {
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.85;
}

/* ——— Gallery (masonry) ——— */
.po-gallery {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 170px;
  gap: 0.6rem;
}

.po-gallery__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1e293b;
}

.po-gallery__item img,
.po-gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.po-gallery__item--vid { grid-column: span 3; grid-row: span 2; }
.po-gallery__item--big { grid-column: span 3; grid-row: span 2; }
.po-gallery__item--w { grid-column: span 2; }
.po-gallery__item--t { grid-column: span 1; }
.po-gallery__item--ww { grid-column: span 3; }

.po-gallery__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.85rem 0.5rem;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85), transparent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.po-gallery__tag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.3rem 0.55rem;
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.85);
  color: #67e8f9;
  border-radius: 4px;
}

/* ——— Quote override ——— */
.kisima-paponditi-page .ng-quote__scrim {
  background:
    radial-gradient(circle at 30% 70%, rgba(3, 105, 161, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(12, 74, 110, 0.85));
}

.kisima-paponditi-page .ng-quote__text,
.kisima-paponditi-page .ng-quote__author { color: #fff; }
.kisima-paponditi-page .ng-quote__mark { color: #67e8f9; }

/* ——— Reveal ——— */
.po-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .po-swap { grid-template-columns: 1fr; gap: 2rem; }
  .po-brief { grid-template-columns: repeat(2, 1fr); }
  .po-cost { grid-template-columns: 1fr; }
  .po-usage__grid { grid-template-columns: repeat(2, 1fr); }
  .po-shallow { grid-template-columns: 1fr; }
  .po-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .po-gallery__item--vid,
  .po-gallery__item--big,
  .po-gallery__item--ww { grid-column: span 2; }
  .po-gallery__item--w,
  .po-gallery__item--t { grid-column: span 1; }
}

@media (max-width: 640px) {
  .po-hero__strap { grid-template-columns: repeat(2, 1fr); }
  .po-hero__duel { flex-direction: column; gap: 0.65rem; }
  .po-brief { grid-template-columns: 1fr; }
  .po-usage__grid { grid-template-columns: 1fr; }
  .po-band { grid-template-columns: 60px 1fr 56px; padding: 0.5rem 0.6rem; gap: 0.55rem; }
  .po-band__formation { font-size: 0.85rem; }
  .po-band__swap { right: 4px; top: -10px; font-size: 0.55rem; }
}
