/* ============================================================
   UFONN — UFO NEWS NETWORK
   Dark-sky newsroom: CRT phosphor, radar, declassified stamps.
   ============================================================ */

:root {
  --void:      #04060a;
  --deep:      #070b12;
  --panel:     #0b1119;
  --panel-2:   #0e1621;
  --line:      #1b2836;
  --line-hot:  #24384a;

  --ink:       #e6f1f3;
  --ink-dim:   #8fa3b0;
  --ink-faint: #5d7383;

  --phos:      #00ff9c;   /* phosphor green — primary signal */
  --cyan:      #4de8ff;   /* scope cyan */
  --amber:     #ffb547;   /* caution */
  --alert:     #ff3d5a;   /* alert */

  --display: "Anton", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --ui:      "Chakra Petch", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:    "Share Tech Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Chakra Petch is a display face — fine for chrome and headlines, tiring for
     paragraphs. Long-form copy gets a serif built for reading instead. */
  --read:    "Source Serif 4", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;

  --wrap: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* deep-space wash sitting under the starfield */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(0, 255, 156, .10), transparent 60%),
    radial-gradient(1000px 700px at 92% 4%, rgba(77, 232, 255, .09), transparent 62%),
    radial-gradient(800px 800px at 50% 110%, rgba(0, 255, 156, .06), transparent 60%),
    var(--void);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: .85;
}

/* CRT: scanlines, vignette, drifting glow bar */
.crt {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0 2px,
      rgba(0, 0, 0, .28) 2px 3px),
    radial-gradient(120% 100% at 50% 50%, transparent 52%, rgba(0, 0, 0, .78) 100%);
  mix-blend-mode: multiply;
}
.crt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(0, 255, 156, .045), transparent);
  animation: sweepdown 9s linear infinite;
}
@keyframes sweepdown {
  0%   { top: -20%; }
  100% { top: 120%; }
}

/* Scanlines are the house style, but a 1-in-3 dark band across body copy costs
   real legibility. Article pages get a lighter overlay and no vignette crush. */
body:has(.article) .crt,
body:has(.prose) .crt {
  background:
    repeating-linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0 3px,
      rgba(0, 0, 0, .13) 3px 4px),
    radial-gradient(130% 105% at 50% 45%, transparent 62%, rgba(0, 0, 0, .55) 100%);
}
body:has(.article) .crt::after,
body:has(.prose) .crt::after { opacity: .5; }

.wrap { width: min(var(--wrap), 94vw); margin: 0 auto; }
.wrap.narrow { width: min(880px, 94vw); }
.mono { font-family: var(--mono); letter-spacing: .06em; }

a { color: inherit; text-decoration: none; }

/* ============================================================ MASTHEAD */

.masthead {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 6, 10, .96), rgba(4, 6, 10, .72));
  backdrop-filter: blur(6px);
}

.mast-top {
  width: min(var(--wrap), 94vw);
  margin: 0 auto;
  padding: 1.1rem 0 .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .85rem; }

/* rotating dish mark */
.dish {
  width: 42px; height: 42px;
  border: 2px solid var(--phos);
  border-radius: 50%;
  position: relative;
  flex: none;
  box-shadow: 0 0 18px rgba(0, 255, 156, .35), inset 0 0 12px rgba(0, 255, 156, .18);
}
.dish::before {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid rgba(0, 255, 156, .45);
  border-radius: 50%;
}
.dish i {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 255, 156, .55), transparent 28%);
  animation: spin 3.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wordmark {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  letter-spacing: .04em;
  line-height: .9;
  color: var(--ink);
  position: relative;
  text-shadow: 0 0 22px rgba(0, 255, 156, .35);
}
.wordmark::before,
.wordmark::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
}
.wordmark::before { color: var(--phos); animation: glitchA 4.4s infinite steps(1); }
.wordmark::after  { color: var(--cyan); animation: glitchB 5.7s infinite steps(1); }
@keyframes glitchA {
  0%, 92%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  93% { clip-path: inset(8% 0 62% 0);  transform: translate(-3px, 0); }
  96% { clip-path: inset(48% 0 24% 0); transform: translate(2px, 0); }
}
@keyframes glitchB {
  0%, 90%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  91% { clip-path: inset(66% 0 12% 0); transform: translate(3px, 0); }
  95% { clip-path: inset(20% 0 58% 0); transform: translate(-2px, 0); }
}

