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

:root {
  --ink: #eae7e1;
  --ink-dim: rgba(234, 231, 225, 0.55);
  --accent: #b9a8ff;
  --bg: #05060a;
}

html, body {
  height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--ink);
}

/* ---------- loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: var(--ink-dim);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* ---------- stage ---------- */

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.stage.leaving {
  animation: stage-out 0.7s ease forwards;
}

@keyframes stage-out {
  to { opacity: 0; filter: blur(6px); }
}

/* ---------- ambient background (no video) ---------- */

.ambient-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, #11131c 0%, #05060a 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  top: 8%;
  left: 12%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(140,120,255,0.35), transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.orb-b {
  bottom: 5%;
  right: 8%;
  width: 36vw;
  height: 36vw;
  background: radial-gradient(circle, rgba(120,170,255,0.28), transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}

.orb-c {
  top: 40%;
  left: 48%;
  width: 26vw;
  height: 26vw;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, 8vh) scale(1.15); }
}

@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5vw, -6vh) scale(1.1); }
}

@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4vw, 5vh) scale(1.25); }
}

/* subtle film grain */
.grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 2%); }
  50%  { transform: translate(2%, -1%); }
  75%  { transform: translate(-1%, -2%); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(2,3,6,0.75) 100%),
    linear-gradient(to bottom, rgba(2,3,6,0.55) 0%, rgba(2,3,6,0.15) 30%, rgba(2,3,6,0.15) 65%, rgba(2,3,6,0.85) 100%);
}

.haze {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(185,168,255,0.06), transparent 40%, rgba(120,150,255,0.05) 70%);
  mix-blend-mode: screen;
  animation: haze-drift 18s ease-in-out infinite alternate;
}

@keyframes haze-drift {
  0%   { opacity: 0.6; transform: translateX(-2%) translateY(0); }
  100% { opacity: 1;   transform: translateX(2%) translateY(-1%); }
}

/* ---------- content ---------- */

.content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  color: var(--ink-dim);
  opacity: 0;
  animation: fade-up 1.6s ease forwards;
  animation-delay: 1.9s;
}

.title {
  margin-top: 0.9rem;
  font-weight: 200;
  line-height: 1.15;
}

.title .line {
  display: block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(24px);
  animation: reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, filter, opacity;
}

.title .line:first-child {
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink-dim);
  animation-delay: 2.15s;
}

.title .line.emphasis {
  margin-top: 0.35rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #fff, #cfc4ff 45%, #8f9dff 75%, #fff);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards, shimmer 10s linear infinite;
  animation-delay: 2.45s, 4.3s;
}

@keyframes reveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to { background-position: -220% -220%; }
}

.tagline {
  margin-top: 1.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  opacity: 0;
  animation: fade-up 1.6s ease forwards;
  animation-delay: 3.1s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- enter button ---------- */

.enter-btn {
  position: relative;
  margin-top: 3.2rem;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fade-up 1.6s ease forwards;
  animation-delay: 3.4s;
}

.enter-btn-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(234, 231, 225, 0.4);
  transition: all 0.5s ease;
}

.enter-btn::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(234, 231, 225, 0.12);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0.9; }
}

.enter-btn-label {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  font-size: 0.95rem;
}

.enter-btn:hover .enter-btn-ring {
  transform: scale(1.15);
  background: rgba(234, 231, 225, 0.08);
  border-color: rgba(234, 231, 225, 0.7);
}

.stage.entered .enter-btn {
  pointer-events: none;
  animation: fade-out 0.8s ease forwards;
}

@keyframes fade-out {
  to { opacity: 0; transform: scale(0.85); }
}

/* ---------- exhibition page ---------- */

.exhibit-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  opacity: 0;
  animation: fade-up 1.2s ease forwards;
  animation-delay: 0.3s;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--ink);
}

.back-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
  transform: translateX(-4px);
}

.exhibit-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.exhibit-title {
  margin-top: 0.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  color: var(--ink);
  opacity: 0;
  animation: fade-up 1.4s ease forwards;
  animation-delay: 0.5s;
}

.video-frame {
  position: relative;
  margin: 2.6rem auto 0;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(234,231,225,0.08);
  opacity: 0;
  animation: fade-up 1.6s ease forwards;
  animation-delay: 0.8s;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}

/* ---------- sound toggle ---------- */

.sound-toggle {
  position: relative;
  width: fit-content;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  opacity: 0;
  animation: fade-up 1.4s ease forwards;
  animation-delay: 1.1s;
}

.sound-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(234, 231, 225, 0.35);
  font-size: 0.85rem;
  transition: all 0.4s ease;
}

.sound-toggle.on .sound-icon {
  border-color: var(--accent);
  color: var(--accent);
  animation: breathe 2.5s ease-in-out infinite;
}

.sound-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  font-family: 'Jost', sans-serif;
}

.sound-toggle:hover .sound-icon {
  border-color: var(--ink);
}

