/* TRAIL — Data Trajectory & Multi-Progress Lines */
<style>
/* =============================================================== *
 * TRAIL — Data Trajectory & Multi-Progress Lines
 * =============================================================== */
:root {
  --track-black: #0e1012;
  --track-deep: #0e1012;
  --fluor-cyan: #00ffd5;
  --progress-orange: #ff8a3d;
  --trail-purple: #a06aff;
  --pulse-blue: #4da6ff;
  --highlight-yellow: #ffe14d;
  --finish-green: #4dff9e;
  --grid-line: rgba(255,255,255,0.03);
  --border-glow: rgba(0,255,213,0.30);
  --border-soft: rgba(255,255,255,0.18);
  --shadow-glow: 0 0 15px rgba(0,255,213,0.25);
  --text-primary: #e8edf2;
  --text-body: #b8c6d8;
  --text-muted: #6a7a90;
  --ff-head: "Orbitron", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Rajdhani", "Inter", "Segoe UI", system-ui, sans-serif;
  --ff-mono: "Share Tech Mono", "JetBrains Mono", "Consolas", monospace;
  --trail-border: 1px solid var(--border-glow);
  --trail-shadow: var(--shadow-glow);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--track-black); color: var(--text-body);
  font-family: var(--ff-body); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(0,255,213,0.06) 0%, transparent 22%),
    radial-gradient(circle at 88% 42%, rgba(160,106,255,0.06) 0%, transparent 26%),
    radial-gradient(circle at 32% 78%, rgba(255,138,61,0.05) 0%, transparent 22%),
    radial-gradient(circle at 70% 88%, rgba(255,225,77,0.04) 0%, transparent 18%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto, auto;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: var(--ff-head); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; color: var(--text-primary); letter-spacing: 0.04em; }
h1 { font-size: clamp(28px, 4vw, 46px); }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: clamp(17px, 1.8vw, 21px); }
a { color: var(--pulse-blue); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover { color: var(--highlight-yellow); text-shadow: 0 0 8px rgba(255,225,77,0.5); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; color: var(--text-body); }
.mono { font-family: var(--ff-mono); }
.muted { color: var(--text-muted); }

/* ambient canvas */
#trail-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .65; }
#main, .trail-main, .site-header, .site-footer { position: relative; z-index: 1; }

/* scrollbar — slim glowing progress line */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(14,16,18,0.8); border-left: 1px solid rgba(0,255,213,0.15); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--fluor-cyan), var(--trail-purple));
  border-radius: 4px; box-shadow: 0 0 8px rgba(0,255,213,0.6);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--highlight-yellow), var(--fluor-cyan)); }

/* layout */
.layout-with-sidebar { display: grid; grid-template-columns: 1fr; max-width: 1340px; margin: 0 auto; gap: 28px; padding: 0 18px; }
@media (min-width: 1000px) { .layout-with-sidebar { grid-template-columns: 1fr 320px; } }
.layout-main { min-width: 0; }
.eyebrow { display:inline-block; font-family: var(--ff-head); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fluor-cyan); background: rgba(14,16,18,0.7); padding: 6px 14px; border: var(--trail-border); border-radius: 4px; box-shadow: var(--trail-shadow); }
.section-head { margin: 32px 0 18px; }
.section-head h2 { margin-top: 10px; color: var(--text-primary); }
.section-head p { color: var(--text-body); max-width: 65ch; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14,16,18,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-glow); box-shadow: var(--trail-shadow); }
.header-inner { display: flex; align-items: center; gap: 16px; max-width: 1340px; margin: 0 auto; padding: 12px 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 52px; height: 52px; filter: drop-shadow(0 0 8px rgba(0,255,213,0.5)); }
.brand-mark-pulse { transform-origin: 40px 40px; }
.brand-name { font-family: var(--ff-head); font-weight: 700; font-size: 22px; letter-spacing: .18em; display:block; color: var(--text-primary); text-shadow: 0 0 10px rgba(0,255,213,0.6); }
.brand-tag { font-size: 10px; letter-spacing: .22em; color: var(--highlight-yellow); text-transform: uppercase; font-family: var(--ff-head); font-weight: 600; }
.main-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  font-family: var(--ff-head); font-size: 12px; font-weight: 600; letter-spacing: .16em;
  padding: 9px 16px; color: var(--text-body); border: 1px solid transparent;
  border-radius: 4px; transition: all .2s; text-transform: uppercase;
}
.main-nav a:hover { background: rgba(0,255,213,0.10); color: var(--fluor-cyan); border-color: var(--border-glow); box-shadow: var(--trail-shadow); }
.main-nav a.active { background: rgba(0,255,213,0.18); color: var(--highlight-yellow); border-color: var(--fluor-cyan); box-shadow: 0 0 12px rgba(0,255,213,0.5); }
.nav-toggle { display:none; font-family: var(--ff-head); font-weight:700; letter-spacing:.14em; background: rgba(0,255,213,0.2); color: var(--text-primary); border:1px solid var(--border-glow); padding:8px 14px; cursor:pointer; border-radius:4px; text-transform: uppercase; }
@media (max-width: 820px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: flex; }
}

