/* ============================================================
   JCAP — jananiapp.org — style6.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  --forest:        #1C3A1A;
  --forest-mid:    #2A4A28;
  --forest-light:  #3A5C38;
  --turmeric:      #E8A020;
  --near-black:    #1A1208;
  --paddy:         #4A7C3F;
  --sky:           #2E7FAF;
  --ivory:         #FAF4E8;
  --ivory-dark:    #F0E8D4;
  --warm-white:    #FFFDF7;
  --charcoal:      #2D2A26;
  --border:        rgba(28,58,26,0.12);
  --bio-purple:    #7B5EA7;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1240px;
  --gap:         clamp(1.5rem, 3vw, 2.5rem);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur:         0.35s;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1 { font-family: var(--font-display); font-size: 4rem;   font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: 3rem;   font-weight: 600; line-height: 1.1;  letter-spacing: -0.015em; }
h3 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; line-height: 1.15; }
h4 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; line-height: 1.3; }
p  { font-size: 1rem; line-height: 1.8; }

/* ── SECTION RHYTHM ───────────────────────────────────────── */
.section { padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }

/* ── EYEBROW ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turmeric);
  margin-bottom: 0.85rem;
}
.eyebrow i { font-size: 1rem; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: all var(--dur) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
/* On light backgrounds — forest green */
.btn-primary {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}
.btn-primary:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,58,26,0.25);
}
/* On dark backgrounds — ivory */
.btn-primary-light {
  background: var(--ivory);
  color: var(--forest);
  border-color: var(--ivory);
}
.btn-primary-light:hover {
  background: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250,244,232,0.2);
}
.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(250,244,232,0.4);
}
.btn-outline-light:hover {
  border-color: var(--turmeric);
  color: var(--turmeric);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--turmeric);
  transition: gap var(--dur);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.text-link:hover { gap: 0.65rem; }
.text-link-muted { color: var(--charcoal); }
.text-link-muted:hover { color: var(--forest); }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── DOT GRID ─────────────────────────────────────────────── */
.dot-grid {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.055;
  background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(28,58,26,0.08);
  height: 64px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  gap: 1rem;
}

/* Brand slot — always in nav, logo tucked in after scroll */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-small {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.nav.scrolled .nav-logo-small {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.nav-wordmark-small {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}
.nav.scrolled .nav-wordmark-small {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-wordmark-small span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.02em;
}

/* Nav links */
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  padding: 0.45rem 0.85rem;
  transition: color var(--dur);
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.85rem; right: 0.85rem;
  height: 2px;
  background: var(--turmeric);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover { color: var(--forest); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--forest); font-weight: 600; }
.nav-cta { flex-shrink: 0; margin-left: auto; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--forest);
  transition: all var(--dur) var(--ease-out);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.nav-dropdown {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(28,58,26,0.1);
  padding: 0.75rem 0 1.25rem;
  z-index: 99;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: block;
  padding: 0.8rem clamp(1.5rem, 4vw, 3rem);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--dur);
}
.nav-dropdown a:hover { color: var(--forest); }
.nav-dropdown-cta { padding: 0.75rem clamp(1.5rem, 4vw, 3rem) 0; }

.nav-dropdown-cta .btn-primary { color: var(--ivory); }

/* ============================================================
   LARGE LOGO OPENER
   ============================================================ */
.logo-opener {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 90;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem clamp(1.5rem, 4vw, 3rem) 1rem;
  padding-left: 7rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.45s var(--ease-out);
  transform-origin: top left;
}
.logo-opener.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}
.logo-opener-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo-opener-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-opener-wordmark span {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.01em;
}

/* ============================================================
   SECTION 1 — OUR WORK
   ============================================================ */
.our-work {
  background: var(--warm-white);
  /* padding-top accounts for fixed nav + logo opener */
  padding-top: calc(64px + 130px + 2rem) !important;
  transition: padding-top 0.45s var(--ease-out);
}
.our-work.scrolled {
  padding-top: calc(64px + var(--section-pad));
}

