/* ═══════════════════════════════════════════════
   DESIGN TOKENS — all CSS variables live here
═══════════════════════════════════════════════ */
:root {
  --void:         #07090f;
  --surface:      #0f1420;
  --surface-2:    #131924;
  --surface-3:    #171e2c;
  --border-deep:  #161d2a;
  --border:       #1c2535;
  --border-hi:    #243044;

  --ink:          #ddd6c8;
  --ink-2:        #8a9aaa;
  --ink-3:        #6a7d8e;
  --ink-ghost:    #455a6a;

  --rust:         #bf5a32;
  --rust-dim:     #7a3518;
  --rust-glow:    rgba(191, 90, 50, 0.14);
  --rust-trace:   rgba(191, 90, 50, 0.06);

  --teal:         #2a9688;
  --teal-dim:     rgba(42, 150, 136, 0.12);
  --teal-ghost:   rgba(42, 150, 136, 0.05);

  --r-xs: 4px;
  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 20px;
}
/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
}
/* ═══════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════ */
.mono     { font-family: 'IBM Plex Mono', monospace; }
.spectral { font-family: 'Spectral', Georgia, serif; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow--rust { color: var(--rust); }
.eyebrow--teal { color: var(--teal); opacity: 0.7; }
.eyebrow--sm   { font-size: 8.5px; letter-spacing: 0.14em; }
.eyebrow--lg   { font-size: 10.5px; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal      { animation: revealUp 0.6s ease both; }
.reveal--1   { animation-delay: 0.08s; }
.reveal--2   { animation-delay: 0.16s; }
.reveal--3   { animation-delay: 0.24s; }
.reveal--4   { animation-delay: 0.32s; }
.reveal--5   { animation-delay: 0.42s; }
.reveal--6   { animation-delay: 0.52s; }
.reveal--side { animation-delay: 0.28s; }
/* ═══════════════════════════════════════════════
   LAYERED BACKGROUND ATMOSPHERE
═══════════════════════════════════════════════ */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(28,37,53,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,37,53,0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 30%, transparent 80%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 75% 8%,  rgba(30,100,110,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 5%  70%,  rgba(191,90,50,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 0%,   rgba(10,20,40,0.7) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.bg-grain {
  position: fixed;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23g)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 40%, rgba(4,6,10,0.7) 100%);
  pointer-events: none;
  z-index: 0;
}
/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r-xs);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  position: relative;
}

.btn--primary {
  background: var(--rust);
  color: #fff;
}

.btn--primary:hover {
  background: #cf6640;
  box-shadow: 0 0 24px rgba(191,90,50,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-hi);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
}

/* ═══════════════════════════════════════════════
   TAGS — 5 types, 3 color groups
═══════════════════════════════════════════════ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Case Files group — rust */
.tag--case-file {
  background: rgba(191,90,50,0.12);
  color: var(--rust);
  border: 1px solid rgba(191,90,50,0.28);
}

.tag--field-note {
  background: rgba(191,90,50,0.06);
  color: #c47a5a;
  border: 1px solid rgba(191,90,50,0.18);
}

/* Signals & Anomalies group — teal */
.tag--signal {
  background: rgba(42,150,136,0.1);
  color: #4dbfad;
  border: 1px solid rgba(42,150,136,0.25);
}

.tag--anomaly {
  background: rgba(42,150,136,0.05);
  color: #3aa898;
  border: 1px solid rgba(42,150,136,0.15);
}

/* Watchtower — blue */
.tag--watchtower {
  background: rgba(60,130,180,0.1);
  color: #5da8d0;
  border: 1px solid rgba(60,130,180,0.22);
}

/* ═══════════════════════════════════════════════
   CHIPS
═══════════════════════════════════════════════ */
.chip {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--border-hi);
  color: var(--ink);
}

/* ═══════════════════════════════════════════════
   TICKER TAPE
═══════════════════════════════════════════════ */
.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 6px rgba(191,90,50,0.7);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

.ticker-wrap {
  border-bottom: 1px solid var(--border-deep);
  height: 30px;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 0 16px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  background: var(--void);
  position: relative;
  z-index: 2;
}

.ticker-scroll-zone {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.ticker-scroll-zone::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, transparent, var(--void));
  pointer-events: none;
  z-index: 1;
}

