/* Campaigns hub + project story pages — v4.4 archive row stack (Navaan sage/forest)
   Hover policy: NEVER scale/zoom images. Prefer opacity, brightness, border, underline. */

/* ── Shared ─────────────────────────────────────────────── */
.cp-page {
  background: var(--bg-dark, #060806);
}

.cp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 1.15rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.02em;
}

.cp-breadcrumb a {
  color: var(--primary-sage);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cp-breadcrumb a:hover {
  color: var(--primary-ivory);
}

.cp-breadcrumb-sep {
  opacity: 0.35;
}

.cp-badge {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-sage);
}

.cp-badge--done {
  color: var(--primary-ivory);
}

.cp-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.55rem;
  vertical-align: 1px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(149, 173, 99, 0.18);
}

.cp-badge--done::before {
  box-shadow: 0 0 0 3px rgba(247, 231, 182, 0.15);
}

.cp-area-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(149, 173, 99, 0.85);
  border: 1px solid rgba(149, 173, 99, 0.28);
  padding: 0.22rem 0.55rem;
  margin-bottom: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 2px;
}

.cp-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-sage);
  margin-bottom: 0.85rem;
}

.cp-rule {
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-sage), rgba(149, 173, 99, 0.15));
  margin: 0 0 1.45rem;
  border: 0;
}

.cp-lead {
  font-size: clamp(1.14rem, 2.1vw, 1.38rem);
  line-height: 1.68;
  color: rgba(238, 240, 231, 0.9);
  margin-bottom: 1.45rem;
  letter-spacing: -0.01em;
}

.cp-body {
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.15rem;
}

.cp-hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  max-width: 38rem;
  margin-top: 1.35rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.cp-index {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(149, 173, 99, 0.75);
  margin-bottom: 0.65rem;
}

/* Soft sage atmosphere on heroes — no image zoom */
.cp-hero-atmosphere {
  isolation: isolate;
}

.cp-hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(149, 173, 99, 0.16), transparent 70%),
    radial-gradient(ellipse 42% 38% at 88% 72%, rgba(52, 108, 45, 0.14), transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(3, 8, 5, 0.35), transparent 55%);
}

.cp-hero-atmosphere .hero-overlay {
  z-index: 2;
}

.cp-hero-atmosphere .hero-content {
  z-index: 3;
  position: relative;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.cp-hero-atmosphere > .hero-video {
  /* static crop — never ken-burns / scale */
  transform: none;
}

/* Motion — content entrance only */
.cp-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: cpFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cp-enter-1 { animation-delay: 0.12s; }
.cp-enter-2 { animation-delay: 0.28s; }
.cp-enter-3 { animation-delay: 0.44s; }
.cp-enter-4 { animation-delay: 0.58s; }

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

body:not(.revealed-ui) .cp-enter {
  animation: none;
}

body.revealed-ui .cp-enter {
  animation-name: cpFadeUp;
}

/* ── Impact metrics ──────────────────────────────────────── */
.cp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: -3.1rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(149, 173, 99, 0.22);
  border-top: 2px solid rgba(149, 173, 99, 0.55);
  background:
    linear-gradient(180deg, rgba(10, 14, 10, 0.97), rgba(3, 8, 5, 0.98));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.cp-stat {
  padding: 1.55rem 1.15rem 1.45rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.cp-stat:hover {
  background: rgba(149, 173, 99, 0.04);
}

.cp-stat:last-child {
  border-right: 0;
}

.cp-stat-val {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 700;
  color: var(--primary-sage);
  line-height: 1.12;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.cp-stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ── Magazine story ──────────────────────────────────────── */
.cp-story {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background:
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(149, 173, 99, 0.05), transparent 60%),
    linear-gradient(180deg, #030805 0%, #060806 55%, #040504 100%);
}

.cp-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.25rem, 5.5vw, 4.75rem);
  align-items: start;
}

.cp-story-media {
  position: sticky;
  top: calc(var(--nav-height, 72px) + 1.5rem);
  overflow: hidden;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  aspect-ratio: 4 / 5;
  max-height: 640px;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
  transition: border-color 0.35s ease;
}

.cp-story-media:hover {
  border-color: rgba(149, 173, 99, 0.35);
}

.cp-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.96) saturate(0.94);
  transition: filter 0.4s ease;
}

