:root {
  --bg-obsidian: #05080f;
  --bg-surface: rgba(11, 17, 29, 0.78);
  --bg-surface-elevated: rgba(16, 24, 40, 0.88);
  --bg-alt: rgba(8, 13, 23, 0.62);

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-cyan: rgba(56, 189, 248, 0.28);
  --border-teal: rgba(45, 212, 191, 0.32);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-teal: #2dd4bf;
  --accent-amber: #f59e0b;
  --accent-indigo: #818cf8;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 36px rgba(56, 189, 248, 0.08);
  --shadow-card: 0 18px 40px -15px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 85% 25%, rgba(45, 212, 191, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(129, 140, 248, 0.05) 0%, transparent 45%),
    var(--bg-obsidian);
}

/* Interactive Canvas & Overlays */
#telemetry-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.ambient-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(5, 8, 15, 0.72) 100%);
}

.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.16) 50%,
    rgba(0, 0, 0, 0.16)
  );
  background-size: 100% 4px;
  opacity: 0.28;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Top Telemetry Bar */
.telemetry-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.telemetry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 0.75rem;
}

.telemetry-left,
.telemetry-center,
.telemetry-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: pulse-dot 2.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

.mono-tag strong {
  color: var(--text-primary);
  font-weight: 600;
}

.telemetry-divider {
  color: rgba(148, 163, 184, 0.28);
}

.sim-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.sim-switcher {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sim-btn:hover {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.08);
}

.sim-btn.active {
  color: #041019;
  background: var(--accent-cyan);
  font-weight: 600;
}

.sim-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.mono-readout {
  color: var(--accent-amber);
  font-size: 0.7rem;
  min-width: 145px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  background: rgba(15, 23, 42, 0.75);
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: rgba(56, 189, 248, 0.22);
  color: var(--accent-cyan);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 38px;
  z-index: 40;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.brand-logo:hover .brand-mark {
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-cta {
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.nav-cta:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 2.75rem;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-cyan);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

.badge-code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

.badge-sep {
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-title-accent {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.18rem, 2.1vw, 1.55rem);
  font-weight: 500;
  line-height: 1.38;
  background: linear-gradient(92deg, #38bdf8 0%, #2dd4bf 55%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 65ch;
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px -6px rgba(14, 165, 233, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(14, 165, 233, 0.65);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary);
  border-color: var(--border-cyan);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--accent-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.72rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--accent-cyan);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.copy-pill {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-cyan);
  text-transform: uppercase;
}

/* Credentials Strip */
.credentials-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.cred-item {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.cred-metric {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.cred-metric small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.cred-desc {
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Right Dossier Card */
.dossier-card {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
}

.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(2, 6, 23, 0.65);
  border-bottom: 1px solid var(--border-subtle);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.dossier-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(45, 212, 191, 0.14);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.dossier-body {
  padding: 1.4rem 1.35rem;
}

.dossier-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.avatar-monogram {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(45, 212, 191, 0.15));
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  flex-shrink: 0;
}

.dossier-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.dossier-role {
  font-size: 0.84rem;
  color: var(--accent-cyan);
}

.dossier-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.dossier-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.1rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
}

.meta-row dt {
  color: var(--text-muted);
  flex-shrink: 0;
}

.meta-row dd {
  color: var(--text-primary);
  text-align: right;
  font-weight: 500;
}

.mono-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.mono-val a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.mono-val a:hover {
  text-decoration: underline;
}

.equation-box {
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.eq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.eq-mode-tag {
  color: var(--accent-amber);
  font-weight: 600;
}

.eq-formula {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-teal);
  padding: 0.35rem 0;
  overflow-x: auto;
}

/* Interactive Control Loop Tuner inside Dossier Equation Box */
.ctrl-tuner {
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
}

.ctrl-tuner[hidden],
.ctrl-law-section[hidden] {
  display: none !important;
}

.ctrl-law-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.ctrl-law-tab {
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.22);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
}

.ctrl-law-tab:hover {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.45);
}

.ctrl-law-tab.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.12);
}

.ctrl-law-section {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding-top: 0.3rem;
  min-width: 0;
  width: 100%;
}

#ctrl-ema-section {
  border-top: 1px dotted rgba(167, 139, 250, 0.22);
}

.ctrl-tuner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ctrl-init-ref {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-secondary);
}

.ctrl-ema-buffer {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.64rem;
  color: #c4b5fd;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 5px;
  padding: 0.22rem 0.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctrl-zeta-badge {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.ctrl-zeta-badge.is-tuning {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.45);
}

.ctrl-zeta-badge.is-optimal {
  background: rgba(45, 212, 191, 0.16);
  color: var(--accent-teal);
  border-color: rgba(45, 212, 191, 0.42);
}

.ctrl-zeta-badge.is-unstable {
  background: rgba(244, 63, 94, 0.22);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.55);
}

.ctrl-zeta-badge.is-ema {
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.5);
}

.ctrl-sliders {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.ctrl-slider-row {
  display: grid;
  grid-template-columns: 18px 1fr 48px;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.ctrl-gain-key {
  font-weight: 700;
  color: var(--accent-cyan);
}

.ctrl-slider-row input[type="range"] {
  width: 100%;
  height: 4px;
  accent-color: var(--accent-teal);
  background: rgba(30, 41, 59, 0.9);
  border-radius: 99px;
  cursor: pointer;
}

#ctrl-ema-gain-slider {
  accent-color: #a78bfa;
}

.ctrl-gain-val {
  text-align: right;
  color: var(--text-primary);
  font-size: 0.71rem;
}

.ctrl-tuner-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.ctrl-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
  border: 1px solid var(--border-subtle);
}