.brand-sub {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .34em;
  color: var(--ink-faint);
  border-left: 1px solid var(--line-hot);
  padding-left: .85rem;
  margin-left: .2rem;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.mast-meta {
  display: flex; align-items: center; gap: 1.4rem;
  font-size: .72rem; color: var(--ink-faint);
  font-family: var(--mono); letter-spacing: .1em;
}
.live { display: inline-flex; align-items: center; gap: .5rem; color: var(--phos); }
.live i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--phos);
  box-shadow: 0 0 10px var(--phos);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; transform: scale(.75); } }

.mainnav {
  width: min(var(--wrap), 94vw);
  margin: 0 auto;
  display: flex; gap: 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: .78rem 1.15rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--ink-dim);
  border-right: 1px solid var(--line);
  white-space: nowrap;
  position: relative;
  transition: color .18s, background .18s;
}
.mainnav a:first-child { border-left: 1px solid var(--line); }
.mainnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--phos); transform: scaleX(0); transition: transform .2s;
}
.mainnav a:hover { color: var(--phos); background: rgba(0, 255, 156, .05); }
.mainnav a:hover::after, .mainnav a.on::after { transform: scaleX(1); }
.mainnav a.on { color: var(--phos); }

/* ============================================================ TICKER */

.ticker {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 255, 156, .035);
  overflow: hidden;
}
.ticker-tag {
  flex: none;
  display: flex; align-items: center;
  padding: 0 1rem;
  background: var(--phos);
  color: #02110a;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .2em;
  font-weight: 700;
}
.ticker-view { overflow: hidden; flex: 1; }
.ticker-run {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  padding: .55rem 0;
  animation: roll 150s linear infinite;
  width: max-content;
}
.ticker:hover .ticker-run { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.ticker-run a {
  font-size: .82rem; color: var(--ink-dim);
  transition: color .15s;
}
.ticker-run a b { color: var(--cyan); font-weight: 600; margin-right: .45rem; }
.ticker-run a:hover { color: var(--phos); }
.tsep { color: var(--line-hot); padding: 0 .9rem; font-family: var(--mono); }

/* ============================================================ HERO */

.hero {
  position: relative;
  margin: 2.6rem 0 3rem;
  padding: 2.6rem 2.4rem;
  border: 1px solid var(--line-hot);
  background:
    linear-gradient(120deg, rgba(0, 255, 156, .07), transparent 45%),
    linear-gradient(300deg, rgba(77, 232, 255, .06), transparent 45%),
    var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 32vw, 440px);
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
}
.hero-text { min-width: 0; }
.hero::before, .hero::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
}
.hero::before { top: 0; left: 0;     border-top: 2px solid var(--phos); border-left: 2px solid var(--phos); }
.hero::after  { bottom: 0; right: 0; border-bottom: 2px solid var(--phos); border-right: 2px solid var(--phos); }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .2em;
  color: var(--phos); margin-bottom: 1rem;
}
.kicker .dot {
  width: 7px; height: 7px; background: var(--alert); border-radius: 50%;
  box-shadow: 0 0 10px var(--alert); animation: pulse 1.3s infinite;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1;
  letter-spacing: .01em;
  margin: 0 0 1.3rem;
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.hero-title a { transition: color .2s, text-shadow .2s; }
.hero-title a:hover { color: var(--phos); text-shadow: 0 0 30px rgba(0, 255, 156, .5); }

.hero-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .78rem; }
.hero-meta .mono { color: var(--ink-faint); }

