/* ═══════════════════════════════════════════════════════════════
   Vulkan Notes — style.css
   Aesthetic: Dark Industrial / Circuit Board Terminal
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-base:       #090c10;
  --bg-surface:    #0d1117;
  --bg-card:       #111820;
  --bg-card-hover: #151f2c;
  --bg-alt:        #0b1520;

  --border:        #1e2d3d;
  --border-bright: #2a4060;
  --border-accent: #00c8ff33;

  --text-primary:  #c9d8e8;
  --text-secondary:#7a98b8;
  --text-dim:      #4a6380;
  --text-code:     #8be9fd;

  --accent-cyan:   #00c8ff;
  --accent-orange: #ff6d2a;
  --accent-green:  #00e5a0;
  --accent-purple: #b060ff;
  --accent-yellow: #ffd060;
  --accent-red:    #ff4560;

  --vk-red:        #ac3232;
  --vk-red-bright: #e04040;

  --font-mono:    'JetBrains Mono', monospace;
  --font-display: 'Syne', sans-serif;
  --font-body:    'Noto Sans SC', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-card: 0 4px 24px #00000088, 0 1px 3px #00000066;
  --shadow-glow-cyan:   0 0 24px #00c8ff30;
  --shadow-glow-orange: 0 0 24px #ff6d2a30;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 15px; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--accent-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--text-code);
  background: #0d1e2e;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #1e3550;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  white-space: pre;
}

/* ─── Circuit Canvas BG ─────────────────────────────────────── */
#circuit-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* ─── Site Header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--vk-red), #7a1a1a);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px #ac323260;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; }
.logo-sub   { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); }

.top-nav { display: flex; gap: 4px; }

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  border-color: var(--border-bright);
  background: #0d1e2e;
  text-decoration: none;
}

.header-scan-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  animation: scanPulse 4s ease-in-out infinite;
}
@keyframes scanPulse {
  0%,100% { opacity: 0; }
  50%      { opacity: 0.5; }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 32px 60px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 60px;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 80%);
}

.hero-content { flex: 1; min-width: 0; }

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-title {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s forwards;
}

.title-vk {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
}
.title-vk::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--vk-red-bright), var(--accent-orange), transparent);
}

.title-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 12px;
  letter-spacing: 0.01em;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
}

.hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid;
  letter-spacing: 0.08em;
}
.pill-orange { color: var(--accent-orange); border-color: #ff6d2a50; background: #ff6d2a12; }
.pill-blue   { color: var(--accent-cyan);   border-color: #00c8ff50; background: #00c8ff10; }
.pill-green  { color: var(--accent-green);  border-color: #00e5a050; background: #00e5a010; }
.pill-purple { color: var(--accent-purple); border-color: #b060ff50; background: #b060ff10; }

/* Hero Object Tree */
.hero-diagram {
  flex-shrink: 0;
  width: 280px;
  opacity: 0;
  animation: fadeLeft 0.8s 0.8s forwards;
}

.obj-tree {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.ot-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  position: relative;
  transition: all 0.2s;
  cursor: default;
}
.ot-node:hover { border-color: var(--accent-cyan); background: var(--bg-card-hover); }

.ot-indent { margin-left: 24px; }
.ot-indent2 { margin-left: 48px; }

.ot-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-orange { background: var(--accent-orange); }
.dot-cyan   { background: var(--accent-cyan); }
.dot-green  { background: var(--accent-green); }
.dot-purple { background: var(--accent-purple); }
.dot-yellow { background: var(--accent-yellow); }
.dot-red    { background: var(--vk-red-bright); }

.ot-line {
  width: 1px;
  height: 10px;
  background: var(--border);
  margin-left: 28px;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Philosophy Section ────────────────────────────────────── */
.philosophy-section {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--bg-base), var(--bg-alt));
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.phil-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.phil-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.phil-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: var(--shadow-glow-cyan); }
.phil-card:hover::before { opacity: 1; }

.phil-icon { font-size: 1.8rem; margin-bottom: 14px; }
.phil-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; color: #e0eeff; }
.phil-card p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Content Sections ──────────────────────────────────────── */
.content-section {
  position: relative; z-index: 1;
  padding: 80px 0;
}
.section-alt { background: var(--bg-alt); }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border-bright);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

.subsection { margin-bottom: 52px; }

.subsec-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  padding-left: 14px;
  border-left: 3px solid var(--accent-cyan);
}

/* ─── Init Chain ────────────────────────────────────────────── */
.init-chain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.chain-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  width: 100%;
  max-width: 820px;
  transition: border-color 0.2s;
}
.chain-node:hover { border-color: var(--border-bright); }

