/* ============ RESET / BASE ============ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --ink: #1b1a17;
  --paper: #ffffff;
  --sand: #f5f2ec;       /* warm light section tone */
  --sand-deep: #ece6db;  /* footer / deeper light tone */
  --muted: #6e6961;
  --line: rgba(0, 0, 0, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);
  --accent: #e8e3da;
  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ============ PLACEHOLDER BLOCKS ============ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.025) 0 12px, rgba(0,0,0,0.05) 12px 24px),
    linear-gradient(135deg, #d9d4cc, #c7c1b6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.45);
}
.ph::before {
  content: "";
  width: 34px; height: 34px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 11l2.5 3 3.5-4.5L19 17H5l3.5-6z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 11l2.5 3 3.5-4.5L19 17H5l3.5-6z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.5;
}
.ph[data-label]::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
  padding: 0 8px;
  text-align: center;
}

/* ============ REAL IMAGES (replace placeholders) ============ */
.strip__item,
.work__img,
.services__img,
.testimonial__img { object-fit: cover; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--pill {
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 100px;
}
.btn--pill:hover { transform: translateY(-2px); }
.btn--dark {
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 100px;
}
.btn--dark:hover { transform: translateY(-2px); }
.btn--pill-sm {
  background: var(--ink);
  color: var(--paper);
  width: 46px; height: 46px;
  border-radius: 100px;
  justify-content: center;
  font-size: 18px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.eyebrow--light { color: var(--muted); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
/* When the nav bar turns light (scrolled), flip its contents to dark */
.nav.is-scrolled .nav__links a { color: rgba(27, 26, 23, 0.72); }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }
.nav.is-scrolled .nav__lang a { color: rgba(27, 26, 23, 0.45); }
.nav.is-scrolled .nav__lang a:hover,
.nav.is-scrolled .nav__lang a.is-active { color: var(--ink); }
.nav.is-scrolled .nav__lang span { color: rgba(27, 26, 23, 0.3); }
.nav.is-scrolled .nav__cta { background: var(--ink); color: #fff !important; }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
}
.nav__logo img {
  height: 30px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav__links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav__links a:hover { color: #fff; }
.nav__cta { color: #fff !important; }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__lang a {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  padding: 2px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__lang a:hover { color: #fff; }
.nav__lang a.is-active { color: #fff; }
.nav__lang span { color: rgba(255, 255, 255, 0.35); font-size: 12px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: 0.3s var(--ease);
}
.nav__toggle.is-open span { background: var(--ink); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the footage clearly visible, only a light touch of dimming */
  opacity: 0.92;
  filter: brightness(0.96) saturate(1.02) contrast(1.0);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Lighter scrims: enough darkness only at the top (nav/tagline) and bottom
     (wordmark); the middle stays clear so the video reads through */
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(10,10,10,0) 0%, rgba(10,10,10,0.10) 70%, rgba(10,10,10,0.26) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.12) 32%, rgba(10,10,10,0.18) 58%, rgba(10,10,10,0.78) 100%);
}
.hero__top {
  position: relative;
  z-index: 2;
  padding-top: clamp(110px, 16vh, 180px);
  text-align: center;
}
.hero__tagline {
  max-width: 540px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 300;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.6);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid var(--line-light);
  border-radius: 100px;
  transition: background 0.25s;
}
.hero__scroll:hover { background: rgba(255,255,255,0.1); }
.hero__scroll span { animation: bob 1.8s infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

.hero__wordmark {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  text-align: center;
}
.hero__wordmark h1 {
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(32px, 5.5vw, 86px);
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
.hero__scrollHint {
  display: none;
}

/* ============ GALLERY STRIP ============ */
.strip { background: var(--sand); padding: 8px 0 70px; }
.strip__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.strip__item {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

/* ============ GALLERY CAROUSEL ============ */
.gallery {
  background: var(--sand);
  padding: clamp(36px, 5vw, 64px) 0;
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: clamp(10px, 1.4vw, 16px); }
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-left 65s linear infinite;
}
.marquee__track--right { animation: marquee-right 80s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  height: clamp(140px, 21vw, 220px);
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-right: clamp(10px, 1.4vw, 16px);
  flex: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.4s var(--ease);
}
.marquee__item:hover { transform: scale(1.04) rotate(-1deg); }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 200s; }
}

/* ============ MUSIC BUTTON ============ */
.music-btn {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 120;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.music-btn:hover { transform: translateY(-2px); }
.music-btn__on { display: none; }
.music-btn__off { display: block; }
.music-btn.is-playing .music-btn__on { display: block; }
.music-btn.is-playing .music-btn__off { display: none; }
/* gentle pulsing rings while music plays */
.music-btn.is-playing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(27, 26, 23, 0.4);
  animation: music-ring 2.2s ease-out infinite;
}
@keyframes music-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ============ INTRO ============ */
.intro {
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  padding: 40px 0 110px;
}
.intro__title {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 22px;
  text-wrap: balance;
}
.intro__text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============ MEMBERS ============ */
.members { background: var(--paper); padding: 0 0 clamp(70px, 10vw, 130px); }
.members__intro {
  max-width: 640px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}
.members__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.members__item {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.members__item strong { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.members__item span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ============ FEATURED WORKS ============ */
.works {
  position: relative;
  background: var(--sand);
  padding: clamp(70px, 10vw, 130px) 0;
  overflow: hidden;
}
.works__ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(60px, 14vw, 220px);
  font-weight: 700;
  color: rgba(0,0,0,0.04);
  white-space: nowrap;
  letter-spacing: -0.03em;
  z-index: 0;
  pointer-events: none;
}
.works__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px) clamp(30px, 5vw, 80px);
}
.work { display: flex; flex-direction: column; cursor: pointer; }
.works__grid .work:nth-child(even) { margin-top: clamp(0px, 8vw, 90px); }
.work__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease);
}
.work:hover .work__img { transform: scale(1.015); }
.work__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 18px 4px 0;
}
.work__meta h3 { font-size: 18px; font-weight: 600; }
.work__meta p {
  flex: 1 1 100%;
  order: 3;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.work__year { margin-left: auto; color: var(--muted); font-size: 13px; }

/* ============ ERASMUS+ ============ */
.erasmus {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(70px, 10vw, 130px) 0;
  overflow: hidden;
}
.erasmus__ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(60px, 14vw, 220px);
  font-weight: 700;
  color: rgba(0,0,0,0.04);
  white-space: nowrap;
  letter-spacing: -0.03em;
  z-index: 0;
  pointer-events: none;
}
.erasmus__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(30px, 5vw, 60px);
}
.erasmus__card {
  position: relative;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
}
.erasmus__card::after {
  content: "";
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  right: clamp(18px, 2vw, 26px);
  width: clamp(72px, 9vw, 96px);
  height: clamp(20px, 2.4vw, 26px);
  background: url("assets/img/erasmus-plus.svg") no-repeat right center / contain;
  opacity: 0.75;
  pointer-events: none;
}
.erasmus__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}
.erasmus__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 14px;
}
.erasmus__title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
}
.erasmus__date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.erasmus__countries {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.erasmus__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(27,26,23,0.75);
  margin-top: 10px;
}