.ctrl-btn-autotune {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(20, 184, 166, 0.22));
  color: var(--accent-teal);
  border-color: rgba(45, 212, 191, 0.45);
}

.ctrl-btn-autotune:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.38), rgba(20, 184, 166, 0.34));
  border-color: var(--accent-teal);
  color: #ffffff;
}

.ctrl-btn-ema-pulse {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(56, 189, 248, 0.22));
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.45);
}

.ctrl-btn-ema-pulse:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.38), rgba(56, 189, 248, 0.34));
  border-color: #c4b5fd;
  color: #ffffff;
}

.ctrl-btn-reset {
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-secondary);
}

.ctrl-btn-reset:hover {
  color: var(--text-primary);
  border-color: var(--border-cyan);
}

.eq-hint {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* Sections General */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 2.5rem;
  max-width: 760px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Publication Card */
.publication-card {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.pub-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.pub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}

.badge-status {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-domain {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
}

.mono-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pub-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.pub-note-editable {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-teal);
  margin-bottom: 1.2rem;
}

.pub-authors {
  margin-bottom: 1.35rem;
}

.author-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.95rem;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
}

.author-affil {
  color: var(--text-secondary);
}

.author-mail {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-decoration: none;
}

.pub-abstract-box {
  background: rgba(2, 6, 23, 0.5);
  border-left: 3px solid var(--accent-cyan);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.4rem;
}

.abstract-heading {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 0.45rem;
}

.pub-abstract {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pub-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kw-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.pub-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* BibTeX Drawer */
.bibtex-drawer {
  margin-top: 1.25rem;
  background: #03060c;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.bibtex-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-micro {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid var(--border-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-micro:hover {
  background: var(--accent-cyan);
  color: #030712;
}

.bibtex-code {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  overflow-x: auto;
  line-height: 1.55;
}

/* Artifact & Release Download Panel */
.pub-release-panel {
  margin-top: 1.25rem;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.release-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.release-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.release-meta-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.release-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.95rem;
}

.release-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.release-metric-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}

.metric-box-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.metric-box-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-teal);
}

.release-hash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #030712;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-bottom: 1rem;
  gap: 0.5rem;
  overflow-x: auto;
}

.hash-label {
  color: var(--accent-amber);
  font-weight: 600;
  flex-shrink: 0;
}

.hash-val {
  color: #94a3b8;
  word-break: break-all;
}

.release-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Affiliation Notice */
.affiliation-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.35rem;
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.notice-icon {
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-text strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.15rem;
}

.notice-text code {
  font-family: var(--font-mono);
  color: var(--accent-teal);
  background: rgba(45, 212, 191, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Cards Grid (3 Columns) */
.cards-grid.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tech-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.card-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.card-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.card-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.card-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.card-list li::before {
  content: "▹ ";
  color: var(--accent-teal);
  font-family: var(--font-mono);
}

/* Biography Layout */
.bio-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.75rem;
  align-items: start;
}

.prose-block p {
  margin-bottom: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.prose-block strong {
  color: var(--text-primary);
}

.prose-block .lead-paragraph {
  font-size: 1.08rem;
  color: var(--text-primary);
}

.competency-matrix {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.matrix-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.matrix-grid {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.matrix-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.matrix-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-teal);
  letter-spacing: 0.06em;
}

.matrix-item strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.matrix-item span:last-child {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Timeline */
.bio-timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.timeline-item {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.tl-marker {
  position: absolute;
  left: -1.95rem;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.tl-period {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
}

.tl-role {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.tl-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Ecosystem Cards */
.eco-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.eco-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.eco-youtube {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.eco-twitch {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
}

.eco-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.eco-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.eco-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 1.1rem;
}

.eco-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

/* Contact Panel */
.contact-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  align-items: center;
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.email-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.email-box {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.email-role {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.email-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.email-addr {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Terminal Box */
.terminal-box {
  background: #03060c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  background: #0b1322;
  border-bottom: 1px solid var(--border-subtle);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.term-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.term-title {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.1rem;
  line-height: 1.65;
}

.t-prompt {
  color: var(--accent-teal);
  margin-right: 0.4rem;
}

.t-out {
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.t-hl {
  color: var(--accent-cyan);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  background: rgba(3, 6, 12, 0.9);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.footer-domain {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--accent-teal);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .bio-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .cards-grid.three-cols {
    grid-template-columns: 1fr;
  }
  .hide-lg {
    display: none;
  }
}

@media (max-width: 768px) {
  .credentials-strip {
    grid-template-columns: 1fr;
  }
  .hide-md {
    display: none;
  }
  .nav-container {
    flex-direction: column;
    padding: 0.85rem 1.25rem;
  }
  .main-nav {
    justify-content: center;
    gap: 0.9rem;
  }
}

@media (max-width: 520px) {
  .hide-sm {
    display: none;
  }
  .publication-card,
  .contact-panel {
    padding: 1.35rem;
  }
}

@media print {
  #telemetry-canvas,
  .telemetry-bar,
  .scanline-overlay,
  .ambient-vignette {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}