/* Hippo icon — bottom right */
.hippo-icon {
  position: absolute;
  bottom: -20px; right: -20px;
  font-size: 18rem;
  line-height: 1;
  color: var(--forest);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
}

/* Hero-lite */
.hero-lite {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero-lite-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-lite h2 { margin-bottom: 0.75rem; }
.hero-lite-connector {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--forest);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.hero-lite-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.hero-lite-line {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.75;
}
.hero-lite-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Projects section */
.projects-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

/* Horizontal scroll carousel */
.projects-carousel-wrap {
  position: relative;
  margin-bottom: 2rem;
}
.projects-carousel {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}
.projects-carousel::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 calc(33.333% - var(--gap) * 2 / 3);
  min-width: 320px;
  scroll-snap-align: start;
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.project-card:hover {
  border-color: var(--turmeric);
  box-shadow: 0 8px 28px rgba(28,58,26,0.1);
  transform: translateY(-3px);
}
.project-card--placeholder {
  border-style: dashed;
}
.project-card--placeholder:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* Scroll arrows */
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--ivory);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 2;
  transition: background var(--dur), box-shadow var(--dur);
  box-shadow: 0 4px 12px rgba(28,58,26,0.25);
}
.carousel-btn:hover { background: var(--forest-mid); box-shadow: 0 6px 16px rgba(28,58,26,0.35); }
.carousel-btn--prev { left: -22px; }
.carousel-btn--next { right: -22px; }

/* Photo */
.project-photo {
  width: 100%; height: 200px;
  background: rgba(28,58,26,0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-photo-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--charcoal);
}
.project-photo-ph i { font-size: 2rem; }
.project-photo-ph span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.project-photo-zoom {
  position: absolute; bottom: 0.5rem; right: 0.5rem;
  background: rgba(0,0,0,0.3); color: white;
  width: 28px; height: 28px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  transition: opacity var(--dur);
}

.project-caption {
  font-size: 0.85rem;
  color: var(--charcoal);
  font-style: italic;
  text-align: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(28,58,26,0.03);
}

/* Card content */
.project-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paddy);
  background: rgba(74,124,63,0.1);
  border: 1px solid rgba(74,124,63,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  align-self: flex-start;
}
.project-category.water { color: var(--sky); background: rgba(46,127,175,0.1); border-color: rgba(46,127,175,0.25); }
.project-category.biodiversity { color: var(--bio-purple); background: rgba(123,94,167,0.1); border-color: rgba(123,94,167,0.25); }

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.25;
  margin-top: 0.6rem;
}

/* Project stage label */
.project-stage-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: -0.4rem;
  margin-top: 0.4rem;
}

/* Stage indicator */
.project-stage {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stage-item {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  white-space: nowrap;
  padding: 0.2rem 0;
}
.stage-item.inactive { color: var(--charcoal); opacity: 0.35; }
.stage-item.active { color: var(--turmeric); font-weight: 700; }
.stage-arrow { font-size: 0.7rem; color: var(--charcoal); flex-shrink: 0; }

/* Tooltip */
.stage-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
  letter-spacing: 0.01em;
  text-transform: none;
}
.stage-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--charcoal);
}
.stage-item:hover .stage-tooltip { opacity: 1; }

.project-location {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  font-weight: 500;
}
.project-location i { font-size: 0.8rem; color: var(--turmeric); flex-shrink: 0; }

.project-desc {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.75;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--charcoal);
  background: rgba(28,58,26,0.07);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}

/* Bottom strip */
.our-work-bottom {
  display: flex;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(10,20,10,0.92);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 880px; width: 100%; }