.erasmus__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
}
.erasmus__card:hover .erasmus__more { color: var(--ink); }

/* ============ ERASMUS MODAL ============ */
.emodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.emodal[hidden] { display: none; }
.emodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.emodal__panel {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  animation: emodal-in 0.35s var(--ease);
}
@keyframes emodal-in {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.emodal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s;
}
.emodal__close:hover { color: var(--ink); }
.emodal .emodal__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--sand);
  color: var(--muted);
  margin-bottom: 14px;
}
.emodal__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
}
.emodal__date {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.emodal__countries {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.emodal__body {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.emodal__body h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 20px 0 8px;
}
.emodal__body ul {
  list-style: disc;
  padding-left: 20px;
}
.emodal__body li {
  margin-bottom: 4px;
}
.emodal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.emodal__gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}
.emodal__eu {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 10px;
}

/* ============ NEWS (Facebook) ============ */
.news {
  background: var(--paper);
  padding: clamp(60px, 9vw, 110px) 0;
}
.news__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 16px;
}
.news__intro {
  max-width: 560px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}
.news__carousel { margin: 0 calc(-1 * clamp(20px, 5vw, 48px)); }
.news__link { display: block; overflow: hidden; }
.news__link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news__allBtn { margin-top: 32px; }

/* ============ PRIVATE PROJECT REPORT PAGE ============ */
.report-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px clamp(20px, 5vw, 48px);
}
.report-header img { height: 30px; width: auto; display: block; }
.report {
  background: var(--sand);
  min-height: 60vh;
  padding: clamp(50px, 8vw, 90px) 0;
}
.report__panel {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
}
.report__notice {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--sand);
  border-radius: 100px;
  padding: 6px 14px;
  display: inline-block;
  margin-bottom: 20px;
}
.report__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--sand);
  color: var(--muted);
  margin-bottom: 14px;
}
.report__title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.report__date {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.report__countries {
  font-size: 14px;
  color: var(--muted);
}
.report__body {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 20px;
  margin-bottom: 24px;
}
.report__body h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 20px 0 8px;
}
.report__body ul { list-style: disc; padding-left: 20px; }
.report__body li { margin-bottom: 4px; }
.report__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.report__gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}
.report__docs {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.report__docs li { margin-bottom: 8px; }
.report__docs a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.report__docs a:hover { color: var(--black); }

/* ============ SERVICES ============ */
.services {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(70px, 10vw, 120px) 0;
}
.services__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.services__list { list-style: none; }
.services__item {
  border-bottom: 1px solid var(--line);
}
.services__item:first-child { border-top: 1px solid var(--line); }
.services__item summary {
  list-style: none;
  font-size: clamp(21px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding: 18px 0;
  color: rgba(27, 26, 23, 0.35);
  cursor: pointer;
  transition: color 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 18px;
}
.services__item summary::-webkit-details-marker { display: none; }
.services__item summary:hover,
.services__item[open] summary { color: var(--ink); }
.services__arrow {
  font-size: 0.6em;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s var(--ease);
}
.services__item summary:hover .services__arrow,
.services__item[open] summary .services__arrow { opacity: 1; transform: translateX(0); }
.services__item[open] summary .services__arrow { transform: translateX(0) rotate(90deg); }
.services__item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  padding: 0 0 22px 30px;
  max-width: 720px;
}
.services__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}
.services__text {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

/* ============ FAQ ============ */
.faq {
  background: var(--sand);
  padding: clamp(70px, 10vw, 120px) 0;
}
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.faq__intro h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.faq__sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
  margin-bottom: 28px;
}
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 90%;
}
.faq__item p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.faq__item p a:hover { color: var(--black); }

