/* MigLAB – Transforming Labour and Migration */
/* Palette sampled from the MigLAB logo: pastel yellow, orange, green, blue, purple */
/* + logo red (#D80804) and banner grey-purple (#887F90) */
:root {
  --paper: #FBF9F3;
  --paper-2: #F4F1E8;
  --ink: #211D17;
  --ink-soft: #55503F;
  --red: #D80804;
  --red-dark: #A80603;
  --yellow: #FCF6D2;
  --orange: #FFE4D3;
  --green: #EEF0E3;
  --blue: #D9F3FF;
  --purple: #FADDF9;
  --banner: #887F90;
  --white: #ffffff;
  --max: 1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 21, 15, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 5px solid transparent;
  border-image: linear-gradient(90deg,
    var(--yellow) 0%, var(--yellow) 20%,
    var(--orange) 20%, var(--orange) 40%,
    var(--green) 40%, var(--green) 60%,
    var(--blue) 60%, var(--blue) 80%,
    var(--purple) 80%, var(--purple) 100%) 1;
}
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 10px 0;
}
.logo {
  display: flex; align-items: center; text-decoration: none; line-height: 0;
}
.logo img { height: 84px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 3px solid transparent; padding-bottom: 2px;
  transition: border-color .15s;
}
.nav-links a:hover { border-color: var(--red); }
.lang-btn {
  font: inherit; font-weight: 700; cursor: pointer;
  border: 3px solid var(--ink); background: var(--ink); color: var(--paper);
  padding: 6px 14px; border-radius: 999px; letter-spacing: .05em;
  transition: background .15s, color .15s;
}
.lang-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  background: linear-gradient(115deg,
    var(--yellow) 0%, var(--orange) 34%,
    var(--purple) 68%, var(--blue) 100%);
  overflow: hidden;
}
.hero-fists {
  position: absolute; left: 1%; top: 54%;
  transform: translateY(-50%);
  width: min(50vw, 720px); z-index: 1;
  opacity: .55;
  filter: drop-shadow(0 12px 26px rgba(23, 21, 15, .14));
}
.hero-inner {
  position: relative; z-index: 2; padding: 90px 0 70px; color: var(--ink);
}
/* Soft scrim behind the headline keeps text readable over the fists */
.hero-inner::before {
  content: ""; position: absolute; inset: 16px -60px; z-index: -1;
  background: radial-gradient(ellipse at 30% 50%,
    rgba(255, 255, 255, .88) 0%,
    rgba(255, 255, 255, .6) 42%,
    rgba(255, 255, 255, .28) 62%,
    rgba(255, 255, 255, 0) 82%);
  border-radius: 40px;
  pointer-events: none;
}
.kicker {
  display: inline-block; font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .14em;
  background: var(--red); color: #fff; padding: 6px 14px; border-radius: 4px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900; line-height: 1.04; letter-spacing: -.03em;
  max-width: 16ch; margin-bottom: 22px;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; color: var(--ink-soft); margin-bottom: 34px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; font-size: 1rem;
  transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
@media (max-width: 980px) {
  .hero-fists {
    left: 50%; top: 55%;
    width: 96%; max-width: 560px;
    transform: translate(-50%, -50%);
    opacity: .18;
  }
}

/* ---------- Stats bar ---------- */
.stats { background: var(--ink); color: var(--paper); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { border-top: 5px solid var(--yellow); padding-top: 12px; }
.stat:nth-child(2) { border-top-color: var(--orange); }
.stat:nth-child(3) { border-top-color: var(--blue); }
.stat:nth-child(4) { border-top-color: var(--purple); }
.stat b {
  display: block; font-size: 2.4rem; font-weight: 900; font-style: italic;
  color: var(--red); letter-spacing: -.02em;
}
.stat span { font-size: .95rem; opacity: .85; }

/* ---------- Fists divider ---------- */
.fists-divider { display: flex; justify-content: center; padding: 36px 24px 0; }
.fists-divider img { height: 88px; width: auto; opacity: .92; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tag {
  display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  font-size: .82rem; color: var(--ink);
  background: var(--purple); border: 2px solid var(--ink);
  border-radius: 999px; padding: 4px 14px; margin-bottom: 16px;
}
#ueber-uns .section-tag { background: var(--green); }
#theory .section-tag { background: var(--blue); }
#team .section-tag { background: var(--orange); }
#projekte .section-tag { background: var(--yellow); }
#partner .section-tag { background: var(--purple); }
#programm .section-tag { background: var(--green); }
#kontakt .section-tag { background: var(--blue); }
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: 28px;
}
.prose { max-width: 68ch; font-size: 1.08rem; color: var(--ink-soft); }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.frame { border: 4px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.frame-caption {
  background: var(--ink); color: var(--paper); font-size: .85rem;
  padding: 10px 16px; font-weight: 600; letter-spacing: .03em;
}

/* ---------- Team ---------- */
#team { background: var(--white); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 48px; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  border: 3px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
  transition: transform .2s, box-shadow .2s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member-head {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 26px;
}
.member-head.gabriel { background: linear-gradient(120deg, var(--blue), #B9E5F9); color: var(--ink); }
.member-head.hannah { background: linear-gradient(120deg, var(--purple), #F4CBEF); color: var(--ink); }
.monogram {
  flex: 0 0 74px; height: 74px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: var(--red);
}
.member-head h3 { font-size: 1.4rem; font-weight: 900; letter-spacing: -.01em; }
.member-head .role { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.member-body { padding: 26px; }
.member-body p { color: var(--ink-soft); font-size: 1.02rem; }
.member-body p + p { margin-top: 14px; }
.member-body .skills { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.member-body .skills li {
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px;
}

/* ---------- Projects ---------- */
.projects { display: grid; gap: 40px; margin-top: 48px; }
.project {
  display: grid; grid-template-columns: 380px 1fr; gap: 0;
  border: 3px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: transform .2s, box-shadow .2s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project:nth-child(even) { grid-template-columns: 1fr 380px; }
.project:nth-child(even) .project-img { order: 2; }
.project-img { min-height: 260px; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 34px 38px; border-top: 6px solid var(--yellow); }
.projects .project:nth-child(5n+2) .project-body { border-top-color: var(--orange); }
.projects .project:nth-child(5n+3) .project-body { border-top-color: var(--green); }
.projects .project:nth-child(5n+4) .project-body { border-top-color: var(--blue); }
.projects .project:nth-child(5n+5) .project-body { border-top-color: var(--purple); }
.project-body .num {
  font-weight: 900; font-size: .9rem; color: var(--red);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; display: block;
}
.project-body h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.01em; margin-bottom: 12px; }
.project-body p { color: var(--ink-soft); }
.project-body .tag {
  display: inline-block; margin-top: 16px; font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  background: var(--yellow); border: 2px solid var(--ink);
  border-radius: 999px; padding: 4px 12px;
}
.projects .project:nth-child(5n+2) .tag { background: var(--orange); }
.projects .project:nth-child(5n+3) .tag { background: var(--green); }
.projects .project:nth-child(5n+4) .tag { background: var(--blue); }
.projects .project:nth-child(5n+5) .tag { background: var(--purple); }
@media (max-width: 880px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-img { order: 0; }
}

/* ---------- Partners ---------- */
#partner { background: var(--paper-2); }
.chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; list-style: none; }
.chips li {
  background: var(--yellow); border: 3px solid var(--ink);
  border-radius: 999px; padding: 12px 24px;
  font-weight: 700; font-size: 1rem;
  transition: background .15s, color .15s, transform .15s;
}
.chips li:nth-child(5n+2) { background: var(--orange); }
.chips li:nth-child(5n+3) { background: var(--green); }
.chips li:nth-child(5n+4) { background: var(--blue); }
.chips li:nth-child(5n+5) { background: var(--purple); }
.chips li:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }

/* ---------- Program ---------- */
#programm { background: var(--green); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 52px; }
.pillar {
  border: 3px solid var(--ink); border-radius: var(--radius);
  border-top: 8px solid var(--yellow);
  padding: 30px 28px; background: var(--white);
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar:nth-child(2) { border-top-color: var(--blue); }
.pillar:nth-child(3) { border-top-color: var(--purple); }
.pillar .icon { font-size: 2rem; margin-bottom: 14px; }
.pillar h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: .98rem; }
.pillar .metric { display: block; margin-top: 16px; color: var(--red); font-weight: 900; font-size: 1.6rem; }
.pillar .metric small { font-size: .85rem; font-weight: 600; color: var(--ink-soft); display: block; letter-spacing: .02em; }
.funding {
  margin-top: 44px; padding: 20px 26px; border-left: 5px solid var(--red);
  background: var(--banner); color: #fff; font-size: .95rem;
}
.funding strong { color: #fff; }

/* ---------- Contact ---------- */
#kontakt { background: var(--purple); }
#kontakt .two-col { align-items: start; }
.contact-card {
  border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 34px; background: var(--white); box-shadow: var(--shadow);
}
.contact-card h3 { font-weight: 900; font-size: 1.3rem; margin-bottom: 18px; }
.contact-card ul { list-style: none; }
.contact-card li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed #d8d2c4; }
.contact-card li:last-child { border-bottom: 0; }
.contact-card .lbl { font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; color: var(--red); min-width: 92px; }
.contact-card a { text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--red); }
.contact-card a:hover { color: var(--red); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #9d978a; padding: 40px 0; font-size: .9rem; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--paper); text-decoration: none; margin-left: 20px; }
.foot a:hover { color: var(--purple); }
.foot .brand { font-weight: 900; color: var(--paper); font-size: 1.1rem; display: inline-flex; align-items: center; gap: 14px; }
.foot-fists { height: 44px; width: auto; }
.foot .brand img { height: 52px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }

/* ---------- Theory of Change ---------- */
#theory { background: var(--paper-2); border-top: 3px solid var(--ink); }
.toc-lead { max-width: 72ch; font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 48px; }
.toc-lead strong { color: var(--ink); }
.toc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
@media (max-width: 880px) { .toc-steps { grid-template-columns: 1fr; } }
.toc-step {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 30px 26px; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.toc-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.toc-step .step-num {
  display: inline-block; font-weight: 900; font-style: italic; font-size: 1rem;
  color: var(--ink); background: var(--yellow); border: 2px solid var(--ink);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 16px;
}
.toc-steps .toc-step:nth-of-type(2) .step-num { background: var(--green); }
.toc-steps .toc-step:nth-of-type(3) .step-num { background: var(--blue); }
.toc-step h3 { font-size: 1.3rem; font-weight: 900; font-style: italic; margin-bottom: 10px; color: var(--ink); }
.toc-step p { font-size: .98rem; color: var(--ink-soft); }
.toc-step .examples {
  margin-top: 14px; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--red);
}
.toc-arrow {
  position: absolute; right: -26px; top: 50%; transform: translateY(-50%);
  font-size: 2rem; font-weight: 900; color: var(--red); z-index: 2;
}
@media (max-width: 880px) { .toc-arrow { display: none; } }
.toc-loop {
  margin-top: 40px; text-align: center; font-weight: 800; font-style: italic;
  font-size: 1.05rem; color: var(--ink);
}
.toc-loop .loop-mark {
  display: inline-block; margin-right: 10px; color: var(--red);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Big MigLAB logo floating behind the hero text */
.hero-logo {
  position: absolute; right: 1%; top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 720px); z-index: 1; opacity: .26;
  pointer-events: none;
}
/* Project images that must show fully (graphics/cards): no cropping */
.project-img img.contain {
  object-fit: contain;
  background: #f9e04b;
  padding: 12px;
}
@media (max-width: 880px) {
  .hero-logo {
    left: 50%; right: auto; top: 30%;
    width: 88%; max-width: 480px;
    transform: translate(-50%, -50%);
    opacity: .14;
  }
}
.project-img img.contain.green { background: #bfe3cd; }
