/**
 * Ngatataek — flagship project case study
 */
.kisima-ngatataek-page {
  --ng-sky: #0ea5e9;
  --ng-water: #2563eb;
  --ng-navy: #0b1324;
  --ng-earth: #b45309;
  --ng-sand: #fef3c7;
  --ng-glow: rgba(14, 165, 233, 0.35);
  background: #f8fafc;
  color: #0f172a;
  padding-top: 0 !important;
}

/* ——— Hero ——— */
.ng-hero {
  position: relative;
  min-height: clamp(520px, 92vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.ng-hero__bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  transform: scale(1.04);
  animation: ng-hero-zoom 18s ease-out forwards;
}

@keyframes ng-hero-zoom {
  to { transform: scale(1); }
}

.ng-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 19, 36, 0.94) 0%, rgba(11, 19, 36, 0.72) 38%, rgba(11, 19, 36, 0.25) 68%, rgba(180, 83, 9, 0.15) 100%),
    linear-gradient(0deg, #f8fafc 0%, rgba(248, 250, 252, 0.9) 14%, transparent 38%),
    linear-gradient(0deg, rgba(11, 19, 36, 0.5) 0%, transparent 45%);
  pointer-events: none;
}

.ng-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ng-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.ng-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.ng-hero__breadcrumb a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
}

.ng-hero__breadcrumb a:hover {
  text-decoration: underline;
}

.ng-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ng-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.ng-hero__badge--gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.85));
  border-color: rgba(251, 191, 36, 0.5);
  color: #1c1917;
}

.ng-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.ng-hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  max-width: 38rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
}

.ng-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ng-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.ng-btn--primary {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

.ng-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.ng-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ng-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-width: 52rem;
}

.ng-hero__stat {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.ng-hero__stat strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #7dd3fc;
}

.ng-hero__stat span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.ng-hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  animation: ng-bounce 2s ease-in-out infinite;
}

@keyframes ng-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ——— Trust strip ——— */
.ng-trust {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.ng-trust__inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.ng-trust__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
}

.ng-trust__item i {
  color: var(--ng-water);
  font-size: 1.1rem;
}

/* ——— Layout ——— */
.ng-wrap {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.ng-section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.ng-section--dark {
  background: linear-gradient(165deg, var(--ng-navy) 0%, #1e3a8a 55%, #0c4a6e 100%);
  color: #fff;
}

.ng-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ng-water);
  margin-bottom: 0.65rem;
}

.ng-section--dark .ng-eyebrow {
  color: #7dd3fc;
}

.ng-h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.ng-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
  max-width: 42rem;
}

.ng-section--dark .ng-lead {
  color: rgba(255, 255, 255, 0.82);
}

/* ——— Story split ——— */
.ng-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ng-story__visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.18);
}

.ng-story__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-story__float {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(11, 19, 36, 0.88);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ng-story__float strong {
  display: block;
  font-size: 1.5rem;
  color: #7dd3fc;
}

.ng-prose p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
  color: #334155;
}

.ng-prose p:last-child {
  margin-bottom: 0;
}

/* ——— Depth diagram ——— */
.ng-depth {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.ng-depth__well {
  position: relative;
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 12%, #d97706 28%, #92400e 55%, #1e3a8a 78%, #0c4a6e 100%);
  border-radius: 20px;
  height: 420px;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.2), 0 24px 48px rgba(15, 23, 42, 0.15);
}

.ng-depth__marker {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ng-depth__marker::before {
  content: '';
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.ng-depth__marker--surface { top: 8%; }
.ng-depth__marker--dry { top: 35%; }
.ng-depth__marker--aquifer {
  top: 72%;
  font-size: 0.85rem;
}

.ng-depth__marker--aquifer strong {
  background: var(--ng-sky);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  color: #0c4a6e;
  text-shadow: none;
}

.ng-depth__pulse {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ng-glow) 0%, transparent 70%);
  animation: ng-pulse 2.5s ease-in-out infinite;
}

@keyframes ng-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.ng-depth__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ng-depth__card {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.ng-depth__card i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: var(--ng-water);
  font-size: 1.25rem;
}

/* ——— Challenge / Solution ——— */
.ng-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ng-duo__card {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.ng-duo__card--challenge {
  border-top: 4px solid #f59e0b;
}

.ng-duo__card--solution {
  border-top: 4px solid var(--ng-green, #059669);
}

.ng-duo__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.ng-duo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ng-duo__card:hover .ng-duo__media img {
  transform: scale(1.05);
}

.ng-duo__body {
  padding: 1.75rem;
}

.ng-duo__body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ng-duo__body h3 i {
  color: #f59e0b;
}

.ng-duo__card--solution .ng-duo__body h3 i {
  color: var(--ng-green, #059669);
}

.ng-checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.ng-checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.ng-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ng-water);
}

/* ——— Impact pills ——— */
.ng-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.ng-impact-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, background 0.25s ease;
}