/* radar scope */
.hero-radar {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 156, .35);
  background: radial-gradient(circle, rgba(0, 255, 156, .10), rgba(4, 6, 10, .6) 70%);
  overflow: hidden;
  justify-self: center;
  width: 100%;
}
.hero-radar::before, .hero-radar::after {
  content: ""; position: absolute; background: rgba(0, 255, 156, .18);
}
.hero-radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero-radar::after  { top: 50%; left: 0; right: 0; height: 1px; }
.sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 255, 156, .48), rgba(0, 255, 156, .06) 22%, transparent 34%);
  animation: spin 4s linear infinite;
}
.ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 255, 156, .22); border-radius: 50%;
}
.ring.r1 { width: 30%; height: 30%; }
.ring.r2 { width: 60%; height: 60%; }
.ring.r3 { width: 88%; height: 88%; }
.blip {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.blip.b1 { top: 30%; left: 63%; animation: blink 4s   infinite; }
.blip.b2 { top: 66%; left: 38%; animation: blink 4s 1.3s infinite; }
.blip.b3 { top: 46%; left: 76%; animation: blink 4s 2.6s infinite; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
@keyframes blink { 0%, 12% { opacity: 1; } 55%, 100% { opacity: .05; } }

/* ============================================================ BANDS + GRIDS */

.band { margin: 0 0 3.2rem; }
.band-head {
  display: flex; align-items: center; gap: 1.1rem;
  margin-bottom: 1.3rem;
}
.band-head h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  letter-spacing: .05em;
  margin: 0;
  text-transform: uppercase;
  color: var(--ink);
}
.band-head h2 a:hover { color: var(--phos); }
.band-head .rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--phos), var(--line) 40%, transparent);
}
.band-head .mono { font-size: .68rem; color: var(--ink-faint); letter-spacing: .14em; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ============================================================ CARDS */

/* Flex column, not absolute positioning: the footer is pushed down by whatever
   is above it, so art strips and long deks can never collide with it. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  transition: background .2s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 156, .07));
  opacity: 0; transition: opacity .22s;
  pointer-events: none;
}
.card:hover { background: var(--panel-2); }
.card:hover::before { opacity: 1; }
.card:hover .card-title { color: var(--phos); }

.card-link { display: flex; flex-direction: column; flex: 1; padding: 1.15rem; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .85rem; }

.stamp {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .16em;
  padding: .2rem .45rem;
  border: 1px solid var(--phos);
  color: var(--phos);
  white-space: nowrap;
}
.stamp.big { font-size: .72rem; padding: .32rem .7rem; }
.card-date { font-size: .66rem; color: var(--ink-faint); }

.card-title {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.28;
  margin: 0;
  transition: color .18s;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.card-s .card-title { font-size: .92rem; -webkit-line-clamp: 4; line-clamp: 4; }

.card-foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  font-size: .7rem;
}
.outlet {
  color: var(--cyan);
  font-family: var(--mono);
  letter-spacing: .08em;
  font-size: .72rem;
}

.card-topic {
  padding: .5rem 1.15rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em;
  color: var(--ink-faint);
  transition: color .18s, background .18s;
}
.card-topic:hover { color: var(--phos); background: rgba(0, 255, 156, .06); }

/* ============================================================ SPLIT: WIRE + RAIL */

.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.4rem;
  margin-bottom: 3.4rem;
}

.wire-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wire-row {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: .78rem .55rem;
  border-bottom: 1px solid var(--line);
  transition: background .16s, padding-left .16s;
}
.wire-row:hover { background: rgba(0, 255, 156, .05); padding-left: 1rem; }
.wire-row:hover a { color: var(--phos); }
.wire-date { font-size: .68rem; color: var(--ink-faint); }
.wire-row a { font-size: .96rem; line-height: 1.35; transition: color .16s; }
.wire-outlet {
  font-family: var(--mono); font-size: .68rem; color: var(--cyan);
  text-align: right; white-space: nowrap;
}
.wire-list.big .wire-row { padding: .95rem .55rem; }

.btn {
  display: inline-block;
  margin-top: 1.6rem;
  padding: .8rem 1.5rem;
  border: 1px solid var(--phos);
  color: var(--phos);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .18em;
  background: rgba(0, 255, 156, .06);
  cursor: pointer;
  transition: background .18s, box-shadow .18s, color .18s;
}
.btn:hover { background: var(--phos); color: #02110a; box-shadow: 0 0 26px rgba(0, 255, 156, .4); }
.btn.ghost { border-color: var(--line-hot); color: var(--ink-dim); background: none; }
.btn.ghost:hover { border-color: var(--phos); color: var(--phos); background: rgba(0, 255, 156, .07); }

.rail { display: flex; flex-direction: column; gap: 1.4rem; }
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.2rem;
  position: relative;
}
.panel h3 {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .2em;
  color: var(--phos); margin: 0 0 1rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.panel p { font-size: .86rem; color: var(--ink-dim); margin: 0 0 1rem; }
.panel.scan { background: linear-gradient(180deg, var(--panel), rgba(0, 255, 156, .04)), var(--panel); }

.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .48rem; }
.bars a { display: grid; grid-template-columns: 88px 1fr 34px; align-items: center; gap: .6rem; }
.bl { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--ink-dim); }
.bt { height: 7px; background: var(--deep); border: 1px solid var(--line); display: block; }
.bt i { display: block; height: 100%; background: linear-gradient(90deg, var(--phos), var(--cyan)); }
.bn { font-size: .66rem; color: var(--ink-faint); text-align: right; }
.bars a:hover .bl { color: var(--phos); }

