/* ==========================================================================
   SPOKO Theme - Main Stylesheet
   Společná Kouřim - Pro spokojenou budoucnost
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #3dccd5;
  --color-primary-dark: #2eb8c0;
  --color-primary-light: #5dd8df;
  --color-accent: #3dccd5;
  --color-gradient-start: #5cc8c0;
  --color-gradient-mid: #2a98c4;
  --color-gradient-end: #0a5a8a;
  --color-white: #ffffff;
  --color-text: #1a2a3a;
  --color-text-light: #5a6a7a;
  --color-bg: #f8fafb;
  --color-bg-alt: #eef3f7;
  --color-border: #dde5ec;

  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;

  --header-height: 72px;
  --container-width: 1200px;
  --section-padding: 100px;
  --border-radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(61, 204, 213, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(46, 184, 192, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-white);
}

.site-logo:hover {
  color: var(--color-white);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

.logo-title {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: relative;
  transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  left: 0;
  transition: transform var(--transition);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.section--hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  padding: 0;
}

/* Mobile-first: banner is the structural in-flow element, sized at
   100% width with natural height; text overlays sit absolutely on
   top, sharing the banner's aspect ratio. The section grows to
   whatever the banner needs (taller than viewport is fine). */
.hero-stage {
  position: relative;
  margin-top: 0;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-stage {
    margin-top: 5px;
  }

  .hero-layer--do-cela,
  .hero-layer--tak-jo {
    top: 17px !important;
  }
}

.hero-layer {
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-layer--banner {
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
}

.hero-layer--do-cela,
.hero-layer--tak-jo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: unset;
  object-position: center top;
}

.hero-layer--do-cela {
  z-index: 2;
  opacity: 0;
  transform: translateX(-60%);
  animation: hero-slide-from-left 900ms cubic-bezier(0.22, 1, 0.36, 1) 600ms
    forwards;
}

.hero-layer--tak-jo {
  z-index: 3;
  opacity: 0;
  transform: translateX(60%);
  animation: hero-slide-from-right 900ms cubic-bezier(0.22, 1, 0.36, 1) 1400ms
    forwards;
}

/* While the intro overlay is up, pause both slide-in animations so the
   user doesn't miss the reveal happening behind the curtain. The CSS
   animation is held at 0% (initial keyframe state = invisible + offset),
   then resumes once .spoko-intro-active is removed in dismiss(). */
body.spoko-intro-active .hero-layer--do-cela,
body.spoko-intro-active .hero-layer--tak-jo {
  animation-play-state: paused;
}

/* >1024px: split into two halves. Banner sits at width 50% in the
   right column with its top 1/3 cropped (object-fit: cover anchored
   bottom) so the hero is shorter than the banner's natural height.
   Text overlays span the left 50% at natural height; section overflow
   clips whatever extends below the banner. */
@media (min-width: 1025px) {
  .hero-layer--banner {
    margin-left: 50%;
    width: 50%;
    /* Visible aspect after cropping top 1/6: (2.5/3) × 3873/2048 */
    height: calc(50vw * 3873 / 2048 * 2.5 / 3);
    object-fit: cover;
    object-position: center bottom;
  }

  .hero-layer--do-cela,
  .hero-layer--tak-jo {
    width: 50%;
  }

  .hero-layer--do-cela {
    top: 10%;
  }

  .hero-layer--tak-jo {
    top: 15%;
  }
}

