:root {
  --ink: #171717;
  --muted: #5f625f;
  --paper: #fbfaf7;
  --white: #ffffff;
  --forest: #123f34;
  --forest-2: #1f5c48;
  --gold: #c49a3b;
  --clay: #a64f3c;
  --eu-blue: #1b4f8f;
  --sky: #dcebf6;
  --mist: #ecf1ed;
  --line: rgba(23, 23, 23, 0.14);
  --shadow: 0 24px 70px rgba(18, 63, 52, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
  font-weight: 760;
  line-height: 1.1;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: #303331;
  font-size: 0.91rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  align-self: start;
  padding-top: 4px;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(18, 63, 52, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(18, 63, 52, 0.1);
}

.mode-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 34px;
  padding: 0 14px;
  color: var(--forest);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mode-switch a.active {
  color: var(--white);
  background: var(--forest);
  box-shadow: 0 6px 16px rgba(18, 63, 52, 0.18);
}

.erasmus-page .mode-switch a.active {
  background: var(--clay);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(18, 63, 52, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.language-switch button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--forest);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
  cursor: pointer;
}

.language-switch button.active {
  color: var(--white);
  background: var(--forest);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(760px, 82svh);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.erasmus-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(720px, 80svh);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 28, 24, 0.84) 0%, rgba(15, 28, 24, 0.58) 46%, rgba(15, 28, 24, 0.16) 100%),
    linear-gradient(0deg, rgba(15, 28, 24, 0.42), rgba(15, 28, 24, 0.1));
  z-index: -1;
}

.hero-content {
  width: min(840px, 100%);
  padding: 0 clamp(20px, 7vw, 92px) clamp(42px, 7vw, 82px);
}

.erasmus-hero-content {
  width: min(980px, 100%);
  padding: 0 clamp(20px, 7vw, 92px) clamp(42px, 7vw, 82px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 840;
  text-transform: uppercase;
}

.hero h1 {
  max-width: min(900px, 100%);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7.1vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.erasmus-hero h1 {
  max-width: min(980px, 100%);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.erasmus-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-microbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-microbar span {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: rgba(9, 28, 44, 0.34);
}

.hero-microbar strong {
  color: var(--white);
  font-size: 1rem;
}

.hero-microbar small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 720;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--forest);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.light-strip .button.primary {
  white-space: nowrap;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-facts div {
  min-height: 132px;
  padding: 26px clamp(18px, 3vw, 40px);
  background: var(--paper);
}

.quick-facts strong {
  display: block;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.quick-facts span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 720;
}

.erasmus-page {
  background: #f7f9f6;
}

.erasmus-page .site-header {
  background: rgba(247, 248, 244, 0.93);
}

.erasmus-page .hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 28, 44, 0.88) 0%, rgba(18, 63, 52, 0.7) 48%, rgba(166, 79, 60, 0.2) 100%),
    linear-gradient(0deg, rgba(9, 28, 44, 0.46), rgba(9, 28, 44, 0.08));
}

.erasmus-facts div {
  background: #f7f8f4;
}

.erasmus-facts strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  overflow-wrap: normal;
  word-break: normal;
}

.erasmus-facts div:nth-child(1) {
  border-top: 4px solid var(--eu-blue);
}

.erasmus-facts div:nth-child(2) {
  border-top: 4px solid var(--clay);
}

.erasmus-facts div:nth-child(3) {
  border-top: 4px solid var(--gold);
}

.erasmus-facts div:nth-child(4) {
  border-top: 4px solid var(--forest);
}

.section {
  padding: clamp(68px, 9vw, 124px) clamp(20px, 6vw, 86px);
}

.section h2 {
  margin: 0;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.7vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
}

.section p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.76;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.section-copy {
  max-width: 760px;
}

.image-panel {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-details {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.timeline,
.values-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.timeline {
  grid-template-columns: repeat(3, 1fr);
}

.values-grid {
  grid-template-columns: 1fr;
}

.timeline article,
.values-grid article {
  padding: 22px;
  background: var(--white);
}

.timeline span {
  display: block;
  margin-bottom: 24px;
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 760;
  line-height: 1;
}

.heritage-band {
  background: var(--forest);
  color: var(--white);
}

.heritage-band h2,
.heritage-band h3 {
  color: var(--white);
}

.heritage-band p {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  width: min(920px, 100%);
  margin: 0 auto clamp(30px, 5vw, 56px);
  text-align: center;
}

.section-heading.align-left {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.feature-grid,
.project-intro,
.event-board,
.department-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article,
.project-intro article,
.event-board article,
.department-cards a,
.support-grid article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.feature-grid article {
  background: rgba(255, 255, 255, 0.06);
}

.feature-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
}

.project-section {
  background: var(--mist);
}

.project-intro article,
.event-board article,
.support-grid article {
  border-color: var(--line);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 63, 52, 0.08);
}

.department-hub {
  background: #f5f1e8;
}

.department-cards a {
  display: grid;
  align-content: space-between;
  min-height: 260px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(18, 63, 52, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.department-cards a:hover,
.department-cards a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(18, 63, 52, 0.14);
}

.department-cards span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.hub-audience-grid,
.project-board-large,
.notice-board,
.partner-grid {
  display: grid;
  gap: 18px;
}

.hub-audience-grid,
.partner-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-board-large {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.65fr) minmax(280px, 0.65fr);
}

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

.hub-audience-grid article,
.project-card,
.notice-board article,
.partner-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 63, 52, 0.08);
}

