/* ===== Design tokens ===== */
:root {
  --ink: #1B1916;
  --ink-soft: #33302B;
  --muted: #6F6A62;
  --muted-2: #9C968C;
  --muted-3: #B4AEA4;
  --accent: #9A4A2E;
  --success: #3F6E4E;
  --border: #E6E2DA;
  --border-soft: #F0EDE6;
  --bg: #FAFAF7;
  --bg-tint: #F4F2EC;
  --input-border: #C9C4BB;
  --selection: #E9DDD2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; min-height: 100vh; }

a { color: var(--ink); }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
input { font-family: 'Archivo', sans-serif; }
::selection { background: var(--selection); }

button { font-family: inherit; }

.serif { font-family: 'Cormorant Garamond', serif; }
.mono { font-family: 'IBM Plex Mono', monospace; }

.eyebrow {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.page-title {
  margin: 16px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.1;
}

.page-lede {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

@keyframes fdFade { from { opacity: 0; } to { opacity: 1; } }

/* ===== Language toggling ===== */
[data-en], [data-de] { display: none; }
:root[data-lang="en"] [data-en] { display: initial; }
:root[data-lang="de"] [data-de] { display: initial; }
:root[data-lang="en"] p[data-en],
:root[data-lang="de"] p[data-de],
:root[data-lang="en"] div[data-en],
:root[data-lang="de"] div[data-de] { display: block; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img { width: 36px; height: auto; }
.brand span {
  font-size: 14px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .brand span { font-size: 11px; letter-spacing: 0.13em; }
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 26px;
}

.nav-link {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
}

.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lang-switch.mobile { margin-left: 0; gap: 4px; }

.lang-btn {
  all: unset;
  cursor: pointer;
  padding: 2px 4px;
  color: var(--muted-2);
  font-weight: 400;
}

.lang-btn.active { color: var(--ink); font-weight: 600; }

.lang-sep { color: #C9C4BB; }

.mobile-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 2px 12px 12px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
  font-size: 13px;
  padding: 16px clamp(20px, 5vw, 32px);
  border-bottom: 1px solid var(--border-soft);
}

@media (min-width: 760px) {
  .desktop-nav { display: flex; }
  .mobile-nav-bar { display: none; }
  .mobile-menu { display: none !important; }
}

/* ===== Page sections ===== */
.page { display: none; }
.page.active { display: block; animation: fdFade 0.4s ease; }

.container-narrow { max-width: 760px; margin: 0 auto; padding: clamp(56px, 10vw, 96px) clamp(20px, 5vw, 32px); }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }

/* ===== Home ===== */
.home-hero { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 10vw, 96px) clamp(20px, 5vw, 32px) 72px; text-align: center; }
.home-hero img.mark { width: 84px; height: auto; margin: 0 auto 36px; }
.home-hero h1 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(56px, 8vw, 104px); line-height: 1.02; letter-spacing: 0.01em; }
.subtitle-italic { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--muted); }
.home-hero .subtitle { margin: 18px 0 0; font-size: 26px; }
.exhibition-subtitle { margin: 14px 0 0; font-size: 24px; }
.home-hero .tagline { margin: 28px auto 0; max-width: 560px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.7; color: var(--muted); }

