/* ============================================================
   CURIOUS INVESTOR RESEARCH — DESIGN SYSTEM v1.0
   ------------------------------------------------------------
   Single stylesheet for the entire platform.
   Layers: 1. Tokens  2. Base  3. Layout  4. Components  5. Prose
   Theming: [data-theme="dark"] on <html>, falls back to
   prefers-color-scheme. Toggled by site.js, persisted in localStorage.
   Class naming: components are prefixed (site-, c-, chip, prose-)
   so legacy report pages with their own inline CSS never collide.
   ============================================================ */

/* ---------- 1. TOKENS ----------
   Tokens are declared on :root AND on .sr-chrome (the injected header /
   footer / article-footer / search overlay). Legacy dashboards override
   shared names like --bg at :root with their own values; scoping the same
   tokens onto the chrome containers keeps the chrome consistent there. */
:root, .sr-chrome {
  /* color — light */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #16192c;
  --ink-2: #4a5468;
  --ink-3: #76809a;
  --line: rgba(20, 25, 60, 0.09);
  --line-2: rgba(20, 25, 60, 0.16);
  --accent: #1a56db;
  --accent-soft: rgba(26, 86, 219, 0.09);
  --green: #0e9f6e;
  --amber: #d97706;
  --red: #c81e1e;
  --purple: #7e3af2;

  /* type */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* shape & rhythm */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 1px 3px rgba(15, 20, 50, 0.06), 0 6px 24px rgba(15, 20, 50, 0.05);
  --shadow-lift: 0 4px 12px rgba(15, 20, 50, 0.09), 0 12px 40px rgba(15, 20, 50, 0.08);
  --max-w: 1160px;
  --max-w-prose: 720px;
}

