/*
 * Safe Space — draft design tokens.
 * Colors are lifted from the org's actual collateral, not invented:
 *  - brand magenta/indigo/sky   -> Design assets & logos/fb_cover.jpg wave
 *  - --kk-*                    -> Kvīru koris pantone.pdf (1645C, 150C, 555C, 2756C, 297C, 210C)
 *  - --prop-*                  -> PROPAGANDA banner rainbow beam
 *  - --sav-*, --pri-*, --hb-*  -> no source asset existed; picked to read as distinct branches
 */

:root {
  --ink: #0b0b0c;
  --ink-soft: #34343a;
  --paper: #ffffff;
  --paper-soft: #f6f5f2;
  --paper-dim: #efeee9;
  --line: #e3e1da;
  --muted: #6d6d72;

  --brand-magenta: #e11d7c;
  --brand-indigo: #2b2166;
  --brand-sky: #4fa8e0;

  /* exact hex from RKK book.pdf (choir brand guidelines) — the canonical
     shared palette for the whole site, not just the choir */
  --kk-orange: #f6734d;
  --kk-amber: #ffb360;
  --kk-green: #337650;
  --kk-navy: #2c2574;
  --kk-sky: #7cc0ea;
  --kk-pink: #f3a0ca;

  --font-unbounded: "Unbounded", var(--font-display), sans-serif;

  --prop-red: #e0432c;
  --prop-orange: #f2924a;
  --prop-yellow: #f0c94a;
  --prop-green: #6fae4c;
  --prop-blue: #3e7cb1;
  --prop-purple: #7a57a6;

  --sav-violet: #8a63d2;
  --sav-violet-soft: #ede7fb;

  --pri-forest: #2f5c46;
  --pri-gold: #c99a45;

  --hb-slate: #3e4c6b;

  --emp-coral: #e8674a;

  --shop-rust: #c1512f;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;

  --measure: 1180px;
  --measure-prose: 62ch;

  --font-display: "Space Grotesk", "Instrument Sans", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --text-display: clamp(40px, 6vw, 84px);
  --text-h2: clamp(30px, 4vw, 48px);
  --text-h3: clamp(22px, 2.4vw, 28px);
  --text-lede: clamp(18px, 1.6vw, 22px);
  --text-body: 17px;

  --space-section: clamp(56px, 9vw, 132px);
  --space-block: 40px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* One display font for every heading level site-wide (h1-h4) — weight,
   size and color are what create hierarchy, not a font-family switch.
   Default heading color is navy, for the common case of a white/light
   section background; sections with a dark or colorful background
   (hero-choir, hero-org, af-section, cta-band) override it to white
   below, so no individual heading ever needs its own inline color. */
h1,
h2,
h3,
h4 {
  font-family: var(--font-unbounded);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--kk-navy);
}

/* Clear hierarchy so a section-level h2 always reads bigger and
   heavier than a subsection h3, regardless of page — pages with their
   own heading classes (.manifesto-h2 etc.) override this on purpose. */
h2 {
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 44px);
}

h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  color: var(--muted);
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- draft banner ---------- */
.draft-banner {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

.draft-banner strong {
  color: #ffd76a;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14.5px;
  font-weight: 500;
}

.main-nav a {
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
  border-color: var(--brand-magenta);
}

.main-nav .nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 100px;
  border-bottom: none;
}

.main-nav .nav-cta:hover {
  background: var(--brand-magenta);
  border-color: transparent;
}