.cp-story-media:hover img {
  filter: brightness(1.04) saturate(1.02);
}

.cp-story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 8, 5, 0.5) 100%);
  pointer-events: none;
}

.cp-story-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--primary-ivory, #F7E7B6);
  margin: 0 0 1rem;
  font-weight: 700;
}

.cp-quote {
  margin: 1.75rem 0 1.85rem;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--primary-sage);
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: rgba(247, 231, 182, 0.88);
  font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 34rem;
}

.cp-kit-list {
  list-style: none;
  padding: 0;
  margin: 1.7rem 0 0;
}

.cp-kit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 0.98rem;
}

.cp-kit-list li i {
  color: var(--primary-sage);
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.cp-finance {
  margin-top: 2.15rem;
  padding: 1.7rem 0 0;
  border-top: 1px solid rgba(149, 173, 99, 0.25);
}

.cp-finance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-family: 'Outfit', sans-serif;
}

.cp-finance-row span:first-child {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cp-finance-row strong {
  color: var(--text-light);
  font-size: 1.15rem;
  font-weight: 600;
}

.cp-finance-row strong.text-sage {
  color: var(--primary-sage);
}

.cp-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 1.2rem 0 0.65rem;
}

.cp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-sage), rgba(149, 173, 99, 0.55));
  box-shadow: 0 0 14px rgba(149, 173, 99, 0.28);
}

.cp-finance-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.65rem;
}

/* ── Timeline ────────────────────────────────────────────── */
.cp-how {
  padding: clamp(3.75rem, 8vw, 6rem) 0;
  background:
    radial-gradient(ellipse 40% 50% at 100% 30%, rgba(149, 173, 99, 0.04), transparent 55%),
    #010804;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.cp-how-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.cp-timeline {
  max-width: 780px;
  margin: 0 auto;
  border-left: 1px solid rgba(149, 173, 99, 0.38);
  padding-left: clamp(1.6rem, 4vw, 2.75rem);
}

.cp-timeline-item {
  position: relative;
  margin-bottom: 2.75rem;
  padding-bottom: 0.15rem;
}

.cp-timeline-item:last-child {
  margin-bottom: 0;
}

.cp-timeline-dot {
  position: absolute;
  left: calc(-1 * clamp(1.6rem, 4vw, 2.75rem) - 5px);
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-sage);
  border: 2px solid #010804;
  box-shadow: 0 0 0 3px rgba(149, 173, 99, 0.22);
}

.cp-timeline-item h3 {
  color: var(--text-light);
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cp-timeline-item p {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.68;
  font-size: 1.02rem;
}

.cp-timeline-meta {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-sage);
  margin-bottom: 0.4rem;
}

/* ── Gallery — brightness/caption only, NO zoom ──────────── */
.cp-gallery {
  padding: clamp(3.75rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, #060806 0%, #030805 100%);
}

.cp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.cp-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.055);
  min-height: 190px;
  transition: border-color 0.35s ease;
}

.cp-gallery-item:hover {
  border-color: rgba(149, 173, 99, 0.4);
}

.cp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) brightness(0.94);
  transition: filter 0.4s ease;
}

.cp-gallery-item:hover img {
  filter: saturate(1.04) brightness(1.02);
}

.cp-gallery-item:nth-child(1) { grid-column: span 7; min-height: 320px; }
.cp-gallery-item:nth-child(2) { grid-column: span 5; min-height: 320px; }
.cp-gallery-item:nth-child(3) { grid-column: span 4; }
.cp-gallery-item:nth-child(4) { grid-column: span 4; }
.cp-gallery-item:nth-child(5) { grid-column: span 4; }

.cp-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.15rem 1.15rem;
  background: linear-gradient(transparent, rgba(3, 8, 5, 0.94));
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.86);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.01em;
  opacity: 0.88;
  transition: opacity 0.35s ease;
}

.cp-gallery-item:hover .cp-gallery-caption {
  opacity: 1;
}