[data-theme="dark"], [data-theme="dark"] .sr-chrome {
  --bg: #0e1016;
  --surface: #181b25;
  --surface-2: #222634;
  --ink: #eef1f8;
  --ink-2: #aeb6ca;
  --ink-3: #6e7892;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --accent: #5b93f7;
  --accent-soft: rgba(91, 147, 247, 0.13);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]),
  :root:not([data-theme="light"]) .sr-chrome {
    --bg: #0e1016;
    --surface: #181b25;
    --surface-2: #222634;
    --ink: #eef1f8;
    --ink-2: #aeb6ca;
    --ink-3: #6e7892;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.15);
    --accent: #5b93f7;
    --accent-soft: rgba(91, 147, 247, 0.13);
    --green: #34d399;
    --amber: #fbbf24;
    --red: #f87171;
    --purple: #a78bfa;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.sr-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
}
.sr-body a { color: var(--accent); text-decoration: none; }
.sr-body a:hover { text-decoration: underline; }
.sr-body img { max-width: 100%; height: auto; }
.sr-body h1, .sr-body h2, .sr-body h3 { line-height: 1.25; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 3. LAYOUT ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.wrap-prose { max-width: var(--max-w-prose); margin: 0 auto; padding: 0 20px; }
.section-block { margin: 44px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.section-title { font-size: 19px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.section-link { font-size: 13px; font-weight: 600; white-space: nowrap; }

.grid-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
.grid-cards.cols-4 { gap: 12px; }
@media (min-width: 960px) { .grid-cards.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 4. COMPONENTS ---------- */

/* 4.1 Header — the sticky lives on the #site-header wrapper: position:sticky
   on .site-header itself would be trapped inside the wrapper's own height. */
#site-header { position: sticky; top: 0; z-index: 50; }
/* keep injected chrome styled on legacy report pages that lack .sr-body */
.site-header a, .site-footer a, .pager a, .c-card h3 a, .cat-tile,
.row-item a, .search-results a, a.chip { text-decoration: none; }
/* Defensive resets: legacy dashboards define generic classes (.dot,
   .section-title, …) that must not restyle the injected chrome. The extra
   .sr-chrome ancestor wins on specificity regardless of load order. */
.sr-chrome a { text-decoration: none; }
.sr-chrome .section-title {
  font-family: var(--font-ui); font-size: 19px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; text-transform: none; border: 0; padding: 0; margin: 0;
}
.sr-chrome .c-card-meta .dot {
  width: auto; height: auto; background: none; border-radius: 0;
  box-shadow: none; display: inline;
}
.site-header {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-in {
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 18px; height: 58px;
}
.site-logo {
  font-weight: 800; font-size: 16px; letter-spacing: -0.02em;
  color: var(--ink) !important; display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none !important; }
.site-logo .logo-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.site-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.site-nav a {
  padding: 7px 11px; border-radius: var(--radius-sm); font-size: 13.5px;
  font-weight: 550; color: var(--ink-2) !important;
}
.site-nav a:hover { background: var(--surface-2); text-decoration: none !important; }
.site-nav a.active { color: var(--accent) !important; background: var(--accent-soft); }
.icon-btn {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  width: 32px; height: 32px; border-radius: var(--radius-sm); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.search-trigger {
  display: flex; align-items: center; gap: 8px; min-width: 150px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3);
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer;
}
.search-trigger kbd {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px;
}
.nav-burger { display: none; }
@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px 16px 14px; gap: 4px; }
  .site-nav.open { display: flex; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .search-trigger { min-width: 0; }
  .search-trigger .st-label, .search-trigger kbd { display: none; }
}

/* 4.2 Content card */
.c-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 15px;
  box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease;
  position: relative;
}
.c-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.c-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.c-card h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.c-card h3 a { color: var(--ink); }
.c-card h3 a::after { content: ""; position: absolute; inset: 0; }
.c-card p { margin: 0; font-size: 13px; color: var(--ink-2); display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-card-meta { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--ink-3);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.c-card-meta .dot::before { content: "·"; margin-right: 6px; }

/* Featured (hero) card */
.c-card.featured { padding: 26px; gap: 12px; }
.c-card.featured h3 { font-size: 27px; font-family: var(--font-serif); line-height: 1.3; }
.c-card.featured p { font-size: 15.5px; -webkit-line-clamp: 4; }

/* Compact row (popular / timeline lists) */
.row-item {
  display: flex; gap: 12px; align-items: baseline; padding: 11px 2px;
  border-bottom: 1px solid var(--line); position: relative;
}
.row-item:last-child { border-bottom: 0; }
.row-item .row-rank { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); min-width: 18px; }
.row-item a { color: var(--ink); font-weight: 600; font-size: 14px; }
.row-item .row-meta { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* 4.3 Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid transparent; white-space: nowrap;
}
a.chip:hover { text-decoration: none; border-color: var(--line-2); color: var(--ink); }
.chip.t-report    { background: var(--accent-soft); color: var(--accent); }
.chip.t-dashboard { background: rgba(126, 58, 242, .1); color: var(--purple); }
.chip.t-note      { background: rgba(14, 159, 110, .1); color: var(--green); }
.chip.t-dataset   { background: rgba(217, 119, 6, .12); color: var(--amber); }
.chip.t-substack  { background: rgba(200, 30, 30, .09); color: var(--red); }
.chip.is-filter { cursor: pointer; user-select: none; padding: 5px 13px; font-size: 12.5px; }
.chip.is-filter.on { background: var(--accent); color: #fff; }

/* 4.4 Filter bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 22px; }
.filter-bar select, .filter-bar input[type="search"] {
  font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 7px 10px;
}
.filter-bar input[type="search"] { flex: 1; min-width: 160px; }
.result-count { font-size: 12.5px; color: var(--ink-3); margin: -10px 0 16px; }

/* 4.5 Page hero (category & utility pages) */
.page-hero { padding: 42px 0 8px; }
.page-hero .crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--ink-3); }
.page-hero h1 { margin: 0 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.page-hero .lede { margin: 0; max-width: 640px; font-size: 15.5px; color: var(--ink-2); }
.page-hero .hero-stats { display: flex; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.page-hero .hero-stat b { display: block; font-size: 21px; letter-spacing: -0.01em; }
.page-hero .hero-stat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }

/* 4.6 Category tiles */
.cat-tile {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; color: var(--ink) !important; box-shadow: var(--shadow);
  transition: transform .14s, box-shadow .14s;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); text-decoration: none !important; }
.cat-tile b { font-size: 15px; }
.cat-tile small { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.cat-tile .count { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--accent); }
.cat-tile.big { padding: 28px 22px; gap: 8px; }
.cat-tile.big b { font-size: 19px; letter-spacing: -0.01em; }

/* 4.6b Dashboard tabs */
.dash-tabs { display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-tab { padding: 9px 20px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1.5px solid transparent; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s; }
.dash-tab:hover { background: var(--surface-3); color: var(--ink-1); }
.dash-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 4.7 Article page */
.art-head { padding: 44px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.art-head .crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; }
.art-head .crumbs a { color: var(--ink-3); }
.art-head h1 {
  font-family: var(--font-serif); font-size: clamp(27px, 5vw, 38px);
  font-weight: 700; letter-spacing: -0.015em; margin: 10px 0 14px; line-height: 1.22;
}
.art-head .standfirst { font-size: 17px; color: var(--ink-2); font-family: var(--font-serif);
  font-style: italic; margin: 0 0 18px; line-height: 1.55; }
.art-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--ink-3); }
.art-meta b { color: var(--ink-2); font-weight: 600; }
.art-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

/* 4.8 Prose (long-form body) */
.prose { font-family: var(--font-serif); font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 23px; margin: 1.9em 0 .7em; letter-spacing: -0.01em; }
.prose h3 { font-size: 18.5px; margin: 1.6em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.2em auto; width: 120px; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-size: 19px; line-height: 1.55; color: var(--ink-2); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui);
  font-size: 13.5px; margin: 1.6em 0; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.prose .stat-callout {
  font-family: var(--font-ui); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin: 1.6em 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.prose .stat-callout b { display: block; font-size: 21px; letter-spacing: -0.01em; }
.prose .stat-callout span { font-size: 12px; color: var(--ink-3); line-height: 1.4; display: block; }
.prose .src-note { font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-3);
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 2.5em; }
.prose .chart-embed { margin: 1.8em 0; }
.prose .chart-embed iframe {
  width: 100%; height: 600px; border: 1px solid var(--line-2);
  border-radius: var(--radius); background: #0d1b2a; display: block;
}
@media (max-width: 560px) { .prose .chart-embed iframe { height: 480px; } }

/* 4.9 Prev / next pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0; }
.pager a {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--ink) !important; box-shadow: var(--shadow);
}
.pager a:hover { text-decoration: none !important; box-shadow: var(--shadow-lift); }
.pager .pager-dir { font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); display: block; margin-bottom: 4px; }
.pager .pager-title { font-size: 13.5px; font-weight: 650; }
.pager a.next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a.next { grid-column: 1; } }

/* 4.10 Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10, 12, 22, 0.55); backdrop-filter: blur(3px);
  padding: 10vh 18px 0;
}
.search-overlay.open { display: block; }
.search-panel {
  max-width: 620px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.search-panel input {
  width: 100%; border: 0; outline: none; background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.search-results { max-height: 52vh; overflow-y: auto; padding: 6px; }
.search-results a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink) !important;
}
.search-results a:hover, .search-results a.sel { background: var(--surface-2); text-decoration: none !important; }
.search-results .sr-title { font-weight: 600; font-size: 14px; }
.search-results .sr-meta { font-size: 12px; color: var(--ink-3); }
.search-empty { padding: 18px; font-size: 13.5px; color: var(--ink-3); text-align: center; }

/* 4.11 Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 38px 0 46px;
  background: var(--surface); font-size: 13px; }
.site-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { margin: 0 0 10px; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-2); }
.footer-blurb { color: var(--ink-2); max-width: 320px; line-height: 1.6; }
.footer-bottom { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between;
  color: var(--ink-3); font-size: 12px; }

/* 4.12 Misc */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--accent); color: #fff !important; border: 0;
  font: inherit; font-size: 13.5px; font-weight: 650;
  padding: 9px 18px; border-radius: var(--radius-sm);
}
.btn:hover { text-decoration: none !important; filter: brightness(1.08); }
.btn.ghost { background: var(--surface); color: var(--ink) !important; border: 1px solid var(--line-2); }
.cta-band {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; gap: 18px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; box-shadow: var(--shadow);
}
.cta-band h3 { margin: 0 0 4px; font-size: 17px; }
.cta-band p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.substack-embed iframe {
  width: 100%; max-width: 460px; height: 96px; display: block;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
  color-scheme: light;
}
[data-theme="dark"] .substack-embed iframe { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .substack-embed iframe { color-scheme: dark; }
}
.empty-state { padding: 40px 20px; text-align: center; color: var(--ink-3);
  border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 14px; }