.hub-audience-grid span {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.project-card.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 24px;
}

.project-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.project-card dl div {
  padding: 16px;
  background: var(--paper);
}

.project-card dt {
  margin-bottom: 5px;
  color: var(--forest);
  font-weight: 840;
}

.project-card dd {
  margin: 0;
  color: var(--muted);
}

.open-call-section,
.partners-section {
  background: #f5f1e8;
}

.notice-board time {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--clay);
  font-weight: 820;
}

.results-section {
  background: var(--forest);
  color: var(--white);
}

.results-section h2,
.results-section h3,
.results-section p {
  color: var(--white);
}

.results-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.light-strip {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.light-strip p {
  color: rgba(255, 255, 255, 0.76);
}

.erasmus-gallery-section {
  background: var(--paper);
}

.compact-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.compact-gallery figure:first-child {
  grid-row: auto;
}

.erasmus-pathway {
  background:
    linear-gradient(180deg, rgba(220, 235, 246, 0.58), rgba(247, 249, 246, 0.94)),
    var(--paper);
}

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

.pathway-card {
  display: grid;
  align-content: space-between;
  min-height: 260px;
  padding: 28px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(18, 63, 52, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pathway-card:hover,
.pathway-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(18, 63, 52, 0.14);
}

.pathway-card span,
.project-tags span,
.partner-highlights span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 840;
  text-transform: uppercase;
}

.pathway-card p {
  color: var(--muted);
}

.open-call-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.68fr);
  gap: 22px;
  align-items: start;
}

.open-call-layout .section-heading {
  grid-row: span 2;
}

.call-card,
.call-note,
.resources-grid article,
.partner-highlights article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 63, 52, 0.08);
}

.primary-call {
  border-top: 5px solid var(--clay);
}

.call-status {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 8px 12px;
  color: var(--white);
  border-radius: 999px;
  background: var(--clay);
  font-size: 0.76rem;
  font-weight: 840;
  text-transform: uppercase;
}

.call-meta,
.project-showcase dl {
  display: grid;
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

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

.call-meta div,
.project-showcase dl div {
  padding: 15px;
  background: var(--paper);
}

.call-meta dt,
.project-showcase dt {
  margin-bottom: 5px;
  color: var(--forest);
  font-weight: 840;
}

.call-meta dd,
.project-showcase dd {
  margin: 0;
  color: var(--muted);
}

.call-note {
  background: #fff8e7;
}

.call-note ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.call-note li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.call-note li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.7fr);
  gap: 18px;
}

.project-showcase .project-card.featured {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  overflow: hidden;
}

.project-thumb {
  min-height: 100%;
  background: var(--forest);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.project-showcase .project-card.featured > div:last-child {
  padding: 30px 30px 30px 0;
}

.project-stack {
  display: grid;
  gap: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.project-tags span {
  padding: 7px 10px;
  color: var(--forest);
  border: 1px solid rgba(18, 63, 52, 0.16);
  border-radius: 999px;
  background: var(--mist);
}

.project-method {
  background: #edf4f7;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.process-strip article {
  padding: 26px;
  background: var(--white);
}

.process-strip span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--eu-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 760;
}

.partner-profile {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.partner-profile .button {
  width: fit-content;
  margin-top: 10px;
}

.partner-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.partner-highlights article {
  min-height: 260px;
}

.partner-highlights article:nth-child(1) {
  border-top: 5px solid var(--gold);
}

.partner-highlights article:nth-child(2) {
  border-top: 5px solid var(--eu-blue);
}

.partner-highlights article:nth-child(3) {
  border-top: 5px solid var(--forest);
}

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

.resources-grid article {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.resources-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.project-archive {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: 18px;
  margin-top: 18px;
}

.project-record,
.project-checklist {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(18, 63, 52, 0.08);
}

.project-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.64fr);
  gap: 26px;
}

.record-label {
  margin-top: 0;
  color: var(--clay);
  font-weight: 840;
  text-transform: uppercase;
}

.project-record dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.project-record dl div {
  padding: 16px;
  background: var(--paper);
}

.project-record dt {
  margin-bottom: 5px;
  color: var(--forest);
  font-weight: 840;
}

.project-record dd {
  margin: 0;
  color: var(--muted);
}

.project-checklist ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.project-checklist li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.project-checklist li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "◆";
}