/* ── Sibling nav ─────────────────────────────────────────── */
.cp-siblings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  max-width: 1100px;
  margin: 0 auto;
}

.cp-sibling {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.35rem 1.45rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cp-sibling:hover {
  border-color: rgba(149, 173, 99, 0.4);
  background: rgba(149, 173, 99, 0.055);
}

.cp-sibling--next {
  text-align: right;
  align-items: flex-end;
}

.cp-sibling-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.cp-sibling-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.cp-sibling:hover .cp-sibling-title {
  color: var(--primary-sage);
}

/* ── CTA panel ───────────────────────────────────────────── */
.cp-cta {
  margin: 0 auto;
  padding: clamp(2.35rem, 5vw, 3.5rem) clamp(1.35rem, 4vw, 2.75rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(144, 169, 85, 0.32);
  box-shadow:
    0 1px 0 rgba(236, 243, 158, 0.06) inset,
    0 18px 48px rgba(0, 0, 0, 0.28);
  background: #0a140a;
}

.cp-cta h2 {
  color: #ecf39e;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.cp-cta p {
  color: rgba(238, 240, 231, 0.78);
  max-width: 540px;
  margin: 0 auto 1.85rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.cp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.cp-cta-wrap {
  background: #030805;
  padding: 0 0 clamp(3.5rem, 7vw, 5rem);
}

.cp-detail-hero .hero-content {
  max-width: 760px;
}

.cp-detail-hero .stagger-text {
  letter-spacing: -0.03em;
}

.cp-detail-hero .hero-cta-row {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   HUB — campaigns.html (scalable project archive)
   ═══════════════════════════════════════════════════════════ */

.cp-hub-hero {
  min-height: 88dvh;
}

.cp-hub-hero .hero-content {
  max-width: 740px;
}

.cp-hub-hero .stagger-text {
  letter-spacing: -0.035em;
}

.cp-hub-hero .hero-cta-row {
  margin-top: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cp-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3vw, 2rem);
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.25s ease;
}

.cp-scroll-cue:hover {
  color: var(--primary-sage);
}

.cp-scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--primary-sage), transparent);
  animation: cpScrollPulse 2.2s ease-in-out infinite;
}

@keyframes cpScrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.85); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Featured spotlight — full-bleed editorial archive highlight */
.cp-spotlight {
  position: relative;
  padding: 0;
  background: #030805;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cp-spotlight-stage {
  position: relative;
  min-height: clamp(34rem, 78dvh, 46rem);
  display: grid;
  align-items: end;
  isolation: isolate;
}

.cp-spotlight-media {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  overflow: hidden;
}

.cp-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  filter: brightness(0.72) saturate(0.9) contrast(1.04);
  transition: filter 0.55s ease;
}

.cp-spotlight:hover .cp-spotlight-media img {
  filter: brightness(0.82) saturate(0.96) contrast(1.04);
}

.cp-spotlight-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(3, 8, 5, 0.94) 0%,
      rgba(3, 8, 5, 0.78) 34%,
      rgba(3, 8, 5, 0.28) 62%,
      rgba(3, 8, 5, 0.12) 100%),
    linear-gradient(180deg,
      rgba(3, 8, 5, 0.35) 0%,
      rgba(3, 8, 5, 0.15) 36%,
      rgba(3, 8, 5, 0.82) 78%,
      rgba(3, 8, 5, 0.96) 100%),
    radial-gradient(ellipse 50% 55% at 18% 70%, rgba(149, 173, 99, 0.1), transparent 70%);
}

.cp-spotlight-watermark {
  position: absolute;
  right: clamp(0.5rem, 4vw, 3rem);
  bottom: clamp(-0.4rem, 1vw, 0.5rem);
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.06em;
  color: rgba(238, 240, 231, 0.045);
  pointer-events: none;
  user-select: none;
  transition: color 0.55s ease;
}

.cp-spotlight:hover .cp-spotlight-watermark {
  color: rgba(149, 173, 99, 0.08);
}

.cp-spotlight-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  justify-self: stretch;
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(2.75rem, 7vw, 4.75rem);
}

.cp-spotlight-panel h2,
.cp-spotlight-status,
.cp-spotlight-blurb,
.cp-spotlight-meta,
.cp-spotlight-actions {
  max-width: 36rem;
}