.years { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.years a {
  background: var(--deep); padding: .7rem .8rem;
  display: flex; justify-content: space-between; align-items: baseline;
  transition: background .16s, color .16s;
}
.years a b { font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; }
.years a span { font-size: .66rem; color: var(--ink-faint); }
.years a:hover { background: rgba(0, 255, 156, .1); color: var(--phos); }

/* ============================================================ PAGES */

.page-head { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.4rem; }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: .95; margin: 0 0 .8rem;
  text-transform: uppercase; letter-spacing: .02em;
  text-shadow: 0 0 34px rgba(0, 255, 156, .22);
}
.page-head p { color: var(--ink-dim); max-width: 68ch; margin: 0; font-size: 1rem; }

.filters {
  display: flex; gap: .8rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 1.6rem;
}
.filters input, .filters select {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-hot);
  padding: .72rem .9rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  outline: none;
}
.filters input { flex: 1; min-width: 240px; }
.filters input:focus, .filters select:focus { border-color: var(--phos); box-shadow: 0 0 0 1px rgba(0, 255, 156, .3); }
.filters input::placeholder { color: var(--ink-faint); }
.filters #count { color: var(--phos); font-size: .74rem; margin-left: auto; }

.yearnav { display: flex; flex-wrap: wrap; gap: 1px; margin: 2.6rem 0 0; background: var(--line); border: 1px solid var(--line); }
.yearnav a {
  flex: 1; text-align: center; padding: .85rem .5rem; background: var(--panel);
  font-family: var(--display); font-size: 1.2rem; letter-spacing: .05em;
  transition: background .16s, color .16s;
}
.yearnav a:hover, .yearnav a.on { background: rgba(0, 255, 156, .12); color: var(--phos); }

.prose { padding-bottom: 3rem; }
.prose h2 {
  font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em;
  text-transform: uppercase; margin: 2.4rem 0 .8rem; color: var(--phos);
}
.prose p {
  font-family: var(--read);
  font-size: 1.1rem;
  color: #c3d2da;
  margin: 0 0 1.1rem;
  line-height: 1.75;
}
.prose .lede { font-size: 1.24rem; color: #dce8ed; line-height: 1.68; }
.prose em { color: var(--ink); font-style: italic; }
.prose b { color: var(--ink); }
.prose .mono { color: var(--cyan); font-size: .92em; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip {
  border: 1px solid var(--line-hot); padding: .35rem .7rem;
  font-family: var(--mono); font-size: .7rem; color: var(--ink-dim);
}
.chip b { color: var(--phos); margin-left: .35rem; }

/* ============================================================ ARTICLE */

.hero-dek {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 0 1.4rem;
}

.card-dek {
  font-size: .82rem;
  line-height: 1.45;
  color: var(--ink-faint);
  margin: .55rem 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.card-s .card-dek { display: none; }

.article { padding-bottom: 2rem; }
.art-head, .art-body, .sources { margin-left: auto; margin-right: auto; }

.art-head {
  padding: 3rem 0 1.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
  max-width: 41rem;
}
.art-head .kicker a:hover { text-decoration: underline; }
.art-head h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  text-shadow: 0 0 34px rgba(0, 255, 156, .2);
  overflow-wrap: break-word;
}
.art-head .dek {
  font-family: var(--read);
  font-size: 1.26rem;
  line-height: 1.62;
  color: #b3c6cf;
  margin: 0 0 1.5rem;
}
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .72rem;
}
.byline .by {
  font-family: var(--mono); letter-spacing: .18em; color: var(--phos);
  text-transform: uppercase;
}
.byline .mono { color: var(--ink-faint); }
.byline-std {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px dotted rgba(255, 255, 255, .22);
  margin-left: auto;
}
.byline-std:hover { color: var(--phos); border-bottom-color: var(--phos); }

/* Breadcrumbs — the trail that matches the BreadcrumbList in the page's JSON-LD. */
.crumbs { padding-top: 1.6rem; }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: .67rem; letter-spacing: .14em;
  text-transform: uppercase;
}
.crumbs li + li::before {
  content: "›";
  margin-right: .5rem;
  color: rgba(255, 255, 255, .26);
}
.crumbs li { min-width: 0; }
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--phos); }
/* inline-block, or max-width is ignored and a long headline pushes the page wide */
.crumbs [aria-current="page"] {
  display: inline-block; vertical-align: bottom;
  color: var(--ink-dim);
  max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article .crumbs { max-width: 41rem; margin-left: auto; margin-right: auto; }
.article .art-head { padding-top: 1.2rem; }
@media (max-width: 640px) {
  .crumbs [aria-current="page"] { max-width: 15ch; }
}

/* ~69 characters per line at this size, against ~98 before. */
.art-body { max-width: 41rem; }
.art-body p {
  font-family: var(--read);
  font-size: 1.19rem;
  line-height: 1.78;
  letter-spacing: .002em;
  color: #dce8ed;
  margin: 0 0 1.5rem;
}
.art-body h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--phos);
  margin: 2.6rem 0 1rem;
}
.art-body blockquote {
  margin: 2.2rem 0;
  padding: 1.25rem 1.45rem;
  border-left: 3px solid var(--phos);
  background: linear-gradient(90deg, rgba(0, 255, 156, .07), transparent);
  font-family: var(--ui);
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
}

