/* The Rack Report — design system.
   1. Tokens  2. Base  3. Shell (sidebar, top bar, tab bar)  4. Loader
   5. Components  6. Pages  7. Reduced motion */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0c0c0d;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1c1c1f;
  --surface-3: #26262a;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef2f8;
  --text-2: #cfd2d8;
  --muted: #a3a7b0;
  --faint: #8d929c;

  --accent: #b9f542;
  --accent-ink: #0a1020;
  --accent-soft: rgba(185, 245, 66, .12);
  --accent-glow: rgba(185, 245, 66, .28);
  --cyan: #38bdf8;
  --cyan-soft: rgba(56, 189, 248, .12);

  --st-announced: #a78bfa;
  --st-planned: #38bdf8;
  --st-construction: #fbbf24;
  --st-operational: #34d399;
  --st-expansion: #f472b6;
  --st-cancelled: #6b7280;

  --c-announce: #22d3ee;
  --c-expansion: #f472b6;
  --c-construct: #fb923c;
  --c-power: #facc15;
  --c-land: #2dd4bf;
  --c-policy: #fb7185;
  --c-deals: #34d399;
  --c-ops: #818cf8;
  --c-ai: #c084fc;
  --c-general: #94a3b8;
  --c-cancel: #8b8f98;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --shadow: 0 12px 32px -14px rgba(0, 0, 0, .7), 0 0 0 1px rgba(148, 163, 184, .04);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .85);
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --tabbar-h: 64px;
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 15.5px; line-height: 1.6; color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0 0 1em; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(185, 245, 66, .28); color: #fff; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.16em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 4000; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- 3. Shell ---------- */
.shell-main { min-width: 0; overflow-x: clip; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px); }
.page { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .page { padding: 0 28px; } }
@media (min-width: 1024px) {
  body.has-shell { padding-left: var(--sidebar-w); }
  .shell-main { padding-bottom: 48px; }
  .page { padding: 0 40px; }
}
body.app-page .shell-main { padding-bottom: 0; }

.sidebar { display: none; }
@media (min-width: 1024px) {
  .sidebar {
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 300; width: var(--sidebar-w);
    padding: 22px 16px 18px; background: var(--bg-2); border-right: 1px solid var(--border);
  }
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; color: var(--text); }
.brand b { font-weight: 650; }
.sidebar .brand { padding: 2px 10px 22px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s;
}
.side-nav a .ic { width: 18px; height: 18px; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side-nav a[aria-current="page"] .ic { color: var(--accent); }
.side-foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); display: grid; gap: 8px; }
.side-foot a { color: var(--muted); }
.side-foot a:hover { color: var(--text); }

.topbar {
  position: sticky; top: 0; z-index: 200; height: var(--topbar-h);
  background: rgba(12, 12, 13, .88); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .page { height: 100%; display: flex; align-items: center; gap: 12px; max-width: none; }
.topbar .brand { font-size: 15.5px; }
.topbar .brand .mark { width: 26px; height: 26px; }
.topbar-title { font-size: 14px; font-weight: 600; color: var(--text-2); display: none; }
@media (min-width: 1024px) { .topbar .brand { display: none; } .topbar-title { display: block; } }
@media (max-width: 380px) { .topbar .brand span { display: none; } }
.live-pill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--text-2); white-space: nowrap;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: live 2.2s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(17, 17, 19, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border);
}
@media (min-width: 1024px) { .tabbar { display: none; } }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; min-width: 0; }
.tabbar a .ic { width: 20px; height: 20px; }
.tabbar a:hover { text-decoration: none; color: var(--text); }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] .ic { color: var(--accent); }

