/* ============================================================
   NIGHT SHADE ANOMALOUS PROFILE — A-007
   ============================================================ */
.ns-body {
  background: #0a0610;
  color: #d4c8e0;
  min-height: 100dvh;
}

.ns-grid-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 40, 180, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 40, 180, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 22%, transparent 78%);
}

.ns-header .header-inner {
  max-width: 1180px;
}

.ns-header .main-nav a.is-active {
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(126, 34, 206, 0.15);
}

.ns-badge {
  font-family: var(--mono, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.4);
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.ns-main {
  position: relative;
  z-index: 1;
}

.ns-btn {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.45), rgba(88, 28, 135, 0.55)) !important;
  border-color: #c084fc !important;
  color: #f5e8ff !important;
}

/* Hero */
.ns-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid rgba(192, 132, 252, 0.3);
}

.ns-hero-media {
  position: absolute;
  inset: 0;
}

.ns-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.ns-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 16, 0.4) 0%, rgba(10, 6, 16, 0.6) 40%, rgba(10, 6, 16, 0.97) 100%),
    linear-gradient(90deg, rgba(10, 6, 16, 0.88) 0%, transparent 55%);
}

.ns-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
  width: 100%;
}

.ns-kicker,
.ns-section-label {
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #c084fc;
  margin: 0 0 0.5rem;
}

.ns-hero h1 {
  font-family: var(--mono, monospace);
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  letter-spacing: 0.14em;
  color: #f5e8ff;
  margin: 0 0 0.4rem;
  text-shadow: 0 0 40px rgba(192, 132, 252, 0.4);
}

.ns-hero-id {
  font-family: var(--mono, monospace);
  font-size: 0.82rem;
  color: #d8b4fe;
  margin: 0 0 1rem;
}

.ns-lede {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #b0a0c0;
  margin: 0 0 1.25rem;
}

.ns-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.ns-chip {
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #e9d5ff;
  background: rgba(40, 12, 60, 0.55);
}

.ns-chip-warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.ns-chip-violet {
  color: #f0abfc;
  border-color: rgba(232, 121, 249, 0.5);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.2);
}

.ns-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Intro */
.ns-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

.ns-intro-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
}

.ns-portrait-card {
  margin: 0;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background: #100818;
  box-shadow: 0 16px 40px rgba(80, 20, 120, 0.25);
  overflow: hidden;
}

.ns-portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  filter: contrast(1.05) grayscale(0.15);
  background: #0a0610;
}

.ns-portrait-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #c084fc;
  background: #08040e;
  border-top: 1px solid rgba(192, 132, 252, 0.25);
}

.ns-intro-copy h2 {
  font-family: var(--mono, monospace);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: 0.06em;
  color: #f5e8ff;
  margin: 0 0 0.85rem;
}

.ns-intro-copy p {
  color: #b0a0c0;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.ns-pull {
  border-left: 3px solid #c084fc;
  padding: 0.55rem 0 0.55rem 0.9rem;
  color: #e9d5ff !important;
  background: rgba(88, 28, 135, 0.15);
}

.ns-vitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.25rem 0 0;
  border: 1px solid rgba(192, 132, 252, 0.28);
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
}

.ns-vitals > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(192, 132, 252, 0.12);
  border-right: 1px solid rgba(192, 132, 252, 0.12);
  color: #9a88b0;
}

.ns-vitals > div:nth-child(2n) { border-right: none; }
.ns-vitals > div:nth-last-child(-n + 2) { border-bottom: none; }
.ns-vitals dt { font-weight: 400; }
.ns-vitals dd { margin: 0; color: #e9d5ff; text-align: right; }

/* Sections */
.ns-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.5rem;
}

.ns-section h2 {
  font-family: var(--mono, monospace);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.06em;
  color: #f5e8ff;
  margin: 0 0 0.5rem;
}

