:root {
  --bg: #faf8f4;
  --bg-alt: #f0ece3;
  --card: #ffffff;
  --text: #2b2822;
  --muted: #6e6759;
  --accent: #4a63c8;
  --accent-2: #8a5bc8;
  --border: rgba(43, 40, 34, 0.12);
  --radius: 16px;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container.narrow { max-width: 720px; }
.center { text-align: center; }

/* Typography */
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; color: var(--text); }

h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 36px;
}

p { color: var(--muted); margin-bottom: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 248, 244, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo span { color: var(--accent); }

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(74, 99, 200, 0.22);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(74, 99, 200, 0.3); }

.btn-small {
  padding: 9px 20px;
  font-size: 0.88rem;
  background: #e8e7fa;
  color: #3f3fa8;
  box-shadow: none;
}

.btn-small:hover {
  background: #dcdbf6;
  box-shadow: none;
  transform: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); box-shadow: none; color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(90px, 14vw, 160px) 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(138, 91, 200, 0.14), transparent 65%);
  pointer-events: none;
}

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

/* Sections */
.section { padding: clamp(70px, 10vw, 110px) 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-cta {
  background: linear-gradient(135deg, rgba(74, 99, 200, 0.08), rgba(138, 91, 200, 0.1));
  border-top: 1px solid var(--border);
}

.section-cta p { margin-bottom: 32px; font-size: 1.1rem; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 99, 200, 0.45);
  box-shadow: 0 14px 30px rgba(43, 40, 34, 0.08);
}

.card-icon { font-size: 1.9rem; margin-bottom: 16px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
}

.step-num {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

/* Stats */
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.stat span { color: var(--muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Mission statement (inspired by yp-de.org quote block) */
.section-statement {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(56px, 8vw, 84px) 0;
}

.statement {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0;
}

/* News */
.news-card { display: flex; flex-direction: column; }

.news-date {
  display: inline-block;
  align-self: flex-start;
  background: #e3efe7;
  color: #2c6a4f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.news-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}

.news-link:hover { text-decoration: underline; }

/* Photos */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-photo { margin: 0; position: relative; z-index: 1; }

.hero-photo img,
.section-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(43, 40, 34, 0.16);
}



.section-photo { margin: 0 0 34px; }

.photo-portrait {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}



@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 520px; }

}

/* Inner pages */
.page-hero {
  padding: clamp(70px, 10vw, 120px) 0 clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(138, 91, 200, 0.12), transparent 65%);
  pointer-events: none;
}

.nav a.active { color: var(--accent); font-weight: 600; }

.nav a.btn.active {
  background: #dcdbf6;
  color: #3f3fa8;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.card-link:hover { text-decoration: underline; }

.founders { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.founder-photo { margin: 0 0 20px; }

.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.founder-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: -4px 0 14px;
}

.themes-note {
  text-align: center;
  margin-top: 26px;
  margin-bottom: 0;
}

.contact-block { margin-bottom: 44px; }

.contact-cards { text-align: left; }

/* Coming soon notice */
.coming-soon {
  background: #e8e7fa;
  border: 1px solid rgba(74, 99, 200, 0.35);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 38px;
}

.coming-soon p {
  margin-bottom: 0;
  color: #3f3fa8;
  font-size: 1.02rem;
}

.coming-soon strong { color: #3f3fa8; }

/* EU funding acknowledgment */
.eu-funding {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.eu-funding img {
  flex-shrink: 0;
  width: 90px;
  height: auto;
}

.eu-funding a { display: inline-block; line-height: 0; }

.eu-funding-text p {
  margin-bottom: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.eu-funding-text p:last-child { margin-bottom: 0; }

.eu-funding-text strong { color: var(--text); }

.eu-disclaimer {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 560px) {
  .eu-funding { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Responsive */
@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
}