@keyframes hero-slide-from-right {
  from {
    opacity: 0;
    transform: translateX(60%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-slide-from-left {
  from {
    opacity: 0;
    transform: translateX(-60%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-layer--do-cela,
  .hero-layer--tak-jo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Hero floating word cloud (desktop-only, bottom-left) ── */
.hero-cloud {
  display: none;
}

@media (min-width: 1025px) {
  .hero-cloud {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 6%;
    top: 50%;
    width: 44%;
    height: 50%;
    z-index: 4;
    pointer-events: none;
    padding-top: 8px;
  }

  .hero-cloud__head {
    margin-bottom: 18px;
    padding-left: 12px;
  }

  .hero-cloud__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(26, 42, 58, 0.5);
    margin-bottom: 10px;
  }

  .hero-cloud__title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.02em;
  }

  .hero-cloud__anchor {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent,
      #000 18%,
      #000 82%,
      transparent
    );
    mask-image: linear-gradient(
      to bottom,
      transparent,
      #000 18%,
      #000 82%,
      transparent
    );
  }

  .floating-word {
    position: absolute;
    white-space: nowrap;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    color: var(--color-text);
    opacity: 0.15;
    filter: blur(2px);
    transform: translateX(-50%);
    transition:
      top 0.6s cubic-bezier(0.2, 0, 0.2, 1),
      opacity 0.6s cubic-bezier(0.2, 0, 0.2, 1),
      filter 0.6s cubic-bezier(0.2, 0, 0.2, 1),
      font-size 0.6s cubic-bezier(0.2, 0, 0.2, 1),
      color 0.6s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: top, opacity, filter, font-size, color;
    pointer-events: none;
  }

  .floating-word.is-medium {
    font-size: 1.35rem;
    opacity: 0.45;
    filter: blur(1px);
  }

  .floating-word.is-active {
    color: var(--color-primary);
    font-size: 2.25rem;
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    text-shadow: 0 6px 20px rgba(61, 204, 213, 0.25);
  }

  .floating-word.is-inactive {
    opacity: 0.12;
    filter: blur(3px);
    z-index: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-word {
    transition: none !important;
  }
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-cta:hover {
  background: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- Section Common ---------- */
.section {
  padding: var(--section-padding) 0;
}

/* ---------- Intro Section (below hero) ---------- */
.section--intro {
  background: var(--color-bg);
  padding: 80px 0;
}

.intro-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid #f1f4f7;
  border-radius: 40px;
  padding: 56px 56px 40px;
  box-shadow: 0 30px 70px -30px rgba(10, 90, 138, 0.25);
  overflow: hidden;
}

.intro-card__quote {
  position: relative;
  margin: 0 0 48px;
  padding: 0 8px;
}

.intro-card__quote-text {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: #475569;
}

.intro-card__quote-mark {
  position: absolute;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.2;
  pointer-events: none;
}

.intro-card__quote-mark--open {
  top: -70px;
  left: -26px;
}

.intro-card__quote-mark--close {
  bottom: -20px;
  right: -8px;
}

.intro-card__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.intro-card__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 18px;
  font-weight: 700;
  font-size: var(--font-size-base);
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease;
}

.intro-card__btn:hover {
  transform: translateY(-3px);
}

.intro-card__btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 14px 30px -10px rgba(61, 204, 213, 0.45);
}

.intro-card__btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 20px 40px -12px rgba(61, 204, 213, 0.6);
}

.intro-card__btn--secondary {
  background: var(--color-white);
  color: #475569;
  border-color: #f1f4f7;
  box-shadow: 0 6px 16px -8px rgba(10, 90, 138, 0.15);
}

.intro-card__btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-white);
}

.intro-card__btn-content {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.intro-card__btn--secondary .intro-card__btn-icon {
  color: var(--color-primary);
}

.intro-card__btn-arrow {
  flex-shrink: 0;
  opacity: 0.35;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.intro-card__btn:hover .intro-card__btn-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.intro-card__social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid #f1f4f7;
}

.intro-card__social-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
}

.intro-card__social-list {
  display: flex;
  gap: 10px;
}

.intro-card__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f6f9fb;
  color: #94a3b8;
  box-shadow: 0 2px 6px rgba(10, 90, 138, 0.05);
  transition:
    background-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.intro-card__social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .section--intro {
    padding: 56px 0;
  }

  .intro-card {
    padding: 36px 24px 28px;
    border-radius: 28px;
  }

  .intro-card__quote {
    margin-bottom: 32px;
  }

  .intro-card__quote-mark {
    font-size: 3rem;
  }

  .intro-card__quote-mark--open {
    top: -50px;
    left: -4px;
  }

  .intro-card__quote-mark--close {
    bottom: -14px;
    right: 0;
  }

  .intro-card__btn {
    padding: 16px 18px;
    font-size: var(--font-size-sm);
    border-radius: 14px;
  }

  .intro-card__btn-content {
    gap: 12px;
  }

  .intro-card__social {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------- About Section ---------- */
.section--about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text .lead {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-image-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-primary);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  transition: all var(--transition);
}

