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

:root {
  --bg: #0A0A0A;
  --fg: #FFFFFF;
  --muted: rgba(255,255,255,0.35);
  --faint: rgba(255,255,255,0.08);
  --f: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--f);
  font-weight: 700;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 40px 0;
}

.nav-name {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--fg);
  opacity: 0.7;
  transition: opacity 0.15s;
  text-align: center;
}

.nav-name:hover { opacity: 1; }

.works-btn {
  margin-top: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 7px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: var(--fg);
  border: none;
  font-family: var(--f);
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}

.works-btn:hover { background: rgba(255,255,255,0.18); }

.works-btn.active {
  background: var(--fg);
  color: var(--bg);
}

.view { display: none; }
.view.active { display: block; }

.matrix-outer {
  padding: 28px 40px 20px;
  position: relative;
}

.matrix-cols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  z-index: 2;
}

.matrix-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px;
}

.ftag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--fg);
  opacity: 0.28;
  transition: opacity 0.12s, background 0.12s;
  white-space: nowrap;
  user-select: none;
  line-height: 1.6;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 13px;
  background: transparent;
}

.ftag:hover {
  opacity: 0.75;
  background: rgba(255,255,255,0.08);
}

.ftag.active {
  opacity: 1;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 1px 4px rgba(255,255,255,0.1);
}

#connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.matrix-status {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 10px;
}

.matrix-status-text {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-clear {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--f);
  transition: color 0.12s;
  padding: 0;
}

.btn-clear:hover { color: var(--fg); }

.slideshow-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 56px;
}

.slideshow-frame {
  width: min(520px, 74vw);
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.slide.visible { opacity: 1; }

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-color {
  width: 100%;
  height: 100%;
}

.slideshow-caption {
  margin-top: 20px;
  text-align: center;
  width: min(520px, 74vw);
}

.caption-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.caption-sub {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.dot {
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transition: background 0.2s;
  cursor: pointer;
}

.dot.active { background: var(--fg); }

.no-results-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  width: min(520px, 74vw);
  aspect-ratio: 3/4;
}

.works-header {
  padding: 8px 40px 20px;
}

.works-header-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0 40px 64px;
}

.work-item { cursor: pointer; }

.work-frame {
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  transition: opacity 0.18s;
}

.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item:hover .work-frame { opacity: 0.5; }

.work-meta { margin-top: 10px; }

.work-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg);
}

.work-year {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
}

.works-empty {
  grid-column: 1/-1;
  padding: 80px 0;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}

.info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.info-overlay.open { display: flex; }

.info-blur-bg {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(18px) brightness(0.35);
  -webkit-backdrop-filter: blur(18px) brightness(0.35);
  background: rgba(0,0,0,0.5);
}

.info-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 480px;
  padding: 0 32px;
  cursor: default;
}

.info-content-name {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}

.info-content-body {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 2;
  color: var(--fg);
  text-transform: uppercase;
}

.info-content-body a {
  color: var(--fg);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.12s;
}

.info-content-body a:hover { opacity: 1; }

.info-close-hint {
  margin-top: 40px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lb-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(10,10,10,0.97);
}

.lb-counter {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.lb-close-btn {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-family: var(--f);
}

.lb-img {
  width: min(460px, 68vw);
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.07);
  margin-bottom: 20px;
  overflow: hidden;
}

.lb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-caption {
  width: min(460px, 68vw);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.lb-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.lb-exhibition {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 5px;
}

.lb-right { text-align: right; }

.lb-year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.lb-medium {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 5px;
}

.lb-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  background: rgba(10,10,10,0.97);
}

.lb-nav {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--f);
  transition: color 0.12s;
}

.lb-nav:hover { color: var(--fg); }
