/* ==========================================================================
   SELF-HOSTED FONTS (ZERO FOUT / ZERO FLICKER)
   ========================================================================== */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/bebas_neue-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/space_mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/space_mono-700.woff2') format('woff2');
}

/* ==========================================================================
   DIMAGI NAXAL — CLASSIFIED ARCHIVE DESIGN SYSTEM
   Aesthetic: Dystopian Analog Film Grain, Brutalist High-Contrast, Forensic Dossier
   ========================================================================== */

:root {
  --color-void: #060709;
  --color-surface-dark: #0b0c10;
  --color-surface-card: #12141a;
  --color-surface-border: #1c1f26;
  --color-text-bone: #f1f3f7;
  --color-text-muted: #727a8a;
  --color-crimson: #e61426;
  --color-crimson-glow: rgba(230, 20, 38, 0.4);
  --color-hazard-amber: #f59e0b;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

/* High-Contrast Crisp Selection */
::selection {
  background: #e61426;
  color: #ffffff;
  text-shadow: none;
}

::-moz-selection {
  background: #e61426;
  color: #ffffff;
  text-shadow: none;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-void);
  color: var(--color-text-bone);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   ANALOG 35MM FILM GRAIN & CINEMATIC VIGNETTE
   ========================================================================== */
.film-grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.18;
  background-image: url('assets/film-grain.webp');
  background-repeat: repeat;
  background-size: 200px 200px;
}

.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 40%, transparent 40%, rgba(3, 4, 6, 0.85) 100%);
}

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

/* ==========================================================================
   SECTION 1: "WHO IS A DIMAGI NAXAL" (3D SPECIMEN EXPERIMENT)
   ========================================================================== */
.specimen-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 2.5rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 0.5rem;
  z-index: 10;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  letter-spacing: 0.05em;
  line-height: 0.95;
  color: #f1f3f7;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.section-title .text-crimson {
  color: #e61426;
  text-shadow: 0 0 35px rgba(230, 20, 38, 0.45);
}

.sickle-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: 0.02em;
  margin-left: 0.05em;
  color: #e61426;
  text-shadow: 0 0 35px rgba(230, 20, 38, 0.45);
  pointer-events: none;
  user-select: none;
}

.sickle-qmark-svg {
  height: 0.72em;
  width: auto;
  overflow: visible;
  display: block;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.35vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f1f5f9;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   3D STAGE + ANATOMY CALLOUTS
   ========================================================================== */
.viewer-container {
  position: relative;
  width: 100%;
  max-width: 1220px;
  height: clamp(560px, calc(100vh - 250px), 800px);
}

.stage {
  position: absolute;
  inset: 0;
}

#threeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: default;
  z-index: 10;
}

.rotate-mode #threeCanvas { cursor: grab; }
.rotate-mode #threeCanvas:active { cursor: grabbing; }

/* Loader */
.loader-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--color-void);
  z-index: 50;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-hud.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 44px; height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-crimson);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.25em; color: var(--color-text-bone); }
.loader-progress-bar { width: 220px; height: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loader-progress-fill { width: 0%; height: 100%; background: var(--color-crimson); transition: width 0.2s ease; }
.loader-percent { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-text-muted); }