/* ---------- HERO: Multi-dimensional Radar & Crosshair ---------- */
.radar-base {
  position: relative; margin: 24px 0; padding: 30px 22px;
  background: radial-gradient(ellipse at center, rgba(20,40,50,0.55) 0%, var(--track-black) 100%);
  border: var(--trail-border); border-radius: 12px;
  box-shadow: var(--trail-shadow), inset 0 0 40px rgba(14,16,18,0.6);
  overflow: hidden;
}
.radar-stage {
  position: relative; width: 100%; max-width: 720px; margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.radar-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-ring { fill: none; stroke: rgba(255,255,255,0.18); stroke-dasharray: 2 3; }
.radar-ring.outer { stroke: rgba(0,255,213,0.20); }
.radar-sweep {
  position: absolute; top: 0; left: 50%; width: 50%; height: 50%;
  transform-origin: 0% 100%;
  background: conic-gradient(from 0deg, rgba(0,255,213,0.35), rgba(0,255,213,0.0) 60deg);
  pointer-events: none;
}
.radar-axis { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.radar-axis line { stroke-width: 1.2; opacity: 0.7; transition: opacity .25s, stroke-width .25s; }
.radar-axis.dim line { opacity: 0.18; }
.radar-axis.active line { opacity: 1; stroke-width: 2.4 !important; }
.radar-axis line.flow { stroke-dasharray: 4 4; animation: dash-move 1.5s linear infinite; }

@keyframes dash-move { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -16; } }

.radar-crosshair {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 60px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 4;
}
.radar-crosshair::before, .radar-crosshair::after {
  content: ""; position: absolute; background: var(--highlight-yellow);
  box-shadow: 0 0 8px rgba(255,225,77,0.6);
}
.radar-crosshair::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.radar-crosshair::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.radar-crosshair .cross-dot {
  position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
  background: var(--highlight-yellow); border-radius: 50%;
  transform: translate(-50%, -50%); box-shadow: 0 0 14px var(--highlight-yellow);
}
.radar-bracket { position: absolute; top: 50%; left: 50%; width: 96px; height: 96px; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 5; }
.radar-bracket.show { opacity: 1; }
.radar-bracket span { position: absolute; width: 18px; height: 18px; border: 2px solid var(--highlight-yellow); box-shadow: 0 0 8px rgba(255,225,77,0.5); }
.radar-bracket .b-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.radar-bracket .b-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.radar-bracket .b-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.radar-bracket .b-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.data-satellite {
  position: absolute; width: 14%; aspect-ratio: 1; transform: translate(-50%, -50%);
  cursor: pointer; z-index: 6; transition: transform .25s;
  --sat-accent: var(--fluor-cyan);
}
.data-satellite .sat-frame {
  position: relative; width: 100%; height: 100%;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(135deg, rgba(14,16,18,0.9), rgba(20,40,50,0.7));
  border: 2px solid var(--sat-accent);
  box-shadow: 0 0 18px var(--sat-accent), inset 0 0 14px rgba(0,0,0,0.6);
  overflow: hidden;
}
.data-satellite .sat-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, var(--sat-accent), transparent 60%);
  opacity: 0.22; mix-blend-mode: screen;
}
.data-satellite img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.1) saturate(1.05) brightness(0.85);
}
.data-satellite .sat-label {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-family: var(--ff-head); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sat-accent); white-space: nowrap;
  background: rgba(14,16,18,0.85); padding: 3px 8px; border: 1px solid var(--sat-accent);
  border-radius: 3px; box-shadow: 0 0 8px var(--sat-accent);
}
.data-satellite .sat-intensity {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--ff-mono); font-size: 9px; color: var(--highlight-yellow);
  background: rgba(14,16,18,0.7); padding: 1px 5px; border-radius: 2px;
  letter-spacing: .08em;
}
.data-satellite:hover .sat-label, .data-satellite.locked .sat-label { color: var(--highlight-yellow); border-color: var(--highlight-yellow); box-shadow: 0 0 12px var(--highlight-yellow); }

.axis-flow {
  position: absolute; top: 0; left: 0; width: 50%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--sat-accent, var(--fluor-cyan)), transparent);
  opacity: 0.4; transform-origin: 0% 50%;
}

.radar-recommend {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(14,16,18,0.92); border: 1px solid var(--highlight-yellow);
  border-radius: 6px; padding: 10px 16px; max-width: 80%; z-index: 8;
  opacity: 0; pointer-events: none;
  box-shadow: 0 0 18px rgba(255,225,77,0.4);
}
.radar-recommend.show { pointer-events: auto; }
.radar-recommend .rr-title { font-family: var(--ff-head); font-size: 11px; letter-spacing: .14em; color: var(--highlight-yellow); text-transform: uppercase; }
.radar-recommend .rr-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.radar-recommend .rr-item { font-family: var(--ff-mono); font-size: 11px; color: var(--text-primary); padding: 4px 8px; border: 1px solid var(--border-soft); border-radius: 3px; }

