/**
 * Page hero — Narrative & Characters intro
 */

.nar-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  background: var(--citrus-cream);
  text-align: center;
}

.nar-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgb(242 60 158 / 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgb(196 230 0 / 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgb(107 63 160 / 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.nar-page-hero > .nar-container {
  position: relative;
  z-index: 1;
}

.nar-page-hero__intro {
  max-width: 42rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.nar-page-hero__intro .nar-body {
  margin: 0 auto;
  color: #404040;
}

.nar-page-hero__nav-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.nar-universe-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  background: rgb(255 255 255 / 0.85);
  border: 1px solid rgb(0 0 0 / 0.08);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nar-universe-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
}

.nar-universe-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nar-universe-pill__dot--marquise { background: var(--swamp-mist); }
.nar-universe-pill__dot--lolo { background: var(--citrus-fuchsia); }

/* Selected work gallery — each plate scaled to suit its own format */
.nar-hero-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3.5rem, 8vw, 6rem);
  margin: clamp(3rem, 7vw, 5rem) auto 0;
}

.nar-hero-gallery__heading {
  margin: 0;
  font-family: var(--ab-sans, 'Inter', sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.nar-hero-art {
  width: min(58rem, 92vw);
  margin: 0 auto;
}

/* Panoramas need width, not height, to read at all */
.nar-hero-art--panorama {
  width: 100%;
}

.nar-hero-art__caption {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 1.1rem 0 0;
  font-family: 'Inter', sans-serif;
}

.nar-hero-art__title {
  font-family: var(--ab-display, 'Playfair Display', Georgia, serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #171717;
}

.nar-hero-art__meta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8a8a8a;
}

.nar-art-trigger {
  all: unset;
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.nar-art-trigger:hover,
.nar-art-trigger:focus-visible {
  transform: scale(1.03);
}

.nar-art-trigger:focus-visible {
  outline: 2px solid var(--citrus-fuchsia, #F23C9E);
  outline-offset: 6px;
}

.nar-hero-art__img {
  width: 100%;
  height: auto;
  display: block;
}

.nar-art-trigger__hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111;
  background: rgb(255 255 255 / 0.85);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.nar-art-trigger:hover .nar-art-trigger__hint,
.nar-art-trigger:focus-visible .nar-art-trigger__hint {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox — white overlay, PNG art keeps its transparency clean */
.nar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.nar-lightbox[hidden] { display: none; }

.nar-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 0.97);
  border: none;
  padding: 0;
  cursor: zoom-out;
}

.nar-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: 94vw;
  line-height: 0;
  overflow: visible;
}

.nar-lightbox__stage {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 94vw;
  margin: 0 auto;
  overflow: visible;
  line-height: 0;
  container-type: inline-size;
}

.nar-lightbox__overlays {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.nar-lightbox__image {
  display: block;
  max-width: 94vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.nar-lightbox__close {
  position: fixed;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(0 0 0 / 0.25);
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.nar-lightbox__close:hover,
.nar-lightbox__close:focus-visible {
  background: #f5f5f5;
}

@media (prefers-reduced-motion: reduce) {
  .nar-art-trigger,
  .nar-art-trigger:hover,
  .nar-art-trigger:focus-visible,
  .nar-art-trigger img,
  .nar-art-trigger:hover img,
  .nar-art-trigger:focus-visible img {
    transform: none;
    transition: none;
  }
}

@media (max-width: 40rem) {
  .nar-lightbox {
    padding: 3.75rem 0.7rem 1.1rem;
  }

  .nar-lightbox__image {
    max-height: 78vh;
  }
}

