/* ============================================================
   H.A.D.E.S. CAT UNIT — Luna & Freya
   Neon purple dystopian · tarot / wiccan flavor · comedy
   ============================================================ */
.hd-body {
  background: #0e0616;
  color: #e0d0f0;
  min-height: 100dvh;
}

.hd-grid-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(180, 60, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 60, 220, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 70%);
}

.hd-pentacle-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 121, 249, 0.5), transparent 25%),
    radial-gradient(circle at 15% 70%, rgba(139, 92, 246, 0.4), transparent 30%);
}

.hd-header .header-inner { max-width: 1180px; }

.hd-header .main-nav a.is-active {
  color: #f0abfc;
  border-color: rgba(232, 121, 249, 0.45);
  background: rgba(126, 34, 206, 0.18);
}

.hd-badge {
  font-family: var(--mono, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #f0abfc;
  border: 1px solid rgba(232, 121, 249, 0.4);
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.hd-main { position: relative; z-index: 1; }

.hd-btn {
  background: linear-gradient(180deg, rgba(192, 80, 255, 0.5), rgba(90, 20, 140, 0.65)) !important;
  border-color: #e879f9 !important;
  color: #fff !important;
}

/* Hero */
.hd-hero {
  position: relative;
  min-height: min(70vh, 620px);
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(232, 121, 249, 0.35);
  overflow: hidden;
}

.hd-hero-media { position: absolute; inset: 0; }
.hd-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hd-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 6, 22, 0.35) 0%, rgba(14, 6, 22, 0.75) 50%, rgba(14, 6, 22, 0.97) 100%),
    linear-gradient(90deg, rgba(14, 6, 22, 0.9) 0%, transparent 60%);
}

.hd-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-end;
}

.hd-hero-patch {
  flex: 0 0 auto;
  width: min(280px, 56vw);
  max-width: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(232, 121, 249, 0.6);
  box-shadow: 0 0 48px rgba(168, 85, 247, 0.5);
  background: #1a0a28;
}
.hd-hero-patch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.hd-hero-copy { flex: 1 1 280px; min-width: 0; }

.hd-kicker,
.hd-section-label {
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #e879f9;
  margin: 0 0 0.45rem;
}

.hd-hero h1 {
  font-family: var(--mono, monospace);
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  letter-spacing: 0.18em;
  color: #fdf4ff;
  margin: 0 0 0.25rem;
  text-shadow: 0 0 36px rgba(232, 121, 249, 0.5);
}

.hd-expand {
  font-family: var(--mono, monospace);
  font-size: 0.85rem;
  color: #d8b4fe;
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

.hd-motto {
  font-family: var(--mono, monospace);
  font-size: 0.95rem;
  color: #f0abfc;
  margin: 0 0 0.85rem;
  font-style: italic;
}

.hd-lede {
  max-width: 38rem;
  color: #c4b0d8;
  line-height: 1.55;
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.hd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.hd-chip {
  font-family: var(--mono, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(232, 121, 249, 0.4);
  color: #f0abfc;
  background: rgba(50, 10, 80, 0.55);
}

.hd-chip-warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.45);
}

.hd-chip-gold {
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.4);
}

.hd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Sections */
.hd-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 1.25rem;
}

.hd-section h2 {
  font-family: var(--mono, monospace);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.06em;
  color: #fdf4ff;
  margin: 0 0 0.5rem;
}

.hd-section-intro {
  color: #b0a0c0;
  max-width: 40rem;
  margin: 0 0 1.35rem;
  line-height: 1.5;
}