.cp-spotlight-panel h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  color: var(--text-light);
  line-height: 0.98;
  margin: 0 0 0.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.cp-spotlight-status {
  margin: 0 0 1.05rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(238, 240, 231, 0.52);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.cp-spotlight-blurb {
  color: rgba(238, 240, 231, 0.72);
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  line-height: 1.68;
  max-width: 34rem;
  margin: 0 0 1.65rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.cp-spotlight-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.15rem 1.35rem;
  margin: 0 0 1.85rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-spotlight-meta > div {
  flex: 1 1 0;
  min-width: 0;
}

.cp-spotlight-meta dt {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 0.5rem;
}

.cp-spotlight-meta dd {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--primary-sage);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cp-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Staggered panel enter once section reveals */
.cp-spotlight-panel > * {
  opacity: 0;
  transform: translateY(18px);
}

.cp-spotlight[data-cp-revealed="1"] .cp-spotlight-panel > * {
  animation: cpFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cp-spotlight[data-cp-revealed="1"] .cp-spotlight-panel h2 { animation-delay: 0.05s; }
.cp-spotlight[data-cp-revealed="1"] .cp-spotlight-status { animation-delay: 0.1s; }
.cp-spotlight[data-cp-revealed="1"] .cp-spotlight-blurb { animation-delay: 0.16s; }
.cp-spotlight[data-cp-revealed="1"] .cp-spotlight-meta { animation-delay: 0.24s; }
.cp-spotlight[data-cp-revealed="1"] .cp-spotlight-actions { animation-delay: 0.32s; }

/* Archive + taxonomy filters */
.cp-archive {
  padding: clamp(3.75rem, 8vw, 6rem) 0;
  background: linear-gradient(180deg, #010804 0%, #030805 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.cp-archive-header {
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.cp-archive-header .section-title {
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
}

.cp-archive-header .cp-body {
  margin-top: 0;
}

.cp-archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 100%;
}

.cp-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cp-filter:hover {
  color: var(--primary-ivory);
  border-color: rgba(149, 173, 99, 0.35);
}

.cp-filter.is-active,
.cp-filter[aria-pressed="true"] {
  color: #030805;
  background: var(--primary-sage);
  border-color: var(--primary-sage);
}

.cp-archive-count {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  white-space: nowrap;
}

.cp-archive-count strong {
  color: var(--primary-sage);
  font-weight: 600;
}

/* Project rail — scales to 20+ rows */
.cp-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cp-rail-item {
  display: grid;
  grid-template-columns: 3rem minmax(140px, 220px) minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1.05rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  transition: background 0.3s ease;
}

.cp-rail-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.cp-rail-item.is-hidden {
  display: none;
}

.cp-rail:hover .cp-rail-item:not(.is-hidden) {
  opacity: 0.45;
}

.cp-rail:hover .cp-rail-item:not(.is-hidden):hover {
  opacity: 1;
  background: rgba(149, 173, 99, 0.05);
}

.cp-rail-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(149, 173, 99, 0.65);
  text-align: center;
}

.cp-rail-media {
  position: relative;
  height: 118px;
  overflow: hidden;
  border-radius: var(--radius-md, 8px);
  border: none;
  outline: none;
  box-shadow: none;
}

.cp-rail-item:hover .cp-rail-media,
.cp-rail-item:hover .cp-rail-media img {
  border: none;
  outline: none;
  box-shadow: none;
}

.cp-rail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.94);
  transition: filter 0.4s ease;
  border: none;
  outline: none;
  box-shadow: none;
}

.cp-rail-item:hover .cp-rail-media img {
  filter: saturate(1.04) brightness(1.03);
}

.cp-rail-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-light);
  margin: 0 0 0.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
  text-decoration: none;
}

.cp-rail-item:hover .cp-rail-body h3,
.cp-rail-item:focus-visible .cp-rail-body h3 {
  color: var(--primary-sage);
  text-decoration: none;
}

.cp-rail-item:hover,
.cp-rail-item:focus-visible {
  text-decoration: none;
}