.about-image-link::after {
  content: "→";
  transition: transform var(--transition);
}

.about-image-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 204, 213, 0.3);
}

.about-image-link:hover::after {
  transform: translateX(4px);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--border-radius);
  background: var(--color-bg);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: var(--color-white);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.value-card p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ---------- Program Section ---------- */
.section--program {
  background: var(--color-bg);
}

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

.program-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--border-radius);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary-light);
}

.program-number {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.program-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.program-card p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* ---------- Team Section ---------- */
.section--team {
  background: var(--color-text);
  color: var(--color-white);
  padding: 80px 0 60px;
}

/* Team intro heading */
.team-intro {
  padding-bottom: 48px;
}

.team-heading {
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
}

.team-heading-big {
  display: block;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: -0.02em;
}

.team-heading-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.team-heading-desc {
  max-width: 500px;
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 32px;
  flex-shrink: 0;
}

/* Big section heading entrance animation:
   1st line slides in from the left, 2nd line rises from the bottom (delayed),
   description fades in last. Parent wrapper's own fade-up is neutralised
   so the inner cascade isn't gated by parent opacity. */
.team-intro[data-animate] {
  opacity: 1;
  transform: none;
  transition: none;
}

.team-intro[data-animate] .team-heading-big,
.team-intro[data-animate] .team-heading-desc {
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.team-intro[data-animate] .team-heading > .team-heading-big {
  transform: translateX(-80px);
}

.team-intro[data-animate] .team-heading-row .team-heading-big {
  transform: translateY(40px);
  transition-delay: 0.25s;
}

.team-intro[data-animate] .team-heading-desc {
  transform: translateY(20px);
  transition-delay: 0.45s;
}

.team-intro[data-animate].is-visible .team-heading-big,
.team-intro[data-animate].is-visible .team-heading-desc {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .team-intro[data-animate] .team-heading-big,
  .team-intro[data-animate] .team-heading-desc {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Team cards grid */
.team-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.team-card,
.news-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card--hidden {
  display: none;
}

.team-grid.is-expanded .team-card--hidden {
  display: flex;
}

.team-card-photo,
.news-card-photo {
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-photo::after,
.news-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 116, 185, 0.6) 0%,
    rgba(10, 116, 185, 0) 50%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-photo,
.news-card:hover .news-card-photo {
  transform: scale(1.03);
}

.team-card:hover .team-card-photo::after,
.news-card:hover .news-card-photo::after {
  opacity: 1;
}

/* Ballot number badge in top-right of the candidate photo */
.team-card-number {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(10, 116, 185, 0.35);
  letter-spacing: 0.02em;
  pointer-events: none;
}

@media (min-width: 768px) {
  .team-card-number {
    top: 14px;
    right: 14px;
    min-width: 40px;
    height: 40px;
    font-size: 1.0625rem;
  }
}

/* Hover CTA over team-card / news-card photo */
.team-card-cta,
.news-card-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-text);
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

.team-card-cta::after,
.news-card-cta::after {
  content: "→";
  transition: transform var(--transition);
}

.team-card:hover .team-card-cta,
.team-card:focus-within .team-card-cta,
.news-card:hover .news-card-cta,
.news-card:focus-within .news-card-cta {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.team-card-cta:hover,
.news-card-cta:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.team-card-cta:hover::after,
.news-card-cta:hover::after {
  transform: translateX(3px);
}

@media (hover: none) {
  .team-card-cta,
  .news-card-cta {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
}

.team-card-name,
.news-card-title {
  transition: color 0.3s ease;
}

.team-card:hover .team-card-name,
.news-card:hover .news-card-title {
  color: var(--color-accent);
}

.team-card-name,
.news-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.news-card-date {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  text-align: center;
  font-weight: 600;
}

.team-card-role {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Pill button */
.team-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-text);
  padding: 10px 16px 10px 24px;
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 auto;
  transition: all var(--transition);
  width: max-content;
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
}

.team-card-btn svg {
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}

.team-card-btn:hover {
  color: var(--color-text);
  gap: 12px;
}

.team-card-btn:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.team-card-btn--large {
  padding: 14px 20px 14px 32px;
  font-size: var(--font-size-base);
}

/* Bottom CTA */
.team-bottom-cta {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 24px;
}

/* ---------- CTA Section ---------- */
.section--cta {
  background: linear-gradient(
    135deg,
    var(--color-gradient-start) 0%,
    var(--color-gradient-mid) 50%,
    var(--color-gradient-end) 100%
  );
  color: var(--color-white);
  padding: 80px 0;
  overflow: hidden;
}

.cta-layout {
  display: flex;
  align-items: center;
  gap: 48px;
}

.cta-content {
  flex: 1;
  text-align: left;
}

.cta-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
}

/* Leader cutout — anchored flush with the bottom edge of .section--cta.
   The negative margin-bottom must match .section--cta padding-bottom so the
   image's bottom edge meets the section's bottom edge with no gap. */
.cta-leader {
  flex-shrink: 0;
  width: 320px;
  align-self: flex-end;
  margin-bottom: -80px;
}

.cta-leader img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(-10px 5px 30px rgba(0, 0, 0, 0.2));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(10, 116, 185, 0.3);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 116, 185, 0.4);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-color: var(--color-text-light);
  transform: translateY(-2px);
}

/* ---------- Listening section (issues ticker + feedback CTA) ---------- */
.section--listening {
  background: var(--color-bg);
}

.listening-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.listening-ticker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.listening-eyebrow {
  margin-bottom: 28px;
}

.listening-eyebrow-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.listening-eyebrow-title {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
}

.ticker-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 300px;
  overflow: hidden;
  perspective: 1000px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 22%,
    black 78%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 22%,
    black 78%,
    transparent
  );
}