.nav-scroll {
  display: flex;
  overflow-x: auto;
  gap: clamp(14px, 2vw, 28px);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

@media (max-width: 900px) {
  .main-nav a:not(.nav-cta) {
    font-size: 13.5px;
  }
  .brand span.full {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}

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

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--brand-magenta);
  border-color: var(--brand-magenta);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-invert {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-invert:hover {
  background: var(--brand-magenta);
  color: #fff;
  border-color: var(--brand-magenta);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d8d7db;
}

.site-footer .wrap {
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .mark {
  color: #fff;
}

.footer-brand p {
  margin-top: 14px;
  color: #a6a5ac;
  max-width: 34ch;
  font-size: 14.5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: #8f8e96;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- utility ---------- */
.section {
  padding: var(--space-section) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-block);
}

.section-head .eyebrow {
  margin-bottom: 14px;
  display: block;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 100px;
}

.grain {
  background-image: radial-gradient(rgba(0, 0, 0, 0.35) 1px, transparent 1.4px);
  background-size: 3px 3px;
  opacity: 0.5;
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ================= LANDING: hero ================= */
.hero-dark {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(64px, 11vw, 140px) 0 clamp(72px, 10vw, 120px);
}

.hero-dark::before,
.hero-dark::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-dark::before {
  top: -22%;
  left: -18%;
  background: radial-gradient(circle at 30% 30%, var(--brand-magenta), transparent 70%);
}

.hero-dark::after {
  bottom: -26%;
  right: -16%;
  background: radial-gradient(circle at 70% 70%, var(--brand-sky), var(--brand-indigo) 60%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-mark {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  margin: 0 auto 28px;
  color: #fff;
}

.hero-inner .eyebrow {
  color: #c9c8ce;
}

.hero-inner h1 {
  font-size: var(--text-display);
  margin: 18px 0 24px;
}

.hero-inner h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--kk-pink), var(--brand-sky) 45%, var(--kk-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 auto 24px;
}

.hero-lede {
  font-size: var(--text-lede);
  color: #d6d5db;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: clamp(56px, 8vw, 88px);
  flex-wrap: wrap;
  text-align: center;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

.hero-stats .stat span {
  font-size: 13px;
  color: #a6a5ac;
  letter-spacing: 0.02em;
}

/* ================= LANDING: tree of projects ================= */
.tree-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-block);
}

.tree-intro .eyebrow {
  justify-content: center;
  display: flex;
}

.tree-intro p {
  color: var(--muted);
  font-size: var(--text-lede);
  margin-top: 16px;
}

.tree-diagram {
  position: relative;
}

.tree-root {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.tree-root-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 100px;
  padding: 14px 28px 14px 16px;
}

.tree-root-card .mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.tree-root-card b {
  font-family: var(--font-display);
  font-size: 16px;
  display: block;
}

.tree-root-card span {
  font-size: 12.5px;
  color: #b7b6bd;
}

.tree-trunk-stem {
  width: 2px;
  height: 40px;
  margin: 0 auto;
  background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 13px);
}

.tree-branches {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.tree-branches::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 24px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 13px);
}

.branch {
  position: relative;
  width: 45%;
}

.branch--left {
  margin-right: auto;
}

.branch--right {
  margin-left: auto;
}

.branch::before {
  content: "";
  position: absolute;
  top: 38px;
  width: 5%;
  height: 2px;
  background: var(--line);
}

.branch--left::before {
  right: -5%;
}

.branch--right::before {
  left: -5%;
}

.branch::after {
  content: "";
  position: absolute;
  top: 33px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, var(--ink));
  box-shadow: 0 0 0 4px var(--paper);
}

.branch--left::after {
  right: -5.9%;
}

.branch--right::after {
  left: -5.9%;
}

.branch-year {
  position: absolute;
  top: 30px;
  width: 88px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.branch--left .branch-year {
  right: calc(-5% - 98px);
  text-align: right;
}

.branch--right .branch-year {
  left: calc(-5% - 98px);
  text-align: left;
}

.branch-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.branch-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--ink));
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.25);
}

.branch-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.branch-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, var(--ink));
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.branch-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent, var(--muted));
}

.branch-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.branch-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.branch-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.branch-card:hover .branch-link {
  color: var(--accent, var(--ink));
}

@media (max-width: 760px) {
  .tree-branches::before {
    left: 16px;
  }
  .branch,
  .branch--left,
  .branch--right {
    width: 100%;
    margin: 0 0 0 40px;
  }
  .branch::before,
  .branch--left::before,
  .branch--right::before {
    left: -24px;
    right: auto;
    width: 24px;
  }
  .branch::after,
  .branch--left::after,
  .branch--right::after {
    left: -20.5px;
    right: auto;
  }
  .branch-year,
  .branch--left .branch-year,
  .branch--right .branch-year {
    left: 40px;
    right: auto;
    top: -20px;
    width: auto;
    text-align: left;
  }
}