.timeline-month { font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3); margin: 22px 0 4px; }
.kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); }
.kicker-lg { font-size: 15px; letter-spacing: .1em; }

/* 4.13 Aurora — soft gradient washes behind the homepage hero.
   Pure CSS, GPU-friendly (transform-only animation), respects
   prefers-reduced-motion. Markup: <div class="aurora"><i></i><i></i><i></i></div> */
.aurora {
  position: absolute; top: 0; left: 0; right: 0; height: 580px;
  overflow: hidden; z-index: -1; pointer-events: none;
}
.aurora::after { /* fade the band into the page background */
  content: ""; position: absolute; inset: 60% 0 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .26;
  animation: aurora-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.aurora i:nth-child(1) { width: 580px; height: 580px; left: -140px; top: -200px;
  background: radial-gradient(circle at 30% 30%, #4d8cf5, transparent 66%); }
.aurora i:nth-child(2) { width: 500px; height: 500px; right: -100px; top: -140px;
  background: radial-gradient(circle at 60% 40%, #a78bfa, transparent 66%);
  animation-duration: 28s; animation-delay: -9s; }
.aurora i:nth-child(3) { width: 440px; height: 440px; left: 36%; top: 110px;
  background: radial-gradient(circle at 50% 50%, #34d399, transparent 66%);
  opacity: .16; animation-duration: 26s; animation-delay: -15s; }
[data-theme="dark"] .aurora i { opacity: .4; }
[data-theme="dark"] .aurora i:nth-child(3) { opacity: .22; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .aurora i { opacity: .4; }
  :root:not([data-theme="light"]) .aurora i:nth-child(3) { opacity: .22; }
}
@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(70px, 45px, 0) scale(1.18); }
}
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }
