/* =========================================================================
   klimagesund.at — Pitch + interaktiver Klickprototyp
   Eigenständige Sub-Identität auf Basis des GÖG Design Systems
   ========================================================================= */

/* ---- Poppins via Google Fonts (matches GÖG Design System) ---- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ===========================================================================
   Accessibility (WCAG 2.2 AA)
   - visible focus rings on every interactive element
   - skip-link
   - reduced-motion: kill non-essential animation
   - sr-only utility for visually-hidden text
   =========================================================================== */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid #00573F;
  outline-offset: 3px;
  border-radius: 6px;
}
/* On dark surfaces (gradient CTAs, footer, sub-hero), use white outline */
.audience-hero :focus-visible,
footer :focus-visible,
[data-on-dark] :focus-visible {
  outline-color: #fff;
}
/* Visually-hidden but screen-reader available */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
/* Skip link */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 9999;
  background: #00573F; color: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 8px;
  text-decoration: none;
  transition: top 150ms ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; }
}

:root {
  /* === GÖG Master-Token (übernommen aus dem Design System) === */
  --c-primary:        #32466E;  /* GÖG Dunkelblau - Mutter-Brand */
  --c-primary-2:      #283958;
  --c-primary-3:      #1B2842;

  /* GÖG Kategorial-Palette */
  --c-cat-darkblue:   #32466E;
  --c-cat-bluegrey:   #6197B8;
  --c-cat-terracotta: #C36432;
  --c-cat-mustard:    #D7B416;
  --c-cat-lightgreen: #88A62E;
  --c-cat-darkgreen:  #00573F;

  /* Dunkelgrün-Skala (für Klima-Akzent) */
  --c-dg-1:  #00573F;
  --c-dg-2:  #2B735F;
  --c-dg-3:  #558F7F;
  --c-dg-4:  #80AB9F;
  --c-dg-5:  #AAC7BF;
  --c-dg-6:  #D5E3DF;
  --c-dg-7:  #EBF1EE;
  --c-dg-8:  #F4F8F6;

  /* Sequenziell — für Heatmaps / Reifegrad-Skalen */
  --c-seq-1:  #F6EDE7;
  --c-seq-2:  #DBD5D6;
  --c-seq-3:  #C1BDC5;
  --c-seq-4:  #A7A6B4;
  --c-seq-5:  #8E90A3;
  --c-seq-6:  #757A91;
  --c-seq-7:  #5D647F;
  --c-seq-8:  #46506D;
  --c-seq-9:  #303D59;
  --c-seq-10: #1E2A42;

  /* === Plattform-eigene Sub-Identität === */
  --c-kg-leaf:   #00573F;     /* Klima-Akzent: GÖG Dunkelgrün */
  --c-kg-leaf-2: #2B735F;     /* Hover/Aktiv */
  --c-kg-pulse:  #C36432;     /* Gesundheitspuls: GÖG Terracotta */
  --c-kg-mid:    #1F3D32;     /* sehr dunkel - für Hero-Panels */

  /* Neutrals */
  --c-bg:        #FFFFFF;
  --c-bg-soft:   #F7F8F5;     /* warm-weiß, leicht in Richtung Erd-Ton */
  --c-bg-info:   #F2F6F9;     /* GÖG Hellblau */
  --c-bg-leaf:   #EBF1EE;     /* sehr helles Grün - Klima-Callout */
  --c-rule:      #DDE0E7;
  --c-rule-2:    #E8ECEF;

  --fg-1: #1A1F2E;
  --fg-2: #32466E;
  --fg-3: #5D647F;
  --fg-4: #99A3B7;
  --fg-on-dark: #FFFFFF;

  /* Schrift */
  --font-ui: "Poppins", "Helvetica Neue", system-ui, sans-serif;

  /* Radii */
  --radius-frame-sm: 24px;
  --radius-frame-lg: 36px;
  --radius-card:     16px;
  --radius-input:    8px;
  --radius-pill:     999px;

  /* Shadows (tinted blue, soft) */
  --shadow-card: 0 1px 2px rgba(50,70,110,.06), 0 4px 16px rgba(50,70,110,.08);
  --shadow-pop:  0 6px 24px rgba(50,70,110,.12), 0 1px 4px rgba(50,70,110,.08);

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 56px; --sp-10: 80px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-1);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--c-bg-leaf); color: var(--c-kg-mid); }

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

