:root {
  --canvas: #fafafa;
  --ink: #111111;
  --muted: #737373;
  --border: #e5e5e5;
  --card-bg: #eaeaea;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--ink);
  color: #ffffff;
}

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

.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.8);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

/* Main */
.main-wrap {
  padding-top: 52px;
  padding-bottom: 92px;
}

.work-section {
  scroll-margin-top: 96px;
}

.work-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.filter-btn {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 8px;
  margin-bottom: -9px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.filter-btn:hover {
  color: var(--ink);
}

.filter-btn.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

/* Masonry Gallery */
.masonry-grid {
  column-count: 3;
  column-gap: 24px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.photo-card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 24px;
  overflow: hidden;
  background: var(--card-bg);
  cursor: zoom-in;
  opacity: 0;
  animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s ease-out;
}

.photo-card:hover img {
  transform: scale(1.025);
}

.photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.24) 60%, transparent);
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.photo-card:hover .photo-caption {
  opacity: 1;
}

.photo-caption h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.photo-caption p {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: #d4d4d4;
}

.photo-year {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4d4d4;
}

/* About & Contact */
.about-section {
  margin-top: 112px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
}

.about-lead {
  margin: 16px 0 0;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 56ch;
}

.meta-block {
  margin-top: 28px;
}

.meta-line {
  margin: 0;
  font-size: 0.9rem;
  color: #404040;
}

.exhibitions-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: #404040;
}

.exhibitions-list span {
  display: inline-block;
  width: 48px;
  color: var(--muted);
}

.contact-col {
  padding-left: 24px;
}

.contact-copy {
  margin: 16px 0 20px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  border-bottom: 1px solid #d4d4d4;
  padding: 0 0 4px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.email-btn:hover {
  border-bottom-color: var(--ink);
}

.social-row {
  display: flex;
  gap: 24px;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.social-row a:hover {
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.96);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px;
  user-select: none;
}

.lightbox[hidden] {
  display: none;
}

.lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.lb-close {
  background: none;
  border: 0;
  color: #d4d4d4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  cursor: pointer;
  padding: 6px;
}

.lb-close:hover {
  color: #ffffff;
}

.lb-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  overflow: hidden;
}

.lb-stage img {
  max-height: 76vh;
  max-width: 88vw;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: opacity 0.18s ease;
}

.lb-nav {
  position: absolute;
  z-index: 10;
  background: none;
  border: 0;
  color: #a3a3a3;
  padding: 14px;
  cursor: pointer;
}

.lb-nav:hover {
  color: #ffffff;
}

.lb-prev {
  left: 4px;
}

.lb-next {
  right: 4px;
}

.lb-caption {
  text-align: center;
}

.lb-title {
  margin: 0;
  font-size: 0.98rem;
}

.lb-meta {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #a3a3a3;
  letter-spacing: 0.04em;
}

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 10px 16px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .masonry-grid {
    column-count: 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-col {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .masonry-grid {
    column-count: 1;
  }

  .nav {
    gap: 18px;
  }
}
