/* ============================================================
   ORP v3.0 — Open Resonance Protocol
   Shared Stylesheet
   ============================================================ */

:root {
  --bg: #06080b;
  --panel: #0f1217;
  --panel-2: #161a22;
  --panel-bright: #212630;
  --border: rgba(221, 17, 17, 0.08);
  --border-strong: rgba(221, 17, 17, 0.18);
  --text: #dce2eb;
  --muted: #8a95a5;
  --heading: #f0f4f9;
  --primary: #dd1111;
  --primary-bright: #ff3333;
  --primary-dark: #aa0000;
  --accent-orange: #ff6600;
  --accent-orange-bright: #ff8833;
  --accent-purple: #6a3a8a;
  --accent-purple-bright: #8a5aaa;
  --accent-cyan: #00d4ff;
  --success: #3fb950;
  --danger: #ff3333;
  --warning: #ff8833;
  --shadow: rgba(0, 0, 0, 0.65);
  --radius: 28px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --transition: 250ms cubic-bezier(0.2, 0, 0, 1);
}

/* ============================================================
   FONT SYSTEM — HYBRID ORP PATCH
   Drop this BELOW your current :root block
   and BEFORE body {}
   ============================================================ */

:root {
  /* Primary UI / readable body font */
  --font-ui: "Space Grotesk", system-ui, sans-serif;

  /* Technical / headers / tactical labels */
  --font-display: "Oxanium", "Rajdhani", sans-serif;

  /* Dense telemetry / code / metrics */
  --font-mono: "JetBrains Mono", "IBM Plex Mono", monospace;

  /* Slightly tighter typography control */
  --tracking-tight: -0.025em;
  --tracking-normal: 0.015em;
  --tracking-wide: 0.08em;
}

/* ============================================================
   GLOBAL BODY REFINEMENT
   ============================================================ */