.departments {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.theatre-section {
  padding-top: 0;
}

.department-media {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.department-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #313633;
  font-weight: 720;
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  top: 0.15em;
  left: 0;
  color: var(--gold);
  content: "◆";
}

.department-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.department-facts span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 760;
}

.events-section {
  background: #f5f1e8;
}

.event-board time {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--clay);
  font-weight: 820;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -28px 0 28px;
}

.gallery-filters button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: var(--white);
  font-weight: 780;
  cursor: pointer;
}

.gallery-filters button.active {
  color: var(--white);
  border-color: var(--forest);
  background: var(--forest);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.gallery-grid figure {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--forest);
}

.gallery-grid figure:first-child {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.025);
}

.gallery-grid figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(18, 24, 20, 0.72);
  font-weight: 720;
  line-height: 1.35;
}

.gallery-empty {
  margin: 22px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.is-hidden {
  display: none !important;
}

.support-section {
  background: var(--forest);
  color: var(--white);
}

.support-section h2,
.support-section h3,
.support-section p {
  color: var(--white);
}

.support-section .section-heading p,
.support-section .interest-form p {
  color: rgba(255, 255, 255, 0.76);
}

.support-grid h3 {
  color: var(--ink);
}

.support-grid p {
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.download-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.download-strip h3,
.download-strip p {
  margin: 0;
}

.download-strip p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.download-strip > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold);
  font-weight: 840;
  text-decoration: none;
}

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

.interest-form,
.contact-form {
  display: grid;
  gap: 16px;
}

.interest-form {
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 820;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list p {
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.social-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--forest);
  font-weight: 820;
  text-decoration: none;
}

.contact-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(18, 63, 52, 0.1);
}

.map-section iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: 0;
  filter: saturate(0.84);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 86px);
  color: var(--white);
  background: #111614;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: clamp(18px, 4vw, 54px);
    left: clamp(18px, 4vw, 54px);
    display: none;
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 16px 44px rgba(18, 63, 52, 0.12);
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }
}

@media (max-width: 860px) {
  .brand {
    min-width: 0;
  }

  .brand span {
    max-width: 156px;
  }

  .hero {
    min-height: 74svh;
  }

  .erasmus-hero {
    min-height: 74svh;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(15, 28, 24, 0.82), rgba(15, 28, 24, 0.24));
  }

  .quick-facts,
  .feature-grid,
  .hub-audience-grid,
  .pathway-grid,
  .project-intro,
  .project-board-large,
  .project-showcase,
  .event-board,
  .open-call-layout,
  .notice-board,
  .partner-grid,
  .partner-profile,
  .partner-highlights,
  .department-cards,
  .support-grid,
  .split,
  .about-details,
  .timeline,
  .process-strip,
  .project-archive,
  .project-record,
  .project-card.featured,
  .departments,
  .compact-gallery,
  .contact-section,
  .interest-form,
  .resources-grid,
  .download-strip {
    grid-template-columns: 1fr;
  }

  .open-call-layout .section-heading {
    grid-row: auto;
  }

  .project-showcase .project-card.featured {
    grid-template-columns: 1fr;
  }

  .project-showcase .project-card.featured > div:last-child {
    padding: 0 28px 28px;
  }

  .project-thumb img {
    min-height: 320px;
  }

  .quick-facts div {
    min-height: 104px;
  }

  .theatre-section .department-copy {
    order: 2;
  }

  .theatre-section .department-media {
    order: 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure:first-child {
    grid-row: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 70px;
    gap: 10px;
    padding: 10px 14px;
  }

  .site-tools {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-end;
    gap: 7px;
    padding-top: 0;
  }

  .mode-switch {
    flex: 1 1 auto;
    max-width: 275px;
  }

  .mode-switch a {
    flex: 1;
    min-width: 0;
    min-height: 32px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    max-width: 128px;
    font-size: 0.92rem;
  }

  .language-switch button {
    min-width: 31px;
    min-height: 28px;
    font-size: 0.72rem;
  }

  .site-nav {
    right: 14px;
    left: 14px;
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 0 20px 36px;
  }

  .erasmus-hero-content {
    padding: 0 20px 36px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .erasmus-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .hero-actions,
  .hero-microbar,
  .social-links,
  .download-strip > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-microbar {
    display: flex;
  }

  .button,
  .social-links a {
    width: 100%;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .feature-grid article,
  .project-intro article,
  .event-board article,
  .department-cards a,
  .hub-audience-grid article,
  .pathway-card,
  .project-card,
  .call-card,
  .call-note,
  .notice-board article,
  .partner-grid article,
  .partner-highlights article,
  .resources-grid article,
  .support-grid article,
  .project-record,
  .project-checklist,
  .contact-panel {
    padding: 22px;
  }

  .call-meta {
    grid-template-columns: 1fr;
  }

  .project-showcase .project-card.featured > div:last-child {
    padding: 0 22px 22px;
  }

  .partner-profile .button {
    width: 100%;
  }
}