/* citation markers */
a.cite {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68em;
  line-height: 1;
  vertical-align: super;
  color: var(--cyan);
  border: 1px solid rgba(77, 232, 255, .4);
  border-radius: 2px;
  padding: .12em .3em;
  margin: 0 .1em;
  transition: background .15s, color .15s;
}
a.cite:hover { background: var(--cyan); color: #02110a; }

/* First mention of a defined term. Deliberately quiet — it should not compete
   with the citation chips or break the reading line. */
a.gloss {
  color: inherit;
  border-bottom: 1px dotted rgba(0, 255, 156, .45);
  text-decoration: none;
}
a.gloss:hover { color: var(--phos); border-bottom-style: solid; }

/* source list */
.sources {
  margin-top: 3.2rem;
  border-top: 1px solid var(--line-hot);
  padding-top: 1.6rem;
  max-width: 41rem;
}
.sources h2 {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .24em;
  color: var(--phos); margin: 0 0 .8rem;
}
.src-note {
  font-family: var(--read);
  font-size: .95rem; color: var(--ink-faint); line-height: 1.6;
  margin: 0 0 1.4rem; max-width: 62ch;
}
.src-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.src-list li {
  display: grid;
  grid-template-columns: 2.1rem 1fr auto;
  gap: .9rem;
  align-items: baseline;
  padding: .7rem .5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 6rem;
}
.src-list li:target {
  background: rgba(0, 255, 156, .1);
  outline: 1px solid rgba(0, 255, 156, .4);
}
.src-list .sn { color: var(--cyan); font-size: .78rem; }
.src-list a { font-size: .92rem; line-height: 1.4; }
.src-list a:hover { color: var(--phos); text-decoration: underline; }
.src-outlet {
  font-family: var(--mono); font-size: .68rem; color: var(--ink-faint);
  text-align: right; white-space: nowrap;
}

.empty {
  border: 1px dashed var(--line-hot);
  padding: 1.4rem;
  color: var(--ink-faint);
  font-size: .92rem;
  margin: 0;
}

@media (max-width: 640px) {
  .src-list li { grid-template-columns: 1.8rem 1fr; }
  .src-outlet { grid-column: 2; text-align: left; }
}

/* ============================================================ GLOSSARY */

.glossary { margin: 0 0 3rem; padding: 0; border-top: 1px solid var(--line); }
.glossary .term {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1.4rem;
  padding: 1.1rem .4rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5rem;
  transition: background .16s;
}
.glossary .term:hover { background: rgba(0, 255, 156, .04); }
.glossary .term:target { background: rgba(0, 255, 156, .1); outline: 1px solid rgba(0, 255, 156, .4); }
.glossary dt {
  font-family: var(--mono);
  font-size: .84rem;
  letter-spacing: .1em;
  color: var(--phos);
  line-height: 1.5;
}
.glossary dd {
  margin: 0;
  font-family: var(--read);
  font-size: 1.04rem;
  line-height: 1.7;
  color: #c3d2da;
}
@media (max-width: 640px) {
  .glossary .term { grid-template-columns: 1fr; gap: .35rem; }
}

/* ============================================================ FOOTER */

.foot {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 156, .04));
}
.foot-grid {
  width: min(var(--wrap), 94vw); margin: 0 auto;
  padding: 3rem 0 2.4rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.6rem;
}
.foot-brand {
  font-family: var(--display); font-size: 2.4rem; letter-spacing: .05em;
  color: var(--phos); text-shadow: 0 0 26px rgba(0, 255, 156, .4); line-height: 1;
  margin-bottom: .9rem;
}
.foot-note { color: var(--ink-faint); font-size: .86rem; max-width: 52ch; margin: 0; line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 1.1rem 0 0; }
.foot-links a {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  color: var(--ink-faint); border-bottom: 1px solid var(--line-hot);
  padding-bottom: .12rem; transition: color .16s, border-color .16s;
}
.foot-links a:hover { color: var(--phos); border-color: var(--phos); }
.foot h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; color: var(--ink); margin: 0 0 .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot ul a { font-size: .82rem; color: var(--ink-faint); transition: color .16s; }
.foot ul a:hover { color: var(--phos); }
.foot-bar {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.foot-bar {
  display: flex; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
  width: min(var(--wrap), 94vw); margin: 0 auto;
  font-size: .66rem; color: var(--ink-faint); letter-spacing: .12em;
}

/* ============================================================ RESPONSIVE */

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; padding: 1.8rem 1.3rem; }
  .hero-radar { max-width: 220px; order: -1; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .wire-row { grid-template-columns: 1fr; gap: .3rem; }
  .wire-outlet { text-align: left; }
  .brand-sub { display: none; }
  .mast-meta { font-size: .64rem; gap: .9rem; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .card { min-height: 0; }
}

/* ============================================================ A11Y */

:focus-visible { outline: 2px solid var(--phos); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-run { transform: none; }
  #starfield, .crt::after { display: none; }
}

/* CITED chip — links a source-index row to the UFONN report footnoting it */
.citedby {
  display: inline-block;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--phos);
  border: 1px solid rgba(0, 255, 156, .45);
  padding: .1rem .32rem;
  margin-right: .55rem;
  vertical-align: 1px;
  transition: background .15s, color .15s;
}
.citedby:hover { background: var(--phos); color: #02110a; }
.wire-row.has-cite:hover { background: rgba(0, 255, 156, .07); }

/* ============================================================ SENSOR PLATES */

.plate { display: block; width: 100%; height: 100%; }

/* card art strip */
.card-art {
  position: relative;
  margin: -1.15rem -1.15rem 1rem;
  height: 132px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #05080d;
}
.card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--panel));
  pointer-events: none;
}
.card-s .card-art { height: 104px; }
.card:hover .card-art .plate { transform: scale(1.04); }
.card-art .plate { transition: transform .4s ease; }

