:root {
  --bg: #f8f5ef;
  --bg-alt: #efeae0;
  --card: #ffffff;
  --ink: #1c1a16;
  --muted: #6a6357;
  --accent: #2f3a6b;
  --rule: rgba(28, 26, 22, 0.16);
  --max: 1120px;
}

* { 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(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Typography */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  line-height: 1.08;
  color: var(--ink);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

h1 em { font-style: italic; }

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 239, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

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

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

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

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }

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

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

/* EU emblem, header top right */
.header-eu {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding-left: 6px;
}

.header-eu img {
  display: block;
  width: 58px;
  height: auto;
  flex-shrink: 0;
}

.header-eu span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
  max-width: 110px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 15px 30px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

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

.btn-small {
  padding: 9px 18px;
  font-size: 0.8rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-small:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-small.active { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

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

/* Hero */
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: end;
}

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

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }

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

/* Mission statement */
.section-statement {
  padding: clamp(56px, 8vw, 84px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.statement {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* Grid of cards, hairline ruled, not floating tiles */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.card { background: var(--card); padding: 32px 28px; }

.card-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
  border-top: 1px solid var(--rule);
  padding-top: 34px;
  margin: 34px 0 44px;
}

.step-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

/* Stats */
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.stat { text-align: left; }

.stat strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.stat span { color: var(--muted); font-size: 0.92rem; }

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

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

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-switch .lang-current {
  color: var(--ink);
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a:hover { color: var(--ink); text-decoration: underline; }

.lang-flag {
  width: 15px;
  height: 11px;
  vertical-align: -1px;
  margin-right: 3px;
  border: 1px solid var(--rule);
}

/* Galleries */
.gallery {
  column-count: 2;
  column-gap: 16px;
}

.gallery figure { break-inside: avoid; margin: 0 0 16px; }

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.gallery figcaption {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.5;
}

.gallery--wide { column-count: 3; }
.gallery--one { column-count: 1; }

.gallery .figure-small { width: 58%; margin-left: auto; margin-right: auto; }

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

.news-date {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

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

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

/* Inner pages */
.page-hero { padding: clamp(64px, 9vw, 110px) 0 clamp(36px, 5vw, 60px); }

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

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

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

.founder-role {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}

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

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

.themes-note { margin-top: 26px; margin-bottom: 0; font-size: 0.85rem; }

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

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

/* Coming soon notice */
.coming-soon {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 18px 24px;
  margin-bottom: 38px;
}

.coming-soon p { margin-bottom: 0; color: var(--ink); font-size: 1rem; }

/* EU funding acknowledgment */
.eu-funding {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: 660px;
}

.eu-funding-text p {
  margin-bottom: 3px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted);
}

.eu-funding-text p:first-child {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  font-weight: 500;
}

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

.eu-funding-text strong { color: var(--muted); font-weight: 500; }

.eu-disclaimer {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 7px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .gallery--wide { column-count: 2; }
}

@media (max-width: 640px) {
  .gallery, .gallery--wide { column-count: 1; }
}

@media (max-width: 560px) {
  .header-inner { gap: 14px; }
  .header-eu { gap: 7px; }
  .header-eu img { width: 44px; }
  .header-eu span { font-size: 0.53rem; max-width: 78px; letter-spacing: 0.1em; }
}

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