.lightbox-ph {
  width: 100%; height: 480px;
  background: rgba(250,244,232,0.05); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.lightbox-close {
  position: absolute; top: -2.5rem; right: 0;
  color: var(--ivory); font-size: 1.5rem; cursor: pointer;
  transition: color var(--dur);
}
.lightbox-close:hover { color: var(--turmeric); }
.lightbox-cap { margin-top: 0.75rem; font-size: 0.9rem; color: rgba(250,244,232,0.65); text-align: center; font-style: italic; }

/* ============================================================
   SECTION 2 — THE SHIFT
   ============================================================ */
.the-shift { background: var(--forest); color: var(--ivory); }

.butterfly-icon {
  position: absolute;
  bottom: -10px; right: -10px;
  font-size: 14rem; line-height: 1;
  color: var(--ivory);
  opacity: 0.07;
  pointer-events: none; z-index: 0;
}
.shift-dots { bottom: 0; right: 0; width: 40%; height: 45%; color: var(--ivory); }

.shift-intro {
  font-size: 1.1rem;
  color: var(--ivory);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.shift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(250,244,232,0.1);
}
.shift-row-gap {
  grid-column: 1 / -1;
  height: 1.75rem;
  background: var(--forest);
}

.shift-card {
  background: var(--forest);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background var(--dur);
}
.shift-card:hover { background: var(--forest-mid); }
.shift-card--distinctive {
  background: rgba(232,160,32,0.08);
  border: 1px solid rgba(232,160,32,0.25);
}
.shift-card--distinctive:hover { background: rgba(232,160,32,0.14); }

.shift-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.shift-card-icon { font-size: 1.2rem; color: var(--ivory); flex-shrink: 0; }
.shift-card--distinctive .shift-card-icon { color: var(--turmeric); }
.shift-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.2;
}
.shift-card--distinctive .shift-card-title { color: var(--turmeric); }

.shift-card-disconnect {
  font-size: 0.92rem;
  color: rgba(250,244,232,0.65);
  line-height: 1.65;
  font-style: italic;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(250,244,232,0.12);
}
.shift-card-shift {
  font-size: 0.95rem;
  color: var(--ivory);
  line-height: 1.7;
  flex: 1;
}
.shift-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turmeric);
  border: 1px solid rgba(232,160,32,0.4);
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: auto;
}

/* ============================================================
   SECTION 3 — HOW IT WORKS
   ============================================================ */
.how-it-works { background: var(--ivory-dark); }

.otter-icon {
  position: absolute;
  bottom: -10px; right: -10px;
  font-size: 14rem; line-height: 1;
  color: var(--forest);
  opacity: 0.07;
  pointer-events: none; z-index: 0;
}

.hiw-subtitle {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.75;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}
.hiw-subtitle strong { font-weight: 700; }

.os-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.os-intro p { font-size: 1.05rem; line-height: 1.8; color: var(--charcoal); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 2.5rem;
}
.cap-card {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 2px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.cap-card:hover {
  border-color: var(--turmeric);
  box-shadow: 0 8px 28px rgba(28,58,26,0.1);
  transform: translateY(-3px);
}
.cap-card-num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); }
.cap-card-icon { font-size: 1.85rem; color: var(--turmeric); }
.cap-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--charcoal); line-height: 1.2; }
.cap-card-sub { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--turmeric); }
.cap-card-body { font-size: 0.95rem; color: var(--charcoal); line-height: 1.75; }
.cap-bullets { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.cap-bullet {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.9rem; color: var(--charcoal); line-height: 1.65;
}
.cap-bullet::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--turmeric); margin-top: 0.55rem; flex-shrink: 0;
}

/* Pull quote — centred, constrained */
.os-pullquote {
  border-left: 3px solid var(--turmeric);
  padding: 1.1rem 1.75rem;
  margin: 0 auto 3rem;
  max-width: 65%;
  background: rgba(232,160,32,0.05);
  border-radius: 0 2px 2px 0;
  text-align: center;
}
.os-pullquote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.45;
}
.os-pullquote strong { font-style: normal; font-weight: 600; color: var(--forest); }

/* Differentiator */
.diff-header { margin-bottom: 1.25rem; }
.diff-title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--charcoal); margin-top: 0.35rem; }