/* hero art replaces the standalone scope */
.hero-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-hot);
  overflow: hidden;
  background: #05080d;
}
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, .5));
  pointer-events: none;
}
.hero-art-scan {
  position: absolute; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 156, .10), transparent);
  animation: platescan 5.5s linear infinite;
  pointer-events: none;
}
@keyframes platescan { 0% { top: -40%; } 100% { top: 100%; } }
.hero-art:hover { border-color: var(--phos); }

/* story lead art */
.lead-art {
  margin: 0 auto 2.4rem;
  max-width: 41rem;
  border: 1px solid var(--line-hot);
  background: #05080d;
  position: relative;
}
.lead-art .plate { aspect-ratio: 16 / 9; }
.lead-art figcaption {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
  padding: .6rem .9rem;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .hero-art-scan { display: none; }
}

/* ============================================================ PHOTOGRAPHS */

.lead-art.has-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* pull real photography toward the site's palette without hiding detail */
  filter: saturate(.72) contrast(1.06) brightness(.92);
}
.lead-art figcaption .cap-note { color: var(--ink-faint); }
.lead-art figcaption .cap-credit { color: var(--ink-dim); }
.lead-art figcaption .cap-credit a { border-bottom: 1px solid var(--line-hot); }
.lead-art figcaption .cap-credit a:hover { color: var(--phos); border-color: var(--phos); }

.card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.6) contrast(1.08) brightness(.8);
  transition: transform .4s ease, filter .3s ease;
}
.card:hover .card-photo { transform: scale(1.05); filter: saturate(.85) brightness(.95); }

.hero-art .card-photo { aspect-ratio: 16 / 10; }
