@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400&display=swap');

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

:root {
  --black: #080808;
  --deep: #0d0d14;
  --glow: rgba(90, 60, 160, 0.12);
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.4);
  --white: #e8e4dc;
  --muted: #6a6560;
}

html, body {
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* ── LANDING ── */
.landing {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#feather-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.landing-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: fadeIn 2s ease forwards;
}

.landing-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.landing-text .subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.08em;
}

#enter-btn {
  margin-top: 1.5rem;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 0.7rem 2.2rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

#enter-btn:hover {
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 0 20px var(--gold-dim);
}

/* ── GALLERY ── */
.gallery {
  min-height: 100vh;
  background: var(--black);
  padding: 3rem 2rem 6rem;
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.gallery-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
}

.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.exhibit-card {
  background: var(--deep);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 1.8rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.exhibit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow);
  opacity: 0;
  transition: opacity 0.3s;
}

.exhibit-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 0 40px rgba(90, 60, 160, 0.15);
  transform: translateY(-2px);
}

.exhibit-card:hover::before {
  opacity: 1;
}

.exhibit-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.exhibit-card .preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: normal;
}

.exhibit-card .card-number {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.1em;
}

/* ── EXHIBIT VIEW ── */
.exhibit-view {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem 8rem;
  animation: fadeIn 0.6s ease forwards;
}

.back-btn {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.2s;
  margin-bottom: 4rem;
  max-width: 700px;
  width: 100%;
}

.back-btn:hover {
  color: var(--gold);
}

.exhibit-content {
  max-width: 680px;
  width: 100%;
}

.exhibit-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3rem;
  line-height: 1.2;
}

#exhibit-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: #b0aaa0;
  line-height: 1.9;
  white-space: pre-wrap;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.exhibit-card {
  animation: cardIn 0.5s ease both;
}