.ticker-track {
  will-change: transform;
}

.ticker-item {
  padding: 6px 0;
  font-size: 1.1rem;
  color: var(--color-text-light);
  opacity: 0.18;
  transform-origin: center;
  transition:
    font-size 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.5s ease,
    font-weight 0.5s ease;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.ticker-item.is-nearby {
  font-size: 1.45rem;
  opacity: 0.55;
  transform: scale(0.96);
  color: var(--color-text);
}

.ticker-item.is-active {
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  opacity: 1;
  color: var(--color-primary);
  font-weight: 800;
  transform: scale(1.06) translateZ(50px);
  text-shadow: 0 6px 20px rgba(61, 204, 213, 0.18);
}

.listening-scroll-hint {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  animation: listening-bounce 1.6s ease-in-out infinite;
}

@keyframes listening-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.listening-card {
  position: relative;
  background: var(--color-white);
  padding: 56px 48px;
  border-radius: 32px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 48px -16px rgba(15, 25, 40, 0.18);
  overflow: hidden;
}

.listening-card-shield {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--color-text);
  opacity: 0.05;
  pointer-events: none;
}

.listening-card-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.listening-card-title-accent {
  color: var(--color-primary);
}

.listening-card-lead {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 560px;
}

.listening-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

  .listening-ticker-wrap {
    display: none;
  }
}