/* Leader lines */
.hud-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
  overflow: visible;
  transition: opacity 0.3s ease;
}
.hud-leader-line {
  fill: none;
  stroke: rgba(230, 20, 38, 0.85);
  stroke-width: 1.25;
  stroke-linejoin: round;
  transition: stroke 0.2s ease, stroke-width 0.2s ease;
}
.hud-leader-cap { fill: #e61426; transition: fill 0.2s ease; }
.hud-leader-line.active { stroke: #ffffff; stroke-width: 1.75; }
.hud-leader-cap.active { fill: #ffffff; }

/* Origin dots — static, no pulse */
.body-dots-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 22;
  transition: opacity 0.3s ease;
}
.body-anchor-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #e61426;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.body-anchor-dot.active { transform: scale(1.45); background: #ffffff; border-color: #e61426; }

/* Callout columns */
.hud-column {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 290px;
  z-index: 30;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hud-column-left { left: 0; }
.hud-column-right { right: 0; }

/* Callout card: simple, editorial, impactful */
.hud-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 0.95rem 1.15rem 1.05rem;
  background: rgba(14, 15, 19, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  cursor: default;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hud-column-left .hud-card { text-align: right; border-right: 3px solid var(--color-crimson); }
.hud-column-right .hud-card { text-align: left; border-left: 3px solid var(--color-crimson); }

.hud-card.active {
  background: rgba(22, 10, 12, 0.92);
  border-color: rgba(230, 20, 38, 0.45);
}
.hud-column-left .hud-card.active { border-right-color: #ffffff; }
.hud-column-right .hud-card.active { border-left-color: #ffffff; }

.hud-card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ff3347;
  margin-bottom: 0.25rem;
}
.hud-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-text-bone);
  text-transform: uppercase;
}
.hud-card-desc {
  margin-top: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #e3e6ec;
}

/* 360° mode hides all annotation */
.rotate-mode .hud-column,
.rotate-mode .hud-svg-overlay,
.rotate-mode .body-dots-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   MODE TOGGLE
   ========================================================================== */
.hud-control-bar {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  z-index: 40;
}
.hud-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.4rem;
  background: rgba(12, 13, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hud-mode-btn:hover { border-color: var(--color-crimson); transform: translateY(-1px); }
.hud-mode-btn:focus-visible { outline: 2px solid var(--color-crimson); outline-offset: 3px; }
.hud-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: #ffffff;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffffff; }
.hud-mode-btn.rotating .status-dot { background: var(--color-crimson); }
.hud-mode-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #a0a8b6;
  transition: color 0.2s ease;
}
.hud-mode-btn:hover .hud-mode-action { color: #ffffff; }
#modeActionIcon { font-size: 1rem; }
.hud-mode-btn.rotating #modeActionIcon { color: var(--color-crimson); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .hud-column { width: 250px; }
  .hud-card-title { font-size: 1.45rem; }
  .hud-card-desc { font-size: 0.88rem; }
}

/* ==========================================================================
   PLAYBOOK DRAWER (DECLASSIFIED INTEL ROAST — MOBILE ONLY)
   ========================================================================== */
.playbook-drawer-container {
  display: none;
  width: 100%;
  max-width: 640px;
  margin: 1.5rem auto 1.5rem;
  position: relative;
  z-index: 15;
}

@media (max-width: 900px) {
  .specimen-section { padding: 2rem 1rem 1.5rem; }
  /* Mobile: rotating 3D model only — no callouts, lines, dots or toggle */
  .viewer-container { height: min(72vh, 620px); }
  .hud-column,
  .hud-svg-overlay,
  .body-dots-overlay,
  .hud-control-bar { display: none !important; }
  .playbook-drawer-container {
    display: block !important;
  }
}

.playbook-toggle-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 16, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 20, 38, 0.35);
  border-radius: 8px;
  padding: 0.95rem 2.85rem;
  color: var(--color-text-bone);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.playbook-toggle-btn:hover {
  border-color: rgba(230, 20, 38, 0.7);
  box-shadow: 0 4px 25px rgba(230, 20, 38, 0.2);
  transform: translateY(-1px);
}

.playbook-toggle-btn.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: rgba(230, 20, 38, 0.8);
  background: rgba(20, 23, 31, 0.96);
}

.playbook-btn-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  display: block;
}