/* ================= LANDING: about / stats / support band ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-grid p + p {
  margin-top: 16px;
}

.about-grid p {
  color: var(--ink-soft);
  font-size: var(--text-lede);
  line-height: 1.6;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.team-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.team-card b {
  font-family: var(--font-display);
  font-weight: 600;
}

.team-card span {
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.support-band {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.support-cell {
  background: var(--paper);
  padding: 36px 30px;
}

.support-cell h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.support-cell p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
  line-height: 1.55;
}

@media (max-width: 800px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}

.branch-icon--kk {
  background: linear-gradient(135deg, var(--kk-pink), var(--kk-orange) 45%, var(--kk-sky));
}

.branch-icon--prop {
  background: conic-gradient(
    from 180deg,
    var(--prop-red),
    var(--prop-orange),
    var(--prop-yellow),
    var(--prop-green),
    var(--prop-blue),
    var(--prop-purple),
    var(--prop-red)
  );
}

.branch-card--soon {
  opacity: 0.92;
}

.branch-card--soon .branch-link {
  color: var(--muted);
}

.branch-card--soon:hover {
  cursor: default;
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.branch-card--soon:hover .branch-link {
  color: var(--muted);
}

/* ================= CHOIR PAGE ================= */
.crumb {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.crumb:hover {
  color: #fff;
}

.hero-choir {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(
    128deg,
    var(--kk-pink) 0%,
    var(--kk-orange) 32%,
    var(--kk-navy) 68%,
    var(--kk-sky) 100%
  );
  padding: clamp(56px, 9vw, 96px) 0;
}

.hero-choir .grain {
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

.hero-choir-inner {
  position: relative;
  z-index: 1;
}

.hero-choir h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 20px;
  color: #fff;
}

.hero-choir .hero-lede {
  max-width: none;
  margin: 0 0 40px;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
}

.hero-choir .hero-actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.quick-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  margin-top: 8px;
}

.quick-nav a {
  display: block;
  background: rgba(11, 11, 12, 0.28);
  backdrop-filter: blur(6px);
  padding: 26px 22px 28px;
  transition: background 0.15s var(--ease);
}

.quick-nav a:hover {
  background: rgba(11, 11, 12, 0.46);
}

.quick-nav .qn-emoji {
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
}

.quick-nav h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 8px;
}

.quick-nav p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 14px;
}

.quick-nav span.qn-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .quick-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: var(--space-block) 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-row .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--kk-navy);
}

.stat-row .stat span {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

.prose p + p {
  margin-top: 18px;
}

.prose p {
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: 1.7;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: var(--kk-pink);
  text-decoration-thickness: 2px;
}

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
}

.report-link:hover {
  background: var(--ink);
  color: #fff;
}

.press-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: var(--space-block) 0 22px;
}

.press-head h3 {
  font-size: 20px;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.press-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.press-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.25);
}

.press-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
}

.press-body {
  padding: 16px 18px 20px;
}

.press-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.press-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .press-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  max-width: 780px;
  color: var(--kk-navy);
}

.pull-quote mark,
.manifesto-list mark {
  background: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--kk-pink);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.video-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.video-frame {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--kk-navy), #000 120%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@media (max-width: 800px) {
  .video-block {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  background: var(--kk-navy);
  background-image: linear-gradient(120deg, var(--kk-navy), #101a45 60%, #06102e);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 18px;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin: 0 auto 28px;
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.donate-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.donate-toggle a {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

.donate-toggle a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.bank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.bank-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.bank-list span:first-child {
  color: var(--muted);
}

.bank-list span:last-child {
  font-weight: 600;
  text-align: right;
}

.card-donate-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--paper-soft);
}

@media (max-width: 800px) {
  .donate-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}



/* ================= LANDING v4: liquid-glass tile grid ================= */
body.rainbow-page {
  overflow-x: hidden;
}

.rainbow-field {
  --content-w: 960px;
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px) 20px;
  background: linear-gradient(128deg, var(--kk-navy) 0%, var(--kk-navy) 38%, var(--kk-orange) 64%, var(--kk-orange) 100%);
  overflow: hidden;
}

.wave-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  filter: blur(55px);
}

.wave {
  position: absolute;
  width: 130vw;
  border-radius: 50%;
  mix-blend-mode: soft-light;
  opacity: 0.75;
  animation: wave-drift ease-in-out infinite;
  will-change: transform;
}

/* positioned in a top-left → bottom-right cascade and rotated to align
   with the 128deg base gradient's iso-color bands, so they reinforce the
   diagonal sweep instead of cutting across it as horizontal stripes */
.wave-1 { top: -30%; left: -45%; height: 40vh; background: var(--kk-pink);   animation-duration: 30s; opacity: 0.5; }
.wave-2 { top: -8%;  left: -12%; height: 36vh; background: var(--kk-orange); animation-duration: 36s; animation-delay: -8s; }
.wave-3 { top: 18%;  left: 18%;  height: 42vh; background: var(--kk-navy);   animation-duration: 33s; animation-delay: -14s; }
.wave-4 { top: 44%;  left: 46%;  height: 38vh; background: var(--kk-orange); animation-duration: 38s; animation-delay: -4s; }
.wave-5 { top: 68%;  left: 72%;  height: 38vh; background: var(--kk-sky);    animation-duration: 31s; animation-delay: -20s; opacity: 0.45; }