.converge-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ---------- trail strip ---------- */
.trail-strip { display:flex; gap:8px; flex-wrap:wrap; margin: 22px 0; }
.trail-strip a {
  font-family: var(--ff-head); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  padding: 8px 14px; background: rgba(14,16,18,0.7); color: var(--text-body);
  border: var(--trail-border); border-radius: 4px; transition: all .2s; text-transform: uppercase;
}
.trail-strip a:hover, .trail-strip a.active { background: rgba(0,255,213,0.15); color: var(--highlight-yellow); border-color: var(--fluor-cyan); box-shadow: var(--trail-shadow); }

/* ---------- bands ---------- */
.energy-band { margin: 36px 0; padding: 22px; background: rgba(14,16,18,0.55); border: var(--trail-border); border-radius: 12px; box-shadow: var(--trail-shadow); position: relative; overflow: hidden; }
.energy-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; background-image: repeating-linear-gradient(90deg, transparent 0 24px, rgba(0,255,213,0.4) 24px 25px); }
.band-head { position: relative; z-index: 1; margin-bottom: 14px; }
.band-title { color: var(--fluor-cyan); }
.band-sub { color: var(--text-muted); font-family: var(--ff-mono); font-size: 12px; }
.card-stream { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.related-stream { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* trail path connector between cards */
.trail-path-wrap { position: relative; height: 30px; margin: -6px 0; z-index: 0; pointer-events: none; }
.trail-path-line { stroke: var(--fluor-cyan); stroke-width: 1.4; stroke-dasharray: 4 8; fill: none; opacity: 0.6; }
.progress-cursor { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--highlight-yellow); box-shadow: 0 0 10px var(--highlight-yellow); transform: translate(-50%, -50%); offset-path: path("M 0 15 Q 200 -5 400 15 T 800 15"); }

/* ---------- radar-tree ---------- */
.radar-tree {
  position: relative; padding: 22px; margin: 24px 0;
  background: rgba(14,16,18,0.4); border: var(--trail-border); border-radius: 12px;
  box-shadow: var(--trail-shadow); overflow: hidden;
}

/* Card 1 — Wave Pulse training card (cyan + black) */
.wave-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 14px; min-height: 300px; cursor: pointer;
  background: var(--track-black);
  border: 1px solid var(--fluor-cyan);
  border-radius: 10px; box-shadow: 0 0 18px rgba(0,255,213,0.35);
  overflow: hidden; transition: transform .25s, box-shadow .25s; z-index: 1;
}
.wave-card:hover { transform: translateY(-4px); box-shadow: 0 0 28px rgba(0,255,213,0.6); }
.wave-card .wave-frame { position: relative; height: 56px; background: rgba(0,255,213,0.06); border: 1px solid rgba(0,255,213,0.3); border-radius: 4px; overflow: hidden; }
.wave-card .wave-frame svg { width: 100%; height: 100%; display: block; }
.wave-card .wave-trace { stroke: var(--fluor-cyan); stroke-width: 1.4; fill: none; filter: drop-shadow(0 0 4px var(--fluor-cyan)); }
.wave-card.boost .wave-trace { stroke-width: 2.2; }
.wave-card .wave-image-wrap { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--border-soft); }
.wave-card .wave-image-wrap img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(1.05); transition: filter .25s; }
.wave-card.boost .wave-image-wrap img { filter: contrast(1.15) saturate(1.15) brightness(1.05); }
.wave-card .wave-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--highlight-yellow); letter-spacing: .04em; font-weight: 700; }
.wave-card .wave-title { font-family: var(--ff-head); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.wave-card .wave-excerpt { font-size: 12px; color: var(--text-body); opacity: .9; }

/* Card 2 — Progress Ring feature card (orange + dark gray) */
.ring-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px; min-height: 300px; cursor: pointer;
  background: linear-gradient(180deg, #1a1c20, var(--track-black));
  border: 1px solid var(--progress-orange);
  border-radius: 12px; box-shadow: 0 0 18px rgba(255,138,61,0.35);
  overflow: hidden; transition: transform .25s;
}
.ring-card:hover { transform: translateY(-4px); box-shadow: 0 0 28px rgba(255,138,61,0.55); }
.ring-card .ring-svg-wrap { position: relative; width: 180px; height: 180px; }
.ring-card svg.ring-svg { width: 100%; height: 100%; }
.ring-card .ring-track { fill: none; stroke: rgba(255,138,61,0.18); stroke-width: 6; }
.ring-card .ring-progress { fill: none; stroke: var(--progress-orange); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--progress-orange)); }
.ring-card .ring-flow-dot { fill: var(--highlight-yellow); filter: drop-shadow(0 0 6px var(--highlight-yellow)); }
.ring-card .ring-inner-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76%; height: 76%; border-radius: 50%; overflow: hidden; border: 1px solid var(--border-soft); }
.ring-card .ring-inner-img img { width: 100%; height: 100%; object-fit: cover; }
.ring-card .ring-segments { position: absolute; inset: 0; pointer-events: none; }
.ring-card .ring-segment { position: absolute; width: 10px; height: 10px; background: var(--progress-orange); border-radius: 50%; transform: translate(-50%, -50%); opacity: 0.4; box-shadow: 0 0 6px var(--progress-orange); }
.ring-card .ring-segment.lit { opacity: 1; background: var(--highlight-yellow); box-shadow: 0 0 8px var(--highlight-yellow); }
.ring-card .ring-title { font-family: var(--ff-head); font-weight: 700; font-size: 15px; color: var(--text-primary); text-align: center; }
.ring-card .ring-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--highlight-yellow); letter-spacing: .04em; font-weight: 700; }
.ring-card .ring-progress-text { font-family: var(--ff-mono); font-size: 11px; color: var(--progress-orange); }