@media (max-width: 640px) {
  .listening-card {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .listening-card-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-item,
  .listening-scroll-hint {
    animation: none;
    transition: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-subtitle {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-logo-title {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-slogan {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact h3,
.footer-nav h3,
.footer-support h3 {
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-contact ul,
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li,
.footer-nav li {
  margin-bottom: 8px;
  font-size: var(--font-size-sm);
}

.footer-contact a,
.footer-nav a,
.footer-support a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-contact a:hover,
.footer-nav a:hover,
.footer-support a:hover {
  color: var(--color-white);
}

.footer-social {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-sm);
}

.footer-social svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.footer-support-text {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-support-bank {
  margin: 0;
}

.footer-support-label {
  display: block;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.footer-support-account {
  display: inline-block;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
  text-decoration: none;
}

.footer-support-account:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.footer-support-account.is-copied {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about-grid {
    gap: 40px;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-heading-row {
    flex-direction: column;
    gap: 20px;
  }

  .cta-leader {
    width: 260px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --header-height: 64px;
  }

  .hero-content {
    display: none;
  }

  /* Mobile menu */
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(6, 70, 112, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
  }

  .main-navigation.is-open {
    transform: translateX(0);
  }

  .nav-menu {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: var(--font-size-base);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-values {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-card {
    padding: 32px 24px;
  }

  /* Program */
  .program-grid {
    grid-template-columns: 1fr;
  }

  /* Team */
  .team-heading-big {
    font-size: 2rem;
  }

  .team-heading-row {
    flex-direction: column;
    gap: 16px;
  }

  .team-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* CTA */
  .cta-layout {
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    text-align: center;
  }

  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-leader {
    width: 220px;
    margin-bottom: -80px;
    align-self: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-logo {
    font-size: var(--font-size-2xl);
  }

  .program-card {
    padding: 28px 20px;
  }
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

/* Stagger delays via data-delay */
[data-delay="1"] {
  transition-delay: 0.1s;
}
[data-delay="2"] {
  transition-delay: 0.2s;
}
[data-delay="3"] {
  transition-delay: 0.3s;
}
[data-delay="4"] {
  transition-delay: 0.4s;
}
[data-delay="5"] {
  transition-delay: 0.5s;
}

/* Fade up */
[data-animate="fade-up"] {
  transform: translateY(40px);
}

/* Fade right (from left) */
[data-animate="fade-right"] {
  transform: translateX(-40px);
}

/* Fade left (from right) */
[data-animate="fade-left"] {
  transform: translateX(40px);
}

/* Scale up */
[data-animate="scale-up"] {
  transform: scale(0.9) translateY(20px);
}

/* Zoom in */
[data-animate="zoom-in"] {
  transform: scale(0.85);
}

/* Slide in from right */
[data-animate="slide-right"] {
  transform: translateX(120px);
}

/* Visible state — applied by JS */
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Events Calendar ---------- */
.section--events {
  background: var(--color-bg);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.event-card {
  position: relative;
  height: 128px;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.event-card--past {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  opacity: 0.85;
}

.event-card--future {
  background: linear-gradient(
    135deg,
    var(--color-gradient-start),
    var(--color-gradient-mid)
  );
  color: var(--color-white);
  box-shadow: 0 10px 15px -3px rgba(61, 204, 213, 0.3);
  cursor: pointer;
}

.event-card--future:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -4px rgba(61, 204, 213, 0.4);
}

.event-card__date-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.event-card__title-past {
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.event-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0.2;
  color: var(--color-text);
}

.event-card__date-overlay {
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.event-card__day {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
}

.event-card__month {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}

.event-card__title-future {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.event-card__title-future-text {
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
}

.event-card--future:hover .event-card__date-overlay {
  opacity: 0.2;
}

.event-card--future:hover .event-card__title-future {
  opacity: 1;
  transform: translateY(0);
}

/* Countdown pill on the next upcoming event */
.event-card__countdown {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s ease;
}

.event-card--next {
  box-shadow:
    0 12px 22px -3px rgba(61, 204, 213, 0.45),
    0 0 0 2px rgba(255, 255, 255, 0.4) inset;
}

.event-card--future:hover .event-card__countdown {
  opacity: 0;
}

.events-legend {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.events-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.events-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

.events-legend-swatch--past {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.events-legend-swatch--future {
  background: linear-gradient(
    135deg,
    var(--color-gradient-start),
    var(--color-gradient-mid)
  );
}

@media (hover: none) {
  .event-card--future .event-card__title-future {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.35);
  }
  .event-card--future .event-card__date-overlay {
    opacity: 0.25;
  }
}

/* ---------- Program placeholder ---------- */
.program-placeholder {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-white);
  padding: 48px 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.program-placeholder-text {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .program-placeholder {
    padding: 32px 20px;
  }
  .program-placeholder-text {
    font-size: var(--font-size-base);
  }
}

/* ---------- Suggestion modal ---------- */
.suggestion-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.suggestion-modal.is-open {
  display: flex;
}

.suggestion-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 40, 0.6);
  backdrop-filter: blur(2px);
}

.suggestion-modal__dialog {
  position: relative;
  background: var(--color-white);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 560px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: suggestion-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes suggestion-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.suggestion-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  transition:
    background var(--transition),
    color var(--transition);
}

.suggestion-modal__close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.suggestion-modal__title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--color-text);
}

.suggestion-form__field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.suggestion-form__field label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.suggestion-form__field input,
.suggestion-form__field textarea {
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  width: 100%;
}

.suggestion-form__field input:focus,
.suggestion-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(61, 204, 213, 0.2);
}

.suggestion-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.suggestion-form__actions {
  margin-top: 8px;
}

.suggestion-form__actions .btn {
  width: 100%;
}

.suggestion-form__status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: var(--font-size-sm);
  text-align: center;
}

.suggestion-form__status.is-success {
  color: #1f8a3b;
}

.suggestion-form__status.is-error {
  color: #c0392b;
}

body.suggestion-open,
body.contact-open,
body.person-modal-open,
body.news-modal-open {
  overflow: hidden;
}

/* ---------- News section ---------- */
.section--news {
  background: var(--color-white);
}

/* ---------- Person detail modal ---------- */
.person-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.person-modal.is-open {
  display: flex;
}

.person-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 40, 0.6);
  backdrop-filter: blur(2px);
}

.person-modal__dialog {
  position: relative;
  background: var(--color-white);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 720px;
  padding: 48px 40px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: suggestion-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.person-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  transition:
    background var(--transition),
    color var(--transition);
}

.person-modal__close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.person-modal__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 24px;
  position: relative;
}

.person-modal__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-modal__name {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.person-modal__position,
.person-modal__age {
  margin: 0;
  color: var(--color-text-light);
  font-size: var(--font-size-base);
}

.person-modal__position {
  font-weight: 600;
  color: var(--color-primary);
}

.person-modal__photo {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-shrink: 0;
}

.person-modal__photo-img {
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  object-position: top center;
  display: block;
  cursor: zoom-in;
}

.person-modal__photo-img--secondary {
  display: none;
}

.person-modal__photo--dual .person-modal__photo-img--secondary {
  display: block;
}

/* Expanded state: clicked photo overlays the whole top row at full width,
   preserving its 3/4 aspect (so it grows tall) and covering info/other photo. */
.person-modal__photo-img.is-expanded {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 3 / 4;
  cursor: zoom-out;
  z-index: 5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.person-modal__bio {
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  white-space: pre-line;
}

.person-modal__bio:empty,
.person-modal__position:empty,
.person-modal__age:empty {
  display: none;
}

.person-modal__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.person-modal__nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
  font-family: inherit;
  text-align: left;
  color: var(--color-text);
  min-height: 64px;
}

.person-modal__nav-btn:hover {
  background: var(--color-white);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.person-modal__nav-btn--next {
  justify-content: flex-end;
  text-align: right;
}

.person-modal__nav-arrow {
  font-size: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.person-modal__nav-btn--prev:hover .person-modal__nav-arrow {
  transform: translateX(-3px);
}

.person-modal__nav-btn--next:hover .person-modal__nav-arrow {
  transform: translateX(3px);
}

.person-modal__nav-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: var(--color-bg-alt);
}

.person-modal__nav-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.person-modal__nav-btn--next .person-modal__nav-meta {
  align-items: flex-end;
}

.person-modal__nav-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  font-weight: 600;
}

.person-modal__nav-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  max-width: 100%;
}

@media (max-width: 767px) {
  .person-modal__nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .person-modal__nav-btn {
    padding: 10px 14px;
    gap: 12px;
    min-height: 56px;
  }

  .person-modal__nav-thumb {
    width: 40px;
    height: 40px;
  }

  .person-modal__nav-name {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 640px) {
  .person-modal__dialog {
    padding: 40px 20px 28px;
  }

  .person-modal__top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .person-modal__photo {
    order: -1;
    gap: 8px;
  }

  .person-modal__photo-img {
    width: 140px;
  }

  .person-modal__photo--dual .person-modal__photo-img {
    width: 120px;
  }

  .person-modal__name {
    font-size: var(--font-size-2xl);
  }

  /* Mobile: shrink outer + dialog padding so the close X (top) and the
     prev/next nav (bottom) aren't hidden behind the viewport edges. */
  .person-modal {
    padding: 6px;
    align-items: flex-start;
  }

  .person-modal__dialog {
    padding: 36px 18px 72px;
    max-height: calc(100dvh - 12px);
    border-radius: 10px;
  }

  .person-modal__close {
    top: 4px;
    right: 6px;
    font-size: 28px;
    padding: 2px 8px;
  }

  .person-modal__nav {
    margin-bottom: 8px;
  }

  /* Mobile zoom: absolute positioning is fragile inside a flex/grid + scroll
     context on small viewports — fall back to a simple inline expand: full
     dialog width, original aspect kept. The other photo collapses out of
     flow so the expanded one isn't squeezed by it. */
  .person-modal__photo-img.is-expanded {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }
  .person-modal__photo--has-expanded
    .person-modal__photo-img:not(.is-expanded) {
    display: none;
  }
}

@media (max-width: 640px) {
  .suggestion-modal__dialog {
    padding: 28px 20px;
  }
}

/* ---------- News detail modal (same skin as person modal) ---------- */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.news-modal.is-open {
  display: flex;
}

.news-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 40, 0.6);
  backdrop-filter: blur(2px);
}

.news-modal__dialog {
  position: relative;
  background: var(--color-white);
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 720px;
  padding: 48px 40px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: suggestion-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 50%;
  transition:
    background var(--transition),
    color var(--transition);
}

.news-modal__close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.news-modal__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 24px;
  position: relative;
}

.news-modal__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-modal__title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.news-modal__date {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-modal__photo {
  width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.news-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  cursor: zoom-in;
}

/* Click-to-zoom: image overlays the whole .news-modal__top at full width,
   keeps its 4/3 aspect, covers the title/date column. Click again to
   collapse. Mobile falls back to an inline expand to avoid the same
   absolute-position fragility we saw in the person modal. */
.news-modal__photo img.is-expanded {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 4 / 3;
  cursor: zoom-out;
  z-index: 5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.news-modal__content {
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.news-modal__content > *:first-child {
  margin-top: 0;
}

.news-modal__content > *:last-child {
  margin-bottom: 0;
}

.news-modal__content p {
  margin: 0 0 16px;
}

.news-modal__content h2,
.news-modal__content h3,
.news-modal__content h4 {
  margin: 24px 0 12px;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.3;
}

.news-modal__content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.news-modal__content a:hover {
  color: var(--color-primary-dark);
}

.news-modal__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 16px 0;
}

.news-modal__content ul,
.news-modal__content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.news-modal__content li {
  margin-bottom: 6px;
}

.news-modal__content blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 4px 0 4px 16px;
  margin: 16px 0;
  color: var(--color-text-light);
  font-style: italic;
}

.news-modal__content:empty,
.news-modal__date:empty {
  display: none;
}

.news-modal__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.news-modal__nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
  font-family: inherit;
  text-align: left;
  color: var(--color-text);
  min-height: 64px;
}

.news-modal__nav-btn:hover {
  background: var(--color-white);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.news-modal__nav-btn--next {
  justify-content: flex-end;
  text-align: right;
}

.news-modal__nav-arrow {
  font-size: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.news-modal__nav-btn--prev:hover .news-modal__nav-arrow {
  transform: translateX(-3px);
}

.news-modal__nav-btn--next:hover .news-modal__nav-arrow {
  transform: translateX(3px);
}

.news-modal__nav-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-bg-alt);
}

.news-modal__nav-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.news-modal__nav-btn--next .news-modal__nav-meta {
  align-items: flex-end;
}

.news-modal__nav-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  font-weight: 600;
}

.news-modal__nav-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  max-width: 100%;
}

@media (max-width: 767px) {
  .news-modal__nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-modal__nav-btn {
    padding: 10px 14px;
    gap: 12px;
    min-height: 56px;
  }

  .news-modal__nav-thumb {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .news-modal__dialog {
    padding: 40px 20px 28px;
  }

  .news-modal__top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-modal__photo {
    width: 100%;
    max-width: 280px;
    order: -1;
  }

  .news-modal__title {
    font-size: var(--font-size-2xl);
  }

  /* Mobile zoom — same defensive fallback as the person modal: keep the
     expanded image inline (no absolute positioning) and let the natural
     stack hold its place. Aspect kept via the parent's aspect-ratio. */
  .news-modal__photo img.is-expanded {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }
  .news-modal__photo--has-expanded {
    max-width: 100%;
  }
}

/* ---------- First-visit intro overlay ---------- */
body.spoko-intro-active {
  overflow: hidden;
}

.spoko-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transition: opacity 1s ease, visibility 1s;
}

.spoko-intro--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spoko-intro__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 8px;
  line-height: 0;
}

.spoko-intro__close:hover,
.spoko-intro__close:focus-visible {
  opacity: 1;
  transform: scale(1.1);
  outline: none;
}

.spoko-intro__close svg {
  width: 36px;
  height: 36px;
}

.spoko-intro__inner {
  position: relative;
  width: min(80vw, 1200px);
  max-width: 1200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spoko-intro__text-wrapper {
  transition: opacity 0.88s ease;
  min-height: 6em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}

.spoko-intro__text-wrapper.is-fading {
  opacity: 0;
}

.spoko-intro__text-wrapper.is-collapsed {
  display: none;
}

.spoko-intro__text-wrapper.is-collapsed + .spoko-intro__heart-container {
  margin-top: 0;
}

.spoko-intro__heading {
  font-size: clamp(2.4rem, 5.6vw + 0.8rem, 4.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

.spoko-intro__heading span {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  margin-right: 0.25em;
  animation: spoko-intro-word-reveal 0.88s forwards cubic-bezier(0.11, 0, 0.5, 0);
}

@keyframes spoko-intro-word-reveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.spoko-intro__heart-container {
  margin-top: 32px;
  width: 100%;
  display: none;
  justify-content: center;
}

/* Reveal the heart container only after the text wrapper collapses, so during
   the text phase the centered text isn't pushed up by the (invisible) heart's
   reserved layout space. */
.spoko-intro__text-wrapper.is-collapsed ~ .spoko-intro__heart-container {
  display: flex;
}

.spoko-intro__heart {
  max-width: 360px;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: brightness(0) invert(1);
}

.spoko-intro__heart.is-visible {
  opacity: 1;
  transform: scale(1);
}

.spoko-intro__heart.is-beating {
  animation: spoko-intro-heartbeat 1.8s ease-in-out infinite;
}

@keyframes spoko-intro-heartbeat {
  0%, 20%, 40% { transform: scale(1); }
  10%, 30% { transform: scale(1.12); }
}

.spoko-intro__skip {
  position: absolute;
  bottom: 48px;
  background: transparent;
  border: 0;
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4em;
  font-size: 0.875rem;
  opacity: 0.3;
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.spoko-intro__skip:hover,
.spoko-intro__skip:focus-visible {
  opacity: 1;
  border-bottom-color: var(--color-white);
  outline: none;
}

@media (max-width: 768px) {
  .spoko-intro__close {
    top: 14px;
    right: 14px;
  }
  .spoko-intro__close svg {
    width: 28px;
    height: 28px;
  }
  .spoko-intro__skip {
    bottom: 24px;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
  }
  .spoko-intro__heart {
    max-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spoko-intro__heading span {
    animation-duration: 0.01s;
    transform: none;
    filter: none;
    opacity: 1;
  }
  .spoko-intro__heart.is-beating {
    animation: none;
  }
}