.playbook-btn-chevron {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.playbook-toggle-btn.active .playbook-btn-chevron {
  transform: translateY(-50%) rotate(180deg);
  color: #ff4d5a;
}

.playbook-content {
  background: rgba(11, 13, 18, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(230, 20, 38, 0.35);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  animation: playbookSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes playbookSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.playbook-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.playbook-text .text-crimson {
  color: #ff3b4b;
  font-weight: 600;
}

.playbook-text .text-white {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   SECTION 2: MEET THE DIMAGI NAXALS
   ========================================================================== */
.dossier-section {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
  z-index: 20;
}

.dossier-header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3.2rem;
}

.gallery-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.gallery-title .text-crimson {
  color: #e61426;
  text-shadow: 0 0 35px rgba(230, 20, 38, 0.45);
}

/* ==========================================================================
   REDESIGNED CENTERED SEARCH BAR
   ========================================================================== */
.search-bar-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(180deg, #171b26 0%, #0f121a 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8),
              0 0 1px 1px rgba(255, 255, 255, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 105;
}

.search-bar-wrapper:hover {
  border-color: rgba(230, 20, 38, 0.65);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85),
              0 0 20px rgba(230, 20, 38, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-bar-wrapper:focus-within {
  border-color: var(--color-crimson);
  background: linear-gradient(180deg, #1c1518 0%, #120e10 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85),
              0 0 25px rgba(230, 20, 38, 0.4),
              inset 0 0 12px rgba(230, 20, 38, 0.15);
  transform: translateY(-2px);
}

.search-icon-svg {
  width: 19px;
  height: 19px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.search-bar-wrapper:focus-within .search-icon-svg {
  color: var(--color-crimson);
  transform: scale(1.08);
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.015em;
}

.search-input-field::placeholder {
  color: #8b9bb4;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.015em;
}

.search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-clear-btn:hover {
  background: var(--color-crimson);
  color: #ffffff;
  transform: scale(1.1);
}

/* ==========================================================================
   THE DOSSIER GRID & CARDS
   ========================================================================== */
.dossier-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.dossier-card {
  position: relative;
  width: calc((100% - 3 * 2rem) / 4);
  flex: 0 0 calc((100% - 3 * 2rem) / 4);
  background: #131722;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  z-index: 105;
}

.dossier-card:hover,
.dossier-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(230, 20, 38, 0.85);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9),
              0 0 28px rgba(230, 20, 38, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Tactical Corner Brackets */
.card-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 10;
  transition: border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}
.dossier-card:hover .card-corner {
  border-color: var(--color-crimson);
  width: 12px;
  height: 12px;
}
.card-corner-tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.card-corner-tr { top: 6px; right: 6px; border-top: 2px solid; border-right: 2px solid; }
.card-corner-bl { bottom: 6px; left: 6px; border-bottom: 2px solid; border-left: 2px solid; }
.card-corner-br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

/* Card Image Poster (3:4 Portrait Aspect Ratio) */
.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #06070a;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dossier-card:hover .card-img {
  transform: scale(1.03);
}

/* Card Footer: Just the Name */
.card-footer-info {
  padding: 0.95rem 1rem 1rem;
  background: linear-gradient(180deg, #181d28 0%, #11141c 100%);
  border-top: 1.5px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.dossier-card:hover .card-name {
  color: #ff3347;
  text-shadow: 0 0 16px rgba(230, 20, 38, 0.45);
}

.card-whatsapp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: 4px;
  padding: 0.42rem 0.85rem;
  color: #25d366;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.card-whatsapp-share-btn:hover {
  background: #25d366;
  color: #080a0f;
  border-color: #25d366;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

/* Empty State */
.grid-empty-state {
  width: 100%;
  flex: 1 1 100%;
  padding: 4rem 2rem;
  text-align: center;
  background: rgba(14, 16, 22, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.empty-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.empty-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.empty-desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #7d8799;
}

/* ==========================================================================
   CHARGE SHEET MODAL (PREMIUM EDITORIAL PAPER DOSSIER)
   ========================================================================== */
.dossier-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dossier-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dossier-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dossier-modal-dialog {
  position: relative;
  width: min(96vw, 1500px);
  max-width: 1500px;
  height: min(92vh, 900px);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 35px 100px -15px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.dossier-modal.active .dossier-modal-dialog {
  transform: scale(1);
}

/* Modal Top Bar: Minimal header with Close button */
.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1.5rem;
  background: #0f121a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 0.42rem 0.95rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.close-sym {
  font-weight: 700;
  font-size: 0.8rem;
}

/* Split Layout */
.modal-content-split {
  display: grid;
  grid-template-columns: minmax(460px, 48%) 1fr;
  flex: 1;
  overflow: hidden;
}

/* LEFT: Poster Image Column (Matte Gallery Mount) */
.modal-media-col {
  background: #090b10;
  padding: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.modal-poster-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-poster-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.08);
  image-rendering: -webkit-optimize-contrast;
}

/* RIGHT: Dossier Column (Luminous Editorial Paper Sheet) */
.modal-dossier-col {
  display: flex;
  flex-direction: column;
  background: #fbfbfa;
  overflow: hidden;
}

/* Scrollable Dossier Sheet */
.sheet-scrollable-body {
  flex: 1;
  overflow-y: auto;
  padding: 2.8rem 3.4rem 3.2rem;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.sheet-scrollable-body::-webkit-scrollbar {
  width: 6px;
}
.sheet-scrollable-body::-webkit-scrollbar-track {
  background: transparent;
}
.sheet-scrollable-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.sheet-scrollable-body::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Unified Dossier Article */
.dossier-document {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}

/* Header Section */
.doc-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #e2e8f0;
}

.doc-case-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #64748b;
}

.case-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #dc2626;
  background: #fee2e2;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

.doc-subject-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 4.4vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0.25rem 0 0.2rem;
}

.doc-alias-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.95rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
}

.alias-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #dc2626;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.alias-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f172a;
}

/* Executive Intel Contrast Card (Claimed vs Actual vs Base) */
.intel-summary-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.intel-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.05rem 1.4rem;
  border-bottom: 1px solid #f1f5f9;
}

.intel-row:last-child {
  border-bottom: none;
}

.intel-row.actual-row {
  background: #fff8f8;
}

.intel-label-col {
  display: flex;
  align-items: center;
}

.intel-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.32rem 0.7rem;
  border-radius: 4px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.claimed-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.actual-badge {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #dc2626;
}

.base-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.intel-val-col {
  display: flex;
  align-items: center;
}

.intel-val {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: #0f172a;
  line-height: 1.5;
  font-weight: 600;
}

.actual-val {
  color: #0f172a;
  font-weight: 750;
  font-size: 1.08rem;
}

.base-val {
  color: #1e293b;
  font-size: 1.02rem;
  font-weight: 550;
}

/* Document Section Blocks */
.doc-section {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.section-title-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #0f172a;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: #dc2626;
}

.doc-section-title {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0;
}

/* Primary Indictments — Clean High-Readability Charge Cards */
.charges-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.charge-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.25rem 1.45rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.charge-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.charge-header {
  margin-bottom: 0.55rem;
}

.charge-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.charge-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #0f172a;
  margin: 0;
  font-weight: 500;
}

/* Modus Operandi — Clean Insight Callout */
.modus-callout {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.35rem 1.6rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.modus-body {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.75;
  color: #0f172a;
  margin: 0;
  font-weight: 480;
}

/* Confiscated Evidence & Exhibits — Clean Exhibit Grid */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.evidence-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.evidence-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #dc2626;
  text-transform: uppercase;
}

.evidence-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.5;
}