.ticker-track {
  display: flex;
  animation: tickerScroll 38s linear infinite;
  white-space: nowrap;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--border-deep);
}

.ticker-item span { color: var(--ink-ghost); }

/* ═══════════════════════════════════════════════
   SECTION RULE
═══════════════════════════════════════════════ */
.section-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.section-rule__line {
  flex: 1;
  height: 1px;
  background: var(--border-deep);
}

.section-rule__ticks {
  height: 8px;
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.section-rule__tick { width: 1px; background: var(--border); }
.section-rule__tick:nth-child(1)  { height: 100%; }
.section-rule__tick:nth-child(2)  { height: 40%; }
.section-rule__tick:nth-child(3)  { height: 60%; }
.section-rule__tick:nth-child(4)  { height: 40%; }
.section-rule__tick:nth-child(5)  { height: 80%; }
.section-rule__tick:nth-child(6)  { height: 40%; }
.section-rule__tick:nth-child(7)  { height: 50%; }
.section-rule__tick:nth-child(8)  { height: 100%; }
.section-rule__tick:nth-child(9)  { height: 40%; }
.section-rule__tick:nth-child(10) { height: 60%; }
.section-rule__tick:nth-child(11) { height: 35%; }
.section-rule__tick:nth-child(12) { height: 75%; }

/* ═══════════════════════════════════════════════
   WAVEFORM
═══════════════════════════════════════════════ */
.waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 12px 18px 10px;
  border-top: 1px solid var(--border-deep);
}

.waveform__bar {
  width: 2px;
  background: var(--teal);
  border-radius: 1px;
  opacity: 0.2;
}

.waveform__bar.active          { opacity: 0.6; }
.waveform__bar:nth-child(odd)  { height: 4px; }
.waveform__bar:nth-child(3n)   { height: 9px;  opacity: 0.35; }
.waveform__bar:nth-child(5n)   { height: 14px; opacity: 0.5; }
.waveform__bar:nth-child(7n)   { height: 7px; }
.waveform__bar:nth-child(11n)  { height: 18px; opacity: 0.65; }
.waveform__bar:nth-child(13n)  { height: 3px; }

/* ═══════════════════════════════════════════════
   ARCHIVE PAGE
═══════════════════════════════════════════════ */
.archive-header {
  padding: 48px 0 0;
}

.archive-header__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

.archive-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.archive-filter-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  overflow: hidden;
}

.archive-filter-group .archive-filter {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
}

.archive-filter-group .archive-filter:last-child {
  border-right: none;
}

.archive-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.2s;
}

.archive-filter:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.archive-filter--all.active {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-hi);
  color: var(--ink);
}

/* Default group tints */
.archive-filter-group--rust .archive-filter {
  color: #c47a5a;
  border-color: rgba(191,90,50,0.15);
}

.archive-filter-group--teal .archive-filter {
  color: #3aa898;
  border-color: rgba(42,150,136,0.15);
}

.archive-filter-group--blue .archive-filter {
  color: #5da8d0;
  border-color: rgba(60,130,180,0.15);
}

.archive-filter-group--rust .archive-filter.active {
  background: rgba(191,90,50,0.1);
  color: var(--rust);
}

.archive-filter-group--teal .archive-filter.active {
  background: rgba(42,150,136,0.08);
  color: #4dbfad;
}

.archive-filter-group--blue .archive-filter.active {
  background: rgba(60,130,180,0.1);
  color: #5da8d0;
}

.archive-filter__count {
  font-size: 8.5px;
  color: var(--ink-ghost);
  border-left: 1px solid var(--border);
  padding-left: 8px;
  transition: color 0.2s;
}
/* ═══════════════════════════════════════════════
   STATION STRIP
═══════════════════════════════════════════════ */
.station-strip {
  border-bottom: 1px solid var(--border-deep);
  padding: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.station-strip__items {
  display: flex;
  align-items: center;
  gap: 0;
}

.station-strip__seg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  padding: 0 16px;
  border-right: 1px solid var(--border-deep);
  line-height: 1;
}

.station-strip__seg:first-child { padding-left: 0; }
.station-strip__seg--rust       { color: var(--rust); opacity: 0.55; }
.station-strip__seg--active     { color: var(--ink-3); }