.node-instance { border-left: 3px solid var(--accent-orange); }
.node-physical  { border-left: 3px solid var(--accent-cyan); }
.node-logical   { border-left: 3px solid var(--accent-green); }

.node-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.node-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
}
.node-desc { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 12px; }
.node-highlight {
  font-size: 0.8rem;
  color: var(--accent-yellow);
  background: #ffd06010;
  border: 1px solid #ffd06030;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.node-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-code);
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
  white-space: pre;
  overflow-x: auto;
}

.chain-arrow {
  font-size: 1.4rem;
  color: var(--border-bright);
  padding: 6px 28px;
}

/* ─── Two Col ───────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mt-lg { margin-top: 32px; }

.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-dark h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #e0eeff;
  margin-bottom: 14px;
}
.card-dark p, .card-text { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }

/* Memory Heap */
.mem-heap-grid { display: flex; flex-direction: column; gap: 10px; }
.heap-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.heap-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.heap-gpu    { border-color: #00c8ff30; background: #00c8ff08; }
.heap-gpu .heap-tag    { color: var(--accent-cyan); }
.heap-cpu    { border-color: #ff6d2a30; background: #ff6d2a08; }
.heap-cpu .heap-tag    { color: var(--accent-orange); }
.heap-both   { border-color: #00e5a030; background: #00e5a008; }
.heap-both .heap-tag   { color: var(--accent-green); }
.heap-cached { border-color: #ffd06030; background: #ffd06008; }
.heap-cached .heap-tag { color: var(--accent-yellow); }

.vma-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-code);
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  white-space: pre;
  overflow-x: auto;
  margin: 12px 0;
}

.tip-box {
  font-size: 0.78rem;
  color: var(--accent-yellow);
  background: #ffd06010;
  border: 1px solid #ffd06030;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.6;
}

/* ─── Queue Visual ──────────────────────────────────────────── */
.queue-visual { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }

.queue-family {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border);
}
.family-0 { background: #00c8ff0a; border-color: #00c8ff30; }
.family-1 { background: #00e5a00a; border-color: #00e5a030; }
.family-2 { background: #ffd0600a; border-color: #ffd06030; }

.family-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.family-queues { display: flex; gap: 8px; margin-bottom: 8px; }
.q-box {
  padding: 5px 12px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--bg-card);
}
.q-dim { opacity: 0.4; }
.family-note { font-size: 0.78rem; color: var(--text-dim); }

.queue-table-wrap { margin-top: 16px; }

/* ─── VK Table ──────────────────────────────────────────────── */
.vk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.vk-table th {
  background: #0d1e2e;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-bright);
}
.vk-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.vk-table tr:hover td { background: var(--bg-card-hover); }

.badge-g { display: inline-block; padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.68rem; background: #00c8ff20; color: var(--accent-cyan); border: 1px solid #00c8ff40; }
.badge-c { display: inline-block; padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.68rem; background: #00e5a020; color: var(--accent-green); border: 1px solid #00e5a040; }
.badge-t { display: inline-block; padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.68rem; background: #ffd06020; color: var(--accent-yellow); border: 1px solid #ffd06040; }

/* ─── Command Flow ──────────────────────────────────────────── */
.cmd-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.cmd-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  position: relative;
}
.cmd-step:hover { border-color: var(--border-bright); }

.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.step-content h5 { font-size: 0.85rem; font-weight: 700; color: #e0eeff; margin-bottom: 6px; }
.step-content p  { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }
.step-content code {
  display: block;
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.67rem;
  white-space: pre;
  overflow-x: auto;
}

.cmd-arrow {
  align-self: center;
  font-size: 1.2rem;
  color: var(--accent-cyan);
  padding: 0 8px;
  padding-top: 20px;
}

.frame-diagram-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
}

/* ─── Pipeline Visual ───────────────────────────────────────── */
.pipeline-visual {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.pipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  min-width: 100px;
  text-align: center;
  font-size: 0.75rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.pipe-stage:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.pipe-stage.programmable { border-color: #00c8ff40; background: #00c8ff08; }

.stage-icon { font-size: 1.1rem; }
.stage-name { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; color: #e0eeff; }
.stage-detail { font-size: 0.67rem; color: var(--text-dim); line-height: 1.4; }

.pipe-arrow { color: var(--border-bright); font-size: 1rem; padding: 0 4px; flex-shrink: 0; align-self: center; }

.pipeline-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* ─── Struct Annotated ──────────────────────────────────────── */
.struct-annotated { overflow-x: auto; }

.struct-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--text-primary);
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  overflow-x: auto;
}
.sc-type    { color: #79c0ff; }
.sc-field   { color: var(--accent-cyan); }
.sc-comment { color: #6a8a6a; }
.sc-engine  { color: #7a9a5a; font-style: italic; }

/* ─── Descriptor Flow ───────────────────────────────────────── */
.descriptor-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 32px;
}

.desc-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.desc-layout { border-top: 2px solid var(--accent-orange); }
.desc-pool   { border-top: 2px solid var(--accent-cyan); }
.desc-set    { border-top: 2px solid var(--accent-green); }
.desc-bind   { border-top: 2px solid var(--accent-purple); }

.desc-box h5 { font-size: 0.82rem; font-weight: 700; color: #e0eeff; margin-bottom: 6px; }
.desc-box p  { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }
.desc-box code {
  display: block;
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.65rem;
  white-space: pre;
  overflow-x: auto;
}

.desc-arrow { align-self: center; font-size: 1.4rem; color: var(--border-bright); padding: 0 8px; padding-top: 20px; }

/* Set frequency table */
.set-freq-table { margin-top: 8px; }
.set-freq-table h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #e0eeff; margin-bottom: 14px; }
.set-badge {
  display: inline-block; padding: 2px 9px;
  border-radius: 4px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
}
.s0 { background: #ff6d2a20; color: var(--accent-orange); border: 1px solid #ff6d2a40; }
.s1 { background: #00c8ff20; color: var(--accent-cyan);   border: 1px solid #00c8ff40; }
.s2 { background: #b060ff20; color: var(--accent-purple); border: 1px solid #b060ff40; }
.s3 { background: #00e5a020; color: var(--accent-green);  border: 1px solid #00e5a040; }

/* ─── Render Pass Visual ────────────────────────────────────── */
.rp-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}
.rp-mid { align-self: center; font-size: 1.5rem; color: var(--border-bright); text-align: center; }

.rp-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.rp-renderpass { border-top: 2px solid var(--accent-orange); }
.rp-framebuffer { border-top: 2px solid var(--accent-cyan); }
.rp-box h5 { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: #e0eeff; margin-bottom: 14px; }

.rp-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.rp-subpass { background: #00c8ff08; border-color: #00c8ff30; }
.rp-tag { font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent-cyan); font-weight: 600; }

.rp-dep {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: #05080d;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  line-height: 1.7;
}

.rp-note {
  font-size: 0.78rem;
  color: var(--accent-yellow);
  background: #ffd06010;
  border: 1px solid #ffd06030;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
  line-height: 1.6;
}

.loadop-table h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #e0eeff; margin-bottom: 14px; }

/* ─── Sync Cards ────────────────────────────────────────────── */
.sync-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.sync-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
}
.sync-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

.sync-fence  { border-top: 3px solid var(--accent-red); }
.sync-sem    { border-top: 3px solid var(--accent-cyan); }
.sync-barrier{ border-top: 3px solid var(--accent-purple); }

.sync-icon { font-size: 1.6rem; margin-bottom: 10px; }
.sync-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 6px; }
.sync-scope {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: #00c8ff12;
  border: 1px solid #00c8ff30;
  border-radius: 3px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 10px;
}
.sync-card p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; }
.sync-card code {
  display: block;
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 0.67rem;
  white-space: pre;
  overflow-x: auto;
  margin-bottom: 10px;
}
.sync-note {
  font-size: 0.75rem;
  color: var(--accent-yellow);
  line-height: 1.5;
}

/* ─── Frame Timeline ────────────────────────────────────────── */
.timeline-wrap { margin-bottom: 40px; }
.timeline-legend {
  display: flex; gap: 16px;
  margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 0.7rem;
}
.tl-cpu   { color: var(--accent-cyan); }
.tl-gpu   { color: var(--accent-green); }
.tl-sem   { color: var(--accent-purple); }
.tl-fence { color: var(--accent-orange); }

.timeline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  overflow-x: auto;
}

.tl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  min-height: 36px;
}
.tl-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  width: 40px;
  flex-shrink: 0;
}
.tl-track {
  position: relative;
  flex: 1;
  height: 32px;
  background: #05080d;
  border-radius: 4px;
  border: 1px solid var(--border);
  min-width: 500px;
}

.tl-block {
  position: absolute;
  top: 4px; height: 24px;
  border-radius: 3px;
  display: flex; align-items: center;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  white-space: nowrap;
}
.tl-b-wait    { background: #1e2d3d; color: var(--text-dim); border: 1px solid var(--border); }
.tl-b-acquire { background: #1a2a1a; color: #60c060; border: 1px solid #2a4a2a; }
.tl-b-record  { background: #1a2038; color: var(--accent-cyan); border: 1px solid #2a3058; }
.tl-b-submit  { background: #2a1a10; color: var(--accent-orange); border: 1px solid #4a2a18; }
.tl-b-present { background: #2a1a30; color: var(--accent-purple); border: 1px solid #3a2a50; }
.tl-b-next    { background: #131a20; color: var(--text-dim); border: 1px solid var(--border); }
.tl-b-render  { background: #0f2820; color: var(--accent-green); border: 1px solid #1a4030; }
.tl-b-display { background: #1a2830; color: var(--accent-cyan); border: 1px solid #2a3848; }

.tl-signal, .tl-fence-signal {
  position: absolute;
  top: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0 8px;
  height: 24px;
  display: flex; align-items: center;
  border-radius: 3px;
  white-space: nowrap;
}
.tl-signal { background: #2a1a40; color: var(--accent-purple); border: 1px solid #4a2a60; }
.tl-sig-r  { background: #1a2a40; color: var(--accent-cyan); border: 1px solid #2a4060; }
.tl-fence-signal { background: #2a1a10; color: var(--accent-orange); border: 1px solid #4a3010; }

/* Swapchain */
.swapchain-explain {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 20px;
}
.swapchain-explain h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #e0eeff; margin-bottom: 14px; }

.sc-boxes { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sc-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-primary);
  background: var(--bg-surface);
}
.sc-front { border-color: var(--accent-orange); }
.sc-back  { border-color: var(--accent-green); }
.sc-third { border-color: var(--accent-cyan); }
.sc-state { font-size: 0.65rem; color: var(--text-dim); }
.sc-arrow { font-size: 1.2rem; color: var(--border-bright); }
.sc-note  { font-size: 0.78rem; color: var(--text-secondary); }

/* ─── Image Layout Grid ─────────────────────────────────────── */
.layout-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 20px;
}

.layout-node {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.5;
}
.ln-undef    { border-color: var(--text-dim); color: var(--text-dim); }
.ln-transfer { border-color: var(--accent-orange); background: #ff6d2a0a; }
.ln-shader   { border-color: var(--accent-purple); background: #b060ff0a; }
.ln-color    { border-color: var(--accent-green);  background: #00e5a00a; }
.ln-present  { border-color: var(--accent-cyan);   background: #00c8ff0a; }

.layout-trans {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px 4px 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.layout-trans span:first-child { color: var(--accent-cyan); }
.layout-trans span:last-child  { color: var(--text-dim); }

.layout-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-cyan);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* ─── RHI Stack ─────────────────────────────────────────────── */
.rhi-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 700px;
  margin-bottom: 32px;
}

.rhi-layer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.rhi-engine { border-color: var(--accent-orange); background: #ff6d2a08; }
.rhi-rhi    { border-color: var(--accent-cyan);   background: #00c8ff08; }
.rhi-backend{ border-color: var(--accent-green);  background: #00e5a008; }
.rhi-gpu    { border-color: var(--border-bright); }

.rhi-label { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #e0eeff; }
.rhi-apis  { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary); display: flex; gap: 10px; flex-wrap: wrap; }

.be-vk  { color: var(--accent-red-bright, #e04040); background: #e0404015; padding: 2px 8px; border-radius: 3px; border: 1px solid #e0404030; }
.be-dx  { color: var(--accent-cyan);   background: #00c8ff10; padding: 2px 8px; border-radius: 3px; border: 1px solid #00c8ff30; }
.be-mtl { color: var(--accent-orange); background: #ff6d2a10; padding: 2px 8px; border-radius: 3px; border: 1px solid #ff6d2a30; }
.be-gl  { color: var(--text-dim);      background: #ffffff08; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--border); }

.rhi-arrow-down { font-size: 0.8rem; color: var(--text-dim); padding: 4px 0; font-family: var(--font-mono); }

/* Feature List */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 5px 0 5px 18px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  position: relative;
}
.feature-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--accent-cyan);
  font-size: 0.7rem;
}
.feature-list li:last-child { border-bottom: none; }

/* Dir Tree */
.dir-tree {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-code);
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  line-height: 1.8;
}

/* ─── Bindless Compare ──────────────────────────────────────── */
.bindless-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.bl-traditional, .bl-bindless {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.bl-traditional { border-top: 3px solid var(--accent-red); }
.bl-bindless    { border-top: 3px solid var(--accent-green); }
.bl-traditional h4, .bl-bindless h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #e0eeff; margin-bottom: 14px; }

.bl-flow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bl-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #05080d;
  color: var(--text-secondary);
}
.bl-global { border-color: var(--accent-green); color: var(--accent-green); background: #00e5a008; }
.bl-push   { color: var(--accent-cyan); }
.bl-step-cost {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-red);
  padding-left: 8px;
}
.bl-problem  { font-size: 0.78rem; color: var(--accent-red); line-height: 1.6; }
.bl-solution {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: #05080d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  line-height: 1.8;
}

/* ─── Multi-thread Diagram ──────────────────────────────────── */
.mt-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.mt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 700px;
}
.mt-main .mt-thread { color: var(--accent-cyan); }
.mt-worker .mt-thread { color: var(--text-dim); }

.mt-thread {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  width: 90px;
  flex-shrink: 0;
}
.mt-ops { display: flex; gap: 6px; flex: 1; position: relative; }

.mt-op {
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  white-space: nowrap;
}
.mt-begin  { background: #1a2838; color: var(--accent-cyan); border: 1px solid #2a4058; }
.mt-cull   { background: #1a2020; color: var(--accent-green); border: 1px solid #2a3828; }
.mt-dispatch{ background: #2a1a10; color: var(--accent-orange); border: 1px solid #4a3020; }
.mt-merge  { background: #2a1a30; color: var(--accent-purple); border: 1px solid #3a2a50; }
.mt-submit { background: #2a0a0a; color: var(--accent-red); border: 1px solid #4a1a1a; }
.mt-record { background: #0f2020; color: var(--accent-green); border: 1px solid #1a3828; }

.mt-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-purple);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  line-height: 1.7;
}

/* ─── Shader Pipeline ───────────────────────────────────────── */
.shader-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
}

.sp-node {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: center;
  flex-shrink: 0;
}
.sp-hlsl   { border-color: var(--accent-cyan); }
.sp-spirv  { border-color: var(--accent-orange); }
.sp-native { border-color: var(--accent-green); }
.sp-node small { display: block; font-size: 0.65rem; color: var(--text-dim); margin-top: 3px; }

.sp-arrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* PSO Cache */
.pso-cache {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.pso-cache h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #e0eeff; margin-bottom: 16px; }
.pso-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pso-problem, .pso-solution { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.pso-problem h5 { color: var(--accent-red); font-size: 0.82rem; margin-bottom: 8px; }
.pso-solution h5 { color: var(--accent-green); font-size: 0.82rem; margin-bottom: 8px; }
.pso-problem p, .pso-solution p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; }
.pso-solution ul { list-style: none; padding: 0; }
.pso-solution li { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; padding: 4px 0 4px 16px; position: relative; border-bottom: 1px solid var(--border); }
.pso-solution li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-green); font-size: 0.7rem; }
.pso-solution li:last-child { border-bottom: none; }

/* ─── Compare Tabs ──────────────────────────────────────────── */
.compare-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.tab-btn:hover { border-color: var(--border-bright); color: var(--text-primary); }
.tab-active { background: #0d1e2e; border-color: var(--accent-cyan); color: var(--accent-cyan); }

.tab-content { display: none; overflow-x: auto; }
.tab-active-content { display: block; }

/* Compare Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 700px;
}
.compare-table th {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
  line-height: 1.5;
}
.compare-table tr:hover td { background: var(--bg-card-hover); }
.compare-table td:first-child { color: var(--text-primary); font-weight: 600; font-size: 0.78rem; white-space: nowrap; }

.col-gl { color: #88aabb; }
.col-vk { color: var(--vk-red-bright) !important; }
.col-dx { color: #5599cc; }
.col-mt { color: #cc8855; }

.compare-table th.col-gl { background: #1a2530; }
.compare-table th.col-vk { background: #2a1010; color: var(--vk-red-bright); }
.compare-table th.col-dx { background: #101830; }
.compare-table th.col-mt { background: #201808; }

/* ─── History Timeline ──────────────────────────────────────── */
.hist-timeline {
  position: relative;
  padding-left: 100px;
}
.hist-timeline::before {
  content: '';
  position: absolute;
  left: 72px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-bright) 10%, var(--border-bright) 90%, transparent);
}

.hist-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
}

.hist-year {
  position: absolute;
  left: -100px;
  width: 88px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dim);
  padding-top: 2px;
}

.hist-dot {
  position: absolute;
  left: -18px;
  top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-bright);
  border: 2px solid var(--bg-base);
  flex-shrink: 0;
}
.hist-dot-major  { background: var(--accent-cyan); width: 14px; height: 14px; left: -20px; top: 6px; }
.hist-dot-vk     { background: var(--vk-red-bright); width: 16px; height: 16px; left: -21px; top: 5px; box-shadow: 0 0 12px var(--vk-red); }
.hist-dot-future { background: var(--accent-green); border-color: var(--bg-base); animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 #00e5a040; }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.hist-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  flex: 1;
  transition: border-color 0.2s;
}
.hist-content:hover { border-color: var(--border-bright); }
.hist-content h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: #e0eeff; margin-bottom: 6px; }
.hist-content p  { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

.hist-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 10px;
  border-radius: 3px;
  background: #00c8ff15;
  color: var(--accent-cyan);
  border: 1px solid #00c8ff30;
  letter-spacing: 0.08em;
}
.hist-tag-vk {
  background: #e0404015;
  color: var(--vk-red-bright);
  border-color: #e0404030;
}


/*------------------------------------------*/

/* ── Floating controls ── */
.floating-controls {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.float-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-code);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  color: var(--accent-orange);


}
.float-btn:hover {
  /* color: var(--accent); */
  border-color: var(--accent-orange);
  background: rgba(0,229,195,0.08);
  text-decoration: none;


}
.top-btn { opacity: 0; pointer-events: none; transition: opacity 0.2s, all 0.2s; }
.top-btn.show { opacity: 1; pointer-events: auto; }

.float-btn.home-btn{
    color: var(--accent-cyan);
  }

.float-btn.home-btn:hover{
    border-color: var(--accent-cyan);
  }

/* ─── Site Footer ───────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent-cyan); }

.footer-note { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .sync-cards { grid-template-columns: 1fr; }
  .bindless-compare { grid-template-columns: 1fr; }
  .pso-two { grid-template-columns: 1fr; }
  .hero { flex-direction: column; min-height: auto; padding-top: 80px; }
  .hero-diagram { width: 100%; }
  .cmd-flow { grid-template-columns: 1fr; }
  .cmd-arrow { transform: rotate(90deg); }
  .descriptor-flow { grid-template-columns: 1fr; }
  .desc-arrow { transform: rotate(90deg); }
  .rp-visual { grid-template-columns: 1fr; }
  .rp-mid { display: none; }
}

@media (max-width: 768px) {
  .top-nav { display: none; }
  .pipeline-visual { gap: 0; }
  .pipe-arrow { display: none; }
  .history-timeline { padding-left: 60px; }
  .hist-year { left: -60px; font-size: 0.8rem; }
}