body {
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Improve paragraph readability */
p,
li {
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
}

/* ============================================================
   DISPLAY / TITLES
   ============================================================ */

h1,
h2,
h3,
.section-title,
.logo,
.pipeline-step,
.section-eyebrow,
.release-tag,
.author-name,
.author-title,
.badge,
.mobile-nav a,
.orp-compact-scope .telemetry-title,
.orp-compact-scope .status-pill {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
  text-transform: none;
  font-kerning: normal;
}

/* Main hero title polish */
h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

/* Section title readability */
.section-title {
  font-weight: 700;
  line-height: 1.02;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-links a {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============================================================
   TERMINAL / TELEMETRY / ASCII
   ============================================================ */

.orp-compact-scope .telemetry-subtitle,
.orp-compact-scope .metric-line,
.orp-compact-scope .node-tag,
.orp-compact-scope .ascii-core-panel,
.avatar-fallback,
.glyph {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

/* Sharper telemetry appearance */
.orp-compact-scope .metric-line {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

/* ASCII stabilization */
.orp-compact-scope .ascii-core-panel {
  line-height: 1.08;
  letter-spacing: 0;
}

/* ============================================================
   CARD TYPOGRAPHY REFINEMENT
   ============================================================ */

.pipeline-card h3,
.doc-card h3,
.principle h3,
.quick-access-card h3,
.release-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.pipeline-card p,
.doc-card p,
.principle p,
.quick-access-card p,
.release-card p,
.section-description {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.75;
}

/* ============================================================
   MOBILE TYPOGRAPHY FIXES
   ============================================================ */

@media (max-width: 640px) {

  h1 {
    font-size: 2.65rem !important;
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .section-title {
    line-height: 1.06;
  }

  .hero p,
  .section-description,
  p,
  li {
    font-size: 1rem;
    line-height: 1.72;
  }

  .mobile-nav a {
    letter-spacing: 0.04em;
  }
}

/* ============================================================
   FONT RENDERING FIXES
   ============================================================ */

h1,
h2,
h3,
.section-title,
.logo,
.btn,
.badge {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

/* Prevent overly thin rendering on Firefox */
body,
p,
li,
.nav-links a {
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html,
body {
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,102,0,0.06), transparent 40%),
    radial-gradient(circle at bottom left, rgba(221,17,17,0.05), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(106,58,138,0.03), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.15px;
}

a { color: var(--accent-orange); text-decoration: none; transition:
  background var(--transition),
  border-color var(--transition),
  transform var(--transition),
  opacity var(--transition); cursor: pointer; }
a:hover { color: var(--accent-orange-bright); }

/* ── Background Atmosphere ─────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; z-index: -4;
  background-image:
    linear-gradient(rgba(221, 17, 17, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 17, 17, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
  pointer-events: none;
}

.ember {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: -1;
  animation: emberFloat linear infinite;
}
.ember-1 { width: 4px; height: 4px; background: rgba(255,102,0,0.5); top: 20%; left: 15%; animation-duration: 8s; animation-delay: 0s; }
.ember-2 { width: 3px; height: 3px; background: rgba(255,51,51,0.6); top: 35%; right: 12%; animation-duration: 10s; animation-delay: 2s; }
.ember-3 { width: 5px; height: 5px; background: rgba(255,136,51,0.4); bottom: 30%; left: 8%; animation-duration: 12s; animation-delay: 4s; }
.ember-4 { width: 3px; height: 3px; background: rgba(221,17,17,0.5); bottom: 15%; right: 20%; animation-duration: 9s; animation-delay: 1s; }
.ember-5 { width: 4px; height: 4px; background: rgba(106,58,138,0.35); top: 60%; right: 8%; animation-duration: 11s; animation-delay: 3s; }

@keyframes emberFloat {
  0%   { transform: translateY(0px) translateX(0px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-70px) translateX(25px); opacity: 0; }
}

.glow {
  position: fixed; width: 1000px; height: 1000px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,102,0,0.12) 0%, rgba(221,17,17,0.08) 35%, rgba(106,58,138,0.04) 55%, transparent 75%);
  top: -350px; right: -250px; z-index: -1; pointer-events: none; filter: blur(20px);
}

.resonance-ring {
  position: fixed; width: 1000px; height: 1000px; border-radius: 50%;
  border: 1px solid rgba(221,17,17,0.05);
  top: -330px; right: -250px; z-index: -3;
  animation: rotateSlow 75s linear infinite;
}
.resonance-ring::before, .resonance-ring::after {
  content: ""; position: absolute; inset: 80px; border-radius: inherit; border: 1px dashed rgba(255,102,0,0.04);
}
.resonance-ring::after { inset: 160px; border-color: rgba(106,58,138,0.04); }

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.glyph-layer { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; opacity: 0.05; }
.glyph { position: absolute; color: var(--primary); font-family: Oxanium, sans-serif; font-size: 14px; letter-spacing: 0.12em; animation: drift linear infinite; }
.glyph:nth-child(1) { top: 12%; left: 8%; animation-duration: 26s; }
.glyph:nth-child(2) { top: 34%; right: 10%; animation-duration: 31s; }
.glyph:nth-child(3) { bottom: 18%; left: 14%; animation-duration: 34s; }
.glyph:nth-child(4) { bottom: 10%; right: 20%; animation-duration: 28s; }

@keyframes drift {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}

/* ── Layout ────────────────────────────────────────────── */
.container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

/* ── Navigation ────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 300ms ease, backdrop-filter 300ms ease;
}

nav.menu-open {
  background: rgba(6, 8, 11, 0.99) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transform: translateZ(0);
}

nav.nav-hidden { 
  transform: translateY(-100%); 
}

.nav-inner { 
  min-height: 84px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 32px; 
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  color: var(--heading); 
  font-family: Oxanium, sans-serif; 
  font-weight: 700; 
  letter-spacing: 0.04em; 
}

.logo-mark {
  position: relative; 
  width: 18px; 
  height: 18px; 
  transform: rotate(45deg); 
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent-orange));
  box-shadow: 0 0 24px rgba(221,17,17,0.5), 0 0 12px rgba(255,102,0,0.25);
}
.logo-mark::before { 
  content: ""; 
  position: absolute; 
  inset: 4px; 
  border: 1px solid rgba(255,255,255,0.25); 
}

.nav-links { 
  display: flex; 
  align-items: center; 
  gap: 32px; 
  flex-wrap: wrap; 
}

.nav-links a {
  position: relative; 
  color: var(--muted); 
  font-weight: 500; 
  font-size: 0.95rem;
  letter-spacing: 0.15px; 
  font-family: "Space Grotesk", sans-serif;
}

.nav-links a::after {
  content: ""; 
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%);
  bottom: -6px; 
  width: 0; 
  height: 3px; 
  border-radius: 99px;
  background: var(--primary); 
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--heading); }
.nav-links a:hover::after { width: 16px; }
.nav-links a.active { color: var(--heading); }
.nav-links a.active::after { width: 16px; }

/* ── Hamburger Navigation (REPAIRED) ─────────────────────────────── */
.hamburger-btn {
  display: none;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(221,17,17,0.15);
  background: var(--panel-2); 
  cursor: pointer;
  padding: 0;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
  z-index: 1200;
}

.hamburger-btn:hover {
  background: rgba(221,17,17,0.08);
  border-color: rgba(255,102,0,0.3);
}

.hamburger-btn span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--heading); 
  transform: translateX(-50%);
  transition:
    transform 250ms ease,
    opacity 250ms ease,
    top 250ms ease,
    background 250ms ease;
}

.hamburger-btn span:nth-child(1) { top: 17px; }
.hamburger-btn span:nth-child(2) { top: 25px; }
.hamburger-btn span:nth-child(3) { top: 33px; }

.hamburger-btn.active span:nth-child(1) {
  top: 25px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--accent-orange);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  top: 25px;
  transform: translateX(-50%) rotate(-45deg);
  background: var(--accent-orange);
}

/* ── Mobile Navigation Overlay ────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: 
    radial-gradient(circle at top right, rgba(255,102,0,0.08), transparent 40%),
    var(--bg); 
  transition: opacity 280ms ease, visibility 280ms ease;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 36px 48px;
  gap: 18px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(221,17,17,0.08);
  background: linear-gradient(135deg, rgba(221,17,17,0.05), rgba(255,102,0,0.02));
  color: var(--heading);
  font-family: Oxanium, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  transform: translateY(-2px);
  border-color: rgba(255,102,0,0.3);
  background: linear-gradient(135deg, rgba(221,17,17,0.12), rgba(255,102,0,0.06));
  color: var(--accent-orange-bright);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

section { padding: clamp(60px, 10vw, 120px) 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.02); }
p, li { font-weight: 300; line-height: 1.7; }

/* ── Badge ─────────────────────────────────────────────── */
.badge-wrapper { margin-bottom: 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px;
  border-radius: var(--radius-xs); border: 1px solid var(--border-strong);
  background: var(--panel); color: #ffa494; font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.5px; font-family: Oxanium, sans-serif;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-bright); box-shadow: 0 0 12px rgba(221,17,17,0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.25); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Typography ────────────────────────────────────────── */
h1 {
  margin: 0; color: var(--heading); font-family: Oxanium, sans-serif;
  font-size: clamp(3rem, 6vw, 4.8rem); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 800;
}
.hero p { max-width: 560px; margin-top: 24px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.25px;
  transition:
  background var(--transition),
  border-color var(--transition),
  transform var(--transition),
  opacity var(--transition); border: none; cursor: pointer;
  text-decoration: none; font-family: "Space Grotesk", sans-serif;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent-orange)); color: #06080b; box-shadow: 0 4px 16px rgba(221,17,17,0.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,102,0,0.3); color: #000; }
.btn-primary:active { transform: translateY(0px); }
.btn-secondary { border: 1px solid var(--border-strong); background: rgba(15,18,23,0.4); color: var(--text); }
.btn-secondary:hover { transform: translateY(-2px); background: var(--panel); border-color: rgba(221,17,17,0.4); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.btn-secondary:active { transform: translateY(0px); }

/* ── Directives ────────────────────────────────────────── */
.directives-list { margin: 12px 0 0 0; padding-left: 20px; list-style-type: square; }
.directives-list li { margin-bottom: 10px; color: var(--text); font-size: 0.9rem; }
.directives-list li strong { color: var(--accent-orange); font-family: Oxanium, sans-serif; }

/* ── Section Layout ────────────────────────────────────── */
.section-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(221,17,17,0.15), rgba(255,102,0,0.1), transparent); }
.section-header { max-width: 800px; margin-bottom: clamp(40px, 6vw, 64px); text-align: left; }
.section-eyebrow { color: var(--primary-bright); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; font-family: Oxanium, sans-serif; }
.section-title { margin: 0 0 16px; color: var(--heading); font-family: Oxanium, sans-serif; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.section-description { color: var(--muted); font-size: 1.1rem; max-width: 700px; line-height: 1.6; }

/* ── Cards ─────────────────────────────────────────────── */
.pipeline-grid, .docs-grid, .principles, .quick-access-grid { display: grid; gap: 24px; }
.pipeline-grid     { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.quick-access-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }

.pipeline-card, .doc-card, .principle, .quick-access-card, .release-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
.pipeline-card::before, .doc-card::before, .principle::before, .quick-access-card::before, .release-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,102,0,0.03), rgba(221,17,17,0.03));
  opacity: 0; transition: opacity var(--transition); pointer-events: none;
}
.pipeline-card:hover, .doc-card:hover, .principle:hover, .quick-access-card:hover, .release-card:hover {
  transform: translateY(-4px); background-color: var(--panel-2);
  border-color: rgba(221,17,17,0.24);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 16px rgba(221,17,17,0.03);
}
.pipeline-card:hover::before, .doc-card:hover::before, .principle:hover::before, .quick-access-card:hover::before, .release-card:hover::before { opacity: 1; }

.pipeline-card { padding: 36px; }
.pipeline-step { color: var(--accent-orange); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px; font-family: Oxanium, sans-serif; }
.pipeline-card h3, .doc-card h3, .principle h3, .quick-access-card h3, .release-card h3 { margin-top: 0; color: var(--heading); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.15px; }
.pipeline-card p, .doc-card p, .principle p, .quick-access-card p, .release-card p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }

.docs-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.doc-card { padding: 36px; background: var(--panel); }
.doc-card p { margin-bottom: 24px; }
.doc-card ul { margin: 0; padding-left: 16px; }
.doc-card li { margin-bottom: 12px; list-style-type: square; color: rgba(221,17,17,0.4); }
.doc-card ul li a { color: var(--accent-orange); font-weight: 500; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 4px; }
.doc-card ul li a:hover { color: var(--accent-orange-bright); transform: translateX(3px); text-decoration: none; }

.principles { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.principle { padding: 36px; }

.quick-access-card { padding: 36px; }
.quick-access-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.quick-access-card a { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; color: var(--accent-orange); font-weight: 600; }
.quick-access-card a:hover { color: var(--accent-orange-bright); transform: translateX(3px); }

.release-card { padding: 36px; background: linear-gradient(135deg, rgba(221,17,17,0.04), rgba(255,102,0,0.02)); border-color: var(--border-strong); }
.release-tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-xs); background: rgba(221,17,17,0.12); color: var(--primary-bright); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-family: Oxanium, sans-serif; border: 1px solid rgba(221,17,17,0.2); }
.release-card h3 { font-size: 1.5rem; margin-top: 16px; margin-bottom: 8px; font-family: Oxanium, sans-serif; }
.release-card > p { margin-top: 12px; }
.release-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--primary-bright); font-weight: 700; }
.release-link:hover { color: #ff6666; transform: translateX(4px); text-decoration: none; }

/* ── Variants Table ────────────────────────────────────── */
.row-hover:hover { background: rgba(221,17,17,0.04); transition: background 0.2s; }

/* ── Footer ────────────────────────────────────────────── */
footer { padding: 80px 0 60px; border-top: 1px solid var(--border); background: rgba(255,255,255,0.005); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.footer-title { color: var(--heading); font-weight: 700; margin-bottom: 16px; font-family: Oxanium, sans-serif; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--heading); }
.footer-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); text-align: center; font-size: 0.92rem; letter-spacing: 0.5px; }