.diff-table-wrap {
  border: 1.5px solid var(--border);
  border-radius: 2px;
  overflow: auto;
  background: var(--warm-white);
  margin-bottom: 2.5rem;
}
.diff-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.diff-table thead tr { background: var(--forest); }
.diff-table th {
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
}
.diff-table th:first-child { width: 22%; }
.diff-table th:nth-child(2) { border-left: 3px solid var(--turmeric); }
.diff-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.65;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.diff-table td:first-child { font-size: 0.875rem; font-weight: 700; color: var(--charcoal); }
.diff-table td:nth-child(2) { border-left: 3px solid var(--turmeric); font-weight: 500; }
.diff-table tr:last-child td { border-bottom: none; }
.diff-table tbody tr:nth-child(even) td { background: rgba(28,58,26,0.035); }
.diff-table tbody tr:nth-child(even) td:nth-child(2) { background: rgba(232,160,32,0.05); }

/* Section 3 closing CTA */
.hiw-closing {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.hiw-closing-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ============================================================
   SECTION 4 — PARTNERSHIP
   ============================================================ */
.partnership { background: var(--forest); color: var(--ivory); }

.frog-icon {
  position: absolute;
  bottom: -10px; right: -10px;
  font-size: 12rem; line-height: 1;
  color: var(--ivory);
  opacity: 0.07;
  pointer-events: none; z-index: 0;
  transform: scaleX(-1);
}
.partner-dots { top: 0; left: 0; width: 35%; height: 40%; color: var(--ivory); }

.partner-intro {
  font-size: 1.1rem;
  color: var(--ivory);
  line-height: 1.8;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

/* KJ Trust block */
.kj-trust {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  background: rgba(250,244,232,0.05);
  border: 1px solid rgba(232,160,32,0.25);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}
.kj-logos { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.kj-logo { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.kj-divider { width: 1px; height: 40px; background: rgba(250,244,232,0.2); }
.kj-wordmark { line-height: 1.3; }
.kj-wm-main {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--turmeric);
}
.kj-wm-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ivory);
  display: block;
}
.kj-trust-text { flex: 1; min-width: 220px; }
.kj-trust-text p { font-size: 1rem; color: var(--ivory); line-height: 1.75; }
.kj-trust-text p + p { margin-top: 0.4rem; }
.kj-trust-text strong { font-weight: 600; }
.kj-link { color: var(--turmeric); font-weight: 600; border-bottom: 1px solid rgba(232,160,32,0.4); transition: border-color var(--dur); }
.kj-link:hover { border-color: var(--turmeric); }

/* Partner cards */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 2.5rem;
}
.partner-card {
  background: rgba(250,244,232,0.04);
  border: 1px solid rgba(250,244,232,0.12);
  border-radius: 2px;
  padding: 1.75rem;
  transition: border-color var(--dur), background var(--dur);
}
.partner-card:hover { border-color: rgba(232,160,32,0.4); background: rgba(232,160,32,0.04); }
.partner-card-icon { font-size: 2rem; color: var(--turmeric); margin-bottom: 1rem; }

/* Subtitle first, then big bold audience title */
.partner-card-subtitle {
  font-size: 0.9rem;
  color: var(--ivory);
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-style: italic;
}
.partner-card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
.partner-bullets { display: flex; flex-direction: column; gap: 0.5rem; }
.partner-bullet {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.95rem; color: var(--ivory); line-height: 1.65;
}
.partner-bullet::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--turmeric); margin-top: 0.6rem; flex-shrink: 0;
}