.cp-rail-status {
  margin: 0 0 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(238, 240, 231, 0.48);
  line-height: 1.3;
}

.cp-rail-body .cp-area-tag {
  margin-bottom: 0.5rem;
}

.cp-rail-body > p:not(.cp-rail-status) {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
  max-width: 40rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cp-rail-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--primary-sage);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-right: 0.85rem;
}

.cp-rail-meta i {
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  font-size: 0.75rem;
  opacity: 0.7;
}

.cp-rail-item:hover .cp-rail-meta i {
  transform: translateX(5px);
  opacity: 1;
}

/* Empty filter state */
.cp-empty {
  display: none;
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  border: 1px dashed rgba(149, 173, 99, 0.28);
  border-radius: var(--radius-md, 8px);
  background: rgba(149, 173, 99, 0.03);
  margin-top: 0.5rem;
}

.cp-empty.is-visible {
  display: block;
}

.cp-empty h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: var(--text-light);
  margin: 0 0 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cp-empty p {
  color: rgba(255, 255, 255, 0.48);
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  line-height: 1.6;
  font-size: 0.98rem;
}

.cp-hub-cta-wrap {
  padding: 0 0 clamp(4rem, 8vw, 5.5rem);
  background: #030805;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .cp-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -2.25rem;
  }

  .cp-stat:nth-child(2) {
    border-right: 0;
  }

  .cp-stat:nth-child(1),
  .cp-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .cp-story-grid {
    grid-template-columns: 1fr;
  }

  .cp-story-media {
    position: relative;
    top: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  /* Keep desktop overlay composition — no image strip + empty black band */
  .cp-spotlight-stage {
    min-height: 0;
    display: grid;
    align-items: end;
  }

  .cp-spotlight-media {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .cp-spotlight-media img {
    object-position: center 28%;
    filter: brightness(0.62) saturate(0.92) contrast(1.05);
  }

  .cp-spotlight-veil {
    display: block;
    background:
      linear-gradient(180deg,
        rgba(3, 8, 5, 0.42) 0%,
        rgba(3, 8, 5, 0.18) 28%,
        rgba(3, 8, 5, 0.72) 58%,
        rgba(3, 8, 5, 0.94) 82%,
        rgba(3, 8, 5, 0.98) 100%),
      linear-gradient(90deg,
        rgba(3, 8, 5, 0.55) 0%,
        rgba(3, 8, 5, 0.2) 55%,
        rgba(3, 8, 5, 0.08) 100%);
  }

  .cp-spotlight-watermark {
    display: none;
  }

  .cp-spotlight-panel {
    background: transparent;
    margin-top: 0;
    padding-top: clamp(7.5rem, 42vw, 12rem);
    padding-bottom: max(2.25rem, env(safe-area-inset-bottom, 0px) + 1.5rem);
    padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
    z-index: 2;
    overflow-wrap: anywhere;
  }

  .cp-spotlight-panel h2,
  .cp-spotlight-status,
  .cp-spotlight-blurb,
  .cp-spotlight-meta,
  .cp-spotlight-actions {
    max-width: none;
  }

  .cp-spotlight-panel h2 {
    font-size: clamp(1.85rem, 7.2vw, 2.65rem);
    line-height: 1.05;
    margin-bottom: 0.35rem;
  }

  .cp-spotlight-status {
    font-size: clamp(0.78rem, 2.4vw, 0.9rem);
    margin-bottom: 0.85rem;
  }

  .cp-spotlight-blurb {
    font-size: clamp(0.95rem, 2.8vw, 1.08rem);
    line-height: 1.62;
    margin-bottom: 1.25rem;
    max-width: 40rem;
  }

  .cp-spotlight-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1rem 1rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 0;
  }

  .cp-spotlight-meta > div {
    flex: 1 1 0;
    min-width: 0;
  }

  .cp-spotlight-meta div:last-child {
    grid-column: auto;
  }

  .cp-spotlight-meta dt {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
  }

  .cp-spotlight-meta dd {
    font-size: clamp(1.2rem, 3.6vw, 1.45rem);
    line-height: 1.2;
  }

  /* Same as PC: CTAs sit side-by-side on phones / square viewports */
  .cp-spotlight-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    max-width: none;
  }

  .cp-spotlight-actions .btn-sage,
  .cp-spotlight-actions .btn-glass {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 0.75rem 0.85rem;
    white-space: normal;
    text-align: center;
    font-size: clamp(0.68rem, 2.4vw, 0.82rem);
  }

  .cp-spotlight:hover .cp-spotlight-media img {
    filter: brightness(0.68) saturate(0.95) contrast(1.05);
  }

  .cp-spotlight {
    overflow-x: clip;
  }

  .cp-rail-item {
    grid-template-columns: 2.25rem 110px minmax(0, 1fr);
    gap: 0.9rem 1rem;
  }

  .cp-rail-meta {
    grid-column: 3;
    padding: 0;
    justify-self: start;
  }

  .cp-rail-num {
    align-self: start;
    padding-top: 0.35rem;
  }

  .cp-gallery-item:nth-child(n) {
    grid-column: span 6;
    min-height: 210px;
  }

  .cp-scroll-cue {
    display: none;
  }

  .cp-hub-hero {
    min-height: 78dvh;
  }
}

