
/* =========================================================
   PAGE LOADER — Civic glass intro
========================================================= */

#page-loader{
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(1200px 800px at 50% 40%, rgba(119,183,43,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92));

  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);

  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.dark #page-loader{
  background:
    radial-gradient(1200px 800px at 50% 40%, rgba(119,183,43,.14), transparent 60%),
    linear-gradient(180deg, rgba(7,18,15,.96), rgba(7,18,15,.92));
}

/* Hidden state */
#page-loader.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Inner ---------- */

.loader-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft halo behind logo */
.loader-inner::before{
  content:"";
  position:absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(119,183,43,.22),
    transparent 65%
  );

  filter: blur(18px);
}

/* Logo */
.loader-logo{
  width: 120px;
  height: auto;
  z-index: 1;

  animation: loader-breathe 2.8s ease-in-out infinite;
}

/* Subtle breathing motion */
@keyframes loader-breathe{
  0%{
    transform: scale(1);
    opacity: .85;
  }
  50%{
    transform: scale(1.04);
    opacity: 1;
  }
  100%{
    transform: scale(1);
    opacity: .85;
  }
}





















/* =========================================================
   DESKTOP HERO — Glass deck (static image)
========================================================= */

.hero-deck{
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(1400px 900px at 50% 20%, rgba(119,183,43,.12), transparent 60%),
    radial-gradient(1200px 800px at 20% 80%, rgba(1,57,20,.10), transparent 55%),
    var(--bg);
}

/* subtle grain */
.hero-deck::before{
  content:"";
  position:absolute;
  inset:-30%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .14;
  pointer-events:none;
}

/* vignette */
.hero-deck::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background:
    /* existing vignette */
    radial-gradient(1200px 700px at 50% 35%, transparent 40%, rgba(0,0,0,.28) 100%),
    /* NEW: bottom blend into page background */
    linear-gradient(to bottom, transparent 72%, var(--bg) 100%);
}


.dark .hero-deck::after{ opacity:.65; }


/* =========================================================
   Deck sizing — BIG on desktop
========================================================= */

.deck-viewport{
  width: min(1600px, 96vw);
  height: min(900px, 92vh);
  position: relative;
  perspective: 1400px;
  z-index: 1;
}

.deck-track{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Cards */
.deck-card{
  position: absolute;
  inset: 0;
  border-radius: 42px;
  overflow: hidden;

  background-size: cover;
  background-position: center 55%;
  box-shadow: var(--shadow-strong);

  transform-style: preserve-3d;
}

/* depth */
.deck-back{
  transform: translateZ(-160px) scale(.90) translateY(14px);
  opacity:.45;
}

.deck-mid{
  transform: translateZ(-80px) scale(.95) translateY(8px);
  opacity:.7;
}

.deck-front{
  transform: translateZ(0);
}

/* readability overlay */
.deck-front::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45));
  pointer-events:none;
}

/* =========================================================
   Caption — FIXED for desktop readability
========================================================= */

.deck-caption{
  position: absolute;
  left: 48px;
  bottom: 48px;
  max-width: 640px;

  padding: 28px 30px;
  border-radius: 32px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.92),
    rgba(255,255,255,.72)
  );

  backdrop-filter: blur(30px) saturate(1.15);
  -webkit-backdrop-filter: blur(30px) saturate(1.15);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

.dark .deck-caption{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.82),
    rgba(12,16,14,.56)
  );
  border-color: rgba(255,255,255,.14);
}

/* text */
.caption-sub{
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.35;
  color: var(--text-dark);
}

.dark .caption-sub{
  color: rgba(255,255,255,.94);
}

.caption-actions{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.caption-cta{
  padding: 16px 22px;
  border-radius: 18px;
  font-weight: 900;

  background: rgba(119,183,43,.22);
  border: 1px solid rgba(119,183,43,.32);
  color: var(--green-dark);
}

.dark .caption-cta{
  color: var(--green-light);
}

.caption-tagline{
  font-weight:600;
  color: var(--muted);
}

.dark .caption-tagline{
  color: rgba(255,255,255,.72);
}

/* =========================================================
   First‑load reveal
========================================================= */

.hero-deck .deck-track{
  opacity:0;
  transform: translateY(24px) scale(.985);
  filter: blur(8px);
}

.hero-deck.is-ready .deck-track{
  opacity:1;
  transform:none;
  filter:none;
  transition:
    opacity 520ms ease,
    transform 820ms var(--ease),
    filter 520ms ease;
}

/* =========================================================
   HERO CAPTION — Independent overlay layer
========================================================= */

.hero-deck{
  position: relative;
}

/* Detach caption from card visually */
.hero-deck .deck-caption{
  position: absolute;
  left: 48px;
  bottom: 48px;
  z-index: 10; /* above all deck layers */

  /* keep your design exactly */
  max-width: 640px;
  padding: 28px 30px;
  border-radius: 32px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.92),
    rgba(255,255,255,.72)
  );

  backdrop-filter: blur(30px) saturate(1.15);
  -webkit-backdrop-filter: blur(30px) saturate(1.15);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}

/* Dark mode unchanged */
.dark .hero-deck .deck-caption{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.82),
    rgba(12,16,14,.56)
  );
  border-color: rgba(255,255,255,.14);
}






















/* =========================================================
   CIVIC HEADER — Prominent glass banner
========================================================= */

.civic-header{
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;

  pointer-events: none;
}

.civic-inner{
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 28px;

  padding: 18px 36px;
  min-width: 520px;

  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.92),
    rgba(255,255,255,.68)
  );

  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);

  font-family: var(--font-body);
}

/* Dark mode */
.dark .civic-inner{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.82),
    rgba(12,16,14,.56)
  );
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 22px 80px rgba(0,0,0,.6);
}

/* =========================================================
   Typography hierarchy
========================================================= */

.civic-date{
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

.dark .civic-date{
  color: rgba(255,255,255,.72);
}

.civic-name{
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.dark .civic-name{
  color: rgba(255,255,255,.96);
}

.civic-type{
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--green-dark);
  white-space: nowrap;
}

.dark .civic-type{
  color: var(--green-light);
}

/* =========================================================
   Scroll settling (subtle authority)
========================================================= */

@media (prefers-reduced-motion: no-preference){
  body.scrolled .civic-inner{
    box-shadow: 0 16px 48px rgba(0,0,0,.22);
    backdrop-filter: blur(22px) saturate(1.1);
  }
}



















/* =========================================================
   DESKTOP MENU — Cinematic glass control deck (Reworked)
   Fixes uneven 7-card layout by:
   - 2-column panel: grid + side rail
   - 4-column card grid (7 => 4 + 3)
   - Social + Theme live in rail (never pushed down)
========================================================= */

/* -------------------------
   FAB
------------------------- */

.menu-fab{
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;

  width: 66px;
  height: 66px;
  border-radius: 50%;

  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.68));
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);

  cursor: pointer;
}

.dark .menu-fab{
  background: linear-gradient(180deg, rgba(12,16,14,.82), rgba(12,16,14,.56));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 70px rgba(0,0,0,.6);
}

.menu-icon{
  position: relative;
  width: 26px;
  height: 18px;
  display: block;
  margin: auto;
}

.menu-icon .bar{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-dark);
  transition: transform 420ms var(--ease), opacity 220ms ease;
}

.dark .menu-icon .bar{
  background: rgba(255,255,255,.92);
}

.bar-1{ top: 0; }
.bar-2{ top: 8px; }
.bar-3{ bottom: 0; }

.menu-fab[aria-expanded="true"] .bar-1{ transform: translateY(8px) rotate(45deg); }
.menu-fab[aria-expanded="true"] .bar-2{ opacity: 0; }
.menu-fab[aria-expanded="true"] .bar-3{ transform: translateY(-8px) rotate(-45deg); }

