:root {
  --bg: #0b0c0e;
  --bg-elev: #14161a;
  --bg-card: #1a1d23;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3efe6;
  --muted: #a8a396;
  --accent: #2fd3a8;
  --accent-2: #e8c36a;
  --accent-dim: rgba(47, 211, 168, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --nav-h: 72px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100dvh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(11, 12, 14, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-family: "Syne", sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  place-items: end stretch;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,12,14,0.15) 0%, rgba(11,12,14,0.82) 70%, var(--bg) 100%),
    url("images/werk-08.jpg") center/cover no-repeat;
  filter: saturate(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
}

.kicker {
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 10vw, 7.2rem);
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.8rem;
}

.hero p.lead {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #ddd6c6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--accent);
  color: #06241c;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.btn:hover {
  transform: translateY(-1px);
}

/* SECTIONS */
section {
  padding: 5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-head p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: start;
}

.about-copy p {
  color: #d4cfc3;
}

.about-copy p + p {
  margin-top: 1rem;
}

.facts {
  display: grid;
  gap: 0.8rem;
}

.fact {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.fact b {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* GALLERY */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  color: #06241c;
  background: var(--accent);
  border-color: var(--accent);
}

.masonry {
  columns: 3;
  column-gap: 1rem;
}

.card {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--line);
  background: #111;
}

.card img {
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
}

.card:hover img {
  transform: scale(1.04);
}

.card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.9rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  font-size: 0.78rem;
  color: #eee;
}

/* EXHIBITIONS */
.timeline {
  display: grid;
  gap: 1rem;
}

.ex {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.2rem;
  padding: 1.3rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ex time {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ex h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.ex p {
  margin: 0;
  color: var(--muted);
}

.quote {
  margin-top: 1.6rem;
  padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--accent-2);
  background: var(--accent-dim);
  border-radius: 0 16px 16px 0;
  color: #efe8d6;
}

.quote cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--accent-2);
  font-style: normal;
  font-size: 0.88rem;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.contact-card,
form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.contact-card h3 {
  margin-bottom: 0.6rem;
}

.contact-card a {
  color: var(--accent);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  background: #101217;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

/* LEGAL */
.legal {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal h2 {
  color: var(--text);
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot a:hover {
  color: var(--text);
}

/* LIGHTBOX */
.lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1.2rem;
}

.lb.open {
  display: grid;
}

.lb img {
  max-width: min(1100px, 100%);
  max-height: 86dvh;
  object-fit: contain;
  border-radius: 8px;
}

.lb button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fff;
  color: #111;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

/* MOBILE */
@media (max-width: 860px) {
  .burger {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(11, 12, 14, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.2rem 1.2rem;
    display: none;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line);
  }

  .about-grid,
  .contact-grid,
  .ex {
    grid-template-columns: 1fr;
  }

  .masonry {
    columns: 2;
  }

  .hero {
    min-height: 86dvh;
  }
}

@media (max-width: 520px) {
  .masonry {
    columns: 1;
  }

  section {
    padding: 3.4rem 0;
  }
}
