/* iskwela.com — The Radar · design system
   display: Bricolage Grotesque · body: Figtree · instrument: IBM Plex Mono */

:root {
  --ink: #171a21;
  --muted: #4a5568;
  --faint: #8b93a5;
  --line: rgba(23, 26, 33, 0.1);
  --line-soft: rgba(23, 26, 33, 0.06);
  --dot: rgba(23, 26, 33, 0.16);
  --paper: #ffffff;
  --well: #f7f7f4;
  --red: #c1301c;
  --red-deep: #9a2412;
  --blue: #0b4ea2;
  --blue-deep: #093d80;
  --gold: #e8a200;
  --gold-deep: #8a6100;
  --gold-soft: rgba(232, 162, 0, 0.14);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shadow-card: 0 1px 2px rgba(23, 26, 33, 0.05), 0 10px 30px -14px rgba(23, 26, 33, 0.22);
  --shadow-pop: 0 2px 6px rgba(23, 26, 33, 0.08), 0 18px 44px -16px rgba(23, 26, 33, 0.3);
  --radius: 10px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-glyph { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand-tld { color: var(--red); }
.brand-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid rgba(232, 162, 0, 0.5);
  border-radius: 999px; padding: 3px 9px 2px;
  white-space: nowrap;
}
.readout {
  margin-left: auto;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.readout-num { font-weight: 600; color: var(--ink); }
.readout-sep { margin: 0 2px; color: var(--faint); }
.shortlist-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 26, 33, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.shortlist-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); border-color: rgba(23, 26, 33, 0.2); }
.star-ic { width: 14px; height: 14px; color: var(--gold); flex: none; }
.count-badge {
  min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink);
  border-radius: 999px; font-size: 11px; font-weight: 700;
}

/* ---------- instrument ---------- */
.instrument {
  max-width: 1460px; margin: 0 auto;
  padding: clamp(20px, 3.5vw, 44px) clamp(16px, 4vw, 40px) 0;
}
.instrument-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 20px;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--gold);
  display: inline-block;
}
.instrument-title h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  margin-top: 8px;
}
.lede {
  margin-top: 12px; max-width: 62ch;
  font-size: 16.5px; color: var(--muted);
}
.lede strong { color: var(--ink); font-weight: 600; }

.view-toggle {
  display: inline-flex; padding: 3px; gap: 3px;
  background: var(--well);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  flex: none;
}
.vt-btn {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 9px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.vt-btn:hover { color: var(--ink); }
.vt-btn.is-active {
  background: var(--ink); color: #fff;
  box-shadow: 0 2px 6px rgba(23, 26, 33, 0.25);
}

/* ---------- filters ---------- */
.filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line-soft);
}
.filters-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
  margin-right: 4px;
}
.chip-set { display: inline-flex; gap: 6px; }
.chip {
  font-family: var(--body); font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted); background: #fff;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}