/* Card 3 — Contour Map training card (purple + contour gray) */
.contour-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 14px; min-height: 300px; cursor: pointer;
  background: var(--track-black);
  border: 1px solid var(--trail-purple);
  border-radius: 10px; box-shadow: 0 0 18px rgba(160,106,255,0.35);
  overflow: hidden; transition: transform .25s;
}
.contour-card:hover { transform: translateY(-4px); box-shadow: 0 0 28px rgba(160,106,255,0.6); }
.contour-card .contour-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
.contour-card .contour-path { fill: none; stroke: var(--trail-purple); stroke-width: 0.7; opacity: 0.4; transition: opacity .4s; }
.contour-card.shift .contour-path { stroke: var(--fluor-cyan); }
.contour-card .contour-image-wrap { position: relative; z-index: 1; width: 60%; aspect-ratio: 1; margin: 18px auto 0; border-radius: 50%; overflow: hidden; border: 1px solid var(--trail-purple); box-shadow: 0 0 16px var(--trail-purple); }
.contour-card .contour-image-wrap img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(1.05); }
.contour-card .contour-image-wrap::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(160,106,255,0.18) 0 1px, transparent 1px 6px); mix-blend-mode: screen; pointer-events: none; }
.contour-card .contour-meta { position: relative; z-index: 2; font-family: var(--ff-mono); font-size: 11px; color: var(--trail-purple); letter-spacing: .04em; font-weight: 700; }
.contour-card .contour-title { position: relative; z-index: 2; font-family: var(--ff-head); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.contour-card .contour-excerpt { position: relative; z-index: 2; font-size: 12px; color: var(--text-body); opacity: .9; }

/* Card 4 — Particle Stream quick news (blue + black) */
.particle-stream {
  position: relative; display: block; width: 100%; min-height: 56px;
  background: linear-gradient(90deg, rgba(77,166,255,0.18), rgba(14,16,18,0.8));
  border: 1px solid var(--pulse-blue); border-radius: 8px;
  box-shadow: 0 0 14px rgba(77,166,255,0.35); overflow: hidden;
  padding: 14px 18px; cursor: pointer; transition: border-color .25s, box-shadow .25s;
}
.particle-stream:hover { border-color: var(--highlight-yellow); box-shadow: 0 0 18px rgba(255,225,77,0.5); }
.particle-stream .particle-band { position: relative; width: 100%; height: 28px; overflow: hidden; }
.particle-stream .particle-grain {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  font-family: var(--ff-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.particle-stream .particle-title { position: relative; z-index: 2; font-family: var(--ff-head); font-weight: 700; font-size: 13px; color: var(--text-primary); }
.particle-stream .particle-meta { position: relative; z-index: 2; font-family: var(--ff-mono); font-size: 11px; color: var(--pulse-blue); letter-spacing: .04em; font-weight: 700; }

/* stamped tag chips */
.stamped-tags-row { display:flex; flex-wrap:wrap; gap:8px; margin: 14px 0; position: relative; z-index: 1; }
.stamped-tag {
  display:inline-flex; align-items:center; gap:6px;
  background: rgba(0,255,213,0.14); color: var(--highlight-yellow);
  padding: 7px 14px; font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(0,255,213,0.5); border-radius: 4px;
  transition: transform .15s, box-shadow .15s;
}
.stamped-tag:hover { transform: translateY(-2px); box-shadow: 0 0 12px rgba(0,255,213,0.5); }

/* ---------- sidebar ---------- */
.layout-sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-block { background: rgba(14,16,18,0.65); border: var(--trail-border); box-shadow: var(--trail-shadow); padding: 16px; border-radius: 10px; backdrop-filter: blur(6px); }
.side-block h3, .side-block h4 { font-family: var(--ff-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fluor-cyan); border-bottom: 1px solid var(--border-glow); padding-bottom: 8px; margin-bottom: 12px; }

/* Race progress (hot rankings) */
.race-track-list { display: flex; flex-direction: column; gap: 10px; }
.race-track-row { display: flex; align-items: center; gap: 10px; }
.race-rank { font-family: var(--ff-head); font-weight: 700; font-size: 13px; color: var(--text-primary); width: 22px; text-align: center; }
.race-track-row .race-meta { flex: 1; min-width: 0; }
.race-track-row .race-title { font-family: var(--ff-head); font-size: 11px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-track-row .race-track { position: relative; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; margin-top: 4px; border: 1px solid rgba(255,255,255,0.08); }
.race-track-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; transition: width .6s ease; border-radius: 4px; }
.race-track-fill.c-orange { background: linear-gradient(90deg, var(--progress-orange), var(--highlight-yellow)); box-shadow: 0 0 8px var(--progress-orange); }
.race-track-fill.c-cyan { background: linear-gradient(90deg, var(--fluor-cyan), #5cffdf); box-shadow: 0 0 8px var(--fluor-cyan); }
.race-track-fill.c-purple { background: linear-gradient(90deg, var(--trail-purple), #c89aff); box-shadow: 0 0 8px var(--trail-purple); }
.race-track-fill.c-yellow { background: linear-gradient(90deg, var(--highlight-yellow), var(--progress-orange)); box-shadow: 0 0 8px var(--highlight-yellow); }
.race-track-row .race-val { font-family: var(--ff-mono); font-size: 10px; color: var(--text-muted); margin-left: 4px; }
.checkered-flag { display: inline-block; width: 12px; height: 12px; background-image: linear-gradient(45deg, var(--text-primary) 25%, transparent 25%, transparent 75%, var(--text-primary) 75%), linear-gradient(45deg, var(--text-primary) 25%, transparent 25%, transparent 75%, var(--text-primary) 75%); background-size: 6px 6px; background-position: 0 0, 3px 3px; }

/* Bullet log (comment log) */
.bullet-log { position: relative; height: 200px; overflow: hidden; background: rgba(14,16,18,0.6); border: 1px solid var(--border-soft); border-radius: 6px; padding: 10px; }
.bullet-log-item { display: flex; gap: 8px; padding: 6px 4px; border-left: 2px solid var(--fluor-cyan); margin-bottom: 4px; font-family: var(--ff-mono); font-size: 11px; color: var(--text-body); background: rgba(0,255,213,0.04); }
.bullet-log-item .bl-ts { color: var(--highlight-yellow); flex-shrink: 0; font-size: 10px; }
.bullet-log-item .bl-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Switch track (vote) */
.switch-track { padding: 8px 4px; }
.switch-track-top { display: flex; justify-content: space-between; font-family: var(--ff-mono); font-size: 11px; margin-bottom: 8px; }
.switch-track-top .switch-votes { color: var(--highlight-yellow); font-weight: 700; }
.switch-track-top .left { color: var(--fluor-cyan); }
.switch-track-top .right { color: var(--trail-purple); }
.switch-rail { position: relative; height: 18px; background: rgba(255,255,255,0.06); border-radius: 9px; border: 1px solid var(--border-soft); overflow: hidden; }
.switch-rail::before, .switch-rail::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; }
.switch-rail::before { left: 0; background: linear-gradient(90deg, rgba(0,255,213,0.18), transparent); }
.switch-rail::after { right: 0; background: linear-gradient(90deg, transparent, rgba(160,106,255,0.18)); }
.switch-slider { -webkit-appearance: none; appearance: none; position: absolute; top: -2px; left: 0; width: 100%; height: 22px; background: transparent; outline: none; }
.switch-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 4px; background: var(--highlight-yellow); border: 2px solid var(--track-black); box-shadow: 0 0 12px var(--highlight-yellow); cursor: grab; }
.switch-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 4px; background: var(--highlight-yellow); border: 2px solid var(--track-black); box-shadow: 0 0 12px var(--highlight-yellow); cursor: grab; }
.switch-labels { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--ff-head); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.switch-labels .lbl-left { color: var(--fluor-cyan); }
.switch-labels .lbl-right { color: var(--trail-purple); }

/* Countdown (7-segment style) */
.trail-countdown { padding: 8px 4px; }
.cd-row { display: flex; gap: 10px; justify-content: center; align-items: center; }
.cd-cell { text-align: center; }
.cd-digit { font-family: var(--ff-mono); font-size: 26px; font-weight: 700; color: var(--highlight-yellow); background: rgba(14,16,18,0.7); border: 1px solid var(--border-glow); border-radius: 4px; padding: 6px 8px; min-width: 38px; text-shadow: 0 0 8px rgba(255,225,77,0.5); display: inline-block; }
.cd-sep { font-family: var(--ff-mono); font-size: 24px; color: var(--text-muted); }
.cd-label { display: block; font-family: var(--ff-head); font-size: 9px; letter-spacing: .14em; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }

/* ---------- pagination ---------- */
.pagination { display:flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span { font-family: var(--ff-head); font-weight: 700; padding: 8px 14px; border: var(--trail-border); background: rgba(14,16,18,0.7); color: var(--text-body); border-radius: 4px; }
.pagination a:hover { background: rgba(0,255,213,0.15); color: var(--highlight-yellow); border-color: var(--fluor-cyan); box-shadow: var(--trail-shadow); }
.pagination .current { background: rgba(0,255,213,0.25); color: var(--highlight-yellow); border-color: var(--fluor-cyan); box-shadow: 0 0 12px rgba(0,255,213,0.5); }

/* ---------- detail page ---------- */
.detail-breadcrumb { font-family: var(--ff-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 16px; display:flex; gap:8px; flex-wrap: wrap; align-items: center; letter-spacing: .08em; }
.detail-breadcrumb a { color: var(--fluor-cyan); }
.trail-detail { background: rgba(14,16,18,0.55); border: var(--trail-border); border-radius: 12px; box-shadow: var(--trail-shadow); padding: 26px; }
.detail-head { margin-bottom: 18px; }
.crista-tagline { font-family: var(--ff-mono); font-size: 12px; color: var(--fluor-cyan); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.detail-title { color: var(--text-primary); text-shadow: 0 0 12px rgba(0,255,213,0.5); }
.detail-meta { font-family: var(--ff-mono); font-size: 13px; color: var(--text-muted); }
.meta-chamber { color: var(--fluor-cyan); }
.meta-dot { color: var(--text-muted); margin: 0 6px; }
.meta-year { color: var(--text-body); }

.trail-seal { position: relative; width: 100%; max-width: 420px; margin: 0 auto 18px; aspect-ratio: 1; }
.seal-node { position: absolute; inset: 0; border: 2px solid var(--fluor-cyan); border-radius: 12px; box-shadow: 0 0 25px var(--chamber-accent, var(--fluor-cyan)); overflow: hidden; }
.seal-image { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(1.05); }
.seal-glow { position:absolute; inset:0; background: radial-gradient(circle at 30% 30%, rgba(0,255,213,0.25), transparent 60%); pointer-events: none; }
.seal-trail { position:absolute; inset:0; pointer-events:none; opacity: 0.5; }

.trail-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.stat-block { background: rgba(14,16,18,0.7); border: var(--trail-border); padding: 10px 14px; border-radius: 6px; box-shadow: var(--trail-shadow); }
.stat-label { display: block; font-family: var(--ff-mono); font-size: 10px; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; }
.stat-value { display: block; font-family: var(--ff-head); font-size: 20px; color: var(--highlight-yellow); margin: 4px 0; }
.stat-value em { font-style: normal; font-size: 12px; color: var(--text-muted); }
.stat-bar { display: block; height: 4px; background: rgba(0,255,213,0.2); border-radius: 2px; overflow: hidden; }
.stat-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--fluor-cyan), var(--highlight-yellow)); box-shadow: 0 0 6px var(--fluor-cyan); }

.matrix-flow { margin: 18px 0; }
.flow-title { color: var(--text-primary); border-bottom: 1px solid var(--border-glow); padding-bottom: 8px; }
.matrix-text { font-size: 15px; line-height: 1.75; color: var(--text-body); margin: 0 0 1em; }
.matrix-list { list-style: none; padding: 0; }
.matrix-list li { padding: 8px 0; border-bottom: 1px dashed rgba(0,255,213,0.2); color: var(--text-body); }
.matrix-list li b { color: var(--highlight-yellow); }

.ion-stamps { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.ion-chip { font-family: var(--ff-mono); font-size: 10px; padding: 4px 10px; background: rgba(0,255,213,0.14); color: var(--highlight-yellow); border: 1px solid rgba(0,255,213,0.5); border-radius: 4px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

.external-link { margin: 18px 0; }
.external-anchor { display: inline-block; padding: 10px 18px; background: rgba(0,255,213,0.18); color: var(--text-primary); border: var(--trail-border); border-radius: 4px; font-family: var(--ff-head); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: var(--trail-shadow); }
.external-anchor:hover { background: rgba(255,225,77,0.2); color: var(--highlight-yellow); border-color: var(--highlight-yellow); }

.related-chamber { margin-top: 32px; }
.related-head { color: var(--fluor-cyan); margin-bottom: 12px; }

/* ---------- static pages ---------- */
.static-hero { margin-bottom: 24px; }
.chamber-hero { background: rgba(14,16,18,0.55); border: var(--trail-border); border-radius: 12px; padding: 26px; box-shadow: var(--trail-shadow); }
.chamber-stamp { font-family: var(--ff-mono); font-size: 12px; color: var(--fluor-cyan); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.chamber-title { color: var(--text-primary); text-shadow: 0 0 12px rgba(0,255,213,0.5); }
.chamber-count { font-family: var(--ff-mono); font-size: 13px; color: var(--text-muted); }
.static-lede { font-size: 17px; color: var(--text-body); max-width: 65ch; font-style: italic; }
.static-body { background: rgba(14,16,18,0.45); border: var(--trail-border); border-radius: 12px; padding: 22px; box-shadow: var(--trail-shadow); }
.static-section { margin-bottom: 22px; }
.static-section h2 { color: var(--fluor-cyan); border-bottom: 1px solid var(--border-glow); padding-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-card { background: rgba(14,16,18,0.7); border: var(--trail-border); padding: 16px; border-radius: 8px; box-shadow: var(--trail-shadow); }
.contact-card h3 { color: var(--fluor-cyan); }
.contact-link { font-family: var(--ff-mono); color: var(--pulse-blue); }

/* ---------- search ---------- */
.search-chamber { background: rgba(14,16,18,0.55); border: var(--trail-border); border-radius: 12px; padding: 22px; box-shadow: var(--trail-shadow); margin-top: 18px; }
.search-form { display: flex; align-items: center; gap: 8px; background: var(--track-black); border: var(--trail-border); box-shadow: var(--trail-shadow); padding: 6px 10px; border-radius: 4px; }
.search-label { font-family: var(--ff-mono); font-size: 11px; color: var(--fluor-cyan); letter-spacing: .12em; text-transform: uppercase; }
.search-input { flex: 1; border: none; background: transparent; font-family: var(--ff-mono); font-size: 14px; padding: 8px; outline: none; color: var(--text-primary); }
.search-input::placeholder { color: var(--text-muted); }
.search-submit { padding: 8px 18px; background: rgba(0,255,213,0.22); color: var(--text-primary); border: 1px solid var(--border-glow); font-family: var(--ff-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 4px; }
.search-submit:hover { background: rgba(255,225,77,0.22); color: var(--highlight-yellow); border-color: var(--highlight-yellow); }
.search-count { font-family: var(--ff-mono); font-size: 11px; color: var(--text-muted); margin-top: 10px; }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; margin-top: 16px; }
.search-cell { display: flex; gap: 10px; background: rgba(14,16,18,0.7); border: var(--trail-border); padding: 10px; box-shadow: var(--trail-shadow); border-radius: 6px; }
.search-cell .sc-thumb { width: 56px; height: 64px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border-glow); border-radius: 4px; }
.search-cell .sc-thumb img { width:100%; height:100%; object-fit: cover; }
.search-cell .sc-meta { display:block; font-family: var(--ff-mono); font-size: 11px; color: var(--fluor-cyan); letter-spacing: .04em; font-weight: 700; }
.search-cell .sc-body b { color: var(--text-primary); font-family: var(--ff-head); }

/* ---------- footer: Timeline Trajectory & Data Archive ---------- */
.site-footer { position: relative; margin-top: 60px; background: var(--track-black); border-top: 1px solid var(--border-glow); overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,255,213,0.06) 6px 7px);
}

/* multi-strand timeline */
.timeline-wrap { position: relative; width: 100%; overflow-x: auto; padding: 30px 18px 14px; scrollbar-width: thin; }
.timeline-wrap::-webkit-scrollbar { height: 6px; }
.timeline-track { position: relative; display: flex; align-items: center; min-width: 1400px; height: 200px; transition: transform .3s; }
.timeline-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.timeline-svg path { fill: none; stroke-width: 1.4; opacity: 0.7; }
.timeline-start, .timeline-end { position: relative; z-index: 2; flex-shrink: 0; padding: 0 22px; }
.timeline-start .ts-icon { width: 36px; height: 36px; border: 2px solid var(--fluor-cyan); border-radius: 50%; background: rgba(0,255,213,0.18); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 16px var(--fluor-cyan); }
.timeline-end .te-icon { font-family: var(--ff-head); font-size: 30px; color: var(--highlight-yellow); text-shadow: 0 0 12px var(--highlight-yellow); }
.timeline-mid { position: relative; flex: 1; height: 100%; }
.timeline-node {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--track-black); border: 2px solid var(--highlight-yellow);
  box-shadow: 0 0 12px var(--highlight-yellow); cursor: pointer; z-index: 3;
  transition: transform .2s;
}
.timeline-node .tn-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.timeline-node.expand .tn-img { opacity: 0.9; }
.timeline-node .tn-label {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-family: var(--ff-mono); font-size: 10px; color: var(--text-primary);
  background: rgba(14,16,18,0.9); padding: 3px 8px; border: 1px solid var(--border-soft);
  border-radius: 3px; white-space: nowrap; opacity: 0; transition: opacity .25s;
}
.timeline-node:hover .tn-label, .timeline-node.expand .tn-label { opacity: 1; }
.timeline-milestone { position: absolute; top: 8px; transform: translateX(-50%); font-family: var(--ff-head); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--fluor-cyan); background: rgba(14,16,18,0.7); padding: 2px 6px; border-radius: 2px; }

/* finish line subscribe */
.finish-line-section { position: relative; padding: 28px 18px 18px; }
.finish-line-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background-image: linear-gradient(45deg, var(--text-primary) 25%, transparent 25%, transparent 75%, var(--text-primary) 75%), linear-gradient(45deg, var(--text-primary) 25%, transparent 25%, transparent 75%, var(--text-primary) 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; opacity: 0.3; }
.finish-line-section.celebrate::before { opacity: 0.8; }
.finish-subscribe { position: relative; max-width: 680px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.finish-subscribe input { flex: 1; padding: 12px 14px; background: rgba(14,16,18,0.8); border: 1px solid var(--border-glow); color: var(--text-primary); font-family: var(--ff-mono); font-size: 14px; border-radius: 4px; }
.finish-subscribe input:focus { outline: 1px solid var(--highlight-yellow); box-shadow: 0 0 8px rgba(255,225,77,0.4); }
.sprint-runner { width: 28px; height: 28px; flex-shrink: 0; background: var(--highlight-yellow); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 3 L4 12 L13 21 L13 15 L20 15 L20 9 L13 9 Z' fill='black'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 3 L4 12 L13 21 L13 15 L20 15 L20 9 L13 9 Z' fill='black'/></svg>") center/contain no-repeat; }
.finish-submit { padding: 12px 22px; background: rgba(0,255,213,0.22); color: var(--text-primary); border: 1px solid var(--fluor-cyan); font-family: var(--ff-head); font-weight: 700; letter-spacing: .14em; cursor: pointer; box-shadow: var(--trail-shadow); text-transform: uppercase; border-radius: 4px; }
.finish-submit:hover { background: rgba(255,225,77,0.22); color: var(--highlight-yellow); border-color: var(--highlight-yellow); }
.ribbon { position: absolute; top: 0; left: 50%; width: 4px; height: 14px; }
.subscribe-confirm { background: rgba(77,255,158,0.18); color: var(--finish-green); padding: 12px; margin-top: 8px; font-family: var(--ff-head); font-size: 12px; letter-spacing: .1em; border: 1px solid rgba(77,255,158,0.5); text-align: center; border-radius: 4px; }
.subscribe-confirm::before { content: "FINISH LINE CROSSED "; color: var(--highlight-yellow); font-weight: 700; }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 1200px; margin: 0 auto; padding: 28px 18px; position: relative; z-index: 1; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-col h4 { font-family: var(--ff-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--fluor-cyan); margin-bottom: 10px; border-bottom: 1px solid var(--border-glow); padding-bottom: 6px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: var(--text-body); opacity: .9; }
.footer-col a:hover { opacity: 1; color: var(--highlight-yellow); }
.trail-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.trail-logo .brand-mark { width: 52px; height: 52px; }
.trail-name { font-family: var(--ff-head); font-weight: 700; font-size: 20px; letter-spacing: .16em; color: var(--text-primary); text-shadow: 0 0 10px rgba(0,255,213,0.6); }
.trail-tag { font-size: 10px; letter-spacing: .18em; color: var(--highlight-yellow); text-transform: uppercase; font-family: var(--ff-head); font-weight: 600; }

.tagline-line { font-family: var(--ff-mono); font-size: 13px; letter-spacing: .16em; text-align: center; padding: 20px; border-top: 1px solid var(--border-glow); border-bottom: 1px solid var(--border-glow); color: var(--fluor-cyan); display: flex; align-items: center; justify-content: center; gap: 12px; text-transform: uppercase; position: relative; z-index: 1; }
.footer-bottom { text-align: center; padding: 14px; font-family: var(--ff-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; position: relative; z-index: 1; }

/* exit arrow */
.exit-arrow { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; background: rgba(0,255,213,0.3); color: var(--text-primary); border: 1px solid var(--fluor-cyan); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: 0 0 18px rgba(0,255,213,0.5); z-index: 60; border-radius: 50%; }
.exit-arrow.show { opacity: 1; pointer-events: auto; }
.exit-arrow:hover { background: rgba(255,225,77,0.3); border-color: var(--highlight-yellow); }
.exit-arrow svg { width: 22px; height: 22px; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity:1; transform:none; } }

@keyframes dash-move { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -16; } }
@keyframes radar-sweep-rot { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ring-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -200; } }
@keyframes particle-shoot { from { transform: translateX(-20%); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@keyframes log-rise { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes contour-shift { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

@media (max-width: 600px) {
  .card-stream { grid-template-columns: 1fr; }
  .data-satellite { width: 18%; }
  .data-satellite .sat-label { font-size: 8px; padding: 2px 5px; }
}
</style>