.ng-impact-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.ng-impact-card i {
  font-size: 1.75rem;
  color: #7dd3fc;
  margin-bottom: 0.75rem;
}

.ng-impact-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.ng-impact-card span {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ——— Timeline ——— */
.ng-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 2.5rem;
}

.ng-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--ng-water), var(--ng-sky));
  border-radius: 3px;
}

.ng-timeline__step {
  text-align: center;
  padding: 0 0.75rem;
  position: relative;
}

.ng-timeline__dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ng-water), #0ea5e9);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  position: relative;
  z-index: 1;
}

.ng-timeline__step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ng-timeline__step p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* ——— Gallery ——— */
.ng-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, 260px);
  gap: 1rem;
}

.ng-gallery__item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

.ng-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ng-gallery__item:hover img {
  transform: scale(1.06);
}

.ng-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 19, 36, 0.65) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ng-gallery__item:hover::after {
  opacity: 1;
}

.ng-gallery__item--hero {
  grid-column: span 7;
  grid-row: span 2;
}

.ng-gallery__item--a { grid-column: span 5; }
.ng-gallery__item--b { grid-column: span 4; }
.ng-gallery__item--c { grid-column: span 4; }
.ng-gallery__item--d { grid-column: span 4; }
.ng-gallery__item--e { grid-column: span 6; }
.ng-gallery__item--f { grid-column: span 6; }

.ng-gallery__cap {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ng-gallery__item:hover .ng-gallery__cap {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Quote ——— */
.ng-quote {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
  overflow: hidden;
}

.ng-quote__bg {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0.2;
}

.ng-quote__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 19, 36, 0.95), rgba(30, 58, 138, 0.92));
}

.ng-quote__inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100% - 2rem);
  margin: 0 auto;
  color: #fff;
}

.ng-quote__mark {
  font-size: 4rem;
  line-height: 1;
  color: #7dd3fc;
  opacity: 0.5;
  font-family: Georgia, serif;
}

.ng-quote__text {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: inherit;
}

.ng-quote__author {
  font-size: 0.95rem;
  opacity: 0.85;
  color: inherit;
}

/* Quote without background image — dark text on light section */
.ng-quote--light .ng-quote__inner {
  color: #0f172a;
}

.ng-quote--light .ng-quote__text {
  color: #1e293b;
}

.ng-quote--light .ng-quote__author {
  color: #475569;
  opacity: 1;
}

.ng-quote--light .ng-quote__mark {
  color: var(--ng-water, #2563eb);
  opacity: 0.35;
}

/* ——— CTA ——— */
.ng-cta {
  margin: 0 1rem clamp(2rem, 5vw, 3rem);
  padding: clamp(2.5rem, 6vw, 4rem);
  border-radius: 28px;
  background: linear-gradient(135deg, #0b1324 0%, #1d4ed8 50%, #0ea5e9 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ng-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.ng-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
}

.ng-cta p {
  opacity: 0.9;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  position: relative;
}

.ng-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.ng-cta .ng-btn--primary {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.ng-cta .ng-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ——— Related ——— */
.ng-related {
  padding-bottom: 4rem;
}

.ng-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.ng-related__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ng-related__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.ng-related__card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ng-related__body {
  padding: 1.15rem;
}

.ng-related__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ng-water);
}

.ng-related__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.35rem 0;
  line-height: 1.35;
}

/* ——— Reveal ——— */
.ng-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .ng-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ng-story,
  .ng-depth,
  .ng-duo {
    grid-template-columns: 1fr;
  }

  .ng-story__visual {
    aspect-ratio: 16 / 11;
    max-height: 400px;
  }

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

  .ng-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ng-timeline::before {
    display: none;
  }

  .ng-timeline__dot {
    margin-bottom: 0.75rem;
  }

  .ng-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .ng-gallery__item--hero,
  .ng-gallery__item--a,
  .ng-gallery__item--b,
  .ng-gallery__item--c,
  .ng-gallery__item--d,
  .ng-gallery__item--e,
  .ng-gallery__item--f {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
  }

  .ng-gallery__item--hero {
    grid-column: span 2;
    min-height: 280px;
  }

  .ng-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ng-hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .ng-hero h1 {
    max-width: none;
  }

  .ng-depth__well {
    height: 320px;
  }

  .ng-gallery {
    grid-template-columns: 1fr;
  }

  .ng-gallery__item--hero {
    grid-column: span 1;
  }
}
