/* Initiative kit: the frame every initiative page shares, so a visitor always knows where they are and what to do.
   Each page sets only its colours (--k-*). Effects marked "VengeanceUI" are adapted from VengeanceUI,
   MIT licence, (c) 2025-2026 Ashutoshx7 (github.com/Ashutoshx7/VengenceUI), rewritten in plain CSS and JS. */

:root {
  --k-bg: var(--paper);
  --k-ink: var(--ink);
  --k-soft: var(--ink-soft);
  --k-accent: #3F6569;
  --k-accent-2: #B8DDE0;
  --k-panel: #F3F6EE;
  --k-rule: var(--rule);
  --k-bar: rgba(251, 248, 242, .92);
}

/* ---------- Breadcrumb chip: always says which initiative this is, and the way back ---------- */
.k-crumb { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 3px;
  font: 500 12.5px/1 'Work Sans', sans-serif; letter-spacing: .02em; text-decoration: none;
  color: inherit; border: 1px solid currentColor; opacity: .82; transition: opacity .2s, background .2s; }
.k-crumb:hover { opacity: 1; }
.k-crumb::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 2px 0 4px; }
.k-crumb b { font-weight: 600; }
.k-crumb:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Sticky section bar with a growth ring that fills as you read ---------- */
.k-subnav { position: sticky; top: 0; z-index: 30; display: block; padding: 0 !important; border-bottom: 1px solid var(--k-rule);
  background: var(--k-bar); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.k-subnav-in { max-width: 1120px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; gap: 26px; height: 54px; overflow-x: auto; scrollbar-width: none; }
.k-subnav-in::-webkit-scrollbar { display: none; }
.k-subnav a { font-size: 13px; color: var(--k-soft); text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.k-subnav a:hover, .k-subnav a.is-here { color: var(--k-ink); border-color: var(--k-accent); }
.k-subnav a:focus-visible { outline: 2px solid var(--k-ink); outline-offset: 3px; }
.k-subnav .k-subnav-cta { margin-left: auto; padding: 7px 14px; border: 0; border-radius: 3px; background: var(--k-ink); color: var(--k-bg); font-weight: 600; }
.k-subnav .k-subnav-cta:hover { color: var(--k-bg); background: var(--k-accent); }
.k-progress { width: 24px; height: 24px; flex-shrink: 0; transform: rotate(-90deg); }
.k-progress circle { fill: none; stroke: var(--k-rule); stroke-width: 3; }
.k-progress .k-progress-fill { stroke: var(--k-accent); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }

/* ---------- Section heads ---------- */
.k-sechead { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding: 76px 0 0; scroll-margin-top: 60px; }
.k-sechead h2 { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--k-accent); font-weight: 600; }
.k-sechead span { font-size: 13px; color: var(--k-soft); }

/* ---------- Buttons ---------- */
.k-btn { display: inline-block; padding: 13px 24px; border-radius: 3px; font: 600 14.5px 'Work Sans', sans-serif; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.k-btn-solid { background: var(--k-ink); color: var(--k-bg); }
.k-btn-solid:hover { background: var(--k-accent); }
.k-btn-ghost { border-color: currentColor; color: inherit; background: none; }
.k-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Magnetic buttons: a small lean toward the pointer, no lift ---------- */
.k-mag { transition: transform .45s cubic-bezier(.2, .9, .3, 1.15), background .2s, color .2s, border-color .2s; }
.k-mag.k-mag-on { transition-duration: .12s, .2s, .2s, .2s; }

/* ---------- Line Hover Link (VengeanceUI) ---------- */
.k-link { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--k-accent), var(--k-accent));
  background-size: 100% 1px, 0 1.5px; background-position: 0 100%, 100% 100%; background-repeat: no-repeat; padding-bottom: 2px;
  transition: background-size .45s cubic-bezier(.6, 0, .2, 1); }
.k-link:hover, .k-link:focus-visible { background-size: 0 1px, 100% 1.5px; background-position: 100% 100%, 0 100%; }
.k-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Stats Counter (VengeanceUI) ---------- */
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Stagger Text (VengeanceUI) ---------- */
.k-stagger .k-w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(4px);
  transition: opacity .7s cubic-bezier(.2, .7, .1, 1), transform .7s cubic-bezier(.2, .7, .1, 1), filter .7s; transition-delay: calc(var(--wi) * 55ms); }
.k-stagger.is-in .k-w { opacity: 1; transform: none; filter: none; }