.station-strip__coord {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-deep);
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__brand-ident {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav__links li a {
  display: block;
  padding: 6px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
  border-right: 1px solid var(--border-deep);
  line-height: 1;
}

.nav__links li:first-child a    { border-left: 1px solid var(--border-deep); }
.nav__links li a:hover          { color: var(--ink); }
.nav__links li a.active         { color: var(--rust); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__file-ref {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-deep);
  position: relative;
}

.hero::before {
  content: '46°52′N  104°08′W';
  position: absolute;
  top: 52px;
  right: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
  opacity: 0.5;
}

.hero__transmission-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 9px;
  border: 1px solid rgba(191,90,50,0.22);
  border-radius: var(--r-xs);
  background: rgba(191,90,50,0.06);
  margin-bottom: 26px;
}

.hero__heading {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero__heading em {
  font-style: normal;
  color: var(--rust);
}

.hero__body {
  font-family: 'Spectral', serif;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 490px;
  margin-bottom: 30px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--rust);
  background: rgba(7,9,15,0.7);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
}

.hero__status-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

.hero__status-text strong { color: var(--rust); font-weight: 500; }
.hero__status-text b      { color: var(--ink-2); font-weight: 400; }

.hero__badge-signal {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  color: var(--ink-ghost);
  margin-left: 6px;
  border-left: 1px solid var(--border);
  padding-left: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__actions { display: flex; gap: 12px; }

/* ═══════════════════════════════════════════════
   CONTENT GRID
═══════════════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 298px;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-deep);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  padding: 28px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-deep);
  gap: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  line-height: 1.8;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.footer__links a {
  display: block;
  padding: 5px 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  text-decoration: none;
  border-right: 1px solid var(--border-deep);
  transition: color 0.2s;
}

.footer__links li:first-child a { border-left: 1px solid var(--border-deep); }
.footer__links a:hover          { color: var(--ink-3); }

.footer__signal {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.footer__coord {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-ghost);
  opacity: 0.5;
}
/* ═══════════════════════════════════════════════
   DOSSIER CARD
═══════════════════════════════════════════════ */
.dossier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.dossier::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(42,150,136,0.25) 40%, rgba(42,150,136,0.1) 70%, transparent 95%);
}

.dossier__brackets {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}

.dossier__brackets::before,
.dossier__brackets::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--border-hi);
  border-style: solid;
}

.dossier__brackets::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.dossier__brackets::after  { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.dossier__header {
  padding: 13px 22px;
  border-bottom: 1px solid var(--border-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.2);
}

.dossier__file-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

.dossier__status-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(42,150,136,0.2);
  border-radius: 3px;
  background: rgba(42,150,136,0.06);
}

.dossier__status-pill span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.7;
}

.dossier__avatar-zone {
  padding: 24px 22px 22px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-deep);
}

.dossier__avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--surface-3);
  overflow: hidden;
}

.dossier__avatar-data {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.dossier__avatar--lg {
  width: 100px;
  height: 100px;
  border: 1px solid var(--border-hi);
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 4px var(--border),
    0 0 20px rgba(191,90,50,0.08);
  position: relative;
}

/* Case file corner marks */
.dossier__avatar--lg::before,
.dossier__avatar--lg::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--rust);
  border-style: solid;
  opacity: 0.4;
  z-index: 2;
}

.dossier__avatar--lg::before {
  top: 4px; left: 4px;
  border-width: 1px 0 0 1px;
}

.dossier__avatar--lg::after {
  bottom: 4px; right: 4px;
  border-width: 0 1px 1px 0;
}

.dossier__callsign {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
}

.dossier__role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

.dossier__fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.dossier__field {
  display: flex;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.dossier__field-key {
  color: var(--ink-ghost);
  min-width: 52px;
  text-transform: uppercase;
}

.dossier__field-val { color: var(--ink-3); }

.dossier__redaction {
  height: 9px;
  background: var(--border);
  border-radius: 2px;
  width: 80px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
}

.dossier__body {
  padding: 18px 22px 20px;
  border-bottom: 1px solid var(--border-deep);
}

.dossier__body p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
  font-style: italic;
}