.hd-brief-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.hd-brief-visuals {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hd-brief-grid p {
  color: #c4b0d8;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.hd-note {
  font-family: var(--mono, monospace);
  font-size: 0.78rem !important;
  color: #e879f9 !important;
  border-left: 2px solid rgba(232, 121, 249, 0.5);
  padding-left: 0.75rem;
}

.hd-tarot-card {
  margin: 0;
  border: 1px solid rgba(232, 121, 249, 0.35);
  overflow: hidden;
  background: #12081c;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.hd-tarot-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

.hd-tarot-card figcaption {
  font-family: var(--mono, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: #8b6a9e;
  padding: 0.4rem 0.55rem;
  border-top: 1px solid rgba(232, 121, 249, 0.2);
}

/* Pair cards */
.hd-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hd-cat {
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: linear-gradient(165deg, rgba(60, 15, 90, 0.4), rgba(12, 4, 22, 0.96));
  padding: 1.15rem 1.2rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hd-cat.is-in { opacity: 1; transform: none; }

.hd-cat-luna { border-top: 3px solid #f0abfc; }
.hd-cat-freya { border-top: 3px solid #fb7185; }

.hd-cat-badge {
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: #f0abfc;
  margin-bottom: 0.35rem;
}

.hd-cat-badge-chaos { color: #fb7185; }

.hd-cat h3 {
  font-family: var(--mono, monospace);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: #fff;
  margin: 0 0 0.2rem;
}

.hd-cat-role {
  font-family: var(--mono, monospace);
  font-size: 0.75rem;
  color: #d8b4fe;
  margin: 0 0 0.75rem;
}

.hd-cat ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: #c4b0d8;
  line-height: 1.5;
  font-size: 0.95rem;
}

.hd-cat-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.hd-cat-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(232, 121, 249, 0.25);
  background: #0a0610;
}

/* ── Cat CCTV feed ── */
.hd-cctv {
  max-width: 920px;
  margin: 0 auto 0.5rem;
  border: 1px solid rgba(232, 121, 249, 0.4);
  background: #0a0612;
  box-shadow:
    0 0 40px rgba(168, 85, 247, 0.15),
    inset 0 0 60px rgba(0, 0, 0, 0.45);
  font-family: var(--mono, monospace);
}

.hd-cctv-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(232, 121, 249, 0.25);
  background: rgba(20, 8, 30, 0.95);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #d8b4fe;
}

.hd-cctv-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f87171;
  font-weight: 700;
}

.hd-cctv-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: hd-cctv-rec 1.2s ease-in-out infinite;
}

.hd-cctv.is-paused .hd-cctv-rec i {
  animation: none;
  opacity: 0.35;
}

.hd-cctv.is-paused .hd-cctv-rec {
  color: #9ca3af;
}

/* paused state handled on .hd-cctv-label-tl.is-paused above */

.hd-cctv-title {
  flex: 1 1 auto;
  color: #e9d5ff;
}

.hd-cctv-cam {
  color: #f0abfc;
  border: 1px solid rgba(232, 121, 249, 0.4);
  padding: 0.15rem 0.4rem;
}

.hd-cctv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  background: #050308;
  overflow: hidden;
}

/* Blurred fill so portrait/landscape never leave empty black bars */
.hd-cctv-bg {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  object-position: center center;
  filter: blur(18px) brightness(0.45) saturate(0.85);
  transform: scale(1.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.hd-cctv-bg.is-swap {
  opacity: 0.2;
}

/* Main frame: full still + light extra grade on top of graded assets */
.hd-cctv-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  filter: contrast(1.08) saturate(0.9) brightness(0.96);
  transition: opacity 0.35s ease;
  background: transparent;
}

.hd-cctv-img.is-swap {
  opacity: 0.2;
}

.hd-cctv-scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.hd-cctv-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.65);
  background: linear-gradient(
    180deg,
    rgba(40, 10, 60, 0.15) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/*
  Security-cam burn-in plaques — dark bar style like:
  [ CAM 01 - 20:34:12 ]
*/
.hd-cctv-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  font-family: var(--mono, "Share Tech Mono", Consolas, ui-monospace, monospace);
}

.hd-cctv-label {
  position: absolute;
  display: inline-block;
  font-size: clamp(0.68rem, 2vw, 0.95rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: min(70%, 22rem);
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.28rem 0.55rem;
  color: #e8f5e9;
  background: rgba(8, 18, 12, 0.82);
  border: 1px solid rgba(180, 220, 190, 0.18);
  border-radius: 3px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
}

.hd-cctv-label-tl {
  top: 0.55rem;
  left: 0.6rem;
  color: #fecaca;
  background: rgba(40, 8, 10, 0.85);
  border-color: rgba(248, 113, 113, 0.35);
}

.hd-cctv-label-tl.is-paused {
  color: #d1d5db;
  background: rgba(20, 20, 24, 0.85);
  border-color: rgba(156, 163, 175, 0.3);
}

.hd-cctv-label-tr {
  top: 0.55rem;
  right: 0.6rem;
  text-align: right;
  color: #e8f5e9;
}

.hd-cctv-label-bl {
  bottom: 0.55rem;
  left: 0.6rem;
  /* Primary stamp — matches reference plaque */
  color: #eef7ee;
  background: rgba(6, 16, 10, 0.88);
  border-color: rgba(160, 200, 170, 0.22);
  font-size: clamp(0.72rem, 2.1vw, 1rem);
  letter-spacing: 0.1em;
}

.hd-cctv-label-br {
  bottom: 0.55rem;
  right: 0.6rem;
  text-align: right;
  color: #d1e7d5;
  font-size: clamp(0.6rem, 1.6vw, 0.8rem);
}

/* Secondary ISO strip (dim) */
.hd-cctv-hud {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 2.4rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: rgba(187, 247, 208, 0.4);
  text-shadow: 0 1px 2px #000;
  z-index: 3;
  pointer-events: none;
}

.hd-cctv-cross {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgba(232, 121, 249, 0.45);
  z-index: 3;
}

.hd-cctv-cross::before,
.hd-cctv-cross::after {
  content: '';
  position: absolute;
  background: rgba(232, 121, 249, 0.55);
}

.hd-cctv-cross::before {
  left: 50%;
  top: 20%;
  bottom: 20%;
  width: 1px;
  margin-left: -0.5px;
}

.hd-cctv-cross::after {
  top: 50%;
  left: 20%;
  right: 20%;
  height: 1px;
  margin-top: -0.5px;
}

.hd-cctv-lt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid rgba(232, 121, 249, 0.22);
  background: rgba(6, 20, 14, 0.85);
}

.hd-cctv-lt-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid rgba(125, 255, 176, 0.4);
  border-radius: 4px;
  mix-blend-mode: screen;
  filter: contrast(1.1) saturate(1.2);
  flex: 0 0 auto;
}