/* CTA block */
.partner-cta-block { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.partner-conversation {
  font-size: 1.05rem;
  color: var(--ivory);
  line-height: 1.75;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
  background: var(--ivory);
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.footer-logo-wrap { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.footer-logo { width: 44px; height: 44px; border-radius: 50%; }
.footer-wm span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.footer-tagline { font-size: 0.95rem; color: var(--charcoal); line-height: 1.7; margin-top: 0.25rem; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-link { font-size: 0.95rem; color: var(--charcoal); transition: color var(--dur); }
.footer-link:hover { color: var(--forest); }
.footer-contact { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; color: var(--charcoal); }
.footer-contact-item i { color: var(--paddy); font-size: 0.9rem; margin-top: 0.25rem; flex-shrink: 0; }
.footer-contact-item a { color: var(--charcoal); transition: color var(--dur); }
.footer-contact-item a:hover { color: var(--forest); }

/* KJ band — forest green */
.footer-kj-band {
  background: var(--forest);
  padding: 1.5rem 0 0;
}
.footer-kj-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
}
.footer-kj-left { display: flex; align-items: center; gap: 1rem; }
.footer-kj-logo { width: 36px; height: 36px; border-radius: 50%; }
.footer-kj-text { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--turmeric); }
.footer-kj-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.5;
  margin-top: 0.15rem;
}
.footer-kj-link { font-size: 0.85rem; font-weight: 600; color: var(--turmeric); border-bottom: 1px solid rgba(232,160,32,0.35); transition: border-color var(--dur); }
.footer-kj-link:hover { border-color: var(--turmeric); }

/* Copyright inside KJ band */
.footer-copy {
  border-top: 1px solid rgba(250,244,232,0.08);
  padding: 0.85rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ivory);
}

/* ============================================================
   RESPONSIVE — TABLET 960px
   ============================================================ */
@media (max-width: 960px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.6rem; }

  .nav-links { display: none !important; }
  .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }

  .hero-lite-inner { grid-template-columns: 1fr; }

  .project-card { flex: 0 0 calc(50% - var(--gap) / 2); }
  .shift-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .os-pullquote { max-width: 85%; }
  .logo-opener-wordmark span { font-size: 1.35rem; }
  .logo-opener-img { width: 75px; height: 75px; }

  .our-work { padding-top: calc(64px + 105px + 2rem) !important; }
}

/* ============================================================
   RESPONSIVE — MOBILE 600px
   ============================================================ */
@media (max-width: 600px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
  body { font-size: 17px; }

  .project-card { flex: 0 0 calc(100% - var(--gap)); }
  .shift-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .kj-trust { flex-direction: column; align-items: flex-start; }
  .footer-kj-inner { flex-direction: column; align-items: flex-start; }
  .os-pullquote { max-width: 100%; }
  .logo-opener-wordmark span { font-size: 1.1rem; }
  .logo-opener-img { width: 60px; height: 60px; }

  .our-work { padding-top: calc(64px + 85px + 2rem) !important; }
}

/* ============================================================
   RESPONSIVE — MOBILE 600px
   ============================================================ */
@media print {
  /* Hide navigation and interactive elements */
  .nav,
  .logo-opener,
  .nav-dropdown,
  .nav-hamburger,
  .carousel-btn,
  .lightbox,
  .img-slot-zoom,
  .project-photo-zoom { display: none !important; }

  /* Force all backgrounds to white and all text to black */
  * {
    background: white !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Restore essential background colours */
  .diff-table thead tr { background: #eee !important; }
  .diff-table tbody tr:nth-child(even) td { background: #f5f5f5 !important; }

  /* Ensure backgrounds print */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Reset section padding */
  .our-work { padding-top: 2rem !important; }
  .section { padding: 2rem 0; }

  /* Reset transforms and animations */
  .reveal { opacity: 1 !important; transform: none !important; }

  /* Show all carousel cards */
  .projects-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
  }

  /* Page breaks */
  .section { page-break-before: always; }
  .project-card { page-break-inside: avoid; }
  .cap-card { page-break-inside: avoid; }
  .partner-card { page-break-inside: avoid; }
  .diff-table tr { page-break-inside: avoid; }

  /* Typography */
  body { font-size: 12pt; }
  a { color: #000 !important; }
  h2 { font-size: 24pt; }
  h3 { font-size: 18pt; }
  h4 { font-size: 14pt; }
}