@keyframes wave-drift {
  0%, 100% { transform: rotate(38deg) translate(0, 0) scaleX(1); }
  50% { transform: rotate(38deg) translate(9%, -2%) scaleX(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
}

.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto clamp(18px, 2.4vw, 28px);
  text-align: left;
}

.masthead .intro-logo {
  flex-shrink: 0;
  width: clamp(160px, 17.5vw, 220px);
  color: #fff;
  margin-bottom: 2px;
}

.masthead .intro-text {
  font-family: var(--font-unbounded);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}

.masthead .intro-cta {
  font-weight: 700;
}

/* ---- horizontal tile carousel ---- */
.carousel-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-w);
}

.carousel {
  display: flex;
  gap: clamp(10px, 1.4vw, 16px);
  overflow-x: auto;
  /* No CSS scroll-snap or scroll-behavior here on purpose: with
     scroll-behavior:smooth, a plain `el.scrollLeft += x` on every animation
     frame each queues its own smooth-scroll animation that cancels the
     previous one before it finishes, netting to ~zero visible movement.
     Arrow-button scrolls opt into smooth explicitly via scrollBy()'s own
     `behavior` option instead, which isn't affected by this. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 10px;
  margin: -4px -2px -10px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel .tile {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 3 * clamp(10px, 1.4vw, 16px)) / 4);
}

@media (max-width: 900px) {
  .carousel .tile {
    flex-basis: calc((100% - 1.3 * clamp(10px, 1.4vw, 16px)) / 2.3);
  }
}

@media (max-width: 560px) {
  .carousel .tile {
    flex-basis: calc((100% - 0.6 * 10px) / 1.6);
  }
}


.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  /* Text inside a link, inside a horizontally-scrollable container, can make
     a real click register as a text-selection drag instead — the browser
     sees pointer movement between down/up and suppresses the click. */
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 18px 34px -18px rgba(6, 6, 20, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -12px 20px -14px rgba(255, 255, 255, 0.12);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}

.tile::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -15%;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  transform: rotate(-18deg);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.tile:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 26px 44px -18px rgba(6, 6, 20, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -12px 20px -14px rgba(255, 255, 255, 0.14);
}

.tile-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-unbounded);
  font-weight: 500;
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.3;
}

.tile--inactive {
  cursor: default;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  background: rgba(10, 10, 14, 0.6);
  color: #fff;
  font-family: var(--font-unbounded);
  font-weight: 600;
  font-size: clamp(12.5px, 1.3vw, 14px);
  opacity: 0;
  transition: opacity 0.18s var(--ease);
  border-radius: inherit;
}

.tile--inactive:hover,
.tile--inactive.is-open {
  filter: grayscale(1) brightness(0.85);
}

.tile--inactive:hover .tile-overlay,
.tile--inactive.is-open .tile-overlay {
  opacity: 1;
}

@media (max-width: 640px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile-label {
    font-size: 13px;
  }
}

/* ================= PROJECT PAGES: fixed nav + secondary "doc bar" ================= */
body.has-fixed-nav {
  padding-top: 72px;
}

.proj-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(28, 37, 116, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  transition: transform 220ms ease;
}

.proj-nav.is-hidden {
  transform: translateY(-105%);
}

.proj-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.proj-logo {
  display: flex;
  align-items: center;
  color: #fff;
}

.proj-logo svg {
  width: 128px;
  height: auto;
}

.proj-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
}

.proj-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s var(--ease);
  white-space: nowrap;
}

.proj-links a:hover,
.proj-links a.is-current {
  color: #fff;
}

.proj-links a.proj-cta {
  background: #fff;
  color: var(--kk-navy);
  padding: 9px 18px;
  border-radius: 100px;
}

.proj-links a.proj-cta:hover {
  background: var(--kk-orange);
  color: #fff;
}

@media (max-width: 760px) {
  .proj-logo svg {
    width: 104px;
  }
  .proj-links {
    gap: 12px;
    font-size: 13px;
  }
  .proj-links a.proj-cta {
    padding: 7px 14px;
  }
}

