@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300;1,9..144,400&family=Epilogue:wght@300;400;500;700&display=swap');

:root {
  --bg: #f5f1ea;
  --panel: #ffffff;
  --ink: #0e0e0e;
  --muted: rgba(14,14,14,.55);
  --line: rgba(14,14,14,.1);
  --blue: #0c00ff;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Epilogue', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Page fade-in ─── */
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  opacity: 1;
  transition: opacity .45s ease;
}
body.is-loading { opacity: 0; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ─── Topbar ─── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(245,241,234,.88);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand img { height: 40px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.nav nav a { opacity: .52; transition: opacity .18s; }
.nav nav a:hover { opacity: 1; }
.nav nav a.is-active { opacity: 1; }

/* Instagram icon in nav */
.nav-insta { display: flex; align-items: center; opacity: .52 !important; }
.nav-insta:hover { opacity: 1 !important; }
.nav-insta svg { display: block; }

/* ─── Meta strip ─── */
.meta-strip { border-bottom: 1px solid var(--line); }
.meta-inner { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: .26em; color: rgba(14,14,14,.36); font-weight: 500; }

/* ─── Hero ─── */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; min-height: 88vh; padding: 80px 0; position: relative; z-index: 2; }
.hero-glow { position: absolute; border-radius: 999px; filter: blur(100px); pointer-events: none; }
.hero-glow-left  { width: 340px; height: 340px; left: -100px; top: 40px; background: rgba(255,255,255,.12); }
.hero-glow-right { width: 460px; height: 460px; right: -130px; bottom: -100px; background: rgba(255,110,0,.2); }

.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .24em; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.6); }
.eyebrow.dark { color: rgba(14,14,14,.4); }

.hero h1 { font-family: var(--font-display); font-size: clamp(54px, 7.5vw, 96px); line-height: .95; font-weight: 300; font-style: italic; letter-spacing: -.02em; max-width: 8ch; }
.lead { max-width: 560px; font-size: clamp(17px, 2vw, 20px); line-height: 1.78; color: rgba(255,255,255,.76); margin: 28px 0 0; font-weight: 300; }

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

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 14px; letter-spacing: .04em; font-family: var(--font-body); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: #0e0e0e; color: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.button.primary:hover { box-shadow: 0 22px 60px rgba(0,0,0,.38); }
.button.secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); }
.button.secondary:hover { background: rgba(255,255,255,.14); }

.hero-art { position: relative; max-width: 540px; margin-left: auto; }
.hero-art img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: 32px; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 40px 100px rgba(0,0,0,.36); }
.hero-art-badge { position: absolute; right: -10px; top: -12px; z-index: 2; border-radius: 999px; padding: 12px 18px; background: rgba(0,0,0,.3); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(16px); font-size: 10.5px; text-transform: uppercase; letter-spacing: .2em; font-weight: 500; }

/* ─── Sections ─── */
.section { padding: 120px 0; }
.section-soft { background: rgba(255,255,255,.46); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: #080808; color: #fff; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.section h2 { font-family: var(--font-display); font-size: clamp(36px, 4.8vw, 66px); line-height: 1.04; font-weight: 300; letter-spacing: -.02em; font-style: italic; }
.section-dark h2 { color: #fff; }
.intro { max-width: 820px; color: var(--muted); font-size: 18px; line-height: 1.8; margin: 20px 0 0; font-weight: 300; }
.intro-light { color: rgba(255,255,255,.68); }

/* ─── About ─── */
.two-col { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 38px; box-shadow: 0 8px 30px rgba(0,0,0,.04); }
.prose p { margin: 0 0 22px; font-size: 19px; line-height: 1.82; color: var(--muted); font-weight: 300; }
.prose p:last-child { margin-bottom: 0; }

/* ─── Works filter ─── */
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }

.works-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.filter-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.filter-btn:hover { border-color: rgba(14,14,14,.3); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─── Works grid — Petersburger Hängung ─── */
.works-grid {
  columns: 4;
  column-gap: 14px;
  margin-top: 28px;
}

/* ─── Work card ─── */
.work-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 14px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 20px;
  box-shadow: none;
  cursor: pointer;
  transition: opacity .28s ease;
}

.work-card:hover {
  opacity: .92;
}

.work-card img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  transition: transform .45s ease;
}
.work-card img { border-radius: 18px; }
.work-card:hover img { transform: scale(1.03); }