/* ============ TESTIMONIAL ============ */
.testimonial {
  background: var(--paper);
  padding: clamp(60px, 9vw, 110px) 0 clamp(70px, 10vw, 120px);
}
.testimonial__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.testimonial__mark {
  font-size: 70px;
  line-height: 0.5;
  color: var(--ink);
  display: block;
  margin-bottom: 20px;
}
.testimonial__quote blockquote {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 460px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}
.testimonial__avatar {
  height: 34px;
  width: auto;
  flex: none;
  object-fit: contain;
}
.testimonial__author strong { display: block; font-size: 15px; }
.testimonial__author span { font-size: 13px; color: var(--muted); }
.testimonial__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

/* ============ CONTACT / CTA ============ */
.contact {
  background: var(--sand);
  color: var(--ink);
  padding: clamp(70px, 10vw, 120px) 0 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: clamp(50px, 8vw, 90px);
  border-bottom: 1px solid var(--line);
}
.contact__form { display: grid; gap: 18px; }
.contact__form label { display: grid; gap: 8px; }
.contact__form span {
  font-size: 13px;
  color: var(--muted);
}
.contact__form input,
.contact__form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(0,0,0,0.35); }
.contact__form input:focus-visible,
.contact__form textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27, 26, 23, 0.18);
}
.contact__form .btn { justify-self: start; margin-top: 6px; }
.contact__note { font-size: 13px; color: var(--muted); }
.contact__note--error { color: #b3261e; }
.contact__form button[disabled] { opacity: 0.6; cursor: default; }

.contact__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact__fb { margin-top: 8px; font-size: 14px; }
.contact__fb:hover { background: #1877F2; }
.contact__email,
.contact__phone {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 500;
}
.contact__email:hover,
.contact__phone:hover { text-decoration: underline; }
.contact__small { font-size: 13px; color: var(--muted); }

.contact__big {
  font-size: clamp(44px, 11vw, 160px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1;
  text-wrap: balance;
  padding: clamp(30px, 5vw, 60px) 0;
}

/* ============ FOOTER ============ */
.footer { background: var(--sand-deep); color: var(--ink); padding: 30px 0 50px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand { flex: 0 0 100%; order: -1; margin-bottom: 8px; }
.footer__brand img { height: 40px; width: auto; display: block; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; color: var(--muted); }
.footer__nav a:hover { color: var(--ink); }
.footer__copy { font-size: 12px; color: var(--muted); width: 100%; }
.footer__privacy { font-size: 12px; color: var(--muted); text-decoration: underline; }
.footer__privacy:hover { color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: -16px 0 50px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  /* Inside the light slide-in panel, force dark text regardless of scroll state */
  .nav__links a { font-size: 18px; color: rgba(27, 26, 23, 0.8); }
  .nav__links a:hover { color: var(--ink); }
  .nav__cta { background: var(--ink); color: #fff !important; }
  .nav__lang a { color: rgba(27, 26, 23, 0.45); }
  .nav__lang a.is-active { color: var(--ink); }
  .nav__lang span { color: rgba(27, 26, 23, 0.3); }
  .nav__toggle { display: flex; z-index: 101; }

  .works__grid { grid-template-columns: 1fr; }
  .works__grid .work:nth-child(even) { margin-top: 0; }
  .services__grid,
  .faq__grid,
  .testimonial__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .strip__row { grid-template-columns: repeat(3, 1fr); }
  .strip__item:nth-child(4),
  .strip__item:nth-child(5) { display: none; }
  .testimonial__img { order: -1; }
  .erasmus__grid { grid-template-columns: 1fr; }

  /* Hide the top tagline + "View projects" link on mobile */
  .hero__top { display: none; }

  /* Bigger, bolder wordmark + a scroll-down hint, mobile only */
  .hero__wordmark h1 {
    font-size: clamp(40px, 12vw, 56px);
    font-weight: 700;
  }
  .hero__scrollHint {
    display: inline-flex;
    margin-top: 20px;
    color: #fff;
    font-size: 22px;
    opacity: 0.85;
  }
  .hero__scrollHint span { display: inline-block; animation: bob 1.8s infinite; }
}

@media (max-width: 480px) {
  .strip__row { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { display: none; }
}