/* Tablet spotlight: side-by-side CTAs when room allows */
@media (min-width: 561px) and (max-width: 900px) {
  .cp-spotlight-actions {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 36rem;
  }

  .cp-spotlight-actions .btn-sage,
  .cp-spotlight-actions .btn-glass {
    width: auto;
    flex: 1 1 12rem;
    min-width: min(100%, 11.5rem);
  }
}

@media (max-width: 560px) {
  .cp-stats {
    grid-template-columns: 1fr 1fr;
  }

  .cp-stat {
    padding: 1.15rem 0.7rem;
  }

  .cp-cta {
    border-radius: 12px;
    padding: 2rem 1.15rem;
  }

  .cp-rail-item {
    grid-template-columns: 2rem 1fr;
    gap: 0.65rem 0.85rem;
    padding: 1.1rem 0.35rem;
  }

  .cp-rail-media {
    grid-column: 1 / -1;
    height: 160px;
  }

  .cp-rail-body {
    grid-column: 2;
  }

  .cp-rail-meta {
    grid-column: 2;
  }

  .cp-rail:hover .cp-rail-item {
    opacity: 1;
  }

  .cp-siblings {
    grid-template-columns: 1fr;
  }

  .cp-sibling--next {
    text-align: left;
    align-items: flex-start;
  }

  .cp-gallery-item:nth-child(n) {
    grid-column: span 12;
    min-height: 200px;
  }

  .cp-spotlight-panel {
    padding-top: clamp(6.5rem, 48vw, 10rem);
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px) + 1.25rem);
  }

  .cp-spotlight-panel h2 {
    font-size: clamp(1.7rem, 8.4vw, 2.15rem);
  }

  .cp-spotlight-meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    gap: 0.75rem 0.7rem;
    padding: 1.25rem 0;
    margin-bottom: 1.4rem;
  }

  .cp-spotlight-meta > div {
    display: block;
    flex: 1 1 0;
    min-width: 0;
  }

  .cp-spotlight-meta div:last-child {
    grid-column: auto !important;
  }

  .cp-spotlight-meta dt {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    white-space: normal;
  }

  .cp-spotlight-meta dd {
    font-size: clamp(1.05rem, 4.2vw, 1.28rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    word-break: break-word;
  }

  .cp-spotlight-actions {
    max-width: none;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .cp-quote {
    padding-left: 1rem;
  }

  .cp-filters {
    gap: 0.35rem;
  }

  .cp-filter {
    padding: 0.48rem 0.7rem;
    font-size: 0.66rem;
  }

  .cp-archive-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-enter,
  .cp-scroll-cue::after,
  .cp-spotlight[data-cp-revealed="1"] .cp-spotlight-panel > * {
    animation: none !important;
  }

  .cp-enter,
  .cp-spotlight-panel > * {
    opacity: 1;
    transform: none;
  }

  .cp-rail-item,
  .cp-spotlight-media img,
  .cp-spotlight-watermark,
  .cp-gallery-item img,
  .cp-story-media img,
  .cp-rail-media img {
    transition: none;
  }
}