/* ---------- Flip Text (VengeanceUI), one turn per change ---------- */
.k-flip { display: inline-block; perspective: 1000px; }
.k-fc { display: inline-block; position: relative; transform-style: preserve-3d; color: inherit; -webkit-text-fill-color: transparent;
  animation: k-flip var(--fd, .9s) var(--fdel, 0s) 1 ease both; }
.k-fc::before, .k-fc::after { content: attr(data-c); position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  -webkit-text-fill-color: currentColor; backface-visibility: hidden; animation: k-fade var(--fd, .9s) var(--fdel, 0s) 1 ease both; }
.k-fc::after { content: attr(data-o); transform: translate(-50%, -50%) translateZ(.6em); }
.k-fc::before { transform: translate(-50%, -50%) rotateX(-90deg) translateZ(.6em); opacity: 0; --o: 1; }
@keyframes k-flip { 0% { transform: rotateX(0); } 60%, 100% { transform: rotateX(90deg); } }
@keyframes k-fade { 0% { opacity: 1; } 70%, 100% { opacity: var(--o, 0); } }

/* ---------- Highlight Grid (VengeanceUI) ---------- */
.k-hgrid { position: relative; }
.k-hgrid-hl { position: absolute; left: 0; top: 0; z-index: 0; opacity: 0; pointer-events: none; border-radius: 6px;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 60%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), width .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1), background-color .3s, opacity .3s; }
.k-hgrid [data-hcell] { position: relative; z-index: 1; transition: color .3s; }
.k-hgrid [data-hcell].is-hl { color: var(--k-hl-ink, inherit); }

/* ---------- Glow Border Card (VengeanceUI) ---------- */
@property --k-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes k-angle { to { --k-angle: 1turn; } }
.k-glow { position: relative; isolation: isolate; border-radius: 6px; }
.k-glow::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--k-angle), var(--g1), var(--g2), var(--g3), var(--g4), var(--g1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: k-angle var(--gdur, 5s) linear infinite; }
.k-glow::after { content: ""; position: absolute; inset: -10px; z-index: -2; border-radius: inherit; filter: blur(12px); opacity: .6; padding: 10px;
  background: conic-gradient(from var(--k-angle), var(--g1), var(--g2), var(--g3), var(--g4), var(--g1)); animation: k-angle var(--gdur, 5s) linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; } /* a ring of light, so the card stays readable */

/* ---------- Image Reveal List (VengeanceUI) ---------- */
.k-reveal-list { list-style: none; position: relative; }
.k-reveal-list li { position: relative; }
.k-reveal-list .k-rl-row { display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 18px 14px; border: 0; border-bottom: 1px solid var(--k-rule); background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 3px; transition: background .2s, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.k-reveal-list .k-rl-row:hover, .k-reveal-list .k-rl-row:focus-visible, .k-reveal-list .k-rl-row.is-on { background: var(--k-panel); transform: translateX(4px); }
.k-reveal-list .k-rl-row:focus-visible { outline: 2px solid var(--k-ink); outline-offset: 2px; }
.k-rl-num { font-size: 12px; color: var(--k-soft); min-width: 26px; font-variant-numeric: tabular-nums; }
.k-rl-img { position: absolute; left: -104px; top: 50%; width: 84px; height: 112px; object-fit: cover; border-radius: 6px; opacity: 0; transform: translateY(-50%) scale(.9);
  pointer-events: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); transition: opacity .3s, transform .3s cubic-bezier(.34, 1.56, .64, 1), left .3s; z-index: 5; }
.k-reveal-list li:hover .k-rl-img, .k-reveal-list li.is-on .k-rl-img { opacity: 1; transform: translateY(-50%) scale(1); left: -96px; }

/* ---------- FAQ Accordion (VengeanceUI): smooth height on native <details> ---------- */
details.k-acc > :not(summary) { overflow: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .k-subnav-in { padding: 0 20px; gap: 20px; }
  .k-subnav .k-subnav-cta { display: none; }
  .k-rl-img { display: none; }
}

/* ---------- Reduced motion: everything settles in place ---------- */
@media (prefers-reduced-motion: reduce) {
  .k-stagger .k-w { opacity: 1; transform: none; filter: none; transition: none; }
  .k-fc, .k-fc::before, .k-fc::after { animation: none; }
  .k-fc { -webkit-text-fill-color: currentColor; }
  .k-fc::before, .k-fc::after { content: none; }
  .k-glow::before, .k-glow::after { animation: none; }
  .k-hgrid-hl, .k-link, .k-reveal-list .k-rl-row, .k-rl-img { transition: none; }
}