.dossier__chips {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-deep);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dossier__signal-meter {
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.2);
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.signal-bar {
  width: 3px;
  background: var(--teal);
  border-radius: 1px;
  opacity: 0.2;
}

.signal-bar.on                  { opacity: 0.9; }
.signal-bar:nth-child(1)        { height: 30%; }
.signal-bar:nth-child(2)        { height: 50%; }
.signal-bar:nth-child(3)        { height: 70%; }
.signal-bar:nth-child(4)        { height: 90%; }
.signal-bar:nth-child(5)        { height: 100%; }
.signal-bar:nth-child(4),
.signal-bar:nth-child(5)        { opacity: 0.2; }

.signal-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

.signal-text strong { color: var(--teal); opacity: 0.6; font-weight: 500; }
/* ═══════════════════════════════════════════════
   TRANSMISSIONS PANEL
═══════════════════════════════════════════════ */
.transmissions {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
}

.transmissions__header {
  padding: 15px 22px;
  border-bottom: 1px solid var(--border-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.18);
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-label__sep {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--border-hi);
}

/* ═══════════════════════════════════════════════
   ENTRY CARDS
═══════════════════════════════════════════════ */
.entry {
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--border-deep);
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.entry:last-child  { border-bottom: none; }
.entry:hover       { background: rgba(255,255,255,0.018); }

.entry::before {
  content: '';
  position: absolute;
  left: 0; top: 14%; bottom: 14%;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: transparent;
  transition: background 0.2s, box-shadow 0.2s;
}

.entry:hover::before {
  background: var(--rust);
  box-shadow: 0 0 10px rgba(191,90,50,0.4);
}

.entry__brackets {
  position: absolute;
  top: 14px; right: 16px;
  width: 16px; height: 16px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  display: none;
}

.entry__brackets::before,
.entry__brackets::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-color: var(--rust);
  border-style: solid;
  opacity: 0.5;
}

.entry__brackets::before { top: 0; right: 0; border-width: 1px 1px 0 0; }
.entry:hover .entry__brackets { opacity: 1; }

.entry__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.entry__file-ref {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--ink-ghost);
}

.entry__title {
  font-family: 'Spectral', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 9px;
}

.entry__dateline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.entry__dateline-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--ink-3);
}

.entry__dateline-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border-hi);
}

.entry__dateline-flag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  padding: 1px 7px;
  border-radius: 2px;
}

.entry__dateline-flag--verified { color: rgba(42,150,136,0.7);  border: 1px solid rgba(42,150,136,0.18); }
.entry__dateline-flag--noise    { color: rgba(60,130,180,0.6);  border: 1px solid rgba(60,130,180,0.15); }
.entry__dateline-flag--field    { color: rgba(200,144,68,0.6);  border: 1px solid rgba(200,144,68,0.15); }

.entry__excerpt {
  font-family: 'Spectral', serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
  font-style: italic;
}

.entry__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-deep);
  opacity: 0;
  transition: opacity 0.2s;
}

.entry:hover .entry__footer { opacity: 1; }

.entry__read-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.entry__read-link svg { transition: transform 0.15s; }
.entry__read-link:hover svg { transform: translateX(3px); }
/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.s-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.s-panel__head {
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-deep);
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
}

.s-panel__head-rule {
  flex: 1;
  height: 1px;
  background: var(--border-deep);
}

.s-panel__body         { padding: 14px 18px; }
.s-panel__body--tight  { padding: 10px 14px; }

.s-panel__body-text {
  font-family: 'Spectral', serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   SCOPE LIST
═══════════════════════════════════════════════ */
.scope-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.scope-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--r-xs);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--border-deep);
}

.scope-list__item:last-child { border-bottom: none; }
.scope-list__item:hover      { background: var(--surface-2); color: var(--ink); }

.scope-list__num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  color: var(--ink-ghost);
  letter-spacing: 0.08em;
  min-width: 18px;
}

.scope-list__bullet {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rust);
  opacity: 0.3;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.scope-list__item:hover .scope-list__bullet { opacity: 0.8; }

/* ═══════════════════════════════════════════════
   FRAGMENT QUOTE
═══════════════════════════════════════════════ */
.fragment {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-left: 2px solid var(--rust-dim);
  background: rgba(191,90,50,0.035);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}