.ns-section-intro {
  color: #a898bc;
  max-width: 42rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.ns-section a {
  color: #d8b4fe;
}

/* Vectors */
.ns-vector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.ns-vector {
  border: 1px solid rgba(126, 34, 206, 0.35);
  background: linear-gradient(160deg, rgba(40, 12, 60, 0.45), rgba(8, 4, 16, 0.96));
  padding: 1.1rem 1.15rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.2s;
}

.ns-vector.is-in {
  opacity: 1;
  transform: none;
}

.ns-vector:hover {
  border-color: rgba(232, 121, 249, 0.45);
}

.ns-vector h3 {
  font-family: var(--mono, monospace);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #f0abfc;
  margin: 0 0 0.55rem;
}

.ns-vector p {
  color: #b0a0c0;
  line-height: 1.55;
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.ns-vector-speech { border-left: 3px solid #e879f9; }
.ns-vector-face { border-left: 3px solid #c084fc; }
.ns-vector-whisper { border-left: 3px solid #a78bfa; }
.ns-vector-para { border-left: 3px solid #818cf8; }

.ns-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ns-tags li {
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(192, 132, 252, 0.3);
  color: #d8b4fe;
  background: rgba(40, 12, 60, 0.45);
}

.ns-inline-fig {
  margin: 0.75rem 0 1rem;
  border: 1px solid rgba(192, 132, 252, 0.25);
  overflow: hidden;
  background: #08040e;
}

.ns-inline-fig img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.ns-inline-fig figcaption {
  font-family: var(--mono, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #7c6a94;
  padding: 0.4rem 0.55rem;
  border-top: 1px solid rgba(192, 132, 252, 0.15);
}

.ns-redact {
  background: linear-gradient(90deg, #1a1025, #2a1838);
  color: transparent;
  text-shadow: 0 0 0 transparent;
  user-select: none;
  padding: 0 0.2em;
  border-radius: 2px;
  position: relative;
}

.ns-redact::after {
  content: "████████";
  color: #c084fc;
  letter-spacing: -0.05em;
  opacity: 0.7;
}

/* Theaters */
.ns-theater-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.ns-theater-fig {
  margin: 0;
  border: 1px solid rgba(192, 132, 252, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ns-theater-fig.is-in,
.ns-theater-copy.is-in {
  opacity: 1;
  transform: none;
}

.ns-theater-copy {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ns-theater-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.ns-theater-fig figcaption {
  font-family: var(--mono, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #7c6a94;
  padding: 0.4rem 0.55rem;
  background: #08040e;
  border-top: 1px solid rgba(192, 132, 252, 0.15);
}

.ns-theater-copy h3 {
  font-family: var(--mono, monospace);
  font-size: 1.05rem;
  color: #f5e8ff;
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}

.ns-theater-copy p {
  color: #b0a0c0;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.ns-deny-box {
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(40, 28, 8, 0.35);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
}

.ns-deny-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #fbbf24;
  margin: 0.5rem 0 0.25rem;
}

.ns-deny-label:first-child { margin-top: 0; }

.ns-deny-box p {
  color: #d4c8b0;
  margin: 0 0 0.35rem;
  line-height: 1.45;
  font-size: 0.8rem;
}

/* Six */
.ns-six-card {
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: linear-gradient(135deg, rgba(20, 40, 70, 0.35), rgba(12, 6, 20, 0.95));
  padding: 1.35rem 1.4rem;
  max-width: 46rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ns-six-card.is-in {
  opacity: 1;
  transform: none;
}

.ns-six-card p {
  color: #b0a8c0;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.ns-quote {
  font-family: var(--mono, monospace);
  font-size: 1.05rem;
  color: #e8f4ff;
  border-left: 3px solid #60a5fa;
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1rem 0 1.15rem;
  background: rgba(15, 30, 50, 0.35);
}

.ns-quote cite {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  font-style: normal;
  color: #7dd3fc;
  letter-spacing: 0.08em;
}

/* Polarity */
.ns-polarity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.ns-pole {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(126, 34, 206, 0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ns-pole.is-in {
  opacity: 1;
  transform: none;
}

.ns-pole h3 {
  font-family: var(--mono, monospace);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin: 0 0 0.55rem;
}

.ns-pole p {
  color: #b0a0c0;
  line-height: 1.55;
  margin: 0;
  font-size: 0.95rem;
}

.ns-pole-hope {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(160deg, rgba(6, 40, 30, 0.45), rgba(8, 4, 16, 0.95));
}

.ns-pole-hope h3 { color: #6ee7b7; }

.ns-pole-pain {
  border-color: rgba(248, 113, 113, 0.35);
  background: linear-gradient(160deg, rgba(50, 12, 20, 0.45), rgba(8, 4, 16, 0.95));
}

.ns-pole-pain h3 { color: #fca5a5; }

/* Gallery */
.ns-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.ns-gallery figure {
  margin: 0;
  border: 1px solid rgba(126, 34, 206, 0.3);
  background: #08040e;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ns-gallery figure.is-in {
  opacity: 1;
  transform: none;
}

.ns-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ns-gallery figcaption {
  font-family: var(--mono, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: #7c6a94;
  padding: 0.4rem 0.5rem;
}

/* Close */
.ns-close {
  padding-bottom: 3rem;
}

.ns-close-card {
  border: 1px solid rgba(192, 132, 252, 0.4);
  background:
    linear-gradient(180deg, rgba(60, 20, 90, 0.35), rgba(8, 4, 16, 0.98)),
    #0a0610;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

.ns-close-emblem {
  display: block;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.4));
}

.ns-close-card h2 {
  margin-bottom: 0.75rem;
}

.ns-close-card > p {
  color: #b0a0c0;
  line-height: 1.55;
  margin: 0 0 0.85rem;
  text-align: left;
}

.ns-close-quote {
  font-family: var(--mono, monospace);
  font-size: 0.95rem;
  color: #f5e8ff !important;
  border-left: 3px solid #c084fc;
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.25rem 0 !important;
  text-align: left !important;
}

.ns-close-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-style: normal;
  color: #c084fc;
  letter-spacing: 0.08em;
}

.ns-close-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.ns-disclaimer {
  font-family: var(--mono, monospace);
  font-size: 0.62rem !important;
  line-height: 1.45 !important;
  color: #6b5a80 !important;
  text-align: left !important;
  margin: 0 !important;
  border-top: 1px solid rgba(120, 80, 160, 0.3);
  padding-top: 0.85rem;
}

.ns-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
  text-align: center;
  font-family: var(--mono, monospace);
  font-size: 0.7rem;
  color: #6b5a80;
  position: relative;
  z-index: 1;
}

.ns-footer a {
  color: #c084fc;
}

@media (max-width: 900px) {
  .ns-vector-grid,
  .ns-theater-split,
  .ns-polarity {
    grid-template-columns: 1fr;
  }

  .ns-intro-grid {
    grid-template-columns: 1fr;
  }

  .ns-portrait-card {
    max-width: 280px;
    margin: 0 auto;
  }

  .ns-vitals {
    grid-template-columns: 1fr;
  }

  .ns-vitals > div {
    border-right: none;
  }

  .ns-vitals > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(192, 132, 252, 0.12);
  }

  .ns-vitals > div:last-child {
    border-bottom: none;
  }

  .ns-badge {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-vector,
  .ns-six-card,
  .ns-pole,
  .ns-gallery figure,
  .ns-theater-fig,
  .ns-theater-copy {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