/* Hover overlay — fades in, no translateY to avoid reflow */
.work-copy {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 15px 15px;
  background: linear-gradient(to top, rgba(10,10,10,.82) 0%, rgba(10,10,10,.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity .25s ease;
  border-radius: 0 0 18px 18px;
  pointer-events: none;
}

.work-card:hover .work-copy { opacity: 1; }

.work-copy h3 { font-family: var(--font-display); font-size: 15px; font-weight: 400; font-style: italic; line-height: 1.3; color: #fff; }
.work-copy p  { margin: 4px 0 0; font-size: 10.5px; line-height: 1.5; letter-spacing: .04em; color: rgba(255,255,255,.65); }

/* Hidden cards (filtered out) */
.work-card.is-hidden {
  display: none;
}

/* ─── Full-width gallery image ─── */
.fullwidth-image {
  position: relative;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  background: #0e0e0e;
}
.fullwidth-image img { width: 100%; height: 70vh; object-fit: cover; object-position: center 40%; display: block; transition: transform 8s ease; }
.fullwidth-image:hover img { transform: scale(1.03); }
.fullwidth-image__caption { position: absolute; bottom: 24px; right: 28px; display: flex; gap: 16px; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: rgba(255,255,255,.6); font-weight: 500; font-family: var(--font-body); }
.fullwidth-image__caption span + span::before { content: '·'; margin-right: 16px; opacity: .4; }

/* ─── Bio ─── */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.list-card p { margin: 0 0 13px; color: var(--muted); font-size: 16px; line-height: 1.65; font-weight: 300; }
.list-card p:last-child { margin-bottom: 0; }
.bio-right h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; font-style: italic; margin-bottom: 4px; }
.stack { display: grid; gap: 10px; margin-top: 20px; }
.stack-item { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 13px 17px; color: var(--muted); font-size: 14px; line-height: 1.55; font-weight: 300; transition: border-color .2s, box-shadow .2s; }
.stack-item:hover { border-color: rgba(14,14,14,.2); box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.bio-cluster { margin-top: 32px; }
.bio-cluster h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; font-weight: 500; color: rgba(14,14,14,.38); margin-bottom: 12px; }

/* Portfolio download link */
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .18s, opacity .18s;
}
.portfolio-link:hover { border-color: var(--ink); opacity: .7; }

/* ─── Curation ─── */
.cards.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.dark-card { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 24px; padding: 28px; color: #fff; transition: transform .24s ease, background .24s ease, border-color .24s ease; }
.dark-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.dark-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 400; font-style: italic; margin-bottom: 12px; }
.dark-card p { color: rgba(255,255,255,.6); line-height: 1.72; font-size: 15px; font-weight: 300; flex: 1; }
.dark-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px; margin-bottom: 20px; flex-shrink: 0; }
.dark-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; border-radius: 16px; }
.dark-card:hover .dark-card-img img { transform: scale(1.04); }

