/* ---------- Intro splash ---------- */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  opacity: 1;
  transition: opacity 1500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-splash__logo {
  font-family: var(--font-logo);
  font-size: clamp(1.5rem, 7vw, 5rem);
  line-height: 1.4;
  color: var(--color-ink);
  text-align: center;
  white-space: nowrap;
  transition: transform 1600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-splash.is-hidden .intro-splash__logo {
  transform: scale(0.92);
}

.intro-splash.is-removed {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash {
    transition: none;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--gutter);
  background: rgba(32, 29, 27, 0.94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__figure img {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__caption {
  margin-top: var(--space-4);
  text-align: center;
  color: #f7f5f1;
}

.lightbox__caption .work-card__title {
  color: #f7f5f1;
}

.lightbox__caption .work-card__meta {
  color: rgba(247, 245, 241, 0.7);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: #f7f5f1;
  cursor: pointer;
  padding: var(--space-3);
}

.lightbox__close {
  top: var(--space-4);
  right: var(--space-4);
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

.lightbox__nav--prev { left: var(--space-4); }
.lightbox__nav--next { right: var(--space-4); }

.lightbox__close:hover,
.lightbox__nav:hover {
  color: var(--color-ink-light);
}

@media (max-width: 600px) {
  .lightbox__nav--prev { left: var(--space-2); }
  .lightbox__nav--next { right: var(--space-2); }
}