.site-footer { margin-top: 64px; padding: 28px 0 8px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.site-footer .page { display: grid; gap: 18px; }
@media (min-width: 760px) { .site-footer .page { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { margin-bottom: 10px; }

/* ---------- 4. Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--bg); transition: opacity .25s ease, visibility .25s; animation: ld-out .2s ease 1s forwards; }
#loader.done { opacity: 0; visibility: hidden; }
.no-loader #loader { display: none; }
@keyframes ld-out { to { opacity: 0; visibility: hidden; } }
.ld { display: grid; justify-items: center; gap: 18px; }
.ld-mark { width: 84px; height: 84px; color: var(--text); filter: drop-shadow(0 0 22px rgba(185, 245, 66, .18)); }
.ld-outline { stroke-dasharray: 150; stroke-dashoffset: 150; animation: ld-draw .45s var(--ease) forwards; }
.ld-bar { opacity: .1; animation: ld-on .16s ease forwards; }
.ld-bar.b4 { animation-delay: .42s; }
.ld-bar.b3 { animation-delay: .52s; }
.ld-bar.b2 { animation-delay: .62s; }
.ld-bar.b1 { animation: ld-on .16s ease .74s forwards, ld-pulse .45s ease .9s 1; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-on { to { opacity: 1; } }
@keyframes ld-pulse { 50% { opacity: .55; } }
.ld-text { margin: 0; font-size: 13px; color: var(--muted); min-height: 1.4em; }

/* ---------- 5. Components ---------- */
.section { margin-top: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(20px, 2.2vw, 26px); }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.link-arrow:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 44px 0 8px; }
@media (min-width: 1024px) { .hero { padding-top: 64px; } }
.hero::before {
  content: ""; position: absolute; inset: -60px -40px auto; height: 460px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 30% 20%, #000 20%, transparent 75%);
}
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.04em; max-width: 17ch; margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 60ch; margin: 0; }
.page-hero { padding: 36px 0 4px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; margin: 10px 0 10px; }
.page-hero .lede { color: var(--text-2); max-width: 64ch; font-size: 16.5px; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), border-color .15s, background .15s, box-shadow .2s;
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover { text-decoration: none; border-color: rgba(148, 163, 184, .45); background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 26px -10px var(--accent-glow); }
.btn.primary:hover { background: #c8fa63; box-shadow: 0 10px 30px -8px var(--accent-glow); }
.btn.ghost { background: transparent; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn .ic { width: 18px; height: 18px; }
.icon-btn[aria-pressed="true"] { color: var(--accent); border-color: rgba(185, 245, 66, .4); }

/* Cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: transform .2s var(--ease), border-color .2s, box-shadow .25s; }
.card.lift:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow), 0 10px 40px -20px rgba(185, 245, 66, .25); }
.card-pad { padding: 20px; }

/* Stat cards */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 18px; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(var(--glow, rgba(185, 245, 66, .14)), transparent 70%); pointer-events: none; }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.stat-label .ic { color: var(--tone, var(--accent)); }
.stat-value { margin-top: 8px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .45em; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat-hint { margin-top: 4px; font-size: 12.5px; color: var(--faint); }

/* Tags, chips */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px;
  font-size: 12px; font-weight: 600; color: var(--tone, var(--text-2)); white-space: nowrap;
  background: color-mix(in srgb, var(--tone, #94a3b8) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tone, #94a3b8) 24%, transparent);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag .ic { width: 12px; height: 12px; }
.tag.plain { --tone: #c1cbdb; }
button.tag { cursor: pointer; font-family: inherit; }
button.tag:hover { filter: brightness(1.18); }
.tag.num { font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; flex: none;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(148, 163, 184, .45); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--faint)); }
.chip .n { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed="true"] .n { color: #46536a; }
.chip.pop { animation: pop .3s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); } }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.active-chips .tag { --tone: var(--accent); animation: chip-in .25s var(--ease); }
@keyframes chip-in { from { opacity: 0; transform: scale(.85); } }
.link-btn { background: none; border: 0; padding: 2px 4px; color: var(--cyan); font-size: 13px; font-weight: 600; cursor: pointer; }

/* Form controls */
.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.input, .select {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 11px;
  background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text); font-size: 14.5px; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239eabbf' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.select option { background: var(--bg-2); color: var(--text); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }
.search { position: relative; display: block; min-width: 0; }
.search .ic { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { padding-left: 40px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border-strong); flex: none; }
.seg button { border: 0; background: transparent; height: 34px; padding: 0 13px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.seg button .ic { width: 15px; height: 15px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* News cards */
.news-list { display: grid; gap: 12px; }
@media (min-width: 760px) { .news-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px 20px; }
.news-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tone, var(--c-general)); opacity: .9; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.news-meta .src { color: var(--text-2); font-weight: 600; }
.news-meta .new { font-size: 10px; font-weight: 800; letter-spacing: .07em; padding: 2px 6px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }
.news-card h3 { font-size: 16.5px; line-height: 1.38; font-weight: 600; letter-spacing: -.012em; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--accent); text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-foot { display: flex; align-items: center; gap: 8px; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.news-actions { display: flex; gap: 2px; margin-left: auto; position: relative; z-index: 1; }
.news-actions .icon-btn { width: 32px; height: 32px; border-color: transparent; background: transparent; color: var(--faint); }
.news-actions .icon-btn:hover { background: var(--surface-2); color: var(--text); }
.news-actions .icon-btn[aria-pressed="true"] { color: var(--accent); }
.news-actions .icon-btn[aria-pressed="true"] svg { fill: currentColor; }
.srcs-btn { align-self: center; white-space: nowrap; font-size: 12.5px; padding: 6px 8px; min-height: 32px; }
.srcs { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; position: relative; z-index: 1; }
.srcs li { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; }
.srcs a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.srcs a:hover { text-decoration: underline; }
.srcs small { color: var(--faint); font-size: 12px; }
.day-label { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.day-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.day-label span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); font-variant-numeric: tabular-nums; }

.feature { padding: 26px; overflow: hidden; background: radial-gradient(520px 240px at 100% 0%, color-mix(in srgb, var(--tone, var(--cyan)) 16%, transparent), transparent 70%), var(--surface); }
.feature .eyebrow { color: var(--tone, var(--accent)); }
.feature h2, .feature h3 { font-size: clamp(21px, 2.6vw, 30px); line-height: 1.2; margin: 12px 0 14px; letter-spacing: -.025em; }
.feature h2 a, .feature h3 a { color: var(--text); }
.feature h2 a:hover, .feature h3 a:hover { color: var(--accent); text-decoration: none; }
.feature .figures { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.feature .figures span { display: block; font-size: 12px; color: var(--muted); }
.feature .figures b { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Ticker */
.ticker { position: relative; display: flex; align-items: center; height: 46px; margin-top: 34px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; color: var(--accent); background: var(--surface); border-right: 1px solid var(--border); z-index: 1; }
.ticker-viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick var(--dur, 90s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; height: 46px; }
.ticker-track a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tone, var(--faint)); }
.ticker-track a:hover { color: var(--text); text-decoration: none; }
.ticker-track a span { color: var(--faint); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Project cards */
.proj-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; width: 100%; padding: 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; color: inherit; transition: background .15s, border-color .15s; }
.proj-card:hover { background: var(--surface-2); }
.proj-card[aria-current="true"] { background: var(--surface-2); border-color: rgba(185, 245, 66, .35); }
.proj-card b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text); }
.proj-card small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.proj-card .cap { font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sdot { width: 12px; height: 12px; margin-top: 4px; border-radius: 3px; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 22%, transparent); }
.sdot.auto { border-radius: 50%; background: transparent; border: 2px solid var(--tone); box-shadow: none; }

/* Company cards */
.co-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 18px; }
.co-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.stretch { all: unset; cursor: pointer; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.stretch:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-card:hover h3 { color: var(--accent); }
.co-head { display: flex; align-items: center; gap: 12px; }
.lettermark { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; font-weight: 700; font-size: 15px; letter-spacing: -.02em; color: var(--tone, var(--accent)); background: color-mix(in srgb, var(--tone, var(--accent)) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 32%, transparent); }
.lettermark.lg { width: 60px; height: 60px; font-size: 20px; border-radius: 16px; }
.lettermark.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.co-head h3 { font-size: 17px; letter-spacing: -.02em; }
.co-head small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.co-desc { font-size: 13.5px; color: var(--text-2); margin: 0; }
.co-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.co-metrics > span { padding: 9px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.co-metrics b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.co-metrics > span > span { display: block; font-size: 11px; color: var(--muted); }
.co-latest { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-latest b { color: var(--text-2); font-weight: 600; }

/* Mini bar chart (inline SVG) */
.minibars { width: 100%; height: auto; display: block; overflow: visible; }
.minibars .bar { fill: var(--cyan); opacity: .8; transform-box: fill-box; transform-origin: left; animation: grow .8s var(--ease) both; }
.minibars .bar.hi { fill: var(--accent); opacity: 1; }
.minibars .lbl { fill: var(--text-2); font-size: 12.5px; font-weight: 600; font-family: var(--font); }
.minibars .val { fill: var(--muted); font-size: 12px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.minibars .track { fill: var(--surface-2); }
@keyframes grow { from { transform: scaleX(0); } }

/* Explainer card */
.explainer { display: grid; gap: 22px; padding: 26px; overflow: hidden; background: radial-gradient(600px 260px at 0% 100%, rgba(185, 245, 66, .09), transparent 70%), var(--surface); }
@media (min-width: 860px) { .explainer { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.explainer h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 10px 0 10px; }
.explainer p { color: var(--text-2); }
.explainer ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.explainer li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.explainer li::before { content: counter(s); width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; color: var(--muted); }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--bg); justify-self: center; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 50%; height: 100%; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.on { color: var(--text); }
.timeline li.on::before { border-color: var(--tone, var(--accent)); background: var(--tone, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone, var(--accent)) 20%, transparent); }
.timeline li span:last-child { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* Skeleton */
.skel { border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border: 1px solid var(--border); }
.skel.news { height: 124px; }
.skel.tile { height: 116px; }
.skel.co { height: 230px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Empty state */
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--faint); margin-bottom: 6px; }
.empty b { font-size: 16px; color: var(--text); }

/* Tooltip */
.tip { position: fixed; z-index: 2500; pointer-events: none; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; background: #f4f7fb; color: #0a1020; box-shadow: var(--shadow-lg); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.tip.show { opacity: 1; }
[data-tip] { position: relative; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px); z-index: 2600; transform: translate(-50%, 16px); padding: 10px 16px; border-radius: 10px; background: #f4f7fb; color: #0a1020; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: .25s var(--ease); pointer-events: none; }
@media (min-width: 1024px) { .toast { bottom: 28px; left: calc(50% + var(--sidebar-w) / 2); } }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Modal, panel */
.backdrop { position: fixed; inset: 0; z-index: 1500; background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.backdrop.open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; z-index: 1600; left: 50%; top: 50%; width: min(720px, calc(100% - 24px)); max-height: min(86vh, 820px);
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  transform: translate(-50%, -46%) scale(.98); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .2s, visibility .3s;
}
.modal.open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
@media (max-width: 640px) { .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 90vh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(100%); } .modal.open { transform: none; } }
.modal-head { position: relative; padding: 22px 22px 18px; border-bottom: 1px solid var(--border); background: radial-gradient(480px 180px at 100% 0%, color-mix(in srgb, var(--tone, var(--cyan)) 16%, transparent), transparent 70%); }
.modal-head .close { position: absolute; right: 14px; top: 14px; }
.modal-body { padding: 18px 22px 26px; overflow: auto; display: grid; gap: 22px; align-content: start; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .kv.four { grid-template-columns: repeat(4, 1fr); } }
.kv div { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); min-width: 0; }
.kv span { display: block; font-size: 11.5px; color: var(--muted); }
.kv b { font-size: 16.5px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sub-h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.headlines { display: grid; gap: 2px; }
.headlines a { display: block; padding: 9px 10px; border-radius: 9px; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.4; }
.headlines a:hover { background: var(--surface-2); text-decoration: none; }
.headlines small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.note { padding: 11px 13px; border-radius: 10px; border: 1px dashed var(--border-strong); font-size: 13px; color: var(--muted); }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 8px; border-bottom: 1px solid var(--border); }
.ptable td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ptable td:last-child, .ptable th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable a { color: var(--text); font-weight: 600; }
.ptable small { display: block; color: var(--muted); font-size: 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Accordion */
.acc-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; border-radius: var(--r-lg); }
.acc-btn .chev { margin-left: auto; width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-panel.open { grid-template-rows: 1fr; }

/* ---------- 6. Pages ---------- */

/* Overview */
.two-col { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1060px) { .two-col { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.pulse-map { position: relative; height: 380px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: #1a1a1d; }
.pulse-map .map { position: absolute; inset: 0; }
.pulse-map .overlay { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.pulse-map .overlay > * { pointer-events: auto; }
.pulse-map .legend { position: static; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.headline-mini { display: grid; }
.headline-mini a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.headline-mini a:last-child { border-bottom: 0; }
.headline-mini a:hover { color: var(--accent); text-decoration: none; }
.headline-mini .k { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.headline-mini .k i { width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }

/* Newsroom */
.filters { position: sticky; top: var(--topbar-h); z-index: 100; margin: 22px -16px 0; padding: 14px 16px; background: rgba(12, 12, 13, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .filters { margin: 22px -28px 0; padding: 14px 28px; } }
@media (min-width: 1024px) { .filters { margin: 22px -40px 0; padding: 14px 40px; } }
.filter-row { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-row .grow { grid-column: 1 / -1; }
@media (max-width: 1099px) { .filter-row .field:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .filter-row { grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)); } .filter-row .grow { grid-column: auto; } }
.filter-row2 { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.filter-row2 .chips { flex: 1; min-width: 0; }
.filter-meta { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 16px 0 0; flex-wrap: wrap; }
.result-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Atlas */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--topbar-h) - var(--tabbar-h)); height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .atlas { grid-template-columns: 380px minmax(0, 1fr); height: calc(100vh - var(--topbar-h)); } }
.atlas-side { display: none; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border-right: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
@media (min-width: 1024px) { .atlas-side { display: flex; } }
.atlas.list-view .atlas-side { display: flex; }
.atlas.list-view .atlas-map { display: none; }
@media (min-width: 1024px) { .atlas.list-view .atlas-map { display: block; } }
.atlas-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--border); }
.atlas-head h1 { font-size: 21px; letter-spacing: -.03em; }
.atlas-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mini-stats div { padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.mini-stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mini-stats span { font-size: 11px; color: var(--muted); }
.filter-panel { padding: 14px 18px; display: grid; gap: 12px; border-bottom: 1px solid var(--border); }
.filter-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range-field { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.range-field output { color: var(--text); font-variant-numeric: tabular-nums; }
.status-chips .chip { height: 30px; font-size: 12.5px; padding: 0 11px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); }
.list-head label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.list-head input { accent-color: var(--accent); width: 15px; height: 15px; }
.proj-list { flex: none; padding: 6px; }
@media (min-width: 1024px) { .atlas-side .list-head { position: sticky; top: 0; z-index: 2; background: var(--bg-2); } }
.atlas-map { position: relative; min-height: 0; overflow: hidden; }
#map { position: absolute; inset: 0; background: #1a1a1d; }
.map-tools { position: absolute; z-index: 600; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.map-tools .spacer { flex: 1; pointer-events: none; }
.map-tools .icon-btn, .map-tools .btn { box-shadow: var(--shadow); }
@media (min-width: 1024px) { .map-tools .mobile-only { display: none; } }
.legend { position: absolute; z-index: 600; left: 12px; bottom: 26px; display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px; background: rgba(17, 17, 19, .92); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; color: var(--text-2); }
.legend .lg { display: flex; align-items: center; gap: 8px; }
.legend .lg i { width: 11px; height: 11px; border-radius: 3px; background: var(--tone); }
.legend .lg i.bub { border-radius: 50%; background: rgba(148, 163, 184, .28); border: 1.5px dashed rgba(203, 213, 225, .75); }
.bubble { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; font-weight: 700; color: var(--text); background: rgba(148, 163, 184, .2); border: 1.5px dashed rgba(203, 213, 225, .6); font-variant-numeric: tabular-nums; backdrop-filter: blur(1px); transition: background .15s var(--ease); }
.leaflet-marker-icon:hover .bubble { background: rgba(148, 163, 184, .34); }
.cluster.has-apx { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.05; }
.cluster .apx { font-size: 9.5px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; white-space: nowrap; }
.legend .lg i.auto { border-radius: 50%; background: transparent; border: 2px solid var(--tone); }
@media (max-width: 1023px) { .atlas .legend { top: 60px; bottom: auto; grid-template-columns: repeat(2, auto); gap: 4px 12px; padding: 8px 10px; font-size: 11px; } }

html .leaflet-container { font-family: var(--font); background: #1a1a1d; }
/* Dark map: invert OpenStreetMap tiles so they sit on the matte black theme. */
.rr-tiles { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.88) saturate(.45); }
.leaflet-bar { border: 1px solid var(--border-strong) !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-bar a:hover { background: var(--surface-2) !important; }
.leaflet-control-attribution { background: rgba(17, 17, 19, .85) !important; color: var(--muted) !important; font-size: 10.5px; }
.leaflet-control-attribution a { color: var(--text-2) !important; }
.leaflet-tooltip.rr-tip { background: #f4f7fb; color: #0a1020; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: 280px; white-space: normal; }
.leaflet-tooltip.rr-tip::before { display: none; }
.leaflet-tooltip.rr-tip small { display: block; font-weight: 500; color: #46536a; }
.pin-rack { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .65)); transition: transform .15s var(--ease); }
.pin-rack .body { fill: var(--tone); stroke: #0a1020; stroke-width: 1.5; }
.pin-rack .slot { fill: #0a1020; opacity: .8; }
.pin-auto { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--tone); background: rgba(17, 17, 19, .85); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transition: transform .15s var(--ease); }
.leaflet-marker-icon:hover .pin-rack, .leaflet-marker-icon:hover .pin-auto { transform: scale(1.18); }
.pin-sel .pin-rack, .pin-sel .pin-auto { transform: scale(1.4); filter: drop-shadow(0 0 8px var(--tone)); }
.cluster { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; font-weight: 700; color: var(--text); background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 0 0 5px rgba(185, 245, 66, .14), var(--shadow); font-variant-numeric: tabular-nums; }

.detail { position: absolute; z-index: 1000; top: 12px; right: 12px; bottom: 12px; width: min(400px, calc(100% - 24px)); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
.detail.open { transform: none; visibility: visible; }
@media (max-width: 1023px) { .detail { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 82%; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(105%); } }
.detail-head { position: relative; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); background: radial-gradient(420px 160px at 100% 0%, color-mix(in srgb, var(--tone, var(--cyan)) 18%, transparent), transparent 70%); }
.detail-head h2 { font-size: 20px; margin: 10px 44px 6px 0; line-height: 1.25; }
.detail-head .loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.detail-head .close { position: absolute; top: 14px; right: 14px; }
.detail-body { padding: 16px 20px 22px; overflow: auto; display: grid; gap: 18px; align-content: start; }
.detail-body p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sheet { position: fixed; z-index: 1600; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
.sheet.open { transform: none; visibility: visible; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sheet-head h2 { font-size: 16px; }
.sheet-body { overflow: auto; }
.sheet-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }

/* Companies */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.toolbar .search { flex: 1 1 260px; }
.toolbar .select { width: auto; min-width: 180px; }

/* Learn */
.track-progress { display: grid; gap: 12px; padding: 18px 20px; margin-top: 28px; }
.track-top { display: flex; align-items: center; gap: 16px; }
.track-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.track-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--cyan), var(--accent)); transition: width .6s var(--ease); }
.track-top b { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.track-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.track-dots a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border-strong); font-variant-numeric: tabular-nums; }
.track-dots a:hover { text-decoration: none; color: var(--text); }
.track-dots a.done { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.modules { display: grid; gap: 12px; margin-top: 18px; }
.module { scroll-margin-top: calc(var(--topbar-h) + 12px); }
.module .acc-btn .num { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 14px; font-weight: 700; background: var(--bg-2); border: 1px solid var(--border-strong); color: var(--text-2); font-variant-numeric: tabular-nums; }
.module.done .acc-btn .num { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.module .acc-btn h2 { font-size: 17.5px; letter-spacing: -.02em; }
.module .acc-btn small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.module .lvl-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tone); margin-left: 6px; }
.module-body { padding: 0 20px 22px; }
@media (min-width: 720px) { .module-body { padding: 0 26px 26px 72px; } }
.module-body h3 { font-size: 16.5px; margin: 22px 0 8px; letter-spacing: -.015em; }
.module-body p, .module-body li { color: var(--text-2); font-size: 15px; }
.module-body ul, .module-body ol { padding-left: 20px; }
.module-body li { margin-bottom: 6px; }
.module-body strong { color: var(--text); }
.level-toggle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.level-toggle span { font-size: 12.5px; color: var(--muted); }
.lvl-pane { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.module-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.fig { margin: 18px 0; padding: 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--border); overflow-x: auto; }
.fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.dg { display: block; width: 100%; min-width: 540px; height: auto; font-family: var(--font); }
.dg .bx { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.2; }
.dg .bx2 { fill: none; stroke: var(--border-strong); stroke-width: 1.2; stroke-dasharray: 5 4; }
.dg .acc { fill: rgba(56, 189, 248, .1); stroke: var(--cyan); stroke-width: 1.4; }
.dg .lime { fill: rgba(185, 245, 66, .08); stroke: var(--accent); stroke-width: 1.4; }
.dg .t { fill: var(--text); font-size: 13px; font-weight: 600; }
.dg .s { fill: var(--muted); font-size: 11px; }
.dg .h { fill: var(--text); font-size: 14px; font-weight: 700; }
.dg .ln { stroke: var(--faint); stroke-width: 1.6; fill: none; }
.dg .ln-acc { stroke: var(--cyan); stroke-width: 2.2; fill: none; }
.dg .ln-lime { stroke: var(--accent); stroke-width: 2.2; fill: none; }
.dg .ln-hot { stroke: var(--c-policy); stroke-width: 2; fill: none; }
.dg .ln-cold { stroke: var(--cyan); stroke-width: 2; fill: none; }
.dg .flow { stroke-dasharray: 6 6; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.dg .hot { fill: rgba(251, 113, 133, .14); }
.dg .cold { fill: rgba(56, 189, 248, .14); }
.dg .srv { fill: var(--surface-3); stroke: var(--border-strong); }
.dg .gpu { fill: rgba(192, 132, 252, .2); stroke: var(--c-ai); }
.dg .ledg { fill: var(--accent); }
.dg .zone { cursor: pointer; }
.dg .zone:hover rect, .dg .zone.on rect, .dg .zone:focus rect { stroke: var(--accent); stroke-width: 2.4; }
.dg .zone:focus { outline: none; }
.takeaways { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: rgba(185, 245, 66, .06); border: 1px solid rgba(185, 245, 66, .22); }
.takeaways b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.takeaways ul { margin: 0; }
.callout { margin: 16px 0; padding: 13px 15px; border-radius: var(--r); background: var(--cyan-soft); border-left: 3px solid var(--cyan); font-size: 14.5px; color: var(--text-2); }
.callout b { color: var(--text); }
.tbl-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 540px; }
.tbl th { background: var(--bg-2); text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
.tbl td:first-child { font-weight: 600; color: var(--text); }
.tool { margin: 18px 0; padding: 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-2); }
.tool > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin-bottom: 12px; }
.tool-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool label { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.tool label .lab { display: flex; justify-content: space-between; }
.tool .val { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.out div { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.out span { display: block; font-size: 11.5px; color: var(--muted); }
.out b { font-size: 17px; font-variant-numeric: tabular-nums; }
.chain { display: flex; overflow-x: auto; padding: 4px 2px 10px; }
.chain button { flex: 1 0 92px; display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; cursor: pointer; position: relative; color: var(--muted); font-size: 12px; font-weight: 600; }
.chain button::after { content: ""; position: absolute; top: 31px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--border-strong); }
.chain button:last-child::after { display: none; }
.chain button.passed::after { background: var(--accent); }
.chain .node { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--border-strong); transition: .2s; }
.chain .node .ic { width: 20px; height: 20px; }
.chain button.passed .node { border-color: var(--accent); color: var(--accent); }
.chain button.on { color: var(--text); }
.chain button.on .node { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chain-info { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); min-height: 92px; }
.chain-info b { display: block; color: var(--text); margin-bottom: 3px; }
.density { position: relative; display: flex; height: 32px; border-radius: 9px; overflow: hidden; font-size: 11px; font-weight: 700; margin: 6px 0 12px; }
.density span { display: grid; place-items: center; color: #0a1020; text-align: center; line-height: 1.1; }
.density .needle { position: absolute; top: -2px; bottom: -2px; width: 3px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px var(--bg); transition: left .2s; }
.verdict { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.verdict b { color: var(--text); }
.units { display: flex; gap: 8px; flex-wrap: wrap; }
.unit { width: 62px; height: 62px; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 12px; border: 2px solid var(--st-operational); background: rgba(52, 211, 153, .1); color: var(--text); font-size: 11px; font-weight: 700; cursor: pointer; }
.unit .ic { width: 20px; height: 20px; color: var(--st-operational); }
.unit.failed { border-color: var(--c-policy); background: rgba(251, 113, 133, .1); }
.unit.failed .ic { color: var(--c-policy); }
.unit.spare { border-style: dashed; }
.path-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.path-row > span { font-size: 12px; font-weight: 700; color: var(--muted); width: 56px; }
.load-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; margin-top: 8px; }
.load-status .ic { width: 20px; height: 20px; }
.load-status.ok { background: rgba(52, 211, 153, .12); color: var(--st-operational); }
.load-status.bad { background: rgba(251, 113, 133, .12); color: var(--c-policy); }
.cutaway-info { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; color: var(--text-2); min-height: 66px; }
.cutaway-info b { color: var(--text); }
.glossary-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 14px; }
.gl { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.gl b { display: block; color: var(--text); font-size: 14.5px; }
.gl span { font-size: 13.5px; color: var(--text-2); }

/* Methodology */
.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; }
.prose li { margin-bottom: 8px; }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.pipeline { display: grid; gap: 10px; margin: 24px 0 8px; }
@media (min-width: 760px) { .pipeline { grid-template-columns: repeat(4, 1fr); } }
.pipeline div { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.pipeline b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); margin-bottom: 6px; }
.pipeline b span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-size: 12px; background: var(--accent); color: var(--accent-ink); }
.pipeline p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 7. Reduced motion: every animation off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  #loader { display: none; }
  .ticker-track { width: auto; flex-wrap: wrap; padding: 6px 0; }
  .ticker { height: auto; align-items: stretch; }
  .ticker-track a { height: 34px; }
  .ticker-track a[aria-hidden="true"] { display: none; }
}

/* Newsroom filter layout tweaks for small screens */
@media (max-width: 719px) {
  .filters { position: static; }
  .filter-row2 { flex-wrap: wrap; }
  .filter-row2 .chips { flex-basis: 100%; }
  .filter-row2 .seg { width: 100%; }
  .filter-row2 .seg button { flex: 1; padding: 0 6px; }
}

/* Learn: module headings, quizzes, Gantt timeline */
.acc-h { margin: 0; font-size: inherit; letter-spacing: 0; }
.acc-btn .mt { display: block; font-size: 17.5px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.acc-btn small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.module-body .lede { font-size: 16.5px; color: var(--text); }
.quiz { margin-top: 20px; padding: 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-2); }
.quiz > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ai); }
.quiz .q { margin-top: 10px; font-weight: 600; color: var(--text); }
.quiz .opts { display: grid; gap: 8px; margin-top: 10px; }
.quiz .opt { text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-size: 14.5px; color: var(--text-2); transition: border-color .15s, background .15s; }
.quiz .opt:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.quiz .opt.right { border-color: var(--st-operational); background: rgba(52, 211, 153, .12); color: var(--text); }
.quiz .opt.wrong { border-color: var(--c-policy); background: rgba(251, 113, 133, .1); }
.quiz .opt:disabled { cursor: default; }
.quiz .why { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.gantt { display: grid; margin: 12px 0; }
.tl-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.tl-row > span { color: var(--text-2); font-weight: 600; }
.tl-track { position: relative; height: 24px; border-radius: 6px; background: var(--surface-3); }
.tl-track i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--tone); display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 700; font-style: normal; color: #0a1020; white-space: nowrap; overflow: hidden; }
@media (max-width: 600px) { .tl-row { grid-template-columns: 1fr; gap: 4px; } }
.track-dots a { position: relative; }

/* Atlas list view on phones: its own toolbar, filters live in the sheet, the panel scrolls as a whole */
.side-tools { display: none; }
@media (max-width: 1023px) {
  .atlas.list-view .side-tools { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; background: var(--bg-2); }
  .atlas.list-view .atlas-side { overflow: auto; }
  .atlas.list-view #panelHome { display: none; }
  .atlas.list-view .proj-list { flex: none; overflow: visible; }
  .atlas.list-view .atlas-head p { display: none; }
}

/* Contact link with initials badge */
.contact { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.contact:hover { color: var(--text); text-decoration: none; }
.contact .initials { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--accent-ink); background: var(--accent); }

/* Switch (Include archive) */
.switch { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 10px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: none; }
.switch:hover { color: var(--text); border-color: rgba(255, 255, 255, .28); }
.switch .track { position: relative; width: 34px; height: 20px; border-radius: 20px; background: var(--surface-3); transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { color: var(--text); border-color: rgba(185, 245, 66, .45); }
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .track::after { transform: translateX(14px); background: var(--accent-ink); }
.archive-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; color: var(--text-2); background: var(--accent-soft); border: 1px solid rgba(185, 245, 66, .25); }
.archive-note .ic { color: var(--accent); }
@media (max-width: 719px) { .filter-row2 .switch { width: 100%; justify-content: center; } }

/* Curated project milestones */
.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.milestones li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; }
.milestones li:hover { background: var(--surface-2); }
.milestones time { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 1px; }
.milestones span { color: var(--text); line-height: 1.4; }
.milestones a { display: inline-block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.milestones a:hover { color: var(--cyan); }