/* ─── Press ─── */
.press-grid { margin-top: 30px; }
.press-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; transition: transform .24s ease, box-shadow .24s ease; }
.press-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.07); }
.press-card span { display: inline-block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(14,14,14,.36); margin-bottom: 12px; font-weight: 500; }
.press-card h3 { font-family: var(--font-display); font-size: 21px; line-height: 1.25; margin-bottom: 10px; font-weight: 400; font-style: italic; flex: 1; }
.press-card p { color: var(--muted); line-height: 1.65; font-size: 14px; }
.press-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 14px; margin-bottom: 18px; background: #f0ece4; flex-shrink: 0; }
.press-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.press-card:hover .press-img img { transform: scale(1.04); }
.press-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 16px 18px; gap: 4px; }
.press-img--artspring { background: linear-gradient(135deg, #0c00ff 0%, #4d00cc 60%, #1a0080 100%); }
.press-img--stern { background: linear-gradient(135deg, #1a1a1a 0%, #3d2c00 60%, #1a1400 100%); }
.press-placeholder__year { font-size: 10px; text-transform: uppercase; letter-spacing: .26em; font-weight: 500; color: rgba(255,255,255,.5); font-family: var(--font-body); }
.press-placeholder__name { font-family: var(--font-display); font-size: 28px; font-weight: 300; font-style: italic; color: rgba(255,255,255,.9); line-height: 1.1; }

/* ─── Newsletter ─── */
.newsletter { background: var(--blue); color: #fff; }
.contact-box { text-align: center; }
.contact-form { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.contact-form input { width: min(500px, 100%); min-height: 56px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); padding: 0 22px; font-size: 15px; font-family: var(--font-body); background: rgba(255,255,255,.06); color: #fff; outline: none; transition: border-color .2s, background .2s; }
.contact-form input::placeholder { color: rgba(255,255,255,.38); }
.contact-form input:focus { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.1); }
.contact-form button { min-height: 56px; border: none; border-radius: 999px; background: #0e0e0e; color: #fff; padding: 0 28px; font-weight: 700; font-size: 14px; font-family: var(--font-body); letter-spacing: .04em; cursor: pointer; transition: opacity .2s, transform .2s; }
.contact-form button:hover { opacity: .84; transform: translateY(-1px); }
.contact-form button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ─── Footer ─── */
.footer { padding: 30px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: rgba(14,14,14,.44); font-size: 13px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { transition: color .18s; }
.footer-links a:hover { color: var(--ink); }

/* ─── Toast ─── */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px); background: #0e0e0e; color: #fff; padding: 14px 24px; border-radius: 999px; font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 9999; transition: opacity .3s ease, transform .3s ease; box-shadow: 0 8px 32px rgba(0,0,0,.24); }
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--error { background: #c0392b; }

/* ─── Hamburger ─── */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; transition: background .18s; }
.nav-toggle:hover { background: rgba(14,14,14,.06); }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; position: fixed; top: 69px; left: 0; right: 0; background: rgba(245,241,234,.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); padding: 16px 24px 24px; gap: 4px; z-index: 39; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-nav a { padding: 13px 0; font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--line); letter-spacing: .01em; opacity: .7; transition: opacity .18s; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { opacity: 1; }

/* ─── Scroll margin ─── */
#works, #about, #bio, #curation, #press, #contact { scroll-margin-top: 72px; }

/* ─── Impressum page ─── */
.impressum-body { max-width: 720px; margin: 80px auto; padding: 0 24px 80px; }
.impressum-body h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 300; font-style: italic; margin-bottom: 48px; }
.impressum-body h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; font-style: italic; margin: 36px 0 12px; }
.impressum-body p, .impressum-body a { font-size: 16px; line-height: 1.75; color: var(--muted); font-weight: 300; }
.impressum-body a { color: var(--blue); }
.impressum-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 48px; opacity: .6; transition: opacity .18s; }
.impressum-back:hover { opacity: 1; }

/* ─── Responsive ─── */
@media (max-width: 1100px) { .works-grid { columns: 3; } }

@media (max-width: 980px) {
  .hero-grid { min-height: auto; padding: 60px 0 52px; grid-template-columns: 1fr; }
  .hero-art { margin: 20px 0 0; max-width: 100%; }
  .hero h1 { font-size: clamp(46px, 10vw, 72px); }
  .two-col, .split { grid-template-columns: 1fr; }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .works-grid { columns: 3; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .nav nav { display: none; }
  .meta-strip { display: none; }
  .hero-grid { padding: 48px 0 40px; gap: 40px; }
  .hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .lead { font-size: 17px; }
  .hero-art img { border-radius: 22px; }
  .hero-art-badge { font-size: 9.5px; padding: 9px 14px; }
  .section { padding: 72px 0; }
  .section h2 { font-size: clamp(30px, 8vw, 46px); }
  .card { padding: 26px 22px; }
  .prose p { font-size: 17px; }
  .works-grid { columns: 2; column-gap: 10px; }
  .work-card { margin-bottom: 10px; }
  /* on touch: always show overlay */
  .work-copy { opacity: 1; transform: translateY(0); }
  .cards.two { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { gap: 14px; }
  .contact-form { flex-direction: column; align-items: center; }
  .contact-form input, .contact-form button { width: 100%; }
  .lightbox-nav { display: none; }
  .fullwidth-image img { height: 50vw; min-height: 280px; }
}

@media (max-width: 480px) {
  .works-grid { columns: 2; column-gap: 8px; }
  .work-card { margin-bottom: 8px; border-radius: 14px; }
  .hero-actions { gap: 10px; }
  .button { min-height: 50px; font-size: 13px; padding: 0 20px; }
  .toast { white-space: normal; text-align: center; max-width: calc(100% - 48px); }
}

/* ─── Lightbox ─── */
.lightbox-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,8,.92); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .28s ease; padding: 24px; }
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-inner { position: relative; max-width: min(600px, 90vw); width: 100%; transform: translateY(18px) scale(.97); transition: transform .3s ease; }
.lightbox-overlay.open .lightbox-inner { transform: translateY(0) scale(1); }
.lightbox-inner img { width: 100%; height: auto; max-height: 75vh; border-radius: 20px; box-shadow: 0 40px 100px rgba(0,0,0,.6); object-fit: contain; }
.lightbox-meta { margin-top: 20px; color: #fff; text-align: center; }
.lightbox-meta h3 { font-family: var(--font-display); font-size: 26px; font-weight: 300; font-style: italic; margin-bottom: 6px; }
.lightbox-meta p { font-size: 12px; color: rgba(255,255,255,.48); letter-spacing: .1em; text-transform: uppercase; }
.lightbox-close { position: fixed; top: 22px; right: 26px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

@media print { .topbar, .hero-glow, .hero-actions, .newsletter, .footer { display: none; } }