@media (max-width: 600px) {
  .proj-links a:not(.proj-cta) {
    display: none;
  }
}

/* breadcrumb-style secondary nav, one level below the fixed project nav —
   greyed out except the current page, which brightens on hover */
.doc-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.doc-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
}

.doc-crumb {
  color: var(--muted);
  opacity: 0.6;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
}

a.doc-crumb:hover {
  opacity: 1;
  color: var(--ink);
}

.doc-crumb--current {
  color: var(--ink);
  opacity: 1;
  font-weight: 700;
}

.doc-sep {
  color: var(--line);
}

/* ================= MANIFESTO-style pages ================= */
.manifesto-hero {
  padding: clamp(48px, 7vw, 88px) 0 0;
}

.manifesto-hero h1 {
  font-family: var(--font-unbounded);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--kk-navy);
  margin-top: 18px;
  text-wrap: balance;
}

.manifesto-h2 {
  font-family: var(--font-unbounded);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--kk-navy);
  margin: 48px 0 4px;
}

.manifesto-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.manifesto-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: var(--text-body);
  line-height: 1.7;
}

.manifesto-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--kk-orange);
}

.manifesto-list li strong {
  color: var(--ink);
}

/* second-level bullets — nested inside a top-level manifesto-list li,
   smaller and dimmer so the hierarchy reads at a glance */
.manifesto-list .manifesto-list {
  margin: 10px 0 0;
  gap: 10px;
}

.manifesto-list .manifesto-list li {
  padding-left: 20px;
  font-size: 0.94em;
}

.manifesto-list .manifesto-list li::before {
  width: 6px;
  height: 6px;
  top: 8px;
  background: var(--kk-sky);
}

/* ================= KVIRU-KORIS: par-kori section, videos, team, form ================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: var(--space-block);
}

.video-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border-top: 4px solid var(--kk-orange);
  background: #000;
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.35);
}

.video-embed:nth-child(6n+2) { border-top-color: var(--kk-navy); }
.video-embed:nth-child(6n+3) { border-top-color: var(--kk-pink); }
.video-embed:nth-child(6n+4) { border-top-color: var(--kk-sky); }
.video-embed:nth-child(6n+5) { border-top-color: var(--kk-amber); }
.video-embed:nth-child(6n) { border-top-color: var(--kk-green); }

.video-embed .ratio {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-embed .ratio.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.video-embed iframe,
.video-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

@media (max-width: 700px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.subsection {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.subsection h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: var(--space-block);
}

.komanda-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 16px;
}

.komanda-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.komanda-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .komanda-split {
    grid-template-columns: 1fr;
  }
  .komanda-photo {
    aspect-ratio: 16 / 10;
  }
}

.team-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-photo {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-unbounded);
  font-weight: 600;
  font-size: 24px;
  color: #fff;
}

.team-photo--liga { background: linear-gradient(135deg, var(--kk-orange), var(--kk-pink)); }
.team-photo--marta { background: linear-gradient(135deg, var(--kk-navy), var(--kk-sky)); }

.team-card-body h4 {
  font-size: 17px;
  margin-bottom: 4px;
}

.team-card-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.team-card-body h4 a,
.team-card-body p a {
  text-decoration: underline;
  text-decoration-color: var(--kk-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.jaunumi-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-top: var(--space-block);
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.jaunumi-card {
  flex: 0 0 260px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  background: var(--paper-soft);
}

.jaunumi-card b {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-unbounded);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

/* ---- application form ---- */
.af {
  max-width: 720px;
  margin-top: var(--space-block);
}

.af-field {
  margin-top: 26px;
}

.af-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

@media (max-width: 640px) {
  .af-field-grid {
    grid-template-columns: 1fr;
  }
}

.af-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.af-required {
  color: var(--kk-orange);
}

.af-help {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.af-input,
.af-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s var(--ease);
}

.af-input:focus,
.af-textarea:focus {
  outline: none;
  border-color: var(--kk-navy);
}

.af-textarea {
  min-height: 110px;
  resize: vertical;
}

.af-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.af-choice {
  position: relative;
}

.af-choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.af-choice span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.15s var(--ease);
}

.af-choice input:checked + span {
  background: var(--kk-navy);
  border-color: var(--kk-navy);
  color: #fff;
}

.af-choice input:focus-visible + span {
  outline: 2px solid var(--kk-orange);
  outline-offset: 2px;
}

.af-submit-row {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.af-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.af-status {
  font-size: 14.5px;
  font-weight: 600;
}

.af-status[data-state="ok"] { color: var(--kk-green); }
.af-status[data-state="err"] { color: #c0392b; }

.af-manifesto-note {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: var(--space-block);
}

.af-manifesto-note ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

.af-manifesto-note li + li {
  margin-top: 10px;
}

.af-manifesto-note a {
  color: var(--kk-navy);
  text-decoration: underline;
  text-decoration-color: var(--kk-orange);
  text-decoration-thickness: 2px;
}

/* ---- bank list copy buttons ---- */
.bank-list li {
  align-items: center;
}

.bank-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.copy-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s var(--ease);
  font-family: inherit;
}

.copy-btn:hover {
  border-color: var(--kk-navy);
  color: var(--kk-navy);
}

.copy-btn[data-copied="true"] {
  background: var(--kk-green);
  border-color: var(--kk-green);
  color: #fff;
}

.stripe-embed-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

/* ---------- standardized footer: real logo + socials ---------- */
.footer-brand .full-logo {
  height: 30px;
  width: auto;
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.15s var(--ease);
}

.footer-socials a:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.footer-socials svg {
  width: 17px;
  height: 17px;
}

/* ================= video carousel (swipeable, depth effect) ================= */
.video-carousel-wrap {
  margin-top: var(--space-block);
  margin-left: calc(-1 * clamp(20px, 4vw, 48px));
  margin-right: calc(-1 * clamp(20px, 4vw, 48px));
}

.video-carousel {
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: 40px clamp(20px, 12vw, 22vw) 48px;
  perspective: 1400px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-carousel::-webkit-scrollbar {
  display: none;
}

.video-carousel .video-embed {
  flex: 0 0 min(520px, 76vw);
  scroll-snap-align: center;
  margin-right: -70px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform, opacity;
}

.video-carousel .video-embed.is-active {
  box-shadow: 0 28px 50px -22px rgba(0, 0, 0, 0.45);
}

@media (max-width: 700px) {
  .video-carousel {
    padding: 16px 8vw 28px;
  }
  .video-carousel .video-embed {
    flex-basis: 84vw;
    margin-right: -36px;
  }
}

/* ================= multi-step application wizard ================= */
.af-section {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(
    128deg,
    var(--kk-pink) 0%,
    var(--kk-orange) 32%,
    var(--kk-navy) 68%,
    var(--kk-sky) 100%
  );
}

.af-section .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.af-section h2 {
  color: #fff;
}

.af-manifesto-note {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: var(--space-block);
  color: rgba(255, 255, 255, 0.92);
}

.join-columns .af-manifesto-note {
  margin-top: 0;
  height: 100%;
}

.af-manifesto-note ul {
  margin: 14px 0 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.af-manifesto-note li + li {
  margin-top: 10px;
}

.af-manifesto-note a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-decoration-thickness: 2px;
}

.af-card {
  margin: var(--space-block) auto 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.af-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.af-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.af-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
}

.af-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--kk-orange), var(--kk-navy));
  border-radius: 100px;
  transition: width 0.3s var(--ease);
}

.af-steps {
  position: relative;
  flex: 1;
}

.af-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: af-step-in 0.25s var(--ease);
}

.af-step.is-active {
  display: flex;
}

@keyframes af-step-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.af-step-title {
  font-family: var(--font-unbounded);
  font-weight: 600;
  font-size: 20px;
  color: var(--kk-navy);
}

.af-error {
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  min-height: 16px;
}

.af-nav-row {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.af-back {
  background: none;
  border: none;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  padding: 10px 4px;
}

.af-back:hover {
  color: var(--ink);
}

.af-next,
.af-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ================= PAR BIEDRĪBU (org overview) pages ================= */
.hero-org {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(128deg, var(--brand-magenta) 0%, var(--brand-indigo) 55%, var(--brand-sky) 100%);
  padding: clamp(56px, 9vw, 96px) 0;
}

.hero-org-inner {
  position: relative;
  z-index: 1;
}

.hero-org h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin-bottom: 20px;
  color: #fff;
}

.hero-org .hero-lede {
  max-width: none;
  margin: 0 0 40px;
  text-align: left;
  color: rgba(255, 255, 255, 0.92);
}

.hero-org .hero-actions {
  justify-content: flex-start;
  margin-bottom: 0;
}

.af-section--org {
  background: linear-gradient(128deg, var(--brand-magenta) 0%, var(--brand-indigo) 55%, var(--brand-sky) 100%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--space-block);
}

.project-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.project-card:hover {
  border-color: var(--brand-indigo);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.25);
}

.project-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.project-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.project-card--soon {
  opacity: 0.55;
  cursor: default;
}

.project-card--soon:hover {
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}

@media (max-width: 860px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* membership fee calculator */
.calc-card {
  background: var(--paper-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}

.calc-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.join-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: var(--space-block);
}

@media (max-width: 860px) {
  .join-columns {
    grid-template-columns: 1fr;
  }
}

.calc-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-result span {
  color: var(--muted);
  font-size: 14.5px;
}

.calc-result strong {
  font-family: var(--font-unbounded);
  font-size: 32px;
  color: var(--brand-indigo);
}

/* "Gada pārskati" report cards */
.report-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-block);
}

.report-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 14.5px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.report-card:hover {
  border-color: var(--kk-navy);
  background: var(--paper-soft);
}

.report-card svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.report-card--soon {
  opacity: 0.5;
  cursor: default;
}

.report-card--soon:hover {
  border-color: var(--line);
  background: none;
}

/* Statūti — legal clause numbering, generated so renumbering never
   needs to be done by hand if a clause is added/removed later */
.statuti-body {
  counter-reset: section;
}

.statuti-section {
  margin-top: 40px;
}

.statuti-section:first-of-type {
  margin-top: 0;
}

.statuti-section h2 {
  counter-increment: section;
}

.statuti-section h2::before {
  content: counter(section) ". ";
}

.statuti-clauses {
  counter-reset: clause;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.statuti-clauses > li {
  counter-increment: clause;
  padding-left: 44px;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.7;
}

.statuti-clauses > li::before {
  content: counter(section) "." counter(clause) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--kk-navy);
}

.statuti-sub {
  list-style: lower-alpha;
  margin: 10px 0 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
}

.statuti-sub li::marker {
  font-weight: 700;
  color: var(--kk-navy);
}

.statuti-meta {
  margin-top: var(--space-block);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.statuti-signatures {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.team-photo--board-1 { background: linear-gradient(135deg, var(--brand-magenta), var(--brand-indigo)); }
.team-photo--board-2 { background: linear-gradient(135deg, var(--brand-indigo), var(--brand-sky)); }
.team-photo--board-3 { background: linear-gradient(135deg, var(--brand-sky), var(--brand-magenta)); }

/* ================= STRATĒĢIJA page ================= */
/* TOC card, sitting inside the colorful hero as its own light panel —
   a single vertical list (a 2-column grid here scattered the 7.1-7.4
   sub-items away from "7." and made the whole thing read as a
   disconnected zigzag) with sub-items simply indented underneath. */
.strat-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .strat-hero-grid {
    grid-template-columns: 1fr;
  }
}

.strat-toc {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  max-height: 70vh;
  overflow-y: auto;
}

.strat-toc h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
}

.strat-toc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.strat-toc-grid li {
  border-bottom: 1px solid var(--line);
}

.strat-toc-grid li:last-child {
  border-bottom: none;
}

.strat-toc-grid a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  transition: color 0.15s var(--ease);
}

.strat-toc-grid a .num {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  flex-shrink: 0;
}

.strat-toc-grid a:hover,
.strat-toc-grid a.is-active {
  color: var(--kk-orange);
}

.strat-toc-sub {
  border: none !important;
  margin-left: 20px;
}

.strat-toc-sub a {
  font-weight: 500;
  font-size: 12.5px;
  padding: 4px 0;
}

.strat-section {
  scroll-margin-top: 96px;
  margin-top: clamp(56px, 8vw, 96px);
}

.strat-section:first-of-type {
  margin-top: 0;
}

.strat-sub {
  scroll-margin-top: 96px;
}

/* status cards (section: kur mēs esam) */
.strat-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: var(--space-block);
}

.strat-status-card {
  padding: 24px 26px;
  border-radius: var(--radius);
  border-left: 4px solid var(--line);
  background: var(--paper-soft);
}

.strat-status-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--ink);
}

.strat-status-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.strat-status-card--good { border-left-color: var(--kk-green); }
.strat-status-card--learned { border-left-color: var(--kk-sky); }
.strat-status-card--bad { border-left-color: #c0392b; }
.strat-status-card--limit { border-left-color: var(--kk-amber); }

@media (max-width: 760px) {
  .strat-status-grid { grid-template-columns: 1fr; }
}

/* values grid */
.strat-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--space-block);
}

.strat-value-card {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.strat-value-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--kk-navy);
}

.strat-value-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .strat-values-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* SWOT quadrant */
.strat-swot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: var(--space-block);
}

.strat-swot-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #fff;
}

.strat-swot-card h3 {
  font-size: 19px;
  margin-bottom: 14px;
  color: #fff;
}

.strat-swot-card ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
}

.strat-swot--strengths { background: linear-gradient(135deg, var(--kk-green), #1e4a32); }
.strat-swot--weaknesses { background: linear-gradient(135deg, #c0392b, #7a2019); }
.strat-swot--opportunities { background: linear-gradient(135deg, var(--brand-sky), #285e82); }
.strat-swot--threats { background: linear-gradient(135deg, #4a4a54, #17171a); }

@media (max-width: 760px) {
  .strat-swot { grid-template-columns: 1fr; }
}

/* pillar sections (darbības virzieni) */
.strat-pillar {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  margin-top: var(--space-block);
  color: #fff;
}

.strat-pillar:first-child {
  margin-top: 0;
}

.strat-pillar-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.strat-pillar-title {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 6px;
}

.strat-pillar p {
  color: rgba(255, 255, 255, 0.92);
}

.strat-pillar .prose {
  max-width: none;
}

.strat-pillar-goal {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 700;
}

.strat-pillar h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin: 24px 0 8px;
}

.strat-pillar .manifesto-list li {
  color: rgba(255, 255, 255, 0.92);
}

.strat-pillar .manifesto-list li::before {
  background: rgba(255, 255, 255, 0.7);
}

.strat-pillar .manifesto-list li strong {
  color: #fff;
}

.strat-pillar--1 { background: linear-gradient(150deg, var(--kk-orange), #9c3f24); }
.strat-pillar--2 { background: linear-gradient(150deg, var(--kk-navy), #14103a); }
.strat-pillar--3 { background: linear-gradient(150deg, var(--kk-green), #163a28); }
.strat-pillar--4 { background: linear-gradient(150deg, var(--brand-magenta), #6b0d43); }

/* mini bar chart — the bar "track" has a fixed px height so the fill's
   percentage height resolves against a definite length; earlier this
   shared one flex column with the value/year labels, so once a bar's
   percentage plus label heights exceeded the column's height, flex-
   shrink silently clamped every tall bar down to the same ceiling. */
.strat-chart {
  display: flex;
  gap: clamp(10px, 2.4vw, 24px);
  margin: 20px 0 4px;
}

.strat-chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.strat-chart-track {
  width: 100%;
  max-width: 52px;
  height: 120px;
  display: flex;
  align-items: flex-end;
}

.strat-chart-fill {
  width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: rgba(255, 255, 255, 0.9);
}

.strat-chart-value {
  font-family: var(--font-unbounded);
  font-weight: 700;
  font-size: 13.5px;
}

.strat-chart-year {
  font-size: 11.5px;
  opacity: 0.75;
}

.strat-chart-label {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 2px;
}

/* KPI detail table, styled for the colorful pillar background */
.strat-table-wrap {
  overflow-x: auto;
  margin-top: 22px;
  border-radius: var(--radius-sm);
}

.strat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.strat-table th,
.strat-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  color: #fff;
}

.strat-table th:first-child,
.strat-table td:first-child {
  text-align: left;
  white-space: normal;
}

.strat-table th {
  font-weight: 700;
  opacity: 0.85;
  font-size: 11.5px;
  text-transform: uppercase;
}

.strat-table tr:last-child td {
  border-bottom: none;
}

/* funding model comparison */
.strat-fund-compare {
  margin-top: var(--space-block);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.strat-fund-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.strat-fund-label {
  font-weight: 700;
  font-size: 15px;
}

.strat-fund-bar {
  display: flex;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
}

.strat-fund-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  transition: width 0.6s var(--ease);
}

.strat-fund-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.strat-fund-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.strat-fund-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* timeline (section 9) */
.strat-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-block);
}

.strat-timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
}

.strat-timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strat-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--kk-orange);
  flex-shrink: 0;
  margin-top: 4px;
}

.strat-timeline-line {
  width: 2px;
  flex: 1;
  background: var(--line);
}

.strat-timeline-item:last-child .strat-timeline-line {
  display: none;
}

.strat-timeline-body {
  padding-bottom: 28px;
}

.strat-timeline-body h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.strat-timeline-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--kk-navy);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s, background 0.15s var(--ease);
  z-index: 500;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--kk-orange);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}