.home-feature img { width: 100%; height: 64vh; object-fit: cover; }
.home-feature figcaption { margin: 14px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.credit { color: var(--muted-3); }

.home-intro { max-width: 760px; margin: 0 auto; padding: clamp(56px, 9vw, 88px) clamp(20px, 5vw, 32px) 0; text-align: center; }
.home-intro p { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 30px; line-height: 1.45; font-weight: 400; }
.home-intro .cta { margin: 26px 0 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

.home-stats { max-width: 900px; margin: 0 auto; padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 32px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.home-stats .num { font-family: 'Cormorant Garamond', serif; font-size: 64px; line-height: 1; }
.home-stats .label { margin-top: 6px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.home-grid { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.home-grid a { text-decoration: none; }
.home-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.home-grid p { margin: 10px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 1.6; color: var(--muted); }

.home-view-gallery { text-align: center; padding: 0 clamp(20px, 5vw, 32px) 96px; }
.home-view-gallery a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

.home-banner { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-tint); }
.home-banner-inner { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 7vw, 56px) clamp(20px, 5vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.home-banner-text { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ink-soft); }
.btn-outline { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--ink); padding: 14px 26px; text-decoration: none; white-space: nowrap; }

/* ===== Project / long-form text ===== */
.prose { margin-top: 40px; font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.prose p { margin: 0 0 22px; }
.prose h2 { margin: 44px 0 14px; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 30px; }

.project-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.project-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.project-grid p { margin: 10px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); }

/* ===== Gallery ===== */
.gallery-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px 24px; }
.gallery-item { margin: 0; cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #EFECE5; }
.gallery-item figcaption { margin-top: 10px; }
.gallery-item .prompt { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; line-height: 1.6; color: var(--ink-soft); }

/* ===== Exhibition ===== */
.exhibition-meta { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; font-size: 14px; line-height: 1.7; }
.exhibition-meta .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }

.exhibition-image { width: 100%; margin-top: 44px; aspect-ratio: 16/9; object-fit: cover; }
.exhibition-image-caption { margin: 10px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); }

.signup-box { margin-top: 72px; border: 1px solid var(--border); background: var(--bg-tint); padding: clamp(24px, 5vw, 44px); }
.signup-box h2 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 32px; }
.signup-box .intro { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

.signup-form { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.signup-form input { flex: 1; min-width: 180px; padding: 13px 16px; font-size: 14px; border: 1px solid var(--input-border); background: var(--bg); outline: none; }
.signup-form input[type="email"] { flex: 1.4; min-width: 220px; }
.signup-form button { cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); padding: 13px 26px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'Archivo', sans-serif; }

.signup-error { margin: 12px 0 0; font-size: 12.5px; color: var(--accent); }
.signup-success { margin: 24px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--success); }

/* ===== Team ===== */
.team-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px; }
.team-photo { width: 100%; aspect-ratio: 1; object-fit: cover; background: #EFECE5; }
.team-member h2 { margin: 18px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 28px; }
.team-role { margin: 4px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--accent); }
.team-bio { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }

.team-partners { margin-top: 72px; border-top: 1px solid var(--border); padding-top: 28px; }
.team-partners .label { margin: 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.team-partners img { margin-top: 16px; height: 56px; width: auto; }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.97);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; animation: fdFade 0.25s ease; }

.lightbox-close, .lightbox-prev, .lightbox-next {
  all: unset;
  cursor: pointer;
  position: absolute;
  color: var(--muted-2);
}

.lightbox-close { top: 24px; right: 36px; font-size: 28px; line-height: 1; color: var(--ink-soft); }
.lightbox-prev { left: 28px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lightbox-next { right: 28px; top: 50%; transform: translateY(-50%); font-size: 32px; }

.lightbox-figure { margin: 0; max-width: min(760px, 84vw); text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 68vh; margin: 0 auto; box-shadow: 0 24px 60px rgba(27, 25, 22, 0.18); }
.lightbox-figure figcaption { margin-top: 22px; }
.lightbox-prompt { font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.7; color: var(--ink); }
.lightbox-meta { margin-top: 8px; font-size: 12px; letter-spacing: 0.08em; color: var(--muted-2); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-tint); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 7vw, 56px) clamp(20px, 5vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: auto; }
.footer-brand span { font-size: 12px; letter-spacing: 0.22em; font-weight: 500; }
.footer-desc { margin: 16px 0 0; max-width: 360px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.footer-col .label { margin: 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.footer-col p.link-line { margin: 12px 0 0; font-size: 13px; line-height: 1.7; }