/* Signature Catchphrase — Editorial Pull-Quote */
.statement-pullquote {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.4rem 1.75rem;
}

.pullquote-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #0f172a;
  font-weight: 600;
  margin: 0;
}

/* Modal WhatsApp Share Bar */
.modal-share-bar {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1.5px dashed #cbd5e1;
}

.modal-whatsapp-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.modal-whatsapp-share-btn:hover {
  background: #20bd5a;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.modal-whatsapp-share-btn svg {
  flex-shrink: 0;
}

/* Modal Bottom Navigation Footer */
.modal-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 20;
}

.modal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.5rem 1.15rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-nav-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

.nav-arrow {
  font-weight: 700;
  font-size: 0.8rem;
}

.modal-nav-center {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.nav-sub-label {
  color: #64748b;
}

.nav-counter {
  color: #0f172a;
  font-weight: 800;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR GALLERY & MODAL
   ========================================================================== */
@media (max-width: 1180px) {
  .dossier-card {
    width: calc((100% - 2 * 1.5rem) / 3);
    flex: 0 0 calc((100% - 2 * 1.5rem) / 3);
  }
  .dossier-grid {
    gap: 1.5rem;
  }
  .doc-attribute-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .dossier-modal-dialog {
    height: min(94vh, 900px);
    max-height: 94vh;
  }

  .modal-content-split {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .modal-media-col {
    flex: 0 0 auto;
    width: 100%;
    padding: 1.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    overflow: visible;
  }

  .modal-poster-wrap {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
  }

  .modal-poster-img {
    width: auto;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
  }

  .modal-dossier-col {
    flex: 1 0 auto;
    overflow: visible;
    background: #fbfbfa;
  }

  .sheet-scrollable-body {
    overflow: visible;
    flex: none;
    padding: 1.8rem 1.8rem 2.5rem;
  }

  .search-bar-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .dossier-section {
    padding: 3.5rem 1rem 4rem;
  }
  .dossier-grid {
    gap: 1rem;
  }
  .dossier-card {
    width: calc((100% - 1rem) / 2);
    flex: 0 0 calc((100% - 1rem) / 2);
  }
  .card-footer-info {
    padding: 0.75rem 0.5rem 0.85rem;
  }
  .card-name {
    font-size: 1.3rem;
  }
  .dossier-modal {
    padding: 0.4rem;
  }
  .dossier-modal-dialog {
    height: 96vh;
    max-height: 96vh;
    border-radius: 6px;
  }
  .modal-top-bar {
    padding: 0.55rem 0.85rem;
  }
  .modal-media-col {
    padding: 1rem 0.75rem;
  }
  .modal-poster-wrap {
    max-width: 240px;
  }
  .modal-poster-img {
    max-height: 220px;
  }
  .sheet-scrollable-body {
    padding: 1.25rem 1rem 3.5rem;
  }
  .dossier-document {
    gap: 1.6rem;
  }
  .doc-subject-name {
    font-size: clamp(2rem, 7.5vw, 2.6rem);
    line-height: 1.05;
  }
  .doc-alias-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    padding: 0.65rem 0.95rem;
  }
  .alias-tag {
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .alias-title {
    font-size: 1.02rem;
    line-height: 1.4;
  }
  .ledger-row {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem 0;
  }
  .intel-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
  }
  .intel-badge {
    align-self: flex-start;
    font-size: 0.68rem;
  }
  .intel-val {
    font-size: 1.02rem;
    line-height: 1.5;
  }
  .evidence-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .modal-nav-footer {
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
  }
  .modal-nav-center {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
  .modal-nav-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.7rem;
  }
}