.author-section { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.author-avatar { width: 100px; height: 100px; border-radius: 50%; border: 2px solid rgba(221,17,17,0.25); overflow: hidden; flex-shrink: 0; transition: transform var(--transition), box-shadow var(--transition); background: var(--panel-2); position: relative; }
.author-avatar:hover { transform: scale(1.04); box-shadow: 0 0 28px rgba(255,102,0,0.3); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--panel-bright); color: var(--accent-orange); font-family: Oxanium, monospace; font-size: 1.5rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.author-avatar.img-error .avatar-fallback { opacity: 1; pointer-events: auto; }

.author-info { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.author-name  { color: var(--heading); font-weight: 700; font-family: Oxanium, sans-serif; letter-spacing: 0.02em; font-size: 1.1rem; }
.author-title { color: var(--accent-orange); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-family: Oxanium, sans-serif; }
.copyright { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); text-align: center; font-size: 0.85rem; letter-spacing: 0.02em; }

/* ── Scroll Utilities ──────────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, #dd1111, #f25c05); z-index: 2000; }

.scroll-top {
  position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px;
  border-radius: var(--radius-sm); background: var(--panel-2);
  border: 1px solid var(--border-strong); display: flex; align-items: center;
  justify-content: center; cursor: pointer; opacity: 0; transition:
  background var(--transition),
  border-color var(--transition),
  transform var(--transition),
  opacity var(--transition);
  z-index: 900; font-size: 1.2rem; color: var(--primary-bright);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.scroll-top.visible { opacity: 1; }
.scroll-top:hover { background: var(--panel-bright); color: var(--accent-orange-bright); border-color: rgba(255,102,0,0.4); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.5); }

/* ── Reveal Animation ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 650ms cubic-bezier(0.2, 0, 0, 1), transform 650ms cubic-bezier(0.2, 0, 0, 1); will-change: transform, opacity; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Page Hero (non-index pages) ───────────────────────── */
.page-hero {
  padding: clamp(80px, 10vw, 130px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin-top: 20px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .nav-inner { min-height: auto; padding: 20px 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-links { gap: 20px; }
  .hero { padding-top: 80px; }
}

nav {
  isolation: isolate;
}

nav.menu-open {
  background: rgba(6, 8, 11, 0.99) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transform: translateZ(0);
}

@media (max-width: 640px) {
  nav.menu-open {
    background: #06080b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001 !important; 
    background: #06080b !important; 
    overflow-y: auto; 
    display: none; 
  }

  .mobile-nav.active {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100%;
    padding: 84px 24px 40px; 
    gap: 14px;
  }

  .container {
    width: min(calc(100% - 32px), 1280px);
  }

  .nav-inner {
    min-height: 78px;
    padding: 12px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

  .hero {
    padding: 120px 0 24px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  h1 {
    font-size: 2.5rem !important;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  section {
    padding: 44px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .terminal-title-bar {
    height: auto;
    min-height: 48px;
    padding: 12px 16px;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .terminal-title-text {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .status-indicator {
    font-size: 0.65rem;
    padding: 4px 10px;
    margin: 0;
  }

  .pipeline-grid,
  .docs-grid,
  .principles,
  .quick-access-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pipeline-card,
  .doc-card,
  .principle,
  .quick-access-card,
  .release-card {
    padding: 20px !important;
    border-radius: var(--radius-sm) !important;
  }

  .terminal-body {
    font-size: 0.88rem;
    padding: 20px;
    line-height: 1.75;
  }

  .entity-box {
    padding: 14px;
    margin-top: 18px;
  }

  .scroll-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }

  .author-avatar {
    width: 90px;
    height: 90px;
  }

  .page-hero {
    padding-top: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   ORP v3.0 — Compact Integrated Telemetry Component
   ============================================================ */

.orp-compact-scope {
  display: inline-block;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

/* Scoped element structural reset */
.orp-compact-scope *, 
.orp-compact-scope *::before, 
.orp-compact-scope *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Framework Integrated Card Profile */
.orp-compact-scope .mini-telemetry-card {
  position: relative;
  background-color: rgba(22, 26, 34, 0.85); /* Seamlessly matches --panel-2 layout transparency */
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.orp-compact-scope .mini-telemetry-card:hover {
  border-color: rgba(221, 17, 17, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 16px rgba(221, 17, 17, 0.05);
}

/* Interactive Holographic CRT Simulation Texture */
.orp-compact-scope .holo-scanlines {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    rgba(6, 8, 11, 0) 50%, 
    rgba(221, 17, 17, 0.03) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

/* Title Block Layout */
.orp-compact-scope .mini-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.orp-compact-scope .header-main {
  display: flex;
  flex-direction: column;
}

.orp-compact-scope .telemetry-title {
  color: var(--heading);
  font-family: Oxanium, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.orp-compact-scope .telemetry-subtitle {
  font-family: monospace;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* Telemetry Component Active Status Indicator Pill */
.orp-compact-scope .status-pill {
  font-family: Oxanium, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--success);
  border: 1px solid rgba(63, 185, 80, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(63, 185, 80, 0.06);
  letter-spacing: 0.04em;
  text-shadow: 0 0 4px rgba(63, 185, 80, 0.2);
}

/* Split Content Grid Architecture */
.orp-compact-scope .mini-card-layout {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* Anti-clipping Mobile Adapter Fallback Override */
@media (max-width: 420px) {
  .orp-compact-scope .mini-card-layout {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .orp-compact-scope .ascii-core-panel {
    align-self: center;
    transform: scale(0.95);
  }
  .orp-compact-scope .data-metrics-panel {
    width: 100%;
    max-width: 100% !important;
  }
}

/* Preserved Core Architectural ASCII Art Block */
.orp-compact-scope .ascii-core-panel {
  font-family: monospace;
  font-size: 0.72rem; 
  line-height: 1.15;
  white-space: pre;
  color: rgba(221, 17, 17, 0.4); /* Uses your brand red base */
  user-select: none;
  text-shadow: 0 0 6px rgba(221, 17, 17, 0.15);
}

/* Metric Display Layout Block */
.orp-compact-scope .data-metrics-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  max-width: 190px;
}

.orp-compact-scope .metric-line {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.78rem;
  line-height: 1.3;
}

.orp-compact-scope .label {
  color: var(--muted);
}

.orp-compact-scope .val {
  font-weight: 700;
  color: var(--heading);
}

.orp-compact-scope .panel-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Models / Target Node Chips */
.orp-compact-scope .nodes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.orp-compact-scope .node-tag {
  font-family: monospace;
  font-size: 0.62rem;
  font-weight: 600;
  background: var(--panel);
  color: var(--accent-orange);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
}

/* Theme Aligned Typography State Modifiers */
.orp-compact-scope .text-success { 
  color: var(--success); 
}
.orp-compact-scope .text-orange { 
  color: var(--accent-orange-bright); 
  text-shadow: 0 0 6px rgba(255, 136, 51, 0.25);
}
.orp-compact-scope .text-red { 
  color: var(--primary-bright); 
  text-shadow: 0 0 6px rgba(255, 51, 51, 0.3);
}