/* -------------------------
   Overlay atmosphere
------------------------- */

.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 850;

  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.menu-overlay[aria-hidden="false"]{
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------
   Panel (2-column deck)
------------------------- */

.menu-panel{
  position: absolute;
  inset: 6vh 6vw;

  border-radius: 44px;

  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  backdrop-filter: blur(34px) saturate(1.15);
  -webkit-backdrop-filter: blur(34px) saturate(1.15);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 44px 160px rgba(0,0,0,.5);

  padding: 44px;

  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: 1fr;
  gap: 28px;

  transform: translateY(26px) scale(.985);
  opacity: 0;
  transition: transform 520ms var(--ease), opacity 420ms ease;
}

.dark .menu-panel{
  background: linear-gradient(180deg, rgba(12,16,14,.82), rgba(12,16,14,.56));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 44px 180px rgba(0,0,0,.7);
}

.menu-panel[aria-hidden="false"]{
  transform: none;
  opacity: 1;
}

/* -------------------------
   Grid: 4 columns (7 => 4 + 3)
   Internal scroll if needed (quiet)
------------------------- */

.menu-grid{
  grid-column: 1;
  grid-row: 1;

  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 22px;

  align-content: start;

  overflow: auto;
  padding-right: 6px;

  scrollbar-width: none;
}

.menu-grid::-webkit-scrollbar{
  width: 0;
  height: 0;
}

/* -------------------------
   Cards
------------------------- */

.menu-card{
  position: relative;
  border-radius: 30px;
  overflow: hidden;

  min-height: 190px;
  padding: 26px;

  display: flex;
  align-items: flex-end;
  justify-content: flex-start;

  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.40);

  box-shadow: 0 18px 60px rgba(0,0,0,.22);

  transform: translateY(0);
  transition:
    transform 320ms var(--ease),
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.dark .menu-card{
  background: rgba(10,15,13,.40);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);
}

/* Background image layer */
.menu-card::before{
  content:"";
  position:absolute;
  inset:-18%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: grayscale(1) saturate(.6) contrast(.95) brightness(.85);
  opacity: .55;
  transition: filter 360ms ease, opacity 360ms ease, transform 520ms var(--ease);
}

/* Glass sheen + readability */
.menu-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 30% 20%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45));
  opacity: .75;
  pointer-events:none;
}

.dark .menu-card::after{
  background:
    radial-gradient(900px 520px at 30% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.55));
  opacity: .78;
}

/* Label */
.menu-card span{
  position: relative;
  z-index: 1;

  display: inline-block;
  max-width: 100%;

  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;

  padding: 10px 14px;
  border-radius: 14px;

  color: rgba(255,255,255,.94);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.14);

  text-shadow:
    0 10px 30px rgba(0,0,0,.55),
    0 0 18px rgba(255,255,255,.10);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dark .menu-card span{
  background: rgba(0,0,0,.22);
  border-color: rgba(255,255,255,.12);
}

/* Hover */
.menu-card:hover,
.menu-card:focus-visible{
  transform: translateY(-8px);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.34);
}

.menu-card:hover::before,
.menu-card:focus-visible::before{
  filter: grayscale(0) saturate(1.15) contrast(1.02) brightness(.98);
  opacity: .92;
  transform: scale(1.02);
}

/* De-emphasize non-hovered cards when grid is hovered */
.menu-grid:hover .menu-card:not(:hover){
  transform: translateY(2px);
  box-shadow: 0 14px 44px rgba(0,0,0,.18);
}

.menu-grid:hover .menu-card:not(:hover)::before{
  opacity: .42;
  filter: grayscale(1) saturate(.45) contrast(.92) brightness(.78);
}

/* Special shapes */
.menu-card.pill{
  border-radius: 999px;
  padding-left: 40px;
  padding-right: 40px;
}

.menu-card.pill span{
  padding-left: 18px;
  padding-right: 18px;
}

.menu-card.cta::after{
  background:
    radial-gradient(900px 520px at 30% 20%, rgba(119,183,43,.22), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45));
}

/* -------------------------
   Background assignments
------------------------- */

.menu-card[data-bg="0"]::before{ background-image: url("/assets/hero/img_20210523_204738_104.webp"); }
.menu-card[data-bg="1"]::before{ background-image: url("/assets/pictures/nextup.webp"); }
.menu-card[data-bg="2"]::before{ background-image: url("/assets/hero/img_8847_58.webp"); }
.menu-card[data-bg="3"]::before{ background-image: url("/assets/pictures/senate.webp"); } 
.menu-card[data-bg="4"]::before{ background-image: url("/assets/pictures/podcast.webp"); }
.menu-card[data-bg="5"]::before{ background-image: url("/assets/hero/qdee33d.webp"); }
.menu-card[data-bg="6"]::before{ background-image: url("/assets/hero/20251227_Die_Ansbacher.webp"); }
/* If you want a dedicated bg for data-bg="6", add it here. */

/* -------------------------
   Side rail (Social + Theme)
   Stable, never pushed down by grid height
------------------------- */

.menu-social{
  grid-column: 2;
  grid-row: 1;

  align-self: start;
  justify-self: stretch;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 16px 16px;
  border-radius: 999px;

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.26);

  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.dark .menu-social{
  background: rgba(10,15,13,.45);
  border-color: rgba(255,255,255,.12);
}

.social-btn{
  width: 46px;
  height: 46px;
  border-radius: 14px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.22);

  transition: transform 220ms var(--ease), background 220ms ease;
}

.dark .social-btn{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

.social-btn:hover{ transform: translateY(-2px); background: rgba(255,255,255,.45); }
.dark .social-btn:hover{ background: rgba(255,255,255,.10); }

.social-btn img{
  width: 22px;
  height: 22px;
  opacity: .9;
}

/* Theme control: anchored to bottom of rail */
.menu-theme{
  grid-column: 2;
  grid-row: 1;

  align-self: end;
  justify-self: stretch;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;
  border-radius: 999px;

  background: rgba(255,255,255,.60);
  border: 1px solid rgba(255,255,255,.28);

  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.dark .menu-theme{
  background: rgba(10,15,13,.50);
  border-color: rgba(255,255,255,.14);
}

.theme-seg{
  padding: 18px 28px;
  font-size: 1.02rem;
  font-weight: 950;
  letter-spacing: .08em;

  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  color: var(--text-dark);
  transition: transform 220ms var(--ease), background 220ms ease, color 220ms ease;
}

.dark .theme-seg{
  color: rgba(255,255,255,.90);
}

.theme-seg:hover{ transform: translateY(-1px); }

.theme-seg[aria-pressed="true"]{
  background: rgba(119,183,43,.22);
  color: var(--green-dark);
}

.dark .theme-seg[aria-pressed="true"]{
  color: var(--green-light);
}

/* -------------------------
   Watermark (optional)
------------------------- */

.menu-watermark{
  position: absolute;
  right: 34px;
  bottom: 34px;
  opacity: .08;
  pointer-events: none;
}

.menu-watermark img{
  width: 140px;
  height: auto;
}

/* Accessibility */
.menu-card:focus-visible{
  outline: 2px solid rgba(119,183,43,.55);
  outline-offset: 4px;
}

/* -------------------------
   Responsive tuning (desktop range)
------------------------- */

@media (max-width: 1320px){
  .menu-panel{ grid-template-columns: 1fr 320px; }
  .menu-grid{ grid-template-columns: repeat(3, minmax(240px, 1fr)); }
}

@media (max-width: 1100px){
  .menu-panel{ grid-template-columns: 1fr 300px; }
  .menu-grid{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}









/* =========================================================
   FACTS — Desktop civic briefing
========================================================= */

.facts{
  position: relative;
  padding: clamp(120px, 14vh, 180px) 6vw;
  background:
    radial-gradient(1200px 900px at 50% 0%, rgba(119,183,43,.08), transparent 60%),
    var(--bg);
}

/* ---------- Header ---------- */

.facts-head{
  max-width: 760px;
  margin-bottom: 72px;
}

.facts-kicker{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.dark .facts-kicker{
  color: var(--green-light);
}

.facts-title{
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.facts-sub{
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Grid ---------- */

.facts-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 36px;
}

#card-runoff{ grid-column: span 12; }
#card-ob{ grid-column: span 6; }
#card-council{ grid-column: span 6; }

@media (max-width: 960px){
  #card-ob,
  #card-council{
    grid-column: span 12;
  }
}

/* ---------- Glass card ---------- */

.glass-card{
  position: relative;
  padding: 36px;
  border-radius: 40px;

  /* keep your intent: don’t clip internal glow/labels */
  overflow: visible;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.94),
    rgba(255,255,255,.72)
  );

  backdrop-filter: blur(30px) saturate(1.1);
  -webkit-backdrop-filter: blur(30px) saturate(1.1);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 32px 110px rgba(0,0,0,.32);
}

.dark .glass-card{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.84),
    rgba(12,16,14,.56)
  );
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 32px 140px rgba(0,0,0,.65);
}

.card-top{
  margin-bottom: 32px;
}

.card-title{
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.card-note{
  font-size: .95rem;
  color: var(--muted);
}

/* ---------- Runoff ---------- */

.runoff-split{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.runoff-divider{
  width: 1px;
  height: 100%;
  background: rgba(0,0,0,.12);
}

.dark .runoff-divider{
  background: rgba(255,255,255,.18);
}

.runoff-name{
  font-weight: 700;
  margin-bottom: 6px;
}

.runoff-val{
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.runoff-unit{
  font-size: 1.2rem;
  margin-left: 4px;
}

.runoff-line{
  height: 12px;
  min-height: 12px; /* FIX: prevents rare collapse in some layout/paint cases */
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  overflow: hidden;
  position: relative; /* FIX: stable paint context */
}

.dark .runoff-line{
  background: rgba(255,255,255,.14);
}

.runoff-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 1400ms cubic-bezier(.2,.8,.2,1);

  display: block; /* FIX: ensures it paints consistently */
}

.runoff-fill.is-eff{
  background: linear-gradient(90deg, rgba(1,57,20,.35), rgba(1,57,20,.92));
}

.runoff-fill.is-def{
  background: linear-gradient(90deg, rgba(12,18,16,.35), rgba(12,18,16,.92));
}

.card-foot{
  margin-top: 32px;
}

.card-math{
  font-weight: 700;
  margin-bottom: 6px;
}

.card-micro{
  font-size: 1.4rem;
  color: var(--muted);
}

/* ---------- Rankings ---------- */

.rank{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rank-item{
  display: grid;
  gap: 10px;
}

.rank-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rank-name{
  font-weight: 700;
}

.rank-val{
  font-weight: 900;
}

/* FIX (critical): you were missing the bar track entirely */
.rank-bar{
  height: 12px;
  min-height: 12px; /* FIX: prevents collapse */
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  overflow: hidden;
  position: relative; /* FIX: stable paint context */
}

.dark .rank-bar{
  background: rgba(255,255,255,.14);
}

.rank-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 1200ms cubic-bezier(.2,.8,.2,1);

  display: block; /* FIX: ensures it paints consistently */
}

.rank-meta{
  font-size: .85rem;
  color: var(--muted);
}

.rank-item.is-ansbacher .rank-name{
  color: var(--green-dark);
}

.dark .rank-item.is-ansbacher .rank-name{
  color: var(--green-light);
}

.rank-more{
  margin-top: 28px;
  padding: 14px 22px;
  border-radius: 999px;

  background: rgba(119,183,43,.18);
  border: 1px solid rgba(119,183,43,.28);

  font-weight: 800;
  cursor: pointer;
}

/* ---------- Council stats ---------- */

.stats-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.stat-k{
  font-size: .9rem;
  color: var(--muted);
}

.stat-v{
  font-size: 1.7rem;
  font-weight: 900;
}

.stat-d{
  font-size: .9rem;
  color: var(--muted);
}

.source{
  margin-top: 28px;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Reveal ---------- */

.reveal{
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-in{
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 900ms cubic-bezier(.2,.8,.2,1);
}



















/* =========================================================
   PEOPLE — Desktop civic wall with embedded intro block
   - Intro block fills the “gap” left of the single card row
   - Intro slides in from the left
========================================================= */

.people{
  position: relative;
  padding: clamp(120px, 14vh, 180px) 6vw;
  background:
    radial-gradient(1200px 900px at 50% 0%, rgba(119,183,43,.06), transparent 60%),
    radial-gradient(900px 700px at 12% 30%, rgba(82,163,255,.05), transparent 55%),
    var(--bg);
}

/* We’ll move the header into the grid via JS */
.people-head{ display: none; }

/* ---------- Grid composition ---------- */

.people-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Row 1 */
.person-card[data-slot="featured"]{ grid-column: 1 / span 6; grid-row: 1; }
.person-card[data-slot="p1"]{ grid-column: 7 / span 6; grid-row: 1; }

/* Row 2 (gap solved) */
.people-intro{ grid-column: 1 / span 6; grid-row: 2; }
.person-card[data-slot="p2"]{ grid-column: 7 / span 6; grid-row: 2; }

/* Row 3 */
.person-card[data-slot="s1"]{ grid-column: 1 / span 4; grid-row: 3; }
.person-card[data-slot="s2"]{ grid-column: 5 / span 4; grid-row: 3; }
.person-card[data-slot="s3"]{ grid-column: 9 / span 4; grid-row: 3; }

/* ---------- Responsive behavior ---------- */

@media (max-width: 1200px){
  .people-intro{ grid-column: 1 / -1; grid-row: auto; }
  .person-card[data-slot="featured"]{ grid-column: 1 / -1; grid-row: auto; }
  .person-card[data-slot="p1"],
  .person-card[data-slot="p2"]{ grid-column: span 6; grid-row: auto; }
  .person-card[data-slot="s1"],
  .person-card[data-slot="s2"],
  .person-card[data-slot="s3"]{ grid-column: span 6; grid-row: auto; }
}

@media (max-width: 720px){
  .people-intro,
  .person-card{ grid-column: 1 / -1 !important; }
}

/* =========================================================
   Shared glass shell (cards + intro)
========================================================= */

.person-card,
.people-intro{
  position: relative;
  border-radius: 40px;
  overflow: hidden;

  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.72));
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 32px 110px rgba(0,0,0,.32);
}

.dark .person-card,
.dark .people-intro{
  background: linear-gradient(180deg, rgba(12,16,14,.84), rgba(12,16,14,.56));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 32px 140px rgba(0,0,0,.65);
}

/* Natural glass “bloom” */
.person-card::before,
.people-intro::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(700px 420px at 92% 18%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%);
  opacity: .95;
}

.dark .person-card::before,
.dark .people-intro::before{
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(700px 420px at 92% 18%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%);
}

/* =========================================================
   Intro block (header moved into grid)
========================================================= */

.people-intro{
  padding: 34px 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 240px;
}

.people-intro-kicker{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.dark .people-intro-kicker{ color: var(--green-light); }

.people-intro-title{
  font-size: clamp(2.0rem, 2.6vw, 2.6rem);
  line-height: 1.12;
  font-weight: 950;
}

.people-intro-sub{
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 52ch;
}

/* =========================================================
   Person cards
========================================================= */

.person-card{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 22px;
  min-height: 230px;
}

.person-card.is-featured{
  grid-template-columns: 210px 1fr;
  padding: 26px;
  min-height: 260px;
}

/* Portrait */
.person-media{
  border-radius: 26px;
  overflow: hidden;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
}

.dark .person-media{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.person-photo{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--pos, 50% 16%);
  transform: scale(1.02);
  filter: saturate(.98) contrast(1.06);
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}

/* Content */
.person-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.person-badge{
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(119,183,43,.18);
  border: 1px solid rgba(119,183,43,.28);
}

.person-name{
  font-weight: 950;
  letter-spacing: .01em;
  font-size: 1.22rem;
  line-height: 1.15;
}

.person-card.is-featured .person-name{
  font-size: 1.5rem;
}

.person-role{
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.35;
}

.person-focus{
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.08);
  font-weight: 850;
  line-height: 1.35;
  font-size: 1rem;
}

.dark .person-focus{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.person-bio{
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.45;
}

.person-note{
  font-size: .9rem;
  color: var(--muted);
  opacity: .78;
}

/* Hover (quiet) */
@media (hover:hover){
  .person-card,
  .people-intro{
    transition: transform 700ms cubic-bezier(.2,.8,.2,1), box-shadow 700ms cubic-bezier(.2,.8,.2,1);
  }

  .person-card:hover,
  .people-intro:hover{
    transform: translateY(-6px);
    box-shadow: 0 44px 140px rgba(0,0,0,.38);
  }

  .dark .person-card:hover,
  .dark .people-intro:hover{
    box-shadow: 0 44px 170px rgba(0,0,0,.72);
  }

  .person-card:hover .person-photo{
    transform: scale(1.06);
  }
}

/* =========================================================
   Reveal
========================================================= */

.person-card.reveal,
.people-intro.reveal{
  opacity: 0;
  transform: translateY(18px);
}

.people-intro.reveal{
  transform: translateX(-22px);
}

.person-card.is-in,
.people-intro.is-in{
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms ease,
    transform 1100ms cubic-bezier(.2,.8,.2,1);
}







/* =========================================================
   VISION — Seven pillars
========================================================= */

.vision{
  position: relative;
  padding: clamp(120px, 14vh, 180px) 6vw;
  background:
    radial-gradient(1200px 900px at 50% 0%, rgba(119,183,43,.06), transparent 60%),
    var(--bg);
}

/* ---------- Grid ---------- */

.vision-grid{
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1100px){
  .vision-grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Intro ---------- */

.vision-intro{
  position: sticky;
  top: 120px;

  padding: 36px;
  border-radius: 40px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.94),
    rgba(255,255,255,.72)
  );

  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 32px 110px rgba(0,0,0,.32);

  opacity: 0;
  transform: translateX(-24px);
}

.dark .vision-intro{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.84),
    rgba(12,16,14,.56)
  );
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 32px 140px rgba(0,0,0,.65);
}

.vision-intro.is-in{
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms ease,
    transform 1100ms cubic-bezier(.2,.8,.2,1);
}

.vision-kicker{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.dark .vision-kicker{ color: var(--green-light); }

.vision-title{
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.vision-sub{
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- List ---------- */

.vision-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 720px){
  .vision-list{
    grid-template-columns: 1fr;
  }
}

/* ---------- Item ---------- */

.vision-item{
  position: relative;
  padding: 28px 30px 32px;
  border-radius: 32px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.92),
    rgba(255,255,255,.70)
  );

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 24px 90px rgba(0,0,0,.26);

  display: flex;
  flex-direction: column;
  gap: 10px;

  opacity: 0;
  transform: translateY(18px);
}

.dark .vision-item{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.82),
    rgba(12,16,14,.58)
  );
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 28px 120px rgba(0,0,0,.60);
}

.vision-item.is-in{
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(.2,.8,.2,1);
}

/* ---------- Content ---------- */

.vision-num{
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--muted);
}

.vision-headline{
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
}

.vision-teaser{
  font-weight: 800;
  color: var(--green-dark);
}

.dark .vision-teaser{ color: var(--green-light); }

.vision-text{
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Hover (very subtle) ---------- */

@media (hover:hover){
  .vision-item{
    transition:
      transform 700ms cubic-bezier(.2,.8,.2,1),
      box-shadow 700ms cubic-bezier(.2,.8,.2,1);
  }

  .vision-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 36px 120px rgba(0,0,0,.34);
  }

  .dark .vision-item:hover{
    box-shadow: 0 36px 150px rgba(0,0,0,.72);
  }
}















/* =========================================================
   PODCASTS — Triptych focus rail (DESKTOP)
   Click 1: focus   |   Click 2: open modal
========================================================= */

.podcasts{
  position: relative;
  padding: clamp(140px, 16vh, 210px) 6vw;
  background:
    radial-gradient(1400px 900px at 50% 0%, rgba(119,183,43,.06), transparent 60%),
    var(--bg);
}

.podcasts-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

/* ---------- Intro (integrated, not “floating”) ---------- */

.podcasts-intro{
  padding: 38px 44px;
  border-radius: 44px;

  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.72));
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 32px 120px rgba(0,0,0,.30);

  opacity: 0;
  transform: translateY(18px);
}

.dark .podcasts-intro{
  background: linear-gradient(180deg, rgba(12,16,14,.84), rgba(12,16,14,.56));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 36px 150px rgba(0,0,0,.65);
}

.podcasts-intro.is-in{
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 1100ms cubic-bezier(.2,.8,.2,1);
}

.podcasts-kicker{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.dark .podcasts-kicker{ color: var(--green-light); }

.podcasts-title{
  font-size: clamp(2.3rem, 3.2vw, 3.1rem);
  line-height: 1.10;
  margin-bottom: 14px;
}

.podcasts-sub{
  font-size: 1.06rem;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   The rail (this is the “new” part)
========================================================= */

.podcasts-list{
  position: relative;
  display: flex;
  gap: 22px;
  align-items: stretch;

  height: clamp(520px, 62vh, 720px);
  padding: 18px;
  border-radius: 52px;

  background:
    radial-gradient(1200px 700px at 50% 30%, rgba(119,183,43,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.28));

  backdrop-filter: blur(26px) saturate(1.08);
  -webkit-backdrop-filter: blur(26px) saturate(1.08);

  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 44px 170px rgba(0,0,0,.30);

  overflow: hidden;

  opacity: 0;
  transform: translateY(18px);
}

.dark .podcasts-list{
  background:
    radial-gradient(1200px 700px at 50% 30%, rgba(119,183,43,.14), transparent 62%),
    linear-gradient(180deg, rgba(12,16,14,.62), rgba(12,16,14,.34));
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 54px 210px rgba(0,0,0,.70);
}

.podcasts-list.is-in{
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.2,.8,.2,1);
}

/* subtle “glass sheen” */
.podcasts-list::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(90deg, rgba(255,255,255,.08), transparent 22%, transparent 78%, rgba(255,255,255,.08));
  opacity: .55;
  pointer-events:none;
}
.dark .podcasts-list::before{ opacity: .35; }

/* =========================================================
   Cards: cinematic panels that morph
========================================================= */

.podcast-item{
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 40px;
  overflow: hidden;

  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.68));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 120px rgba(0,0,0,.26);

  transform: translateY(10px);
  opacity: 0;

  transition:
    flex 900ms cubic-bezier(.2,.8,.2,1),
    transform 900ms cubic-bezier(.2,.8,.2,1),
    box-shadow 700ms cubic-bezier(.2,.8,.2,1),
    filter 900ms cubic-bezier(.2,.8,.2,1),
    opacity 700ms ease;
}

.dark .podcast-item{
  background: linear-gradient(180deg, rgba(12,16,14,.82), rgba(12,16,14,.58));
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 40px 170px rgba(0,0,0,.70);
}

.podcast-item.is-in{
  opacity: 1;
  transform: none;
}

/* default: present but restrained */
.podcast-item{
  filter: saturate(.92) contrast(.98);
}

/* active: becomes the “main screen” */
.podcast-item.is-active{
  flex: 2.25;
  filter: none;
  box-shadow: 0 52px 220px rgba(0,0,0,.38);
}
.dark .podcast-item.is-active{
  box-shadow: 0 62px 260px rgba(0,0,0,.78);
}

/* non-active when something is active: slightly recede */
.podcasts-list.has-active .podcast-item:not(.is-active){
  flex: .92;
  filter: saturate(.82) contrast(.95);
  transform: translateY(6px);
  opacity: .92;
}

/* =========================================================
   Link + media
========================================================= */

.podcast-link{
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.podcast-media{
  position: absolute;
  inset: 0;
}

.podcast-thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
    object-position: 12% center; /* try 18%–30% */
  transform: scale(1.06);
  transition: transform 1200ms cubic-bezier(.2,.8,.2,1);
}

.podcast-item.is-active .podcast-thumb{
  transform: scale(1.14);
}

/* cinematic overlay */
.podcast-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(0,0,0,.10), rgba(0,0,0,.55)),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.62));
  pointer-events:none;
}

/* =========================================================
   Integrated text (part of the panel, not “placed”)
========================================================= */

.podcast-body{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;

  padding: 18px 18px 18px;
  border-radius: 28px;

  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);

  transform: translateY(10px);
  opacity: .0;

  transition: opacity 700ms ease, transform 900ms cubic-bezier(.2,.8,.2,1);
}

.dark .podcast-body{
  background: rgba(12,16,14,.24);
  border-color: rgba(255,255,255,.10);
}

/* active reveals full body */
.podcast-item.is-active .podcast-body{
  opacity: 1;
  transform: none;
}

/* inactive shows a compact “name chip” only */
.podcast-item:not(.is-active) .podcast-body{
  opacity: 1;
  transform: none;
  padding: 12px 14px;
  border-radius: 22px;
  max-width: 78%;
}

.podcast-item:not(.is-active) .podcast-topline,
.podcast-item:not(.is-active) .podcast-meta{
  display: none;
}

.podcast-topline{
  font-weight: 900;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-bottom: 10px;
}

.podcast-name{
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 8px;
}

.podcast-item:not(.is-active) .podcast-name{
  font-size: 1.05rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-meta{
  font-size: .95rem;
  color: rgba(255,255,255,.72);
  line-height: 1.4;
}

/* =========================================================
   Play control: “focus / commit” cue
========================================================= */

.podcast-play{
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;

  width: 60px;
  height: 60px;
  border-radius: 22px;

  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 22px 90px rgba(0,0,0,.35);

  display: grid;
  place-items: center;

  transition: transform 900ms cubic-bezier(.2,.8,.2,1), background 700ms ease;
}

.dark .podcast-play{
  background: rgba(12,16,14,.72);
  border-color: rgba(255,255,255,.14);
}

.podcast-play::before{
  content:"";
  width: 0;
  height: 0;
  border-left: 16px solid var(--green-dark);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.dark .podcast-play::before{ border-left-color: var(--green-light); }

.podcast-item.is-active .podcast-play{
  transform: scale(1.06);
}

/* =========================================================
   YouTube modal — proper full-screen glass (NO scroll lock)
========================================================= */

.yt-modal{
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
}

.yt-modal.is-open{
  display: block;
}

.yt-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}

.yt-modal-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(1100px, 92vw);
  border-radius: 30px;
  overflow: hidden;

  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.74));
  backdrop-filter: blur(26px) saturate(1.1);
  -webkit-backdrop-filter: blur(26px) saturate(1.1);

  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 50px 200px rgba(0,0,0,.60);
}

.dark .yt-modal-panel{
  background: linear-gradient(180deg, rgba(12,16,14,.86), rgba(12,16,14,.60));
  border-color: rgba(255,255,255,.12);
}

.yt-modal-close{
  position: absolute;
  right: 14px;
  top: 12px;
  width: 46px;
  height: 46px;
  border-radius: 16px;

  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.70);
  color: var(--text-dark);

  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  z-index: 2;
}

.dark .yt-modal-close{
  background: rgba(12,16,14,.62);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}

.yt-modal-frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.10);
}

.yt-modal-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.yt-modal-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 18px;
}

.yt-modal-title{
  margin: 0;
  font-weight: 900;
  color: var(--text-dark);
}
.dark .yt-modal-title{ color: rgba(255,255,255,.94); }

.yt-modal-open{
  font-weight: 900;
  text-decoration: none;
  color: var(--green-dark);
}
.dark .yt-modal-open{ color: var(--green-light); }

/* Focus affordance: pulse play button only when active */
.podcast-item.is-active .podcast-play{
  animation: podcast-play-pulse 1.8s ease-in-out infinite;
}

@keyframes podcast-play-pulse{
  0%{
    transform: scale(1);
    box-shadow: 0 18px 70px rgba(0,0,0,.32);
  }
  50%{
    transform: scale(1.08);
    box-shadow: 0 22px 90px rgba(0,0,0,.42);
  }
  100%{
    transform: scale(1);
    box-shadow: 0 18px 70px rgba(0,0,0,.32);
  }
}
/* Hide by default */
.podcast-play{
  opacity: 0;
  transform: scale(.92);
  transition: opacity 350ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
}

/* Show + pulse only when active */
.podcast-item.is-active .podcast-play{
  opacity: 1;
  transform: scale(1);
  animation: podcast-play-pulse 1.8s ease-in-out infinite;
}

/* Ensure inactive never animates */
.podcast-item:not(.is-active) .podcast-play{
  animation: none;
}





































/* =========================================================
   NEWS — Press ledger
========================================================= */

.news{
  position: relative;
  padding: clamp(120px, 14vh, 180px) 6vw;
  background:
    radial-gradient(1200px 900px at 50% 0%, rgba(119,183,43,.05), transparent 60%),
    var(--bg);
}

/* ---------- Grid ---------- */

.news-grid{
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1100px){
  .news-grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- Intro ---------- */

.news-intro{
  position: sticky;
  top: 120px;

  padding: 36px;
  border-radius: 40px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.94),
    rgba(255,255,255,.72)
  );

  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 32px 110px rgba(0,0,0,.32);

  opacity: 0;
  transform: translateX(-24px);
}

.dark .news-intro{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.84),
    rgba(12,16,14,.56)
  );
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 32px 140px rgba(0,0,0,.65);
}

.news-intro.is-in{
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms ease,
    transform 1100ms cubic-bezier(.2,.8,.2,1);
}

.news-kicker{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.dark .news-kicker{ color: var(--green-light); }

.news-title{
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.news-sub{
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Ledger ---------- */

.news-list{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Item ---------- */

.news-item{
  position: relative;
  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.92),
    rgba(255,255,255,.70)
  );

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 24px 90px rgba(0,0,0,.26);

  opacity: 0;
  transform: translateY(18px);
}

.dark .news-item{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.82),
    rgba(12,16,14,.58)
  );
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 28px 120px rgba(0,0,0,.60);
}

.news-item.is-in{
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(.2,.8,.2,1);
}

/* ---------- Link ---------- */

.news-link{
  display: block;
  padding: 26px 30px 28px;
  color: inherit;
  text-decoration: none;
}

/* ---------- Meta ---------- */

.news-top{
  margin-bottom: 10px;
}

.news-source{
  font-weight: 900;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Content ---------- */

.news-headline{
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
}

.news-excerpt{
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Footer ---------- */

.news-foot{
  margin-top: 14px;
  font-size: .85rem;
  color: var(--muted);
}

.news-action{
  font-weight: 800;
}

.news-domain{
  opacity: .7;
}

/* ---------- Hover ---------- */

@media (hover:hover){
  .news-item{
    transition:
      transform 700ms cubic-bezier(.2,.8,.2,1),
      box-shadow 700ms cubic-bezier(.2,.8,.2,1);
  }

  .news-item:hover{
    transform: translateY(-6px);
    box-shadow: 0 36px 120px rgba(0,0,0,.34);
  }

  .dark .news-item:hover{
    box-shadow: 0 36px 150px rgba(0,0,0,.72);
  }
}









/* =========================================================
   SUPPORT — Civic support console
========================================================= */

.support{
  position: relative;
  padding: clamp(120px, 14vh, 180px) 6vw;
  background:
    radial-gradient(1200px 900px at 50% 0%, rgba(119,183,43,.06), transparent 60%),
    radial-gradient(900px 700px at 12% 30%, rgba(82,163,255,.05), transparent 55%),
    var(--bg);
}

/* ---------- Header ---------- */

.support-head{
  max-width: 820px;
  margin-bottom: 72px;
}

.support-kicker{
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.dark .support-kicker{ color: var(--green-light); }

.support-title{
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.support-sub{
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- Grid ---------- */

.support-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: stretch;
}

.support-card{
  grid-column: span 6;
}

@media (max-width: 960px){
  .support-card{ grid-column: span 12; }
}

/* ---------- Card shell ---------- */

.support-card{
  position: relative;
  border-radius: 40px;
  overflow: hidden;

  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.72));
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 32px 110px rgba(0,0,0,.32);

  padding: 34px 34px 36px;

  opacity: 0;
  transform: translateY(18px);
}

.dark .support-card{
  background: linear-gradient(180deg, rgba(12,16,14,.84), rgba(12,16,14,.56));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 32px 140px rgba(0,0,0,.65);
}

/* Natural glass bloom */
.support-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(700px 420px at 92% 18%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%);
  opacity: .95;
}

.dark .support-card::before{
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(700px 420px at 92% 18%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%);
}

/* Reveal */
.support-card.is-in{
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 1100ms cubic-bezier(.2,.8,.2,1);
}

/* ---------- Typography ---------- */

.support-card-title{
  font-size: 1.35rem;
  font-weight: 950;
  margin-bottom: 16px;
  letter-spacing: .01em;
}

.support-address{
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.support-contact{
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

.support-contact a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.14);
}

.dark .support-contact a{
  border-bottom-color: rgba(255,255,255,.18);
}

.support-note{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;

  background: rgba(119,183,43,.14);
  border: 1px solid rgba(119,183,43,.22);

  font-weight: 800;
  line-height: 1.35;
}

/* ---------- Donation block ---------- */

.support-intro{
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.donation-summary{
  padding: 16px 16px;
  border-radius: 22px;

  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.08);

  margin-bottom: 18px;
}

.dark .donation-summary{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.donation-summary p{
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--muted);
}

.dark .donation-summary p{
  border-bottom-color: rgba(255,255,255,.10);
}

.donation-summary p:last-child{
  border-bottom: 0;
}

/* ---------- Toggle ---------- */

.donation-toggle{
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;

  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.12);

  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.dark .donation-toggle{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

/* ---------- Details (animated) ---------- */

.donation-details{
  margin-top: 16px;
  padding: 18px 18px;
  border-radius: 22px;

  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);

  color: var(--muted);
  line-height: 1.55;

  overflow: clip;
}

.dark .donation-details{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}

.donation-details ul{
  margin: 10px 0 14px 18px;
  padding: 0;
}

.donation-details a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.14);
}

.dark .donation-details a{
  border-bottom-color: rgba(255,255,255,.18);
}

/* ---------- Copy actions (injected by JS) ---------- */

.support-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.support-copy{
  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.12);

  font-weight: 900;
  font-size: .9rem;
  cursor: pointer;
}

.dark .support-copy{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.support-copy[data-state="ok"]{
  background: rgba(119,183,43,.18);
  border-color: rgba(119,183,43,.28);
}

/* Hover (quiet lift) */
@media (hover:hover){
  .support-card{
    transition: transform 700ms cubic-bezier(.2,.8,.2,1), box-shadow 700ms cubic-bezier(.2,.8,.2,1);
  }

  .support-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 44px 140px rgba(0,0,0,.38);
  }

  .dark .support-card:hover{
    box-shadow: 0 44px 170px rgba(0,0,0,.72);
  }
}
/* =========================================================
   SUPPORT — Dark mode text corrections
========================================================= */

.dark .support-card{
  color: rgba(255,255,255,.92);
}

.dark .support-card-title{
  color: rgba(255,255,255,.96);
}

.dark .support-address,
.dark .support-contact,
.dark .support-intro,
.dark .support-sub,
.dark .donation-summary p,
.dark .donation-details,
.dark .donation-details li,
.dark .donation-details p{
  color: rgba(255,255,255,.82);
}

/* Muted text tuned for dark glass */
.dark .support-card .support-note,
.dark .support-card .person-note,
.dark .support-card .news-domain{
  color: rgba(255,255,255,.70);
}

/* Links stay readable */
.dark .support-card a{
  color: rgba(255,255,255,.90);
  border-bottom-color: rgba(255,255,255,.28);
}

/* Green accents adjusted for contrast */
.dark .support-kicker{
  color: var(--green-light);
}

.dark .support-note{
  background: rgba(119,183,43,.22);
  border-color: rgba(119,183,43,.34);
  color: rgba(255,255,255,.96);
}

/* Donation summary glass */
.dark .donation-summary{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

/* Copy buttons */
.dark .support-copy{
  color: rgba(255,255,255,.92);
}
/* =========================================================
   SUPPORT — Donation toggle (dark mode)
========================================================= */

.dark .donation-toggle{
  color: rgba(255,255,255,.92);

  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

/* Hover / focus refinement */
@media (hover:hover){
  .dark .donation-toggle:hover{
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.28);
  }
}

/* Expanded state (optional but recommended) */
.dark .donation-toggle[aria-expanded="true"]{
  background: rgba(119,183,43,.22);
  border-color: rgba(119,183,43,.34);
  color: rgba(255,255,255,.96);
}































/* =========================================================
   FOOTER — Glass baseplate (stronger presence)
========================================================= */

.site-footer{
  position: relative;
  padding: clamp(96px, 10vh, 140px) 6vw clamp(56px, 6vh, 84px);
  background:
    radial-gradient(1200px 700px at 50% 0%, rgba(119,183,43,.08), transparent 60%),
    radial-gradient(900px 600px at 10% 40%, rgba(82,163,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.08)),
    var(--bg);
}

/* Big glass chassis */
.footer-inner{
  position: relative;
  border-radius: 48px;
  padding: clamp(34px, 3.2vw, 52px);
  overflow: hidden;

  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.74));
  backdrop-filter: blur(30px) saturate(1.12);
  -webkit-backdrop-filter: blur(30px) saturate(1.12);

  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 44px 160px rgba(0,0,0,.34);

  display: grid;
  grid-template-columns: 4fr 3fr 2fr 2fr;
  gap: 40px;
  align-items: start;
}

/* Natural glass bloom */
.footer-inner::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(700px 420px at 92% 18%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%);
  opacity: .95;
}

/* Dark mode chassis */
.dark .footer-inner{
  background: linear-gradient(180deg, rgba(12,16,14,.90), rgba(12,16,14,.62));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 54px 190px rgba(0,0,0,.72);
}

.dark .footer-inner::before{
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(700px 420px at 92% 18%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%);
}

/* Responsive */
@media (max-width: 960px){
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 26px;
    border-radius: 40px;
  }
}

/* ---------- Brand ---------- */

.footer-brand{
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-logo{
  width: 64px;
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.18));
}

.footer-brand-text{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.party-name{
  font-weight: 980;
  font-size: 1.25rem;
  letter-spacing: .01em;
}

.footer-tagline{
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- Contact ---------- */

.footer-contact{
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-contact address{
  font-style: normal;
  margin-bottom: 10px;
}

.footer-contact a{
  display: block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.14);
  padding-bottom: 2px;
}

.dark .footer-contact a{
  border-bottom-color: rgba(255,255,255,.22);
}

/* ---------- Links (make them feel like controls, not plain text) ---------- */

.footer-links{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link{
  width: fit-content;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.10);
  padding: 10px 14px;
  border-radius: 999px;

  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  color: inherit;
}

.dark .footer-link{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

@media (hover:hover){
  .footer-link{
    transition: transform 600ms cubic-bezier(.2,.8,.2,1), background 300ms ease, border-color 300ms ease;
  }
  .footer-link:hover{
    transform: translateY(-2px);
    background: rgba(119,183,43,.14);
    border-color: rgba(119,183,43,.22);
  }
  .dark .footer-link:hover{
    background: rgba(119,183,43,.18);
    border-color: rgba(119,183,43,.28);
  }
}

/* ---------- Bottom bar (copyright feels anchored) ---------- */

.footer-trade{
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 18px;

  border-top: 1px solid rgba(0,0,0,.08);
  color: var(--muted);
  font-size: .9rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.dark .footer-trade{
  border-top-color: rgba(255,255,255,.12);
}

/* Dark mode text baseline */
.dark .site-footer{
  color: rgba(255,255,255,.92);
}

.dark .footer-tagline,
.dark .footer-contact,
.dark .footer-trade{
  color: rgba(255,255,255,.74);
}

/* =========================================================
   LEGAL PANELS — Civic document vault
========================================================= */

.legal-backdrop{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 50% 0%, rgba(0,0,0,.35), rgba(0,0,0,.65));
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
  z-index: 1000;
}

.legal-backdrop.is-active{
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Panel shell ---------- */

.legal-panel{
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1001;
}

.legal-panel[aria-hidden="false"]{
  pointer-events: auto;
}

/* ---------- Inner document ---------- */

.legal-panel-inner{
  width: min(980px, 94vw);
  max-height: 88vh;
  overflow: auto;

  border-radius: 48px;
  padding: clamp(36px, 4vw, 56px);

  background:
    linear-gradient(180deg,
      rgba(255,255,255,.98),
      rgba(255,255,255,.92)
    );

  backdrop-filter: blur(32px) saturate(1.1);
  -webkit-backdrop-filter: blur(32px) saturate(1.1);

  border: 1px solid rgba(255,255,255,.38);
  box-shadow:
    0 60px 220px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.6);

  transform: translateY(32px) scale(.98);
  opacity: 0;

  transition:
    transform 520ms cubic-bezier(.2,.8,.2,1),
    opacity 360ms ease;
}

.dark .legal-panel-inner{
  background:
    linear-gradient(180deg,
      rgba(12,16,14,.96),
      rgba(12,16,14,.90)
    );
  border-color: rgba(255,255,255,.16);
  box-shadow:
    0 70px 260px rgba(0,0,0,.85),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.legal-panel[aria-hidden="false"] .legal-panel-inner{
  transform: none;
  opacity: 1;
}

/* ---------- Header ---------- */

.legal-panel-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 18px;

  border-bottom: 1px solid rgba(0,0,0,.08);
}

.dark .legal-panel-head{
  border-bottom-color: rgba(255,255,255,.14);
}

.legal-panel-head h2{
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 980;
  letter-spacing: .01em;
}

.legal-close{
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  width: 42px;
  height: 42px;

  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.dark .legal-close{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}

/* ---------- Content typography ---------- */

.legal-panel-content{
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(0,0,0,.82);
}

.dark .legal-panel-content{
  color: rgba(255,255,255,.82);
}

.legal-panel-content h2{
  font-size: 1.6rem;
  font-weight: 950;
  margin: 36px 0 14px;
}

.legal-panel-content h3{
  font-size: 1.2rem;
  font-weight: 900;
  margin: 28px 0 10px;
}

.legal-panel-content h4{
  font-size: 1.05rem;
  font-weight: 850;
  margin: 22px 0 8px;
}

.legal-panel-content p{
  margin: 0 0 14px;
}

.legal-panel-content ul{
  margin: 10px 0 18px 20px;
}

.legal-panel-content li{
  margin-bottom: 6px;
}

/* ---------- Links ---------- */

.legal-panel-content a{
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dark .legal-panel-content a{
  color: var(--green-light);
}

/* ---------- Footer meta ---------- */

.legal-panel-content footer{
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: .9rem;
  color: var(--muted);
}

.dark .legal-panel-content footer{
  border-top-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.65);
}

/* =========================================================
   LEGAL PANELS — Glass-safe scrollbar (refined)
========================================================= */

.legal-panel-inner{
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.28) transparent;
}

.legal-panel-inner::-webkit-scrollbar{
  width: 8px;
}

.legal-panel-inner::-webkit-scrollbar-track{
  background: transparent;
  margin: 24px 0;
}

.legal-panel-inner::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.32);
  border-radius: 999px;
}

.dark .legal-panel-inner{
  scrollbar-color: rgba(255,255,255,.28) transparent;
}

.dark .legal-panel-inner::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.28);
}




















/* =========================================================
   GDPR BANNER
========================================================= */

.gdpr-banner{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  pointer-events: none;
  z-index: 1100;
}

.gdpr-banner.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition: opacity 300ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
}

.gdpr-banner-inner{
  max-width: 720px;
  padding: 22px 26px;
  border-radius: 28px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.96),
    rgba(255,255,255,.88)
  );

  backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 32px 120px rgba(0,0,0,.45);
}

.dark .gdpr-banner-inner{
  background: linear-gradient(
    180deg,
    rgba(12,16,14,.94),
    rgba(12,16,14,.86)
  );
  border-color: rgba(255,255,255,.14);
}

.gdpr-text{
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.gdpr-actions{
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.gdpr-btn{
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.12);
}

.gdpr-btn-primary{
  background: rgba(119,183,43,.22);
  border-color: rgba(119,183,43,.34);
}

.gdpr-btn-secondary{
  background: rgba(0,0,0,.06);
}

.dark .gdpr-btn{
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.18);
}

.dark .gdpr-btn-secondary{
  background: rgba(255,255,255,.08);
}
/* =========================================================
   PRIVACY PANEL — Disabled on desktop
========================================================= */

#panel-privacy{
  display: none !important;
}
/* =========================================================
   GDPR — Inline legal link styling
========================================================= */

.gdpr-link{
  background: none;
  border: none;
  padding: 0;
  margin: 0;

  font: inherit;
  font-weight: 700;
  color: var(--green-dark);

  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dark .gdpr-link{
  color: var(--green-light);
}

/* Hover refinement */
@media (hover:hover){
  .gdpr-link:hover{
    text-decoration-thickness: 2px;
  }
}








/* =========================================================
   DESKTOP — CANDIDATES MODAL (Overlay details on image)
   Correct light/dark mode text contrast
========================================================= */

@media (min-width: 1024px){

  /* ---------- Overlay ---------- */

  .candidates-panel{
    position: fixed;
    inset: 0;
    z-index: 1200;

    display: none;
    place-items: center;

    padding: 5vh 4vw;

    background: rgba(0,0,0,.48);
    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);

    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
  }

  .candidates-panel.is-open{
    display: grid;
    opacity: 1;
    pointer-events: auto;
  }

  /* ---------- Modal shell ---------- */

  .candidates-panel-inner{
    width: min(1560px, 94vw);
    height: min(86vh, 980px);

    display: grid;
    grid-template-rows: auto 1fr;

    border-radius: 48px;
    overflow: hidden;

    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.72));
    border: 1px solid rgba(255,255,255,.34);
    box-shadow: 0 48px 190px rgba(0,0,0,.62);

    backdrop-filter: blur(36px) saturate(1.15);
    -webkit-backdrop-filter: blur(36px) saturate(1.15);
  }

  .dark .candidates-panel-inner{
    background: linear-gradient(180deg, rgba(12,16,14,.84), rgba(12,16,14,.56));
    border-color: rgba(255,255,255,.14);
  }

  /* ---------- Header ---------- */

  .candidates-header{
    position: relative;
    display: flex;
    justify-content: center;
    padding: 18px 22px;
  }

  .candidates-header h2{
    padding: 12px 34px;
    font-size: 1.1rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;

    color: var(--text-dark);

    background: rgba(255,255,255,.38);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 18px 60px rgba(0,0,0,.18);
  }

  .dark .candidates-header h2{
    color: rgba(255,255,255,.92);
    background: rgba(10,15,13,.40);
    border-color: rgba(255,255,255,.12);
  }

  .candidates-close{
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);

    width: 44px;
    height: 44px;
    border-radius: 999px;

    display: grid;
    place-items: center;

    font-size: 22px;
    font-weight: 900;

    color: var(--text-dark);

    background: rgba(255,255,255,.38);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 18px 60px rgba(0,0,0,.18);
    cursor: pointer;
  }

  .dark .candidates-close{
    color: rgba(255,255,255,.92);
    background: rgba(10,15,13,.40);
    border-color: rgba(255,255,255,.12);
  }

  /* ---------- Grid ---------- */

  .candidates-list{
    padding: 26px;
    overflow-y: auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 22px;

    scrollbar-width: none;
  }

  .candidates-list::-webkit-scrollbar{
    width: 0;
  }

  /* ---------- Card ---------- */

  .candidate-card{
    position: relative;
    height: 520px;

    border-radius: 34px;
    overflow: hidden;

    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 26px 90px rgba(0,0,0,.22);

    backdrop-filter: blur(18px) saturate(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.05);
  }

  /* ---------- Image ---------- */

  .candidate-media{
    all: unset;
    cursor: pointer;
    position: absolute;
    inset: 0;
  }

  .candidate-photo{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.04);
  }

  /* ---------- Head (LIGHT MODE: light glass + black text) ---------- */

  .candidate-head{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 18px 18px 16px;

    background:
      linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.88));

    color: var(--text-dark);
    z-index: 2;
  }

  .candidate-name{
    font-size: 1.25rem;
    font-weight: 950;
    color: var(--text-dark);
  }

  .candidate-role{
    font-size: .95rem;
    color: var(--muted);
    opacity: 1;
  }

  /* ---------- DARK MODE head ---------- */

  .dark .candidate-head{
    background:
      linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65));
    color: rgba(255,255,255,.94);
  }

  .dark .candidate-name,
  .dark .candidate-role{
    color: rgba(255,255,255,.94);
  }

  .dark .candidate-role{
    opacity: .85;
  }

  /* ---------- Details overlay (ALWAYS white text) ---------- */

  .candidate-details{
    position: absolute;
    inset: 0;

    padding: 26px;

    background: rgba(0,0,0,.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    color: rgba(255,255,255,.94);

    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;

    overflow-y: auto;

    transition:
      opacity 260ms ease,
      transform 260ms ease;
  }

  .candidate-details *{
    color: rgba(255,255,255,.94);
  }

  .candidate-card.is-open .candidate-details{
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .candidate-details p{
    margin-top: 12px;
    line-height: 1.5;
  }

  .candidate-details::-webkit-scrollbar{
    width: 0;
  }

  /* ---------- Interaction hint ---------- */

  .candidate-media::after{
    content: "Mehr anzeigen";
    position: absolute;
    right: 14px;
    top: 14px;

    padding: 7px 14px;
    border-radius: 999px;

    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;

    color: rgba(255,255,255,.94);
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.18);

    opacity: .85;
    pointer-events: none;
  }

  .candidate-card.is-open .candidate-media::after{
    opacity: 0;
  }
}























/* =====================================================
   VISION MODAL – OVERLAY
===================================================== */

.vision-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;

  display: grid;
  place-items: center;

  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);

  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}

.vision-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   MODAL SHELL
===================================================== */

.vision-modal-inner {
  width: min(980px, 86vw);
  max-height: 86vh;

  display: grid;
  grid-template-rows: auto 1fr;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.94),
    rgba(255,255,255,0.82)
  );
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: var(--shadow-strong);

  backdrop-filter: blur(30px) saturate(1.1);
  -webkit-backdrop-filter: blur(30px) saturate(1.1);

  overflow: hidden;
}

.dark .vision-modal-inner {
  background: linear-gradient(
    180deg,
    rgba(10,15,13,0.9),
    rgba(10,15,13,0.7)
  );
  border-color: rgba(255,255,255,0.14);
}

/* =====================================================
   MODAL HEADER
===================================================== */

.vision-modal-header {
  position: relative;
  padding: 28px 36px 24px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-modal-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-align: center;
}

/* Close Button */
.vision-modal-close {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  font-size: 22px;
  font-weight: 900;
  line-height: 1;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: var(--shadow-soft);

  color: var(--text-dark);
  cursor: pointer;
}

.dark .vision-modal-close {
  background: rgba(10,15,13,0.55);
  border-color: rgba(255,255,255,0.14);
  color: #ffffff;
}

/* =====================================================
   MODAL BODY
===================================================== */

.vision-modal-body {
  padding: 34px 42px 42px;
  overflow-y: auto;

  scrollbar-width: none;
}

.vision-modal-body::-webkit-scrollbar {
  width: 0;
}

/* =====================================================
   DETAIL SECTIONS – RHYTHMUS STATT TRENNER
===================================================== */

.vision-detail-section {
  margin-bottom: 56px;
  padding-bottom: 25px;
} 

.vision-detail-section:last-child {
  margin-bottom: 0;
}

.vision-detail-section h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.vision-detail-section h5 {
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 30px 0 12px;
  color: var(--muted);
}

.vision-detail-section p {
  font-size: .95rem;
  line-height: 1.7;
  max-width: 72ch;
  margin-bottom: 14px;
}

/* =====================================================
   BULLET LISTS – LUFTIG & GEFÜHRT
===================================================== */

.vision-detail-section ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;

  display: grid;
  gap: 12px;
}

.vision-detail-section li {
  position: relative;
  padding-left: 24px;

  font-size: .95rem;
  line-height: 1.6;
}

.vision-detail-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;

  width: 8px;
  height: 8px;
  border-radius: 999px;

  background: var(--green-light);
  box-shadow: 0 0 0 3px rgba(119,183,43,0.18);
}

.dark .vision-detail-section li::before {
  box-shadow: 0 0 0 3px rgba(119,183,43,0.28);
}

/* =====================================================
   EMPHASIS
===================================================== */

.vision-detail-section em {
  font-style: normal;
  font-weight: 700;
  color: var(--green-dark);
}

.dark .vision-detail-section em {
  color: var(--green-light);
}

/* =====================================================
   "MEHR DETAILS" BUTTON (CARD)
===================================================== */

.vision-more {
  margin-top: 20px;

  padding: 10px 20px;
  border-radius: 999px;

  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;

  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: var(--shadow-soft);

  color: var(--text-dark);
  cursor: pointer;
}

.dark .vision-more {
  background: rgba(10,15,13,0.55);
  border-color: rgba(255,255,255,0.14);
  color: #ffffff;
}
/* =========================================================
   VISION CARDS — Bullet points (refined, compact)
========================================================= */

.vision-item ul{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;

  display: grid;
  gap: 8px;
}

.vision-item li{
  position: relative;
  padding-left: 18px;

  font-size: .9rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Bullet dot */
.vision-item li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .55em;

  width: 6px;
  height: 6px;
  border-radius: 999px;

  background: var(--green-light);
  box-shadow: 0 0 0 2px rgba(119,183,43,.18);
}

/* Dark mode tuning */
.dark .vision-item li{
  color: rgba(255,255,255,.78);
}

.dark .vision-item li::before{
  box-shadow: 0 0 0 2px rgba(119,183,43,.28);
}