/* ===== Pitch-Container ===== */
.pitch-section {
  position: relative;
  scroll-margin-top: 72px;
}
.pitch-section[data-bg="soft"]   { background: var(--c-bg-soft); }
.pitch-section[data-bg="leaf"]   { background: var(--c-bg-leaf); }
.pitch-section[data-bg="info"]   { background: var(--c-bg-info); }
.pitch-section[data-bg="dark"]   {
  background: linear-gradient(135deg, var(--c-kg-mid) 0%, #0E2820 100%);
  color: var(--fg-on-dark);
}
.pitch-section[data-bg="primary"]{
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-3) 100%);
  color: var(--fg-on-dark);
}

.pitch-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
}
.pitch-inner.is-narrow { max-width: 980px; }
.pitch-inner.is-wide   { max-width: 1440px; }

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-kg-leaf);
  margin: 0 0 16px;
}
.eyebrow.on-dark { color: var(--c-dg-5); }
.eyebrow.is-blue { color: var(--c-primary); }

h1.pitch-h1, .pitch-h1 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-primary);
  margin: 0 0 24px;
  text-wrap: balance;
}
.pitch-h2 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-primary);
  margin: 0 0 20px;
  text-wrap: balance;
}
.pitch-h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--c-primary);
  margin: 0 0 12px;
}
.pitch-section[data-bg="dark"] .pitch-h1,
.pitch-section[data-bg="dark"] .pitch-h2,
.pitch-section[data-bg="dark"] .pitch-h3,
.pitch-section[data-bg="primary"] .pitch-h1,
.pitch-section[data-bg="primary"] .pitch-h2,
.pitch-section[data-bg="primary"] .pitch-h3 { color: #fff; }

.pitch-lead {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-1);
  max-width: 68ch;
  margin: 0 0 28px;
}
.pitch-section[data-bg="dark"] .pitch-lead,
.pitch-section[data-bg="primary"] .pitch-lead { color: rgba(255,255,255,.85); }

.pitch-body {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-1);
}
.pitch-body p { margin: 0 0 1em; }
.pitch-body strong { font-weight: 600; color: var(--c-primary); }
.pitch-section[data-bg="dark"] .pitch-body,
.pitch-section[data-bg="primary"] .pitch-body { color: rgba(255,255,255,.8); }
.pitch-section[data-bg="dark"] .pitch-body strong,
.pitch-section[data-bg="primary"] .pitch-body strong { color: #fff; }

ul.kg-bullet { list-style: none; padding: 0; margin: 0 0 1em; }
ul.kg-bullet > li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
  font-size: 15px;
  line-height: 1.5;
}
ul.kg-bullet > li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-kg-leaf);
}
.pitch-section[data-bg="dark"] ul.kg-bullet > li::before,
.pitch-section[data-bg="primary"] ul.kg-bullet > li::before { background: var(--c-dg-4); }

/* ===== Section-Label (Aufgaben-Marker) ===== */
.section-marker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: rgba(0, 87, 63, 0.08);
  border: 1px solid rgba(0, 87, 63, 0.18);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--c-kg-leaf);
  margin-bottom: 24px;
}
.section-marker .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-kg-leaf);
}

/* ===== Buttons ===== */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  line-height: 1.2;
}
.btn--primary {
  background: var(--c-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--c-primary-2); transform: translateY(-1px); }
.btn--leaf {
  background: var(--c-kg-leaf);
  color: #fff;
}
.btn--leaf:hover { background: var(--c-kg-leaf-2); transform: translateY(-1px); }
/* Inverse — white pill on dark/gradient bg, leaf text. Canonical primary CTA on dark surfaces. */
.btn--inverse {
  background: #fff;
  color: var(--c-kg-leaf);
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.12);
}
.btn--inverse:hover {
  background: #fff;
  color: var(--c-kg-leaf-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.28), 0 3px 8px rgba(0,0,0,0.14);
}
/* Footer newsletter input placeholder on dark gradient */
footer input::placeholder { color: rgba(255,255,255,0.55); }
.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-rule);
}
.btn--ghost:hover { border-color: var(--c-primary); background: var(--c-bg-info); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ===== Cards ===== */
.kg-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.kg-card.is-clickable { cursor: pointer; }
.kg-card.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

/* ===== Pitch-Anchor-Nav (sticky) ===== */
.anchor-nav {
  position: sticky;
  top: 40px;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-rule);
}
.anchor-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 40px;
}
.anchor-nav__brand {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-primary);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.anchor-nav__brand .pill {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--c-bg-leaf); color: var(--c-kg-leaf);
}
.anchor-nav__items {
  flex: 1;
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.anchor-nav__items::-webkit-scrollbar { display: none; }
.anchor-nav__items a {
  font-family: var(--font-ui);
  font-weight: 500; font-size: 12.5px;
  color: var(--fg-3);
  text-decoration: none;
  padding: 8px 12px; border-radius: 999px;
  white-space: nowrap;
  transition: all 150ms;
}
.anchor-nav__items a:hover { color: var(--c-primary); background: var(--c-bg-info); }
.anchor-nav__items a.is-active { color: var(--c-kg-leaf); background: var(--c-bg-leaf); font-weight: 600; }
.anchor-nav__cta { white-space: nowrap; }

/* ===== Logo Lockup (klimagesund + GÖG endorsement) ===== */
.kg-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.kg-logo__mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-kg-leaf) 0%, var(--c-primary) 100%);
  position: relative;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.kg-logo__mark svg { width: 22px; height: 22px; color: #fff; }
.kg-logo__text {
  display: flex; flex-direction: column; line-height: 1;
}
.kg-logo__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.kg-logo__title .leaf { color: var(--c-kg-leaf); }
.kg-logo__sub {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.kg-logo.is-light .kg-logo__title { color: #fff; }
.kg-logo.is-light .kg-logo__title .leaf { color: #fff; }
.kg-logo.is-light .kg-logo__sub { color: rgba(255,255,255,0.7); }
.kg-logo.is-light .kg-logo__mark {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.kg-logo.is-light .kg-logo__mark svg { color: #fff; }

/* ===== Platform Browser Frame ===== */
.platform-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(50,70,110,0.18), 0 4px 16px rgba(50,70,110,0.10);
  background: #fff;
  border: 1px solid var(--c-rule);
}
.platform-frame__chrome {
  background: #F4F5F7;
  border-bottom: 1px solid var(--c-rule);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.platform-frame__dots { display: flex; gap: 6px; }
.platform-frame__dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--c-rule);
}
.platform-frame__url {
  flex: 1;
  background: #fff;
  border: 1px solid var(--c-rule);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 6px;
}
.platform-frame__url svg { width: 12px; height: 12px; color: var(--c-kg-leaf); }
.platform-frame__body {
  background: #fff;
}

/* ===== Specifically for the demo's internal navigation ===== */
.demo-nav {
  display: flex; gap: 6px;
  background: var(--c-bg-info);
  padding: 8px;
  border-radius: 999px;
  margin: 0 auto 20px;
  width: fit-content;
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: center;
}
.demo-nav button {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--c-primary);
  cursor: pointer;
  transition: all 150ms;
}
.demo-nav button:hover { background: rgba(255,255,255,0.6); }
.demo-nav button.is-active {
  background: #fff;
  color: var(--c-kg-leaf);
  box-shadow: 0 1px 4px rgba(50,70,110,0.10);
  font-weight: 600;
}

/* ===== Grid utilities ===== */
.kg-grid { display: grid; gap: 24px; }
.kg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.kg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kg-grid--4 { grid-template-columns: repeat(4, 1fr); }
.kg-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) {
  .kg-grid--3, .kg-grid--4, .kg-grid--5 { grid-template-columns: 1fr 1fr; }
  .kg-grid--2 { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Responsive — tablet (≤1024px) and mobile (≤640px) breakpoints.
   Overrides inline-grid styles + section paddings + heading sizes.
   =========================================================================== */
@media (max-width: 1024px) {
  /* Hero / feature splits collapse to single column */
  .audience-hero > div > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Most 4-col grids → 2-col */
  .kg-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  /* 3-col stays 3-col on tablet but tighter; collapse the wide editorial split */
  div[style*="grid-template-columns: 1fr 1.6fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns: 1.4fr 1fr"],
  div[style*="grid-template-columns: 1.5fr 1fr"],
  div[style*="grid-template-columns: 1fr 1.2fr"],
  div[style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Footer 5-col → 2-col */
  footer > div > div > div[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
  /* Standalone wrap padding */
  .standalone-frame-wrap { padding: 0 16px 40px !important; }
}

@media (max-width: 768px) {
  /* All multi-col grids → single column */
  .kg-grid--2, .kg-grid--3, .kg-grid--4 {
    grid-template-columns: 1fr !important;
  }
  /* Any inline grid-template-columns → single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* But preserve our specific 2-col grids that survive on mobile */
  .kg-grid--mobile-2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }

  /* Section paddings reduce */
  section { padding-left: 20px !important; padding-right: 20px !important; }

  /* Headings shrink */
  h1 { font-size: clamp(28px, 8vw, 40px) !important; line-height: 1.1 !important; }
  h2 { font-size: clamp(22px, 6.5vw, 30px) !important; line-height: 1.15 !important; }
  h3 { font-size: clamp(18px, 5vw, 22px) !important; line-height: 1.25 !important; }

  /* Hide mega-nav inline items — keep logo + member CTA only */
  .mega-nav { display: none !important; }
  /* Anchor-nav items in pitch */
  .anchor-nav__items { display: none !important; }
  /* Header padding tighter */
  header[role="banner"] { padding-left: 16px !important; padding-right: 16px !important; }

  /* Newsletter / footer columns stack */
  footer > div > div > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  footer form[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* Pull-up audience-hero margin: shrink on mobile since header shrinks too */
  .audience-hero { margin-top: -64px !important; padding-top: 88px !important; padding-left: 20px !important; padding-right: 20px !important; }
  body.platform-shell--scrolled .audience-hero { margin-top: -56px !important; }

  /* Standalone banner: smaller text + wrap properly */
  .standalone-banner { padding: 8px 14px !important; font-size: 11px !important; }
  .standalone-frame-wrap { padding: 0 8px 32px !important; }
  .standalone-shell .demo-nav {
    padding: 6px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }

  /* KPI floater on hero photo — restack */
  .audience-hero div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Mitgliederbereich + Kontakt CTA blocks — stack */
  section > div[style*="display: grid"][style*="auto"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Tighter type on smallest screens */
  h1 { font-size: clamp(26px, 9vw, 34px) !important; }
  /* Heading text-wrap relax for narrow widths */
  h1, h2 { text-wrap: pretty !important; }
  /* Buttons full-width inside narrow containers (heuristic) */
  .audience-hero .btn { width: 100%; justify-content: center; }
}

/* ===== Animation ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp 320ms ease both; }

/* Harmonious entrance animations — page-loads, hero text, etc. */
@keyframes kgFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes kgScaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* Auto-stagger any direct children of a container with .kg-stagger.
   Children fade up with 60ms increments up to the 10th item. */
.kg-stagger > * {
  opacity: 0;
  animation: kgFadeUp 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.kg-stagger > *:nth-child(1)  { animation-delay:  40ms; }
.kg-stagger > *:nth-child(2)  { animation-delay: 100ms; }
.kg-stagger > *:nth-child(3)  { animation-delay: 160ms; }
.kg-stagger > *:nth-child(4)  { animation-delay: 220ms; }
.kg-stagger > *:nth-child(5)  { animation-delay: 280ms; }
.kg-stagger > *:nth-child(6)  { animation-delay: 340ms; }
.kg-stagger > *:nth-child(7)  { animation-delay: 400ms; }
.kg-stagger > *:nth-child(8)  { animation-delay: 460ms; }
.kg-stagger > *:nth-child(9)  { animation-delay: 520ms; }
.kg-stagger > *:nth-child(10) { animation-delay: 580ms; }

/* Hero text entrance — slightly slower for cinematic feel */
.audience-hero h1,
.audience-hero > div > div > p,
.audience-hero .kg-pill,
.audience-hero .btn,
.audience-hero ul,
.audience-hero a > div {
  animation: kgFadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.audience-hero h1 { animation-delay: 100ms; }
.audience-hero > div > div > p { animation-delay: 180ms; }
.audience-hero .btn { animation-delay: 260ms; }
.audience-hero ul { animation-delay: 340ms; }

/* Card hover — gentle lift, harmonious to button hover-lift (translateY -1px) */
.kg-card.is-clickable {
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms ease,
              border-color 220ms ease;
}
.kg-card.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(50,70,110,.06), 0 14px 32px rgba(50,70,110,.10);
}

/* Pill entrance — soft pop, used in eyebrows / tags */
.kg-pill, [class*="kg-pill"] {
  transition: background 200ms ease, color 200ms ease;
}

/* Logo mark — subtle breathing on hover only (no idle animation, easy on the eye) */
.kg-logo:hover svg path { transition: stroke-width 300ms ease; }

/* ===== Additional micro-animations — dezent, harmonisch ===== */

/* Arrow icons inside CTAs / cards nudge right on hover */
.btn:hover [data-lucide="arrow-right"],
.btn:hover [data-lucide="arrow-up-right"],
.is-clickable:hover [data-lucide="arrow-right"] {
  transform: translateX(3px);
}
.btn [data-lucide="arrow-right"],
.btn [data-lucide="arrow-up-right"],
.is-clickable [data-lucide="arrow-right"] {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* External-link icon — gentle pop on hover */
a:hover [data-lucide="external-link"] {
  transform: translate(2px, -2px);
}
a [data-lucide="external-link"] {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pills — gentle scale up on hover when inside a clickable parent */
.is-clickable:hover .kg-pill,
.is-clickable:hover [class*="Pill"] {
  transform: scale(1.04);
}

/* EventCard date number — gentle bump on card hover */
.kg-card.is-clickable:hover h4,
.kg-card.is-clickable:hover h3 {
  color: var(--c-kg-leaf);
  transition: color 200ms ease;
}
.kg-card.is-clickable h4,
.kg-card.is-clickable h3 { transition: color 200ms ease; }

/* PhotoBlock subtle zoom on parent hover */
.kg-card.is-clickable {
  overflow: hidden;
}
.kg-card.is-clickable .photo-block,
.kg-card.is-clickable [style*="background-image"] {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.kg-card.is-clickable:hover [style*="background-image"] {
  transform: scale(1.04);
}

/* Section eyebrow pills slide up gently when in view (via .reveal) */
.kg-pill {
  display: inline-flex;
  transition: opacity 300ms ease, transform 300ms ease, background 200ms ease;
}

/* Filter chips — color transition on selection */
button[class*="filter"],
button[role="radio"] {
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

/* Sticky header backdrop — smooth state change */
header[role="banner"] {
  transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

/* Sub-page nav indicator (underline animation already handled in shell) */

/* Map marker pulse already animated, leave as-is */

/* Donut + bars — gentle entrance when first appearing */
@keyframes kgDonutDraw {
  from { stroke-dashoffset: 999; opacity: 0; }
  to   { stroke-dashoffset: 0;   opacity: 1; }
}
svg circle[stroke-dasharray] {
  animation: kgDonutDraw 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Modal/dropdown open animations (mega-nav already covered) */
details[open] > *:not(summary) {
  animation: kgFadeIn 220ms ease both;
}

/* Smooth focus transition */
*:focus-visible { transition: outline-color 100ms ease; }

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }

/* ===== Leaflet map — corporate-tinted ===== */
.kg-leaflet-map .leaflet-tile-pane {
  filter: grayscale(0.65) saturate(0.55) hue-rotate(120deg) brightness(1.04) contrast(0.95);
}
.kg-leaflet-map .leaflet-container {
  background: var(--c-bg-leaf);
  font-family: "Poppins", system-ui, sans-serif;
}
.kg-leaflet-map .leaflet-control-attribution {
  background: rgba(255,255,255,0.85);
  font-size: 10.5px;
  color: var(--fg-3);
  font-family: "Poppins", system-ui, sans-serif;
  padding: 2px 8px;
  border-radius: 6px 0 0 0;
}
.kg-leaflet-map .leaflet-control-zoom a {
  background: #fff !important;
  color: var(--c-primary) !important;
  border: 1px solid var(--c-rule) !important;
  font-family: "Poppins";
  font-weight: 600;
}
.kg-leaflet-map .leaflet-control-zoom a:hover {
  background: var(--c-bg-leaf) !important;
  color: var(--c-kg-leaf) !important;
}
.kg-marker { position: relative; }
.kg-marker__ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  animation: kg-pulse 2.4s ease-out infinite;
}
.kg-marker__dot {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.20);
}
@keyframes kg-pulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  70%  { transform: scale(1.6); opacity: 0;   }
  100% { transform: scale(1.6); opacity: 0;   }
}
.kg-leaflet-map .leaflet-tooltip {
  background: #fff;
  border: 1px solid var(--c-rule);
  box-shadow: 0 6px 24px rgba(50,70,110,0.12);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: "Poppins", system-ui, sans-serif;
}
.kg-leaflet-map .leaflet-tooltip-top:before {
  border-top-color: #fff;
}
/* ===== Print-safe (best-effort) ===== */
@media print {
  .anchor-nav { display: none; }
  .pitch-section { break-inside: avoid; }
}

/* ===== Audience landing hero — slide under transparent header ===== */
.audience-hero {
  /* Pull up so the gradient extends behind the header. Header is ~94px tall. */
  margin-top: -94px;
  padding-top: 124px !important;
}
body.platform-shell--scrolled .audience-hero {
  /* When header has shrunk, pull-up is smaller */
  margin-top: -82px;
  padding-top: 112px !important;
}

/* ===== Mega Navigation ===== */
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.mega-panel { will-change: opacity, transform; }
body.mega-open { overflow: hidden; }
/* Reveal-on-scroll: opacity + slight rise */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* Card photo zoom on hover */
.kg-card.is-clickable .photo-zoom,
.is-photo-zoom .photo-zoom {
  overflow: hidden;
}
.kg-card.is-clickable .photo-zoom > div,
.is-photo-zoom .photo-zoom > div {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.kg-card.is-clickable:hover .photo-zoom > div,
.is-photo-zoom:hover .photo-zoom > div {
  transform: scale(1.06);
}

/* Editorial type — display sizes */
.editorial-hero {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--c-primary);
}
.editorial-section {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--c-primary);
}
.editorial-quote {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--c-primary);
}
.editorial-lead {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
  color: var(--fg-1);
  max-width: 62ch;
}

/* Eyebrow with line accent */
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-kg-leaf);
}
.eyebrow-line::before {
  content: "";
  width: 32px;
  height: 1.5px;
  background: currentColor;
}

/* Sticky platform header — shrink on scroll */
.platform-shell--scrolled .platform-header {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  box-shadow: 0 1px 3px rgba(50,70,110,0.08);
  transition: all 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pull-quote — magazine style */
.pullquote {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  color: var(--c-primary);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pullquote::before {
  content: "“";
  font-family: "Poppins", serif;
  font-size: clamp(80px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.4;
  color: var(--c-kg-leaf);
  display: block;
  margin: 0 0 8px;
  height: 0.4em;
}

/* Duotone overlay helper for photos */
.duotone-leaf {
  position: relative;
}
.duotone-leaf::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,87,63,0.35) 0%, rgba(43,115,95,0.25) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Sparkline */
.sparkline { width: 100%; height: 32px; }

/* Section dividers — more breathing room presets */
.section-pad-xl { padding-block: clamp(80px, 10vw, 140px); }
.section-pad-lg { padding-block: clamp(64px, 8vw, 100px); }

/* Count-up KPI */
.kpi-count {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
