:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #101826;
  --ink: #e8eef8;
  --muted: #93a0b8;
  --line: rgba(212, 168, 87, 0.28);
  --gold: #d4a857;
  --gold-2: #f3e2b8;
  --copper: #b87333;
  --cyan: #7ee7f7;
  --up: #3dd68c;
  --down: #ff6b7a;
  --card: rgba(16, 24, 38, 0.92);
  --sans: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(126, 231, 247, 0.08), transparent 55%),
    radial-gradient(700px 380px at -10% 0%, rgba(212, 168, 87, 0.08), transparent 50%),
    var(--bg);
}

a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }

.tape {
  background: #05080f;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  height: 36px;
}

.tape-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 8px 0;
  animation: marquee 70s linear infinite;
}

.tape-item {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.tape-item strong { color: var(--ink); font-weight: 600; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
  min-width: 0;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.brand span { color: var(--gold); }

nav { display: flex; flex-wrap: wrap; gap: 12px 16px; font-size: 14px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--cyan); }

main { padding: 18px 0 72px; min-width: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
  min-width: 0;
}

.stories, .top-grid, .secondary, .lead, .card, .rail { min-width: 0; }

.kicker, .section-label {
  margin: 0 0 8px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, .lead-title {
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(32px, 5vw, 52px); }

.lede { color: var(--muted); max-width: 62ch; }

.lead, .card, .panel, .quote-card, .rail article {
  background: var(--card);
  border: 1px solid rgba(212, 168, 87, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.lead { padding: 20px 20px 18px; }
.lead-title { font-size: clamp(26px, 4vw, 40px); overflow-wrap: break-word; }
.lead-title a, .card h3 a, .rail h3 a, .secondary strong { color: var(--ink); text-decoration: none; overflow-wrap: break-word; }
.lead-title a:hover, .card h3 a:hover, .rail h3 a:hover { color: var(--gold-2); }

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 12px;
}

.secondary { display: flex; flex-direction: column; gap: 10px; }
.secondary a.mini {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 12, 20, 0.65);
  border: 1px solid rgba(126, 231, 247, 0.12);
  text-decoration: none;
  color: var(--ink);
}
.secondary a.mini:hover { border-color: var(--gold); }
.secondary strong { display: block; font-weight: 560; line-height: 1.3; color: var(--ink); }

.card-meta, .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.badge {
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid rgba(126, 231, 247, 0.35);
  color: var(--cyan);
  text-transform: uppercase;
}

.badge-edgar, .badge-award { border-color: rgba(212, 168, 87, 0.5); color: var(--gold-2); }
.badge-people, .badge-event { border-color: rgba(147, 160, 184, 0.4); color: var(--muted); }

.initials {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 10px;
}

.summary { margin: 8px 0 0; color: var(--muted); }
.also { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.also a { color: var(--cyan); }

.chandelier-col {
  text-align: center;
  padding-top: 4px;
  position: relative;
}
.chandelier-col::before {
  content: "";
  position: absolute;
  inset: 8% 0 auto;
  height: 70%;
  background: radial-gradient(closest-side, rgba(212, 168, 87, 0.22), rgba(126, 231, 247, 0.05) 55%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.chandelier {
  position: relative;
  width: min(280px, 100%);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(212, 168, 87, 0.35));
}
.coax { stroke-dasharray: 5 9; animation: dash 9s linear infinite; }
.plates { animation: sheen 7s ease-in-out infinite; }
.ticker-wait { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; margin: 4px 0 0; }
.tagline { color: var(--gold-2); font-size: 14px; margin: 8px 0 12px; }
.cta {
  display: inline-block;
  background: linear-gradient(180deg, #e3c27a, #b8883b);
  color: #1a1206;
  text-decoration: none;
  font-weight: 650;
  border-radius: 999px;
  padding: 10px 16px;
}
.cta:hover { color: #1a1206; filter: brightness(1.05); }

.quotes { margin: 8px 0 26px; }
.quote-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.quote-card { padding: 12px 12px 10px; }
.quote-card .sym { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.quote-card .px { font-size: 20px; letter-spacing: -0.03em; }
.quote-card svg { display: block; margin-top: 6px; }
.disclosure {
  color: #e2c48a;
  font-size: 13px;
  margin: 10px 0 0;
}

.rails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.rail h2 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.rail article { padding: 12px 14px; margin: 0 0 8px; box-shadow: none; }
.rail h3 { font-size: 15px; margin: 0; font-weight: 560; }

.people {
  margin: 4px 0 26px;
  padding: 12px 14px;
  border-top: 1px solid rgba(126, 231, 247, 0.15);
  border-bottom: 1px solid rgba(126, 231, 247, 0.15);
}
.people ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.people li { color: var(--muted); font-size: 14px; }
.people a { color: var(--ink); text-decoration: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 10px; max-width: 100%; }
.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.chip.on, .chip:hover { border-color: var(--gold); color: var(--gold-2); }

.refine-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.refine-label { display: none; }
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin: 8px 0 14px;
}
label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
input, select, button {
  font: inherit;
  color: var(--ink);
  background: #0c121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
}
button, .button {
  background: transparent;
  color: var(--gold-2);
  border-color: var(--gold);
  cursor: pointer;
  text-decoration: none;
}
.feed { display: grid; gap: 12px; }
.card { padding: 16px 16px 14px; box-shadow: none; }
.card h3 { margin: 0; font-size: 20px; font-weight: 560; letter-spacing: -0.02em; overflow-wrap: break-word; }

.org-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.org-list a { text-decoration: none; color: var(--ink); }
.ticker { font-family: var(--mono); color: var(--gold); font-size: 12px; }

.prose p { max-width: 68ch; }
.empty, .error { color: var(--muted); }
.error { color: #ffb4bc; }

footer { border-top: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 13px; padding-bottom: 28px; }
.footer-inner { padding: 18px 0 8px; }
.pager { display: flex; gap: 14px; margin-top: 8px; }

.qubit { transform-box: fill-box; transform-origin: center; }
.q1 { animation: float1 6.5s ease-in-out infinite; }
.q2 { animation: float2 7.5s ease-in-out infinite; }
.q3 { animation: float1 8s ease-in-out infinite reverse; }
.q4 { animation: float2 5.5s ease-in-out infinite; }
.q5 { animation: float1 9s ease-in-out infinite; }
.q6 { animation: float2 6.5s ease-in-out infinite reverse; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float1 { 50% { transform: translate(8px, -16px); opacity: 0.4; } }
@keyframes float2 { 50% { transform: translate(-10px, 12px); opacity: 0.55; } }
@keyframes dash { to { stroke-dashoffset: -220; } }
@keyframes sheen { 50% { opacity: 0.82; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) 220px; }
  .top-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .top-inner { align-items: flex-start; }
  nav { width: 100%; }
  .hero, .top-grid, .rails, .org-list { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 8px; }
  .chandelier-col {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 78px;
    overflow: hidden;
    border-radius: 14px;
    background:
      radial-gradient(80px 60px at 50% 120%, rgba(212, 168, 87, 0.35), transparent 70%),
      rgba(16, 24, 38, 0.65);
    border: 1px solid rgba(212, 168, 87, 0.22);
  }
  .chandelier-col::before { display: none; }
  .chandelier { width: 92px; margin-top: -8px; }
  .tagline, .chandelier-col .cta { display: none; }
  .lead-title, .lead .summary { padding-right: 0; }
  .quote-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .refine-label {
    display: inline-flex;
    margin: 4px 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--muted);
    font-size: 13px;
  }
  .refine .filters { display: none; }
  .refine-toggle:checked ~ .filters { display: grid; grid-template-columns: minmax(0, 1fr); }
  .refine-toggle:focus-visible ~ .refine-label { outline: 1px solid var(--cyan); }
}

@media (prefers-reduced-motion: reduce) {
  .tape-track, .qubit, .coax, .plates { animation: none; }
  .tape { height: auto; }
  .tape-track { flex-wrap: wrap; width: auto; padding: 8px 12px 10px; }
}