.fragment p {
  font-family: 'Spectral', serif;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--ink-2);
  font-style: italic;
}

.fragment__source {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
/* ═══════════════════════════════════════════════
   POST HEADER
═══════════════════════════════════════════════ */
.post-header {
  padding: 48px 0 32px;
}

.post-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.post-header__meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-header__meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-header__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 820px;
}

.post-header__dateline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   POST GRID
═══════════════════════════════════════════════ */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  padding: 8px 0 60px;
}

/* ═══════════════════════════════════════════════
   POST BODY
═══════════════════════════════════════════════ */
.post-body {
  font-family: 'Spectral', Georgia, serif;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-2);
  min-width: 0;
}

.post-body p {
  margin-bottom: 1.6em;
}

.post-body h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 3em 0 1.2em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.post-body h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 3em 0 1.2em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-deep);
}

.post-body h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 2.2em 0 0.9em;
}

.post-body strong {
  color: var(--ink);
  font-weight: 400;
}

.post-body em {
  color: var(--ink-2);
  font-style: italic;
}

.post-body a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid rgba(191,90,50,0.3);
  transition: border-color 0.2s;
}

.post-body a:hover {
  border-color: var(--rust);
}

.post-body ul,
.post-body ol {
  padding-left: 1.4em;
  margin-bottom: 1.6em;
}

.post-body li {
  margin-bottom: 0.6em;
  color: var(--ink-2);
}

/* Blockquotes as recovered fragments */
.post-body blockquote {
  position: relative;
  border-left: 2px solid var(--rust-dim);
  background: rgba(191,90,50,0.035);
  padding: 16px 20px 16px 22px;
  margin: 2em 0;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}

.post-body blockquote p {
  font-style: italic;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.72;
  margin-bottom: 0;
}

.post-body blockquote::before {
  content: 'RECOVERED FRAGMENT';
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--rust);
  opacity: 0.6;
  margin-bottom: 10px;
}

/* Code */
.post-body code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 2px 7px;
  color: var(--teal);
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--teal);
  border-radius: var(--r-sm);
  padding: 22px;
  overflow-x: auto;
  margin: 1.8em 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* Post footer rule */
.post-body hr {
  border: none;
  border-top: 1px solid var(--border-deep);
  margin: 2.5em 0;
}

.post-body hr + p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  font-style: normal;
}

/* ═══════════════════════════════════════════════
   POST SIDEBAR
═══════════════════════════════════════════════ */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ═══════════════════════════════════════════════
   TRANSMISSION DATA PANEL
═══════════════════════════════════════════════ */
.transmission-data {
  position: relative;
  background: var(--surface);
  border-color: var(--border-hi);
}

/* Teal top edge — matches dossier card */
.transmission-data::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(191,90,50,0.35) 40%, rgba(191,90,50,0.15) 70%, transparent 95%);
  z-index: 1;
}

/* Field key/value styling */
.transmission-data .dossier__field {
  padding: 5px 0;
  border-bottom: 1px solid var(--border-deep);
}

.transmission-data .dossier__field:last-child {
  border-bottom: none;
}

.transmission-data .dossier__field-key {
  color: var(--rust);
  opacity: 0.6;
}

.transmission-data .dossier__field-val {
  color: var(--ink-2);
}

/* ═══════════════════════════════════════════════
   SIMPLE PAGES
═══════════════════════════════════════════════ */
.simple-page {
  padding-bottom: 60px;
}

.simple-page__body {
  max-width: 680px;
  padding: 8px 0;
}

/* ═══════════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════════ */
.error-page {
  padding: 80px 0 60px;
  max-width: 600px;
}

.error-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 9px;
  border: 1px solid rgba(191,90,50,0.22);
  border-radius: var(--r-xs);
  background: rgba(191,90,50,0.06);
  margin-bottom: 28px;
}

.error-page__code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--border-hi);
  margin-bottom: 20px;
}

.error-page__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 20px;
}

.error-page__title em {
  font-style: normal;
  color: var(--rust);
}

.error-page__status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--rust);
  background: rgba(7,9,15,0.7);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
}

.error-page__actions {
  display: flex;
  gap: 12px;
}
