:root {
  --magenta: #c31e5c;
  --blue: #1084c7;
  --ink: #161114;
  --muted: #5a5456;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --line: #e4e0e1;
  --font: "Work Sans", "Segoe UI", sans-serif;
  --page-width: 1240px;
  --measure: 66ch;
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--magenta);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: clamp(380px, 52vw, 620px);
  overflow: hidden;
  background: #eef3f6;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("../img/header-bg.jpg") 78% 58% / cover no-repeat;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.28) 22%,
    rgba(255, 255, 255, 0) 46%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  padding: 42px 0 96px;
}

.hero-logo {
  width: min(268px, 46vw);
  height: auto;
  display: block;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(56px, 8vw, 90px);
  z-index: 3;
  fill: var(--paper);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 12px 0 80px;
}

.headline {
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin: 0 0 28px;
}

.headline-bar {
  width: 7px;
  flex: 0 0 7px;
  background: var(--magenta);
  border-radius: 99px;
}

.headline h1 {
  margin: 0;
  color: var(--magenta);
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.lead {
  max-width: var(--measure);
  margin: 0 0 40px;
}

.lead p {
  margin: 0 0 1.05em;
  color: var(--muted);
  text-wrap: pretty;
}

.lead p:last-child {
  margin-bottom: 0;
}

.lede {
  color: var(--ink) !important;
  font-size: 1.12em;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}

.cards {
  display: grid;
  gap: 16px;
  margin: 0 0 56px;
  align-items: stretch;
}

.stats {
  display: grid;
  gap: 16px;
  margin: 0 0 56px;
  grid-template-columns: 1fr;
}

.card {
  margin: 0;
  padding: 22px 24px 24px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p {
  margin: 0;
  text-wrap: pretty;
}

.card p + p {
  margin-top: 0.7em;
}

.card .kicker + p {
  margin-top: 0;
}

.stat-value {
  margin: 0;
  font-size: clamp(1.2rem, 1.6vw, 1.42rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hours {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.contact p {
  margin: 0;
  font-size: 1.05em;
}

.contact p + p {
  margin-top: 0.35em;
}

.contact a {
  font-size: 1.12em;
}

.block {
  margin: 0 0 56px;
}

.block h2,
.register h2,
.sites h2,
.downloads h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.block > p {
  max-width: var(--measure);
  margin: 0;
  text-wrap: pretty;
}

.goal-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.goal-copy h2 {
  margin-bottom: 16px;
}

.goal-copy p {
  margin: 0;
  text-wrap: pretty;
}

.goal-poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  box-shadow: 0 10px 32px rgba(18, 11, 13, 0.08);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.goal-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.goal-poster-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(18, 11, 13, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.goal-poster:hover,
.goal-poster:focus-visible {
  border-color: var(--magenta);
  box-shadow: 0 14px 36px rgba(195, 30, 92, 0.14);
  outline: none;
}

.modal {
  width: min(1600px, calc(100vw - 32px));
  max-width: 1600px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}

.modal[open] {
  animation: modal-in 0.22s ease;
}

.modal::backdrop {
  background: rgba(18, 11, 13, 0.78);
}

.modal-box {
  position: relative;
  width: 1600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(18, 11, 13, 0.35);
}

.modal-box img {
  display: block;
  width: 1600px;
  max-width: none;
  height: auto;
}

.modal-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  float: right;
  margin: 12px 12px 0 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 99px;
  background: var(--magenta);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--ink);
  outline: none;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cards-2,
.cards-3 {
  margin-bottom: 0;
}

.place-name {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.qualify {
  margin-top: 16px;
}

.note {
  max-width: var(--measure);
  margin: 0 0 56px;
  padding: 18px 22px 18px 20px;
  background: #f3f8fc;
  border-radius: 12px;
  border-left: 4px solid var(--blue);
}

.note p {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.55;
}

.register,
.sites {
  margin: 0 0 56px;
}

.downloads {
  margin: 0;
}

.files {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.file:hover,
.file:focus-visible {
  border-color: var(--magenta);
  background: #fdf6f8;
  text-decoration: none;
}

.file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--magenta);
}

.file-icon svg {
  width: 22px;
  height: 22px;
}

.file-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.file-name {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.file-meta {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.file-action {
  color: var(--magenta);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.eu-plaque {
  position: relative;
  z-index: 1;
  padding: 8px 0 40px;
  background: var(--paper);
}

.eu-plaque img {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  position: relative;
  padding: 32px 0 48px;
  overflow: hidden;
  background: #fff;
}

.footer-logos {
  position: relative;
  z-index: 1;
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
}

.eu-logos {
  display: block;
  width: 100%;
  height: auto;
}

.funding {
  width: min(var(--page-width), calc(100% - 48px));
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.blob {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: min(42vw, 340px);
  height: min(42vw, 340px);
  pointer-events: none;
  z-index: 0;
}

.blob path {
  fill: none;
  stroke: var(--magenta);
  stroke-width: 58;
  stroke-linecap: round;
}

@media (min-width: 760px) {
  .stats,
  .cards-2 {
    grid-template-columns: 1fr 1fr;
  }

  .cards-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .goal-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: 40px 48px;
  }

  .page {
    padding-top: 28px;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    padding-top: 52px;
  }
}

@media (max-width: 640px) {
  .wrap,
  .funding,
  .footer-logos {
    width: calc(100% - 32px);
  }

  .eu-plaque .wrap {
    width: 100%;
  }

  .goal-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero {
    min-height: 320px;
  }

  .hero-media {
    background-position: 82% 48%;
  }

  .hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.22) 38%,
      rgba(255, 255, 255, 0) 62%
    );
  }

  .hero-inner {
    padding: 28px 0 72px;
  }

  .hero-logo {
    width: min(210px, 70vw);
  }

  .headline {
    gap: 12px;
  }

  .headline-bar {
    width: 5px;
    flex-basis: 5px;
  }

  .card {
    padding: 18px 18px 20px;
  }

  .file-action {
    display: none;
  }
}