.hd-cctv-lt-id {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #ff9a4a;
  margin-bottom: 0.25rem;
}

.hd-cctv-lt-line {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #8dffb8;
  min-height: 2.6em;
}

.hd-cctv-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.65rem 0.65rem;
  border-top: 1px solid rgba(232, 121, 249, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.hd-cctv-btn {
  min-height: 40px;
  font-family: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(232, 121, 249, 0.4);
  background: transparent;
  color: #e9d5ff;
  cursor: pointer;
  border-radius: 2px;
}

.hd-cctv-btn:hover {
  border-color: #f0abfc;
  color: #fff;
}

.hd-cctv-btn-primary {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.35), rgba(88, 28, 135, 0.5));
}

.hd-cctv-btn[aria-pressed='true'] {
  border-color: #fbbf24;
  color: #fde68a;
}

.hd-cctv-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex: 1 1 100%;
  margin-top: 0.15rem;
}

.hd-cctv-thumb {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: #000;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0.55;
}

.hd-cctv-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hd-cctv-thumb.is-active {
  opacity: 1;
  border-color: #f0abfc;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.45);
}

.hd-cctv-thumb:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 1px;
}

@keyframes hd-cctv-rec {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@media (max-width: 640px) {
  .hd-cctv-stage {
    aspect-ratio: 4 / 3;
  }

  .hd-cctv-thumb {
    width: 38px;
    height: 38px;
  }

  .hd-cctv-lt-line {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-cctv-rec i,
  .hd-cctv-img {
    animation: none !important;
    transition: none !important;
  }
}

/* Gallery */
.hd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.hd-gallery figure {
  margin: 0;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: #100818;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hd-gallery figure.is-in { opacity: 1; transform: none; }

.hd-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hd-gallery figcaption {
  font-family: var(--mono, monospace);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: #8b6a9e;
  padding: 0.3rem 0.4rem;
  text-align: center;
}

/* Occult symbols */
.hd-occult-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hd-symbol-card {
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(30, 8, 50, 0.5);
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hd-symbol-card.is-in { opacity: 1; transform: none; }

.hd-symbol {
  font-size: 2rem;
  color: #e879f9;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 20px rgba(232, 121, 249, 0.6);
}

.hd-symbol-card h3 {
  font-family: var(--mono, monospace);
  font-size: 0.85rem;
  color: #f0abfc;
  margin: 0 0 0.4rem;
  letter-spacing: 0.06em;
}

.hd-symbol-card p {
  font-size: 0.85rem;
  color: #b0a0c0;
  margin: 0;
  line-height: 1.4;
}

/* Commander folder */
.hd-folder-lock {
  border: 1px dashed rgba(251, 191, 36, 0.45);
  background: linear-gradient(160deg, rgba(40, 28, 8, 0.5), rgba(14, 6, 22, 0.95));
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.hd-folder-lock.hidden,
.hd-folder-body.hidden,
.hd-code-row.hidden {
  display: none !important;
}

.hd-folder-stamp {
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #fbbf24;
  margin: 0 0 0.5rem;
}

.hd-folder-lock h3 {
  font-family: var(--mono, monospace);
  color: #fde68a;
  margin: 0 0 0.5rem;
  letter-spacing: 0.06em;
}

.hd-folder-lock p {
  color: #c4b8a0;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.hd-unlock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.hd-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.hd-code-input {
  flex: 1 1 140px;
  min-height: 40px;
  background: #0a0610;
  border: 1px solid rgba(232, 121, 249, 0.4);
  color: #f5e8ff;
  font-family: var(--mono, monospace);
  padding: 0.4rem 0.6rem;
}

.hd-unlock-hint {
  font-family: var(--mono, monospace) !important;
  font-size: 0.68rem !important;
  color: #a78bfa !important;
}

.hd-unlock-msg {
  font-family: var(--mono, monospace);
  font-size: 0.75rem;
  color: #6ee7b7;
  min-height: 1.2em;
}

.hd-folder-body {
  border: 1px solid rgba(232, 121, 249, 0.35);
  background: rgba(20, 8, 35, 0.85);
  padding: 1rem;
}

.hd-folder-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--mono, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #f0abfc;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(232, 121, 249, 0.25);
}

.hd-folder-intro {
  color: #c4b0d8;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.hd-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hd-evidence {
  border: 1px solid rgba(148, 80, 200, 0.35);
  background: #0c0614;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hd-evidence.is-in { opacity: 1; transform: none; }

.hd-evidence img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.85);
}

.hd-ev-body { padding: 0.75rem 0.85rem 0.9rem; }

.hd-ev-body h3 {
  font-family: var(--mono, monospace);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #f0abfc;
  margin: 0 0 0.35rem;
}

.hd-ev-meta {
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  color: #8b6a9e;
  margin: 0 0 0.5rem;
}

.hd-ev-body p {
  color: #c4b0d8;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 0.5rem;
}

.hd-ev-cmd {
  font-family: var(--mono, monospace) !important;
  font-size: 0.72rem !important;
  color: #93c5fd !important;
  border-top: 1px dashed rgba(96, 165, 250, 0.3);
  padding-top: 0.45rem;
  margin: 0 !important;
}

.hd-cmd-log {
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(10, 20, 40, 0.45);
  padding: 0.9rem 1rem;
}

.hd-cmd-log h3 {
  font-family: var(--mono, monospace);
  font-size: 0.85rem;
  color: #7dd3fc;
  margin: 0 0 0.6rem;
  letter-spacing: 0.08em;
}

.hd-cmd-log ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #b0c0d4;
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Matrix */
.hd-matrix {
  border: 1px solid rgba(168, 85, 247, 0.3);
  overflow: hidden;
}

.hd-matrix-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(120, 60, 180, 0.2);
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
}

.hd-matrix-row:last-child { border-bottom: none; }
.hd-matrix-row:nth-child(odd) { background: rgba(40, 10, 60, 0.35); }

.hd-m-who {
  color: #f0abfc;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hd-m-what { color: #c4b0d8; }

/* Close */
.hd-close { padding-bottom: 3rem; }

.hd-close-card {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(232, 121, 249, 0.4);
  background: linear-gradient(180deg, rgba(70, 20, 110, 0.35), rgba(10, 4, 18, 0.98));
  padding: 1.75rem 1.4rem 1.4rem;
}

.hd-close-patch {
  display: block;
  margin: 0 auto 0.75rem;
  width: min(180px, 42vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(232, 121, 249, 0.55);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.45);
}

.hd-close-card h2 { margin-bottom: 0.75rem; }

.hd-close-card > p {
  text-align: left;
  color: #c4b0d8;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.hd-close-quote {
  font-family: var(--mono, monospace);
  font-size: 0.95rem;
  color: #fdf4ff !important;
  border-left: 3px solid #e879f9;
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.1rem 0 !important;
  text-align: left !important;
}

.hd-close-quote cite {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.65rem;
  font-style: normal;
  color: #c084fc;
  letter-spacing: 0.06em;
}

.hd-close-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.15rem 0 1rem;
}

.hd-disclaimer {
  font-family: var(--mono, monospace);
  font-size: 0.6rem !important;
  color: #7c6a94 !important;
  text-align: left !important;
  border-top: 1px solid rgba(120, 80, 160, 0.3);
  padding-top: 0.85rem;
  margin: 0 !important;
  line-height: 1.45 !important;
}

.hd-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: #7c6a94;
  position: relative;
  z-index: 1;
}

.hd-footer a { color: #e879f9; }

@media (max-width: 900px) {
  .hd-brief-grid,
  .hd-pair,
  .hd-evidence-grid {
    grid-template-columns: 1fr;
  }

  .hd-matrix-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  /* badge hide handled below at 1100px with shared header collapse */

  .hd-cat-photos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-cat,
  .hd-evidence,
  .hd-symbol-card,
  .hd-gallery figure {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Phase relocate — pawsonly chrome coexistence */
.hd-header .logo-mark { color: #e879f9; }
.hd-header .clearance-widget-label { color: #c4b0d8; }
.hd-header .agency-uplink-header { margin-left: 0.25rem; }
.hd-header .header-actions { order: 4; }
.hd-header .main-nav { order: 2; }
.hd-header .agency-uplink-header { order: 3; }
.hd-header .logo { order: 1; }
.hd-header .hd-badge {
  order: 5;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
  max-width: 10.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}
@media (max-width: 1100px) {
  .hd-header .hd-badge { display: none; }
}
body.hd-body .agency-uplink-strip {
  border-color: rgba(232, 121, 249, 0.25);
  background: rgba(40, 10, 60, 0.35);
}
body.hd-body .agency-uplink-strip-tag { color: #e879f9; }
body.hd-body .skip-link { background: #e879f9; color: #12061c; }