.chip:hover { border-color: rgba(23, 26, 33, 0.3); color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.chip[data-island][aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.chip[data-flag="creative"][aria-pressed="true"] { background: var(--gold-deep); border-color: var(--gold-deep); }
.chip-reset { border-style: dashed; color: var(--red-deep); border-color: rgba(193, 48, 28, 0.4); }
.chip-reset:hover { background: rgba(193, 48, 28, 0.06); color: var(--red-deep); }
.chip-divider { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.filters-count {
  margin-left: auto;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.filters-count span { color: var(--ink); font-weight: 600; }

/* ---------- stage ---------- */
.stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.stage-scroll { overflow-x: auto; min-width: 0; }
.stage {
  position: relative;
  min-width: 860px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: #fff;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 26px 26px;
  box-shadow: inset 0 0 60px rgba(23, 26, 33, 0.025);
  overflow: hidden;
}
.stage-frame .tick {
  position: absolute; width: 14px; height: 14px;
  border-color: rgba(23, 26, 33, 0.35); border-style: solid; border-width: 0;
}
.tick.tl { top: 8px; left: 8px; border-top-width: 2px; border-left-width: 2px; }
.tick.tr { top: 8px; right: 8px; border-top-width: 2px; border-right-width: 2px; }
.tick.bl { bottom: 8px; left: 8px; border-bottom-width: 2px; border-left-width: 2px; }
.tick.br { bottom: 8px; right: 8px; border-bottom-width: 2px; border-right-width: 2px; }
.stage-readout {
  position: absolute; top: 12px; left: 30px; right: 30px;
  display: flex; gap: 22px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--faint);
  pointer-events: none;
}
.stage-readout #scan-state { color: var(--gold-deep); }
#field { display: block; width: 100%; height: auto; }

/* svg layers */
.ring-guide { fill: none; stroke: rgba(23, 26, 33, 0.055); stroke-width: 1; }
.axis-line { stroke: rgba(23, 26, 33, 0.12); stroke-width: 1; stroke-dasharray: 2 5; }
.axis-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.22em; fill: var(--faint);
}
.axis-cap {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  fill: rgba(23, 26, 33, 0.32);
}
.sweep-line { stroke: var(--gold); stroke-width: 1.5; opacity: 0.75; }
.sweep-trail { opacity: 0.5; }

.island-shape {
  fill: rgba(23, 26, 33, 0.045);
  stroke: rgba(23, 26, 33, 0.16);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}
.island-label {
  font-family: var(--display); font-weight: 800;
  font-size: 24px; letter-spacing: 0.08em;
  fill: rgba(23, 26, 33, 0.22);
}
.island-count {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; fill: rgba(23, 26, 33, 0.42);
}
.layer-map { opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.stage[data-view="map"] .layer-map { opacity: 1; }
.stage[data-view="map"] .ring-guide,
.stage[data-view="map"] .axis-line,
.stage[data-view="map"] .axis-label,
.stage[data-view="map"] .axis-cap { opacity: 0; }
.ring-guide, .axis-line, .axis-label, .axis-cap { transition: opacity 0.5s ease; }

/* nodes */
.node { cursor: pointer; }
.node-inner {
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.5, 1), opacity 0.35s ease;
  transform-origin: 0 0;
}
.node .halo {
  fill: none; stroke-width: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.node .disc {
  fill: #fff; stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px rgba(23, 26, 33, 0.14)) drop-shadow(0 5px 10px rgba(23, 26, 33, 0.08));
  transition: stroke-width 0.2s ease;
}
.node .logo-img { pointer-events: none; }
.node-mono {
  font-family: var(--display); font-weight: 800;
  text-anchor: middle; letter-spacing: -0.02em;
  pointer-events: none;
}
.node-label {
  font-family: var(--body); font-size: 10.5px; font-weight: 600;
  fill: var(--muted); text-anchor: middle;
  pointer-events: none;
  paint-order: stroke fill;
  stroke: #ffffff; stroke-width: 3px; stroke-linejoin: round;
  transition: fill 0.2s ease;
}
.node:hover .node-inner, .node:focus-visible .node-inner, .node.is-active .node-inner {
  transform: scale(1.16);
}
.node:hover .disc, .node:focus-visible .disc, .node.is-active .disc { stroke-width: 3.5; }
.node:hover .node-label, .node:focus-visible .node-label, .node.is-active .node-label { fill: var(--ink); }
.node:hover .halo, .node:focus-visible .halo, .node.is-active .halo { opacity: 0.45; }
.node:focus-visible { outline: none; }
.node:focus-visible .disc { stroke-width: 4; }
.node.is-dimmed { pointer-events: none; }
.node.is-dimmed .node-inner { opacity: 0.07; transform: scale(0.55); }
.node.is-pinging .halo { animation: ping 1.1s ease-out 2; }
@keyframes ping {
  0% { opacity: 0.7; stroke-width: 2; }
  100% { opacity: 0; stroke-width: 14; }
}
.node.is-swept .halo { animation: swept 0.9s ease-out; }
@keyframes swept {
  0% { opacity: 0.65; stroke-width: 2; }
  100% { opacity: 0; stroke-width: 16; }
}
.node .short-star {
  font-size: 13px; fill: var(--gold-deep); text-anchor: middle;
  opacity: 0; transition: opacity 0.25s ease;
}
.node.is-shortlisted .short-star { opacity: 1; }

/* preview card */
.preview {
  position: absolute; z-index: 30;
  width: 264px;
  display: flex; gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  animation: preview-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes preview-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.preview-logo {
  width: 46px; height: 46px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--well); border-radius: 9px; overflow: hidden; padding: 5px;
}
.preview-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.preview-logo.logo-wide { width: 86px; }
.preview-name { font-family: var(--display); font-weight: 700; font-size: 14.5px; line-height: 1.2; letter-spacing: -0.01em; }
.preview-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.preview-signal {
  font-family: var(--mono); font-size: 10.5px; color: var(--gold-deep);
  margin-top: 6px; line-height: 1.45;
}
.preview-cta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); margin-top: 8px;
}
.preview-cta kbd {
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px;
  font-family: var(--mono); font-size: 10px;
}

/* ---------- rail / spotlight ---------- */
.rail { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rail-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rail-title {
  font-family: var(--display); font-weight: 800; font-size: 21px;
  letter-spacing: -0.02em;
}
.rail-sub { font-size: 12.5px; color: var(--faint); }
.rail-nav { margin-left: auto; display: flex; gap: 6px; }
.rail-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.18s, color 0.18s, transform 0.18s;
}
.rail-btn:hover { border-color: rgba(23, 26, 33, 0.35); color: var(--ink); transform: translateY(-1px); }

.spot-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-card);
  animation: spot-in 0.45s ease;
}
@keyframes spot-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.spot-top { display: flex; gap: 12px; align-items: center; }
.spot-logo {
  width: 52px; height: 52px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--well); border-radius: 10px; padding: 6px; overflow: hidden;
}
.spot-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.spot-logo.logo-wide { width: 94px; }
.spot-kicker {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep);
}
.spot-name {
  font-family: var(--display); font-weight: 800; font-size: 18.5px;
  letter-spacing: -0.015em; line-height: 1.15; margin-top: 2px;
}
.spot-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.spot-note {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px; color: var(--muted); line-height: 1.6;
}
.spot-note::before { content: "“"; font-family: var(--display); font-size: 26px; color: var(--gold); line-height: 0; vertical-align: -6px; margin-right: 2px; }
.spot-actions { display: flex; gap: 8px; margin-top: 14px; }
.spot-dots { display: flex; gap: 6px; margin-top: 14px; }
.spot-dot {
  width: 22px; height: 4px; border-radius: 2px;
  background: rgba(23, 26, 33, 0.12);
  transition: background 0.25s ease;
}
.spot-dot[aria-current="true"] { background: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 15px; border-radius: 9px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: rgba(23, 26, 33, 0.35); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(23, 26, 33, 0.08); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 2px 8px rgba(193, 48, 28, 0.3); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(193, 48, 28, 0.32); }
.btn[aria-pressed="true"], .btn.is-on { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.how-note {
  border: 1px solid var(--line-soft);
  background: var(--well);
  border-radius: 14px;
  padding: 16px 18px;
}
.how-title {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.how-note p { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.55; }
.how-note p:last-child { margin-bottom: 0; }
.how-note strong { color: var(--ink); font-family: var(--mono); font-size: 12px; }
.how-note em { color: var(--red-deep); font-style: normal; font-weight: 600; }

/* ---------- legend ---------- */
.legend {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 16px 4px 8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-ring { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2.5px solid; flex: none; }
.legend-ring-public { border-color: var(--blue); }
.legend-ring-private { border-color: var(--red); }
.legend-ring-creative { border-color: var(--gold); }
.legend-size { border-radius: 50%; background: rgba(23, 26, 33, 0.14); display: inline-block; }
.legend-size-s { width: 8px; height: 8px; }
.legend-size-l { width: 15px; height: 15px; margin-left: -3px; }
.legend-sweep { width: 26px; height: 10px; background: linear-gradient(90deg, transparent, var(--gold-soft) 55%, rgba(232, 162, 0, 0.55)); border-right: 1.5px solid var(--gold); }
.legend-star { color: var(--gold-deep); font-size: 13px; line-height: 1; }

/* ---------- list view ---------- */
.list-view { padding: 26px 0 10px; }
.list-title { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.list-sub { font-size: 13px; color: var(--faint); margin-top: 2px; }
.list-cols {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) 0.7fr 1fr 0.7fr 0.7fr 0.7fr minmax(180px, 1.8fr) 44px;
  gap: 12px; align-items: center;
  padding: 14px 14px 10px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.list-cols button { text-align: left; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--muted); }
.list-cols button:hover { color: var(--ink); }
.sort-arrow::after { content: ""; }
.sort-arrow.asc::after { content: "▲"; font-size: 8px; margin-left: 4px; }
.sort-arrow.desc::after { content: "▼"; font-size: 8px; margin-left: 4px; }
.list-rows { list-style: none; }
.list-row {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) 0.7fr 1fr 0.7fr 0.7fr 0.7fr minmax(180px, 1.8fr) 44px;
  gap: 12px; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s ease;
  cursor: pointer;
}
.list-row:hover { background: var(--well); }
.list-row.is-hidden { display: none; }
.lr-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lr-logo {
  width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--well); border-radius: 8px; padding: 4px; overflow: hidden;
}
.lr-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lr-logo.logo-wide { width: 62px; }
.lr-title { min-width: 0; }
.lr-title b { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-title span { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-sector {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.lr-sector.public { color: var(--blue); }
.lr-sector.private { color: var(--red); }
.lr-cred { display: flex; gap: 5px; flex-wrap: wrap; }
.cred-tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(23, 26, 33, 0.05); color: var(--muted);
}
.cred-tag.ai { background: var(--gold-soft); color: var(--gold-deep); }
.cred-tag.coe { background: rgba(11, 78, 162, 0.09); color: var(--blue-deep); }
.cred-tag.crt { background: rgba(232, 162, 0, 0.16); color: var(--gold-deep); }
.lr-num {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 8px;
}
.lr-bar { width: 46px; height: 4px; border-radius: 2px; background: rgba(23, 26, 33, 0.08); overflow: hidden; flex: none; }
.lr-bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.lr-signal { font-size: 12.5px; color: var(--muted); line-height: 1.45; min-width: 0; }
.lr-star {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff;
  color: var(--faint); font-size: 15px;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.lr-star:hover { color: var(--gold-deep); border-color: rgba(232, 162, 0, 0.6); transform: translateY(-1px); }
.lr-star[aria-pressed="true"] { color: var(--gold-deep); background: var(--gold-soft); border-color: var(--gold); }

/* ---------- drawers ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(23, 26, 33, 0.35);
  animation: fade-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(470px, 100%);
  background: #fff;
  box-shadow: -12px 0 44px rgba(23, 26, 33, 0.2);
  display: flex; flex-direction: column;
  animation: drawer-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes drawer-in {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.drawer-head {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.pd-logo {
  width: 62px; height: 62px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--well); border-radius: 12px; padding: 8px; overflow: hidden;
}
.pd-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-logo.logo-wide { width: 108px; }
.pd-id { min-width: 0; flex: 1; }
.pd-kicker {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep);
}
.pd-name {
  font-family: var(--display); font-weight: 800; font-size: 21px;
  letter-spacing: -0.015em; line-height: 1.15; margin-top: 3px;
}
.pd-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.drawer-close {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  border: 1px solid var(--line); color: var(--muted); font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.18s, border-color 0.18s, transform 0.18s;
}
.drawer-close:hover { color: var(--ink); border-color: rgba(23, 26, 33, 0.35); transform: rotate(90deg); }
.drawer-body { padding: 18px 20px 26px; overflow-y: auto; flex: 1; }
.pd-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-sec { margin-bottom: 20px; }
.pd-h {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.pd-axis { display: grid; grid-template-columns: minmax(120px, 1fr) 1.4fr 40px; gap: 10px; align-items: center; margin-bottom: 9px; }
.pd-axis-label { font-size: 12.5px; color: var(--muted); }
.pd-bar { height: 7px; border-radius: 4px; background: rgba(23, 26, 33, 0.07); overflow: hidden; }
.pd-bar-fill {
  display: block; height: 100%; width: 0; border-radius: 4px;
  background: var(--red);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.pd-bar-ind { background: var(--blue); }
.pd-bar-breadth { background: var(--gold); }
.pd-axis-num { font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pd-rationale { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.pd-signals { list-style: none; }
.pd-signals li {
  position: relative; padding: 8px 0 8px 22px;
  font-size: 13.5px; line-height: 1.5;
  border-bottom: 1px solid var(--line-soft);
}
.pd-signals li::before {
  content: "▸"; position: absolute; left: 2px; top: 8px;
  color: var(--gold); font-size: 13px;
}
.pd-blurb { font-size: 14.5px; line-height: 1.65; }
.pd-programs {
  margin-top: 10px; padding: 10px 12px;
  background: var(--well); border-radius: 9px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.7;
}
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-source {
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  letter-spacing: 0.04em; margin-top: 6px;
}

/* shortlist drawer */
.drawer-shortlist { width: min(860px, 100%); }
.sd-empty { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 14px; max-width: 40ch; margin: 0 auto; }
.sd-empty-glyph { font-size: 40px; color: var(--gold); margin-bottom: 10px; }
.sd-matrix-wrap { overflow-x: auto; }
.sd-matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.sd-matrix th {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 8px 10px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}
.sd-matrix td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.sd-matrix tbody tr { transition: background 0.15s ease; }
.sd-matrix tbody tr:hover { background: var(--well); }
.sd-name { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.sd-name img { width: 30px; height: 30px; object-fit: contain; background: var(--well); border-radius: 6px; padding: 3px; flex: none; }
.sd-name img.logo-wide { width: 56px; }
.sd-name b { font-family: var(--display); font-weight: 700; font-size: 13.5px; }
.sd-num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.sd-yes { color: var(--gold-deep); font-weight: 700; }
.sd-no { color: rgba(23, 26, 33, 0.25); }
.sd-remove {
  width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid var(--line); color: var(--faint); font-size: 12px;
  transition: color 0.15s, border-color 0.15s;
}
.sd-remove:hover { color: var(--red-deep); border-color: rgba(193, 48, 28, 0.5); }
.sd-clear { margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 56px;
  border-top: 3px solid var(--ink);
  background: #fff;
}
.footer-grid {
  max-width: 1460px; margin: 0 auto;
  padding: clamp(30px, 4vw, 54px) clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1.1fr 1.2fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
}
.footer-wordmark {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em; line-height: 1;
}
.footer-wordmark span { color: var(--red); }
.footer-tag { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 30ch; }
.footer-mail {
  display: inline-block; margin-top: 18px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  color: var(--red-deep); text-decoration: none;
  border-bottom: 2px solid rgba(193, 48, 28, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.footer-mail:hover { border-color: var(--red); }
.footer-h {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.footer-p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.footer-src { list-style: none; }
.footer-src li {
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  padding: 7px 0 7px 18px; position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.footer-src li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.footer-base {
  border-top: 1px solid var(--line-soft);
  padding: 16px clamp(16px, 4vw, 40px);
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  max-width: 1460px; margin: 0 auto;
}

.noscript-note { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.noscript-note ul { margin: 14px 0 14px 20px; }
.noscript-note li { margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .stage-wrap { grid-template-columns: 1fr; }
  .rail { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .rail-head { grid-column: 1 / -1; }
  .spot-card { grid-column: 1; }
  .how-note { grid-column: 2; }
}
@media (max-width: 860px) {
  .rail { grid-template-columns: 1fr; }
  .spot-card, .how-note { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .list-cols { display: none; }
  .list-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name star"
      "meta meta"
      "signal signal";
    row-gap: 8px;
  }
  .lr-name { grid-area: name; }
  .lr-star { grid-area: star; }
  .lr-sector, .lr-cred { grid-area: meta; }
  .lr-cred { grid-area: meta; justify-self: end; }
  .lr-sector { display: inline; }
  .lr-num { display: none; }
  .lr-signal { grid-area: signal; }
  .list-row { position: relative; padding-right: 56px; }
  .lr-star { position: absolute; right: 12px; top: 12px; }
}
@media (max-width: 767px) {
  .topbar { gap: 10px; }
  .brand-tag { display: none; }
  .readout { font-size: 11px; }
  .shortlist-label { display: none; }
  .shortlist-btn { padding: 8px 11px; }
  .instrument-head { align-items: stretch; flex-direction: column; }
  .view-toggle { width: 100%; }
  .vt-btn { flex: 1; text-align: center; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 14px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters-count { margin-left: 8px; flex: none; }
  .chip, .chip-set { flex: none; }
  .stage-readout { display: none; }
}
@media (max-width: 480px) {
  .lede { font-size: 15.5px; }
  .preview { width: 232px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .node.is-swept .halo { animation: none; }
}
