/* ═══════════════════════════════════════════════════════
   @FROGWEBP — THE TERMINAL SCHEMA v1.2
   Shared stylesheet · maps 1:1 to future Hashnode CSS injection
   ═══════════════════════════════════════════════════════ */

:root {
  --void:      #07090E;
  --s01:       #0C1119;
  --s02:       #121C28;
  --s03:       #1A2535;
  --border:    #1E2D42;
  --border-hi: #2A4060;
  --jade:      #00E890;
  --ice:       #00AAFF;
  --heat:      #FF4400;
  --amber:     #FFC000;
  --violet:    #8866FF;
  --chalk:     #EEF2FF;
  --ghost:     #8A9DBF;
  --steel:     #3D5070;

  --f-display: 'Barlow Condensed', sans-serif;
  --f-body:    'Space Grotesk', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;
  --f-led:     'Chakra Petch', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--chalk);
  font-family: var(--f-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ═══ NAV ═══ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(7,9,14,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.site-nav::before { content: ''; display: block; height: 2px; background: var(--jade); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  height: 50px; display: flex; align-items: center; gap: 16px;
}
.nav-brand {
  font-family: var(--f-mono); font-size: 14px; font-weight: 700;
  color: var(--jade); letter-spacing: 0.1em; text-decoration: none;
}
.nav-dot { color: var(--border); font-size: 10px; }
.nav-sub { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.1em; }
.nav-links { margin-left: auto; display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--f-mono); font-size: 11px; color: var(--steel);
  text-decoration: none; letter-spacing: 0.14em; transition: color 0.15s;
  padding-bottom: 3px;
}
.nav-links a:hover { color: var(--jade); }
.nav-links a.active { color: var(--jade); border-bottom: 1px solid var(--jade); }

/* ═══ BUTTONS ═══ */
.btn-primary {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em;
  padding: 13px 28px; background: var(--jade); color: var(--void);
  border: none; cursor: pointer; font-weight: 700;
  text-decoration: none; display: inline-block; transition: background 0.15s;
}
.btn-primary:hover { background: #00cc7a; }
.btn-ghost {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em;
  padding: 13px 28px; background: transparent; color: var(--ghost);
  border: 0.5px solid var(--border); cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--jade); color: var(--chalk); }
.btn-ghost.sm { font-size: 11px; padding: 10px 22px; }

/* ═══ LAYOUT ═══ */
.wrap { max-width: 1120px; margin: 0 auto; padding: 72px 28px; }
.wrap.tight { padding-top: 52px; padding-bottom: 52px; }
hr.div { border: none; border-top: 0.5px solid var(--border); }
.sec-label {
  font-family: var(--f-mono); font-size: 11px; color: var(--jade);
  letter-spacing: 0.28em; margin-bottom: 32px;
}
.sec-label.muted { color: var(--steel); }
.sec-label .cnt { color: var(--steel); margin-left: 10px; letter-spacing: 0.1em; }

/* ═══ HERO (landing) ═══ */
.hero {
  min-height: 100vh; padding-top: 50px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg,
      rgba(7,9,14,0.82) 0%,
      rgba(7,9,14,0.18) 42%,
      rgba(7,9,14,0.38) 66%,
      rgba(7,9,14,0.88) 100%),
    url('./bg-binary.jpg') center 68% / cover no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,232,144,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,232,144,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none; z-index: 0;
}
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 72px 28px 48px;   /* top padding guarantees air below the fixed nav even when flex-centering runs out of room */
  width: 100%; position: relative; z-index: 1;
}
.hero-eyebrow {
  font-family: var(--f-mono); font-size: 11px; color: var(--steel);
  letter-spacing: 0.22em; margin-bottom: 18px;
  display: flex; align-items: center; gap: 22px;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--jade); flex-shrink: 0; }
.hero-eyebrow .lit { color: var(--ghost); }

.hero-bracket { position: relative; display: inline-block; padding: 12px 0 18px; }
.hero-bracket::before, .hero-bracket::after, .hb-bl, .hb-br {
  content: ''; position: absolute; width: 16px; height: 16px;
  border-color: var(--jade); border-style: solid;
}
.hero-bracket::before { top: 0; left: 0;  border-width: 2px 0 0 2px; }
.hero-bracket::after  { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hb-bl { bottom: 0; left: 0;  border-width: 0 0 2px 2px; border-color: rgba(0,232,144,0.3); }
.hb-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; border-color: rgba(0,232,144,0.3); }

.hero-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(58px, 9.5vw, 112px);
  line-height: 0.91; letter-spacing: 0.01em; color: var(--chalk);
}
.hero-title .jade  { color: var(--jade); }
.hero-title .ghost { color: var(--border-hi); }

.hero-deck {
  max-width: 540px; font-size: 14px; color: var(--ghost);
  line-height: 1.75; margin: 22px 0 32px;
}
.hero-deck strong { color: var(--chalk); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 52px; }

.hero-stats {
  display: flex; border-left: 3px solid var(--jade); padding-left: 18px;
  border-top: 0.5px solid var(--border); padding-top: 18px;
}
.h-stat { padding-right: 36px; border-right: 0.5px solid var(--border); margin-right: 36px; }
.h-stat:last-child { border-right: none; margin-right: 0; }
.h-stat-val {
  font-family: var(--f-led); font-size: 26px; font-weight: 700;
  color: var(--chalk); line-height: 1; margin-bottom: 4px;
}
.h-stat-val.jade  { color: var(--jade); }
.h-stat-val.ice   { color: var(--ice); }
.h-stat-val.amber { color: var(--amber); }
.h-stat-lbl { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.15em; }

.hero-scan {
  position: absolute; bottom: 28px; right: 28px;
  font-family: var(--f-mono); font-size: 10px; color: var(--border);
  text-align: right; line-height: 2; z-index: 1;
}
.hero-scan .lit { color: var(--steel); }
.hero-scan .go  { color: var(--jade); }
.hero-scanline {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(0,232,144,0.5) 35%, transparent);
}

/* ═══ PAGE HEAD (sub-pages: codex / log / article) ═══ */
.page-head {
  padding-top: 50px; position: relative; overflow: hidden;
  border-bottom: 0.5px solid var(--border);
  background:
    linear-gradient(180deg, rgba(7,9,14,0.88) 0%, rgba(7,9,14,0.96) 100%),
    url('./bg-binary.jpg') center 85% / cover no-repeat;
}
.page-head-inner { max-width: 1120px; margin: 0 auto; padding: 56px 28px 44px; position: relative; }

.breadcrumb {
  font-family: var(--f-mono); font-size: 11px; color: var(--steel);
  letter-spacing: 0.12em; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--steel); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--jade); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .cur { color: var(--jade); }

.page-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 64px); line-height: 0.95;
  letter-spacing: 0.01em; color: var(--chalk); margin-bottom: 14px;
}
.page-title .jade { color: var(--jade); }
.page-deck { max-width: 560px; font-size: 13px; color: var(--ghost); line-height: 1.7; }

.page-scan {
  position: absolute; top: 60px; right: 28px;
  font-family: var(--f-mono); font-size: 10px; color: var(--border);
  text-align: right; line-height: 2;
}
.page-scan .lit { color: var(--steel); }
.page-scan .go  { color: var(--jade); }

/* ═══ IDENTITY STRIP ═══ */
.id-strip { background: var(--s01); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.id-inner {
  max-width: 1120px; margin: 0 auto; padding: 28px;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.id-text { flex: 1; min-width: 260px; }
.id-handle {
  font-family: var(--f-display); font-weight: 800; font-size: 20px;
  text-transform: uppercase; color: var(--jade);
  letter-spacing: 0.05em; margin-bottom: 5px;
}
.id-bio { font-family: var(--f-read); font-size: 14px; color: var(--ink); line-height: 1.78; max-width: 540px; }
.id-bio strong { color: var(--chalk); font-weight: 500; }
.id-bio p + p { margin-top: 0.95em; }
.id-thesis { color: var(--chalk); margin-top: 1.2em; }
.id-platforms { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.platform-link {
  font-family: var(--f-mono); font-size: 11px; color: var(--steel);
  border: 0.5px solid var(--border); padding: 6px 14px;
  text-decoration: none; letter-spacing: 0.1em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.platform-link::before { content: '↗'; font-size: 10px; opacity: 0.5; }
.platform-link:hover { border-color: var(--jade); color: var(--jade); }
.platform-link.active { color: var(--jade); border-color: rgba(0,232,144,0.3); }

/* ═══ PILLARS ═══ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.pillar { background: var(--s01); padding: 28px 26px 26px; position: relative; transition: background 0.15s; }
.pillar:hover { background: #0F1620; }
.pillar::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; }
.pillar::after  { content: ''; position: absolute; top: 0; left: 3px; right: 0; height: 2px; }
.pillar-jade::before  { background: var(--jade); }
.pillar-ice::before   { background: var(--ice); }
.pillar-amber::before { background: var(--amber); }
.pillar-jade::after   { background: rgba(0,232,144,0.06); }
.pillar-ice::after    { background: rgba(0,170,255,0.06); }
.pillar-amber::after  { background: rgba(255,192,0,0.06); }
.pillar-violet::before { background: var(--violet); }
.pillar-violet::after  { background: rgba(136,102,255,0.06); }

.p-status {
  font-family: var(--f-led); font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.p-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.jade-dot  { background: var(--jade);  box-shadow: 0 0 6px rgba(0,232,144,0.7); }
.ice-dot   { background: var(--ice);   box-shadow: 0 0 6px rgba(0,170,255,0.7); }
.amber-dot { background: var(--amber); box-shadow: 0 0 6px rgba(255,192,0,0.7); }
.pillar-jade  .p-status { color: var(--jade); }
.pillar-ice   .p-status { color: var(--ice); }
.pillar-amber  .p-status { color: var(--amber); }
.pillar-violet .p-status { color: var(--violet); }

.p-title {
  font-family: var(--f-display); font-weight: 800; font-size: 26px;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--chalk); margin-bottom: 12px; line-height: 1;
}
.p-desc { font-size: 13px; color: var(--ghost); line-height: 1.7; margin-bottom: 18px; }

/* ═══ TAGS & BADGES ═══ */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--f-mono); font-size: 10px; padding: 2px 8px;
  border: 0.5px solid; letter-spacing: 0.05em;
}
.tag-jade  { color: var(--jade);  border-color: rgba(0,232,144,0.25); background: rgba(0,232,144,0.04); }
.tag-ice   { color: var(--ice);   border-color: rgba(0,170,255,0.25); background: rgba(0,170,255,0.04); }
.tag-amber { color: var(--amber); border-color: rgba(255,192,0,0.25);  background: rgba(255,192,0,0.04); }
.tag-ghost { color: var(--ghost); border-color: var(--border); }

.badge {
  font-family: var(--f-led); font-size: 11px; font-weight: 600;
  padding: 2px 9px; border: 0.5px solid; display: inline-block;
  letter-spacing: 0.06em;
}
.badge-jade  { color: var(--jade);  border-color: rgba(0,232,144,0.3); background: rgba(0,232,144,0.05); }
.badge-amber { color: var(--amber); border-color: rgba(255,192,0,0.3);  background: rgba(255,192,0,0.05); }
.badge-ice   { color: var(--ice);   border-color: rgba(0,170,255,0.3); background: rgba(0,170,255,0.05); }
.badge-heat  { color: var(--heat);  border-color: rgba(255,68,0,0.3);  background: rgba(255,68,0,0.05); }
.badge-steel { color: var(--steel); border-color: var(--border); }

/* ═══ PROJECT CARDS ═══ */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proj-card {
  background: var(--s01); border: 0.5px solid var(--border);
  border-left: 3px solid; padding: 26px 28px;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
  transition: border-color 0.15s;
}
a.proj-card:hover { border-color: var(--border-hi); border-left-color: var(--jade); }
a.proj-card.secondary:hover { border-left-color: var(--ice); }
a.proj-card.tertiary:hover  { border-left-color: var(--violet); }
.proj-card.featured { grid-column: span 2; border-left-color: var(--jade); }
.proj-card.featured::before {
  content: ''; position: absolute; top: 0; left: 3px; right: 0; height: 2px;
  background: var(--jade);
}
.proj-card.secondary { border-left-color: var(--ice); }
.proj-card.archive   { border-left-color: var(--border-hi); }

.proj-num {
  position: absolute; right: 20px; bottom: -10px;
  font-family: var(--f-display); font-weight: 800; font-size: 96px;
  color: rgba(255,255,255,0.02); line-height: 1;
  pointer-events: none; user-select: none;
}
.proj-eyebrow { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.2em; margin-bottom: 5px; }
.proj-titlerow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.proj-title {
  font-family: var(--f-display); font-weight: 800; font-size: 28px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--chalk);
}
.proj-title.sm { font-size: 22px; }
.proj-desc { font-size: 13px; color: var(--ghost); line-height: 1.65; margin-bottom: 16px; max-width: 680px; }
.proj-desc.dim { color: var(--steel); font-size: 12px; }

/* pipeline diagram */
.pipeline {
  display: flex; align-items: center;
  background: var(--void); border: 0.5px solid var(--border);
  padding: 10px 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.p-node {
  font-family: var(--f-led); font-size: 11px; font-weight: 700;
  color: var(--steel); letter-spacing: 0.08em;
  padding: 3px 9px; border: 0.5px solid var(--border); white-space: nowrap;
}
.p-node.active { color: var(--jade); border-color: rgba(0,232,144,0.3); background: rgba(0,232,144,0.05); }
.p-node.ice    { color: var(--ice);  border-color: rgba(0,170,255,0.3); background: rgba(0,170,255,0.04); }
.p-arrow { color: var(--border); font-size: 12px; padding: 0 5px; font-family: var(--f-mono); }
.p-spacer { flex: 1; }
.p-stack {
  font-family: var(--f-mono); font-size: 10px; color: var(--steel);
  letter-spacing: 0.1em; border-left: 0.5px solid var(--border);
  padding-left: 12px; margin-left: 8px; white-space: nowrap;
}

.progress-track { background: var(--s03); height: 2px; }
.progress-fill  { height: 2px; background: var(--jade); }
.prog-meta {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 11px; color: var(--steel);
  margin: 5px 0 16px;
}
.entries-lbl {
  font-family: var(--f-mono); font-size: 10px; color: var(--steel);
  letter-spacing: 0.18em; border-top: 0.5px solid var(--border);
  padding-top: 12px; margin-bottom: 8px;
}
.entry-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; padding: 6px 0;
  border-bottom: 0.5px solid rgba(30,45,66,0.4);
}
.e-arrow { color: var(--jade); flex-shrink: 0; }
.e-arrow.dim { color: var(--steel); }
.e-title { color: var(--ghost); flex: 1; }
.e-title.dim { color: var(--steel); }
.e-date { color: var(--steel); white-space: nowrap; }

/* ═══ POST CARDS GRID ═══ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.post-card {
  background: var(--s01); display: flex; flex-direction: column;
  cursor: pointer; position: relative; transition: background 0.15s;
  text-decoration: none; color: inherit;
}
.post-card:hover { background: #0F1620; }
.post-card:hover .pc-arrow { color: var(--jade); }

.pc-cover { height: 160px; position: relative; overflow: hidden; flex-shrink: 0; }
.cover-sys {
  background:
    repeating-linear-gradient(0deg, rgba(0,232,144,0.04) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #07090E 0%, #0B1A10 60%, #091409 100%);
}
.cover-sys::before  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--jade); }
.cover-con {
  background:
    repeating-linear-gradient(90deg, rgba(0,170,255,0.03) 0 1px, transparent 1px 28px),
    linear-gradient(145deg, #07090E 0%, #080F1A 60%, #060C16 100%);
}
.cover-con::before  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--ice); }
.cover-life { background: linear-gradient(145deg, #07090E 0%, #120D06 55%, #0F0A04 100%); }
.cover-life::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--amber); }

.pc-cover.has-photo { background-size: cover; background-position: center; }
.pc-cover.has-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,14,0.2) 0%, rgba(7,9,14,0.6) 100%);
}

.cover-deco { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0.13; }
.deco-terminal {
  font-family: var(--f-mono); font-size: 11px; color: var(--jade);
  text-align: left; line-height: 2.1; white-space: pre; padding: 0 18px;
}
.deco-schema { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.schema-node {
  width: 56px; height: 15px; border: 1px solid var(--ice);
  font-family: var(--f-mono); font-size: 8px; color: var(--ice);
  display: flex; align-items: center; justify-content: center;
}
.schema-conn { width: 1px; height: 12px; background: var(--ice); }
.deco-life {
  font-family: var(--f-display); font-weight: 800; font-size: 52px;
  text-transform: uppercase; color: var(--amber);
  letter-spacing: 0.05em; text-align: center; line-height: 0.95;
}
.br-tl, .br-tr { position: absolute; width: 10px; height: 10px; border-color: rgba(255,255,255,0.15); border-style: solid; }
.br-tl { top: 8px; left: 8px;  border-width: 1.5px 0 0 1.5px; }
.br-tr { top: 8px; right: 8px; border-width: 1.5px 1.5px 0 0; }

.pc-bar { height: 3px; width: 100%; flex-shrink: 0; }
.bar-sys  { background: var(--jade); }
.bar-con  { background: var(--ice); }
.bar-life { background: var(--amber); }

.pc-body { padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.pc-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pc-type {
  font-family: var(--f-led); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; padding: 2px 7px; border: 0.5px solid;
}
.type-sys  { color: var(--jade);  border-color: rgba(0,232,144,0.25); }
.type-con  { color: var(--ice);   border-color: rgba(0,170,255,0.25); }
.type-life { color: var(--amber); border-color: rgba(255,192,0,0.25); }
.pc-project { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.1em; }
.pc-title {
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--chalk); line-height: 1.1; margin-bottom: 8px;
}
.pc-excerpt { font-size: 12px; color: var(--ghost); line-height: 1.65; flex: 1; }
.pc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 10px; border-top: 0.5px solid var(--border);
  font-family: var(--f-mono); font-size: 10px; color: var(--steel);
}
.pc-arrow { font-size: 12px; color: var(--border); transition: color 0.15s; }

/* ═══ CODEX TIMELINE ═══ */
.codex-detail { margin-top: 14px; }
.timeline { display: flex; }
.tl-line { width: 2px; background: var(--border); margin: 6px 18px 0 7px; flex-shrink: 0; }
.tl-entries { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.tl-entry {
  background: var(--s01); border: 0.5px solid var(--border);
  padding: 16px 18px; position: relative;
  text-decoration: none; color: inherit; display: block;
  transition: border-color 0.15s, background 0.15s;
}
.tl-entry:hover { border-color: var(--border-hi); background: #0F1620; }
.tl-entry.active-entry { border-color: rgba(0,232,144,0.45); }
.tl-entry.active-entry:hover { border-color: var(--jade); }
.tl-dot { position: absolute; left: -23px; top: 18px; width: 8px; height: 8px; }
.tl-dot.jade { background: var(--jade); box-shadow: 0 0 8px rgba(0,232,144,0.5); }
.tl-dot.dim  { background: var(--border); }
.tl-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--f-mono); font-size: 11px; }
.tl-num { font-family: var(--f-led); font-weight: 700; color: var(--steel); letter-spacing: 0.1em; }
.tl-num.lit { color: var(--jade); }
.tl-date { color: var(--steel); margin-left: auto; }
.tl-title { font-size: 14px; font-weight: 500; color: var(--chalk); margin-bottom: 4px; }
.tl-desc { font-size: 12px; color: var(--ghost); line-height: 1.6; margin-bottom: 10px; }
.tl-more {
  padding: 12px; font-family: var(--f-mono); font-size: 11px;
  color: var(--steel); border: 0.5px dashed var(--border);
  text-align: center; letter-spacing: 0.1em;
  text-decoration: none; display: block; transition: color 0.15s, border-color 0.15s;
}
.tl-more:hover { color: var(--ghost); border-color: var(--border-hi); }

/* codex page stat band */
.codex-stats {
  display: flex; gap: 1px; background: var(--border);
  border: 0.5px solid var(--border); margin-bottom: 40px;
}
.cs-cell { flex: 1; background: var(--s01); padding: 16px 20px; }
.cs-val  { font-family: var(--f-led); font-size: 22px; font-weight: 700; color: var(--chalk); line-height: 1.1; }
.cs-val.jade { color: var(--jade); } .cs-val.ice { color: var(--ice); } .cs-val.amber { color: var(--amber); }
.cs-lbl  { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.15em; margin-top: 3px; }

/* ═══ LOG ARCHIVE ═══ */
.log-rss-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.log-rss-link {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--amber); border: 0.5px solid rgba(255,192,0,0.3);
  padding: 5px 12px; text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.log-rss-link:hover { border-color: var(--amber); color: var(--chalk); }
.log-rss-note { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.06em; }

.filter-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.filter-lbl { font-family: var(--f-mono); font-size: 11px; color: var(--steel); letter-spacing: 0.15em; margin-right: 6px; }
.filter-btn {
  font-family: var(--f-led); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; padding: 6px 16px;
  background: var(--s01); border: 0.5px solid var(--border);
  color: var(--ghost); cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.filter-btn:hover { border-color: var(--border-hi); color: var(--chalk); }
.filter-btn.active { border-color: var(--jade); color: var(--jade); }
.filter-btn.active.f-con  { border-color: var(--ice);   color: var(--ice); }
.filter-btn.active.f-life { border-color: var(--amber); color: var(--amber); }
.log-count {
  margin-left: auto; font-family: var(--f-mono);
  font-size: 11px; color: var(--steel); letter-spacing: 0.1em;
}
.log-count b { color: var(--jade); font-weight: 700; }

.log-list { border-top: 0.5px solid var(--border); }
.log-row {
  display: grid;
  grid-template-columns: 64px 86px 1fr auto 24px;
  gap: 14px; align-items: center;
  padding: 14px 10px;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background 0.1s;
}
.log-row:hover { background: var(--s01); }
.log-row:hover .lr-arrow { color: var(--jade); }
.lr-date { font-family: var(--f-mono); font-size: 11px; color: var(--steel); white-space: nowrap; }
.lr-title { font-size: 13px; color: var(--chalk); line-height: 1.4; }
.lr-sub {
  display: block; font-family: var(--f-mono); font-size: 10px;
  color: var(--steel); margin-top: 2px; letter-spacing: 0.06em;
}
.lr-read { font-family: var(--f-mono); font-size: 10px; color: var(--steel); white-space: nowrap; }
.lr-arrow { font-family: var(--f-mono); font-size: 13px; color: var(--border); text-align: right; transition: color 0.15s; }

/* ═══ ARTICLE ═══ */
.article-shell { max-width: 860px; margin: 0 auto; padding: 0 28px 72px; }

.article-head {
  background: var(--s01); border: 0.5px solid var(--border);
  border-left: 4px solid var(--jade);
  padding: 32px 36px; position: relative;
  margin-top: 0; margin-bottom: 36px;
}
.a-tags { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.a-eyebrow { font-family: var(--f-mono); font-size: 11px; color: var(--steel); letter-spacing: 0.14em; margin-bottom: 10px; }
.a-eyebrow .lit { color: var(--jade); }
.a-title-1, .a-title-2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 44px);
  text-transform: uppercase; line-height: 0.98; letter-spacing: 0.02em;
}
.a-title-1 { color: var(--chalk); }
.a-title-2 { color: var(--jade); margin-bottom: 14px; }
.a-deck { font-size: 13px; color: var(--ghost); max-width: 560px; line-height: 1.7; margin-bottom: 18px; }
.a-byline {
  border-top: 0.5px solid var(--border); padding-top: 14px;
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; color: var(--steel);
}
.a-byline .author { color: var(--ghost); }
.scan-bars { position: absolute; right: 28px; top: 28px; display: flex; flex-direction: column; gap: 4px; opacity: 0.25; }
.scan-bar { height: 1.5px; background: var(--ice); }

/* prose */
.prose { font-size: 14px; color: var(--ghost); line-height: 1.85; }
.prose > * + * { margin-top: 18px; }
.prose p strong { color: var(--chalk); font-weight: 500; }
.prose a { color: var(--jade); text-decoration: none; border-bottom: 1px solid rgba(0,232,144,0.3); }
.prose a:hover { border-bottom-color: var(--jade); }
.prose code {
  font-family: var(--f-mono); font-size: 12px;
  background: var(--s02); border: 0.5px solid var(--border);
  padding: 1px 6px; color: var(--ice);
}
.prose ul { padding-left: 0; list-style: none; }
.prose ul li {
  padding-left: 20px; position: relative; margin-top: 8px;
  font-size: 13px;
}
.prose ul li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--jade); font-family: var(--f-mono);
}
.yt-embed {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden; margin: 32px 0;
}
.yt-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}

.a-h2 {
  font-family: var(--f-display); font-weight: 800; font-size: 26px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--chalk);
  margin-top: 44px !important; line-height: 1;
  display: flex; align-items: baseline; gap: 12px;
}
.h2-idx { font-family: var(--f-mono); font-size: 12px; color: var(--jade); letter-spacing: 0.15em; font-weight: 400; }

/* code block */
.code-block { border: 0.5px solid var(--border); background: #020407; }
.cb-head {
  display: flex; align-items: center; gap: 10px;
  background: var(--s01); border-bottom: 0.5px solid var(--border);
  padding: 7px 14px;
}
.cb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); opacity: 0.7; }
.cb-file { font-family: var(--f-mono); font-size: 11px; color: var(--ghost); }
.cb-lang { margin-left: auto; font-family: var(--f-led); font-size: 10px; font-weight: 600; color: var(--steel); letter-spacing: 0.15em; }
.cb-body {
  font-family: var(--f-mono); font-size: 12px; line-height: 1.85;
  padding: 14px 16px; overflow-x: auto; color: var(--ghost);
}
.cb-body .k { color: var(--violet); }   /* keyword */
.cb-body .f { color: var(--ice); }      /* function/table */
.cb-body .s { color: var(--jade); }     /* string */
.cb-body .c { color: var(--steel); }    /* comment */
.cb-body .n { color: var(--amber); }    /* number */

/* terminal block */
.terminal {
  background: #020407; border: 0.5px solid var(--border);
  font-family: var(--f-mono); font-size: 12px; line-height: 2;
  padding: 14px 18px; overflow-x: auto;
}
.t-jade  { color: var(--jade); }
.t-chalk { color: var(--chalk); }
.t-steel { color: var(--steel); }
.t-amber { color: var(--amber); }
.t-heat  { color: var(--heat); }
.t-ice   { color: var(--ice); }
.t-ghost { color: var(--ghost); }

/* callouts */
.callout { border-left: 3px solid; padding: 12px 16px; }
.c-ice    { border-color: var(--ice);    background: rgba(0,170,255,0.04); }
.c-amber  { border-color: var(--amber);  background: rgba(255,192,0,0.04); }
.c-heat   { border-color: var(--heat);   background: rgba(255,68,0,0.04); }
.c-violet { border-color: var(--violet); background: rgba(136,102,255,0.04); }
.c-label { font-family: var(--f-mono); font-size: 11px; margin-bottom: 5px; letter-spacing: 0.1em; }
.c-ice    .c-label { color: var(--ice); }
.c-amber  .c-label { color: var(--amber); }
.c-heat   .c-label { color: var(--heat); }
.c-violet .c-label { color: var(--violet); }
.c-body { font-size: 12.5px; color: var(--ghost); line-height: 1.7; }

/* data table */
.data-table { width: 100%; border-collapse: collapse; border: 0.5px solid var(--border); }
.data-table th {
  font-family: var(--f-mono); font-size: 10px; font-weight: 400;
  color: var(--steel); letter-spacing: 0.15em; text-align: left;
  background: var(--s01); border-bottom: 0.5px solid var(--border);
  padding: 9px 14px;
}
.data-table td {
  font-family: var(--f-mono); font-size: 12px; color: var(--ghost);
  padding: 9px 14px; border-bottom: 0.5px solid rgba(30,45,66,0.5);
}
.data-table td.num { color: var(--chalk); }
.data-table td .warn { color: var(--amber); }
.data-table td .ok   { color: var(--jade); }

/* figure */
.a-fig { margin-top: 24px; }
.fig-frame {
  border: 0.5px solid var(--border); background: var(--s01);
  padding: 32px; display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 200px;
}
.fig-frame .br-tl, .fig-frame .br-tr { border-color: rgba(0,232,144,0.3); }
.fig-caption {
  font-family: var(--f-mono); font-size: 11px; color: var(--steel);
  padding: 8px 2px; letter-spacing: 0.05em;
}
.fig-caption b { color: var(--ghost); font-weight: 400; }

/* star schema diagram in figure */
.star-diagram { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.sd-fact {
  border: 1px solid var(--jade); background: rgba(0,232,144,0.05);
  font-family: var(--f-mono); font-size: 11px; color: var(--jade);
  padding: 14px 18px; text-align: center; line-height: 1.8;
}
.sd-dims { display: flex; flex-direction: column; gap: 10px; }
.sd-dim {
  border: 0.5px solid var(--ice); font-family: var(--f-mono);
  font-size: 10px; color: var(--ice); padding: 6px 12px;
  background: rgba(0,170,255,0.04);
}
.sd-link { color: var(--border-hi); font-family: var(--f-mono); font-size: 14px; }

/* takeaways */
.takeaways { border: 0.5px solid rgba(0,232,144,0.3); background: rgba(0,232,144,0.03); padding: 20px 24px; }
.tk-title {
  font-family: var(--f-mono); font-size: 11px; color: var(--jade);
  letter-spacing: 0.2em; margin-bottom: 12px;
}
.tk-list { list-style: none; }
.tk-list li {
  padding-left: 22px; position: relative; margin-top: 8px;
  font-size: 13px; color: var(--ghost); line-height: 1.6;
}
.tk-list li::before { content: '✓'; position: absolute; left: 0; color: var(--jade); font-family: var(--f-mono); }

/* blockquote */
.prose blockquote {
  border-left: 3px solid var(--violet);
  padding: 4px 0 4px 20px;
  font-size: 15px; color: var(--chalk);
  font-style: normal; line-height: 1.7;
}
.prose blockquote .q-src { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--steel); margin-top: 8px; }

/* entry nav */
.entry-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 48px;
}
.en-card {
  border: 0.5px solid var(--border); background: var(--s01);
  padding: 16px 20px; text-decoration: none; color: inherit;
  transition: border-color 0.15s;
}
.en-card:hover { border-color: var(--jade); }
.en-card.next { text-align: right; }
.en-card.disabled { opacity: 0.5; pointer-events: none; }
.en-label { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.15em; margin-bottom: 5px; }
.en-title { font-size: 13px; color: var(--ghost); line-height: 1.4; }
.en-title.dim { color: var(--steel); }

/* author card */
.author-card {
  margin-top: 36px; border: 0.5px solid var(--border);
  background: var(--s01); padding: 22px 26px;
  display: flex; gap: 20px; align-items: center;
}

/* ═══ HIRE PAGE ═══ */

.hire-avail { position: absolute; top: 70px; right: 28px; text-align: right; z-index: 1; }
.hire-avail-badge { font-family: var(--f-led); font-size: 11px; font-weight: 700; color: var(--jade); letter-spacing: 0.16em; display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.hire-avail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 8px rgba(0,232,144,0.8); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hire-avail-detail { font-family: var(--f-mono); font-size: 10px; color: var(--steel); text-align: right; line-height: 1.9; }
.hire-avail-detail .lit { color: var(--ghost); }

.pillars-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }

.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.proc-cell { background: var(--void); padding: 32px; }
.proc-cell:nth-child(1), .proc-cell:nth-child(4) { background: var(--s01); }
.proc-num { font-family: var(--f-led); font-size: 44px; font-weight: 700; color: var(--border-hi); line-height: 1; margin-bottom: 10px; }
.proc-step-name { font-family: var(--f-mono); font-size: 10px; color: var(--jade); letter-spacing: 0.22em; margin-bottom: 8px; }
.proc-step-desc { font-size: 13px; color: var(--ghost); line-height: 1.7; }

.big-cta { background: var(--s01); border-top: 0.5px solid var(--border); position: relative; overflow: hidden; }
.big-cta::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,232,144,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0,232,144,0.02) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.big-cta::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,232,144,0.6), transparent); animation: cta-scan 5s linear infinite; pointer-events: none; z-index: 0; }
@keyframes cta-scan { 0% { top: 0; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.big-cta-inner { max-width: 1120px; margin: 0 auto; padding: 80px 28px; text-align: center; position: relative; z-index: 1; }
.big-cta-over { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.24em; margin-bottom: 14px; }
.big-cta-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 72px); text-transform: uppercase; color: var(--chalk); line-height: 0.92; margin-bottom: 18px; }
.big-cta-title .jade { color: var(--jade); }
.big-cta-sub { font-size: 14px; color: var(--ghost); margin-bottom: 36px; }
.big-cta-sub strong { color: var(--chalk); }
.cta-btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-xl { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.16em; padding: 16px 40px; background: var(--jade); color: var(--void); font-weight: 700; display: inline-block; text-decoration: none; cursor: pointer; border: none; animation: btn-pulse 3s ease-in-out infinite; }
.btn-xl:hover { background: #00cc7a; animation: none; }
@keyframes btn-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,232,144,0.5); } 50% { box-shadow: 0 0 0 10px rgba(0,232,144,0); } }
.btn-xl-ghost { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; padding: 16px 32px; background: transparent; color: var(--ghost); border: 0.5px solid var(--border); display: inline-block; text-decoration: none; }
.btn-xl-ghost:hover { border-color: var(--jade); color: var(--chalk); }
.cta-note { font-family: var(--f-mono); font-size: 10px; color: var(--steel); margin-top: 18px; letter-spacing: 0.1em; }

.faq-grid { display: flex; flex-direction: column; gap: 1px; background: var(--border); }
.faq-item { background: var(--s01); cursor: pointer; }
.faq-item:hover .faq-q { color: var(--chalk); }
.faq-q { font-family: var(--f-mono); font-size: 12px; color: var(--ghost); line-height: 1.5; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; user-select: none; transition: color 0.15s; }
.faq-q::before { content: 'Q: '; color: var(--jade); flex-shrink: 0; }
.faq-toggle { font-family: var(--f-mono); font-size: 16px; color: var(--steel); flex-shrink: 0; transition: transform 0.25s ease, color 0.15s; line-height: 1; }
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--jade); }
.faq-item.open .faq-q { color: var(--chalk); }
.faq-a { font-size: 13px; color: var(--ghost); line-height: 1.7; max-height: 0; overflow: hidden; padding: 0 28px; text-align: center; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 28px 22px; }
.faq-a strong { color: var(--chalk); font-weight: 500; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(7,9,14,0.92); backdrop-filter: blur(8px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0.2s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: all; }
.modal-panel { background: var(--s01); border: 0.5px solid var(--border-hi); max-width: 580px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; transform: translateY(20px) scale(0.97); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); }
.modal-panel::before { content: ''; display: block; height: 2px; background: var(--jade); flex-shrink: 0; }
.modal-head { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--f-mono); font-size: 11px; color: var(--jade); letter-spacing: 0.22em; }
.modal-close { font-family: var(--f-mono); font-size: 18px; color: var(--steel); background: none; border: none; cursor: pointer; padding: 0 4px; line-height: 1; }
.modal-close:hover { color: var(--chalk); }
.modal-body { padding: 20px 24px 28px; }
.modal-sub { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.14em; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 0.5px solid var(--border); }

.form-group { margin-bottom: 18px; }
.form-label { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.18em; display: block; margin-bottom: 8px; }
.form-input, .form-textarea { width: 100%; background: var(--void); border: 0.5px solid var(--border); color: var(--chalk); font-family: var(--f-mono); font-size: 12px; padding: 10px 12px; outline: none; transition: border-color 0.15s; }
.form-input:focus, .form-textarea:focus { border-color: var(--jade); }
.form-textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.opt-group { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-item input[type="radio"] { display: none; }
.opt-label { font-family: var(--f-mono); font-size: 10px; color: var(--ghost); border: 0.5px solid var(--border); padding: 5px 11px; cursor: pointer; letter-spacing: 0.06em; transition: all 0.15s; display: inline-block; }
.opt-label:hover { border-color: var(--border-hi); color: var(--chalk); }
.opt-item input[type="radio"]:checked + .opt-label { color: var(--jade); border-color: rgba(0,232,144,0.4); background: rgba(0,232,144,0.06); }

.hp-field { display: none !important; }

.form-submit { width: 100%; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; padding: 14px; background: var(--jade); color: var(--void); font-weight: 700; border: none; cursor: pointer; margin-top: 8px; }
.form-submit:hover { background: #00cc7a; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-success { display: none; text-align: center; padding: 40px 24px 32px; }
.form-success.show { display: block; }
.success-icon { font-family: var(--f-mono); font-size: 28px; color: var(--jade); margin-bottom: 14px; }
.success-title { font-family: var(--f-display); font-weight: 800; font-size: 32px; text-transform: uppercase; color: var(--chalk); margin-bottom: 10px; }
.success-sub { font-family: var(--f-mono); font-size: 11px; color: var(--ghost); letter-spacing: 0.08em; line-height: 1.9; }
.ac-mark {
  width: 52px; height: 52px; flex-shrink: 0;
  border: 0.5px solid rgba(0,232,144,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 18px; font-weight: 700; color: var(--jade);
  background: rgba(0,232,144,0.04);
}
.ac-name { font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: var(--jade); letter-spacing: 0.08em; margin-bottom: 4px; }
.ac-bio  { font-family: var(--f-read); font-size: 12.5px; color: var(--ink); line-height: 1.7; }
.ac-links { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }

/* related posts */
.related-shell {
  margin-top: 48px;
  border-top: 0.5px solid var(--border);
  padding-top: 32px;
}
.related-header { margin-bottom: 20px; }
.related-label {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--steel); letter-spacing: 0.22em;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.related-card {
  display: block; text-decoration: none;
  border: 0.5px solid var(--border); background: var(--s01);
  padding: 18px 20px;
  transition: border-color 0.18s;
}
.related-card:hover { border-color: var(--jade); }
.rc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.rc-date {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--ghost); letter-spacing: 0.08em;
}
.rc-title {
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  color: var(--chalk); letter-spacing: 0.02em;
  margin-bottom: 8px; line-height: 1.4;
}
.rc-brief {
  font-family: var(--f-read); font-size: 12px;
  color: var(--steel); line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rc-read {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--jade); letter-spacing: 0.12em;
}
@media (max-width: 760px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ═══ FOOTER ═══ */
.site-footer { background: var(--s01); border-top: 0.5px solid var(--border); }
.site-footer::before {
  content: ''; display: block; height: 2px;
  background: linear-gradient(90deg, var(--jade) 0%, var(--ice) 40%, transparent 80%);
  opacity: 0.5;
}
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 40px 28px 28px; display: flex; gap: 40px; flex-wrap: wrap; }
.footer-brand { min-width: 200px; }
.footer-name { font-family: var(--f-mono); font-size: 15px; font-weight: 700; color: var(--jade); letter-spacing: 0.1em; margin-bottom: 6px; }
.footer-tagline { font-family: var(--f-mono); font-size: 11px; color: var(--steel); line-height: 1.9; }
.footer-nav { margin-left: auto; }
.footer-nav + .footer-nav { margin-left: 0; }
.footer-nav-title { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.2em; margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-family: var(--f-mono); font-size: 11px; color: var(--steel);
  text-decoration: none; letter-spacing: 0.1em;
  transition: color 0.15s; display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--ghost); }
.footer-links a::before { content: '↗'; font-size: 10px; opacity: 0.4; }
.footer-bottom {
  width: 100%; border-top: 0.5px solid var(--border);
  padding-top: 20px; margin-top: 8px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; color: var(--border);
}
.footer-bottom .lit { color: var(--steel); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .proj-card.featured { grid-column: span 1; }
  .hero-stats { flex-wrap: wrap; gap: 16px 0; }
  .h-stat { flex: 1 1 45%; border-right: none; margin-right: 0; padding-right: 0; }
  .hero-frog { display: none; }
  .nav-sub { display: none; }
  .codex-stats { flex-wrap: wrap; }
  .cs-cell { min-width: 40%; }
  .log-row { grid-template-columns: 56px 1fr 24px; }
  .lr-type-cell, .lr-read { display: none; }
  .page-scan { display: none; }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-title { font-size: 52px; }
  .id-inner, .footer-inner { flex-direction: column; }
  .footer-nav { margin-left: 0; }
  .entry-nav { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; align-items: flex-start; }
  .ac-links { margin-left: 0; }
  .article-head { padding: 24px 22px; }
}

/* ═══════════════════════════════════════════════════════
   v1.3 — MOTION & BRAND LAYER
   All animations CSS-first → portable to Hashnode injection
   ═══════════════════════════════════════════════════════ */

/* ─── FROG MARK ─── */
.nav-brand { display: inline-flex; align-items: center; gap: 9px; }
.nav-frog { width: 24px; height: auto; }
.hero-frog {
  position: absolute; right: 4%; bottom: 16%;
  width: min(28vw, 300px); opacity: 0.13;
  pointer-events: none; z-index: 0;
}
.footer-frog { width: 34px; margin-bottom: 10px; }
.ac-mark img { width: 34px; height: auto; }

/* ─── PROGRESS FILL (JS sets final width on view) ─── */
.progress-fill { transition: width 1.4s cubic-bezier(0.22, 0.9, 0.35, 1); }

/* ─── SCROLL REVEAL (JS adds .rv at load, .rv-in when visible) ─── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.rv-in { opacity: 1; transform: none; }

/* ─── TICKER BAND ─── */
.ticker-band {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--s01); overflow: hidden;
}
.ticker-track {
  display: flex; gap: 56px; width: max-content;
  padding: 10px 0; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--steel); white-space: nowrap;
}
.ticker-band:hover .ticker-track { animation-play-state: paused; }
.tk-i { display: inline-flex; gap: 56px; }
.ticker-track b { color: var(--jade); font-weight: 400; }
.ticker-track i { color: var(--ghost); font-style: normal; }
.ticker-track .amber { color: var(--amber); }
.ticker-track .ice { color: var(--ice); }

/* ─── HOVER GLOWS ─── */
.tl-entry:hover { box-shadow: 0 0 18px rgba(0,232,144,0.07); }
.post-card:hover { box-shadow: inset 0 0 0 0.5px var(--border-hi); }
.en-card:hover { box-shadow: 0 0 14px rgba(0,232,144,0.08); }

/* ─── ANIMATIONS (skipped if user prefers reduced motion) ─── */
@media (prefers-reduced-motion: no-preference) {

  /* pulsing status dots */
  .p-dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }

  /* hero bottom scanline sweeps horizontally */
  .hero-scanline {
    background: linear-gradient(90deg, transparent, rgba(0,232,144,0.6) 50%, transparent);
    background-size: 40% 100%; background-repeat: no-repeat;
    animation: sweep 5s linear infinite;
  }
  @keyframes sweep {
    0%   { background-position: -60% 0; }
    100% { background-position: 160% 0; }
  }

  /* vertical LiDAR scan passing over hero */
  .hero::after {
    content: ''; position: absolute; left: 0; right: 0;
    top: -110px; height: 110px;
    background: linear-gradient(180deg,
      transparent,
      rgba(0,232,144,0.04) 70%,
      rgba(0,232,144,0.14) 99%,
      rgba(0,232,144,0.45) 100%);
    z-index: 0; pointer-events: none;
    animation: lidar 9s linear infinite;
  }
  @keyframes lidar {
    0%   { transform: translateY(0); }
    100% { transform: translateY(calc(100vh + 110px)); }
  }

  /* blinking terminal cursor */
  .cursor {
    display: inline-block; width: 7px; height: 12px;
    background: var(--jade); margin-left: 8px; vertical-align: -1px;
    animation: blink 1.1s steps(1) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  /* ticker marquee */
  .ticker-track { animation: ticker 36s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* ═══════════════════════════════════════════════════════
   v1.3.1 — MICRO-INTERACTIONS & POLISH
   ═══════════════════════════════════════════════════════ */

/* text selection + scrollbar in brand colors */
::selection { background: var(--jade); color: var(--void); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--s03); border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }

/* keyboard focus */
a:focus-visible, button:focus-visible { outline: 1px solid var(--jade); outline-offset: 2px; }

/* nav links: animated underline */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--jade);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { border-bottom: none; }
.nav-links a.active::after { transform: scaleX(1); }

/* button glows */
.btn-primary { transition: background 0.15s, box-shadow 0.2s; }
.btn-primary:hover { box-shadow: 0 0 20px rgba(0,232,144,0.35); }
.btn-ghost { transition: border-color 0.15s, color 0.15s, box-shadow 0.2s; }
.btn-ghost:hover { box-shadow: 0 0 14px rgba(0,232,144,0.12); }

/* post cards: arrow nudges, cover art brightens */
.pc-arrow { transition: color 0.15s, transform 0.15s; }
.post-card:hover .pc-arrow { transform: translateX(3px); }
.cover-deco { transition: opacity 0.25s ease; }
.post-card:hover .cover-deco { opacity: 0.22; }

/* log rows: slide on hover */
.log-row { transition: background 0.1s, transform 0.15s ease; }
.log-row:hover { transform: translateX(4px); }

/* reading progress bar (article pages, injected by site.js) */
.read-progress {
  position: fixed; top: 52px; left: 0;
  height: 2px; width: 0; z-index: 300;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(0,232,144,0.6);
}

@media (prefers-reduced-motion: no-preference) {

  /* hero title: staggered line entrance on load */
  .hero-title .line {
    display: inline-block; opacity: 0; transform: translateY(26px);
    animation: titleIn 0.65s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  }
  .hero-title .line:nth-of-type(2) { animation-delay: 0.12s; }
  .hero-title .line:nth-of-type(3) { animation-delay: 0.24s; }
  @keyframes titleIn { to { opacity: 1; transform: none; } }

  /* hero frog: gentle float */
  .hero-frog { animation: floaty 7s ease-in-out infinite alternate; }
  @keyframes floaty {
    from { transform: translateY(0); }
    to   { transform: translateY(-14px); }
  }

  /* active timeline dots pulse like status dots */
  .tl-dot.jade { animation: pulse 2.4s ease-in-out infinite; }
}

/* ═══════════════════════════════════════════════════════
   v1.4 — MARATHON TERMINAL CALIBRATION
   ═══════════════════════════════════════════════════════ */

/* ─── CRT scanline overlay (whole viewport, extremely subtle) ─── */
.crt-overlay {
  position: fixed; inset: 0; z-index: 350;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.013) 0px,
    rgba(255,255,255,0.013) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ─── Boot sequence overlay (index, once per session) ─── */
.boot-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: var(--void);
  font-family: var(--f-mono);
  padding: 8vh 8vw;
  display: flex; flex-direction: column;
  transition: opacity 0.45s ease;
}
.boot-overlay.boot-done { opacity: 0; pointer-events: none; }
.boot-head {
  font-size: 14px; font-weight: 700; color: var(--chalk);
  letter-spacing: 0.08em; margin-bottom: 4px;
}
.boot-sub { font-size: 12px; color: var(--steel); margin-bottom: 28px; }
.boot-lines { flex: 1; font-size: 12px; line-height: 2.2; }
.boot-line { color: var(--ghost); opacity: 0; }
.boot-line.bl-show { opacity: 1; }
.boot-line .ok   { color: var(--jade); }
.boot-line .sys  { color: var(--chalk); }
.boot-line .dim  { color: var(--steel); }
.boot-skip {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--steel); background: transparent;
  border: none; cursor: pointer;
  letter-spacing: 0.2em; padding: 8px 0;
  transition: color 0.15s;
}
.boot-skip:hover { color: var(--jade); }

/* two-column boot: terminal text left, ASCII frog right */
.boot-cols { display: flex; flex: 1; align-items: center; gap: 5vw; min-height: 0; }
.boot-left { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; height: 100%; }
.boot-right { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
@media (max-width: 820px) {
  .boot-cols { display: block; }
  .boot-right { display: none; }
}

/* ─── Hero glitch video layer ─── */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg,
    rgba(7,9,14,0.84) 0%,
    rgba(7,9,14,0.30) 45%,
    rgba(7,9,14,0.55) 72%,
    rgba(7,9,14,0.94) 100%);
  pointer-events: none;
}
.hero::before { z-index: 1; }
.hero-inner, .hero-scan, .hero-scanline { z-index: 2; }
.hero-frog {
  z-index: 1;
  opacity: 0.22;
  width: min(30vw, 340px);
  mix-blend-mode: screen;   /* black bg of the PNG melts into VOID */
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* ASCII point-cloud frog in the boot screen — sampled from frog_lidar_master, right column */
.boot-frog {
  font-family: var(--f-mono);
  font-size: 11px; line-height: 1.16;
  color: var(--jade);
  text-shadow: 0 0 10px rgba(0,232,144,0.35);
  white-space: pre; margin: 0;
  opacity: 0;
  animation: bootFrogIn 0.7s ease-out 0.15s forwards;
}
@keyframes bootFrogIn { to { opacity: 1; } }
.boot-frog .i { color: var(--ice); text-shadow: 0 0 10px rgba(0,170,255,0.3); }
.boot-frog .d { color: rgba(0,232,144,0.38); text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .boot-frog { animation: none; opacity: 1; } }
@media (max-height: 760px) { .boot-frog { font-size: 9px; } }
@media (max-width: 1080px) { .boot-frog { font-size: 9px; } }
@media (max-width: 480px)  { .boot-frog { font-size: 7px; } }

/* ─── Nav: hotkey brackets + live clock ─── */
.nav-links .key { color: var(--steel); }
.nav-links a:hover .key, .nav-links a.active .key { color: var(--jade); }
.nav-clock {
  font-family: var(--f-led); font-size: 12px; font-weight: 600;
  color: var(--steel); letter-spacing: 0.1em;
  margin-left: 24px; white-space: nowrap;
}

/* ─── Static system telemetry band (replaces marquee ticker) ─── */
.telemetry-band {
  background: var(--s01);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.tele-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: stretch; flex-wrap: wrap;
}
.tele-label {
  font-family: var(--f-mono); font-size: 10px; color: var(--jade);
  letter-spacing: 0.22em; display: flex; align-items: center;
  padding: 14px 24px 14px 0; border-right: 0.5px solid var(--border);
}
.tele-cell {
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 24px; border-right: 0.5px solid var(--border);
}
.tele-cell:last-child { border-right: none; }
.tele-k { font-family: var(--f-mono); font-size: 9px; color: var(--steel); letter-spacing: 0.18em; margin-bottom: 2px; }
.tele-v { font-family: var(--f-led); font-size: 13px; font-weight: 700; color: var(--ghost); letter-spacing: 0.06em; }
.tele-v .go { color: var(--jade); }
.tele-v .ice-t { color: var(--ice); }
.tele-v .amber-t { color: var(--amber); }

/* ─── Concepts reference band (elevated on homepage) ─── */
.concept-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.concept-card {
  background: var(--s01); padding: 20px 22px;
  border-top: 2px solid var(--ice);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: background 0.15s;
}
.concept-card:hover { background: #0F1620; }
.concept-card:hover .cc-arrow { color: var(--ice); }
.cc-idx {
  font-family: var(--f-led); font-size: 10px; font-weight: 600;
  color: var(--ice); letter-spacing: 0.18em; margin-bottom: 10px;
}
.cc-title {
  font-family: var(--f-display); font-weight: 800; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--chalk); line-height: 1.12; margin-bottom: 8px; flex: 1;
}
.cc-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10px; color: var(--steel);
  border-top: 0.5px solid var(--border); padding-top: 9px; margin-top: 10px;
}
.cc-arrow { color: var(--border); font-size: 12px; transition: color 0.15s; }

/* ─── Violet accent (ContextFlow) ─── */
.badge-violet { color: var(--violet); border-color: rgba(136,102,255,0.3); background: rgba(136,102,255,0.05); }
.tag-violet   { color: var(--violet); border-color: rgba(136,102,255,0.25); background: rgba(136,102,255,0.04); }
.proj-card.tertiary { border-left-color: var(--violet); }
.p-node.vio { color: var(--violet); border-color: rgba(136,102,255,0.3); background: rgba(136,102,255,0.04); }
.violet-dot { background: var(--violet); box-shadow: 0 0 6px rgba(136,102,255,0.7); }

/* ─── Semantic code blocks: <pre><code> ─── */
.cb-body { margin: 0; }
pre.cb-body code {
  font: inherit; color: inherit;
  background: none; border: none; padding: 0;
  display: block; white-space: pre;
}

/* ─── Single-h1 article title ─── */
.a-title-1, .a-title-2 { display: block; }

@media (max-width: 820px) {
  .concept-row { grid-template-columns: 1fr 1fr; }
  .tele-label { width: 100%; border-right: none; border-bottom: 0.5px solid var(--border); padding: 10px 0; }
  .nav-clock { display: none; }
}
@media (max-width: 560px) {
  .concept-row { grid-template-columns: 1fr; }
  .tele-cell { min-width: 45%; }
}

/* ═══════════════════════════════════════════════════════
   v1.5 — READING ERGONOMICS (premium technical blog spec)
   ═══════════════════════════════════════════════════════ */

:root {
  --f-read: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ink: #A9B7CE;   /* long-form body — brighter than GHOST, never pure white */
}

/* sacred reading canvas: 700px, centered, Inter, soft luminance */
.prose {
  font-family: var(--f-read);
  font-size: 15px;
  color: var(--ink);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.prose ul li { font-size: 14px; }
.a-deck { font-family: var(--f-read); }

/* display tracking: tight headings, expanded telemetry */
.hero-title, .page-title { letter-spacing: -0.02em; }
.a-title-1, .a-title-2, .a-h2 { letter-spacing: -0.015em; }

/* breathing room between structural blocks */
.wrap { padding-top: 96px; padding-bottom: 96px; }
.wrap.tight { padding-top: 56px; padding-bottom: 56px; }

/* reading progress: razor-thin ICE bar at the absolute top edge */
.read-progress {
  top: 0; height: 2px;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(0,170,255,0.6);
  z-index: 400;
}

/* copy-code button in code block headers (injected by site.js) */
.cb-copy {
  margin-left: 12px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--steel); background: transparent;
  border: 0.5px solid var(--border);
  padding: 3px 10px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cb-copy:hover, .cb-copy.copied { color: var(--jade); border-color: rgba(0,232,144,0.4); }

/* blockquote → clinical diagnostic callout */
.q-label {
  display: block;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--violet); letter-spacing: 0.18em;
  margin-bottom: 8px;
}
.prose blockquote {
  background: rgba(136,102,255,0.04);
  padding: 14px 20px;
}

/* frog retired from hero — brand anchor lives in nav + footer only */
.hero-frog { display: none; }

/* ═══════════════════════════════════════════════════════
   v2.0 — NEWSLETTER BAND (Node build)
   ═══════════════════════════════════════════════════════ */
.newsletter-band {
  background: var(--s01);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
}
.newsletter-band::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--jade), transparent 60%);
  opacity: 0.6;
}
.news-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 44px 28px;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.news-text { flex: 1; min-width: 260px; }
.news-label {
  font-family: var(--f-mono); font-size: 11px; color: var(--jade);
  letter-spacing: 0.25em; margin-bottom: 8px;
}
.news-desc { font-size: 13px; color: var(--ghost); line-height: 1.6; max-width: 460px; }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-input {
  font-family: var(--f-mono); font-size: 12px;
  background: var(--void); color: var(--chalk);
  border: 0.5px solid var(--border);
  padding: 13px 16px; min-width: 260px;
  letter-spacing: 0.05em;
}
.news-input:focus { outline: none; border-color: var(--jade); }
.news-input::placeholder { color: var(--steel); }
.news-status {
  width: 100%; font-family: var(--f-mono); font-size: 11px;
  color: var(--steel); letter-spacing: 0.06em; min-height: 16px;
}
.news-status.ok   { color: var(--jade); }
.news-status.warn { color: var(--amber); }
.news-status.err  { color: var(--heat); }
@media (max-width: 560px) {
  .news-form { width: 100%; }
  .news-input { flex: 1; min-width: 0; }
}

/* ─── Log: search, pagination, page-slide animation ─── */
.log-search {
  font-family: var(--f-mono); font-size: 11px;
  background: var(--s01); color: var(--chalk);
  border: 0.5px solid var(--border);
  padding: 7px 14px; min-width: 210px;
  letter-spacing: 0.05em; margin-left: 8px;
}
.log-search:focus { outline: none; border-color: var(--jade); }
.log-search::placeholder { color: var(--steel); }
.log-search::-webkit-search-cancel-button { -webkit-appearance: none; }

.log-list { transition: opacity 0.18s ease, transform 0.18s ease; }
.log-list.paging { opacity: 0; transform: translateX(16px); }

.log-empty {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--steel); letter-spacing: 0.12em;
  border: 0.5px dashed var(--border);
  padding: 28px; text-align: center; margin-top: 4px;
}

.pager {
  display: flex; gap: 8px; align-items: center;
  margin-top: 20px; flex-wrap: wrap;
}
.pg-info {
  font-family: var(--f-led); font-size: 11px; font-weight: 600;
  color: var(--steel); letter-spacing: 0.18em;
  margin-right: auto;
}
.pg-btn {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; padding: 8px 16px;
  background: var(--s01); border: 0.5px solid var(--border);
  color: var(--ghost); cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pg-btn:hover:not(:disabled) { border-color: var(--border-hi); color: var(--chalk); }
.pg-btn:disabled { opacity: 0.35; cursor: default; }
.pg-num { min-width: 38px; text-align: center; padding: 8px 0; font-family: var(--f-led); font-weight: 600; }
.pg-num.cur { color: var(--jade); border-color: rgba(0,232,144,0.4); }

@media (max-width: 820px) {
  .log-search { min-width: 0; flex: 1; margin-left: 0; }
  .pg-info { width: 100%; }
}

/* ─── Hashnode-rendered article HTML (posts/[slug]) ─── */
.prose pre {
  background: #020407; border: 0.5px solid var(--border);
  padding: 14px 16px; overflow-x: auto;
  font-family: var(--f-mono); font-size: 12px;
  line-height: 1.8; color: var(--ghost);
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.prose img { border: 0.5px solid var(--border); }
.prose h2:not(.a-h2) {
  font-family: var(--f-display); font-weight: 800; font-size: 26px;
  text-transform: uppercase; letter-spacing: -0.015em;
  color: var(--chalk); margin-top: 44px; line-height: 1;
}
.prose h3 {
  font-family: var(--f-display); font-weight: 800; font-size: 20px;
  text-transform: uppercase; color: var(--chalk); margin-top: 32px;
}
.prose hr { border: none; border-top: 0.5px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; border: 0.5px solid var(--border); font-size: 13px; }
.prose table th, .prose table td { padding: 8px 12px; border-bottom: 0.5px solid var(--border); text-align: left; }
.prose table th { font-family: var(--f-mono); font-size: 11px; color: var(--steel); background: var(--s01); }

/* ═══════════════════════════════════════════════════════
   v2.1 — NEWSLETTER CAROUSEL BAR
   ═══════════════════════════════════════════════════════ */
.nbar {
  background: var(--s01);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
}
.nbar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--jade), transparent 55%);
  opacity: 0.6;
}
.nbar-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 28px;
}
.nbar-row {
  display: flex; align-items: center; gap: 20px;
  min-height: 56px;
}
.nbar-tag {
  font-family: var(--f-mono); font-size: 10px; color: var(--jade);
  letter-spacing: 0.22em; white-space: nowrap; flex-shrink: 0;
}
.nbar-marquee {
  flex: 1; overflow: hidden; position: relative; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.nbar-track {
  display: inline-flex; white-space: nowrap;
  will-change: transform;
  animation: nbar-scroll 38s linear infinite;
}
.nbar:hover .nbar-track { animation-play-state: paused; }
.nbar-msg {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ghost); letter-spacing: 0.14em;
  padding-right: 0;
}
@keyframes nbar-scroll { to { transform: translateX(-50%); } }

.nbar-form { display: flex; gap: 8px; flex-shrink: 0; }
.nbar-input {
  font-family: var(--f-mono); font-size: 11px;
  background: var(--void); color: var(--chalk);
  border: 0.5px solid var(--border);
  padding: 9px 14px; width: 200px; letter-spacing: 0.04em;
}
.nbar-input:focus { outline: none; border-color: var(--jade); }
.nbar-input::placeholder { color: var(--steel); }
.nbar-btn { padding: 9px 18px; font-size: 11px; }
.nbar-status {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--steel); letter-spacing: 0.05em;
  padding-bottom: 6px;
}
.nbar-status:empty { display: none; }
.nbar-status.ok { color: var(--jade); }
.nbar-status.warn { color: var(--amber); }
.nbar-status.err { color: var(--heat); }
@media (prefers-reduced-motion: reduce) { .nbar-track { animation: none; } }
@media (max-width: 760px) {
  .nbar-inner { padding: 12px 28px; }
  .nbar-row { flex-wrap: wrap; gap: 12px; }
  .nbar-marquee { order: 3; width: 100%; flex-basis: 100%; }
  .nbar-form { flex: 1; }
  .nbar-input { flex: 1; width: auto; min-width: 0; }
  .nbar-status { margin-top: 2px; width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   v2.2 — POST CAROUSEL (auto-marquee, infinite loop)
   9 posts rendered twice; track animates translateX(-50%) for a seamless loop,
   in sync with the newsletter bar's continuous flow.
   ═══════════════════════════════════════════════════════ */
.carousel { position: relative; overflow: hidden; }
.carousel::before, .carousel::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 3;
  pointer-events: none;
}
.carousel::before { left: 0;  background: linear-gradient(90deg, var(--void), transparent); }
.carousel::after  { right: 0; background: linear-gradient(270deg, var(--void), transparent); }

.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex; align-items: stretch; width: max-content;
  animation: carousel-scroll 60s linear infinite;
  will-change: transform;
}
.carousel:hover .carousel-track { animation-play-state: paused; }
.carousel-cell {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 350px);
  margin-right: 14px;
}
.carousel-cell .post-card {
  height: 100%;
  border: 0.5px solid var(--border);
}
@keyframes carousel-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
  .carousel-viewport { overflow-x: auto; }
}
@media (max-width: 600px) {
  .carousel-cell { width: 82vw; }
}

/* ═══════════════════════════════════════════════════════
   v2.1 — OPERATOR STRIP (de-duplicated identity)
   ═══════════════════════════════════════════════════════ */
.id-label {
  font-family: var(--f-mono); font-size: 10px; color: var(--jade);
  letter-spacing: 0.24em; margin-bottom: 8px;
}
.id-frog {
  width: 96px; height: auto; opacity: 0.5;
  margin-left: auto; flex-shrink: 0;
}
@media (max-width: 560px) { .id-frog { display: none; } }

/* ══ FEATURED ENTRY ══════════════════════════════════ */
.featured-section {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.featured-card {
  display: grid; grid-template-columns: 120px 1fr auto;
  border: 0.5px solid var(--border); border-left: 4px solid var(--jade);
  background: var(--s01); text-decoration: none; transition: background 0.2s;
  overflow: hidden;
}
.featured-card:has(.fc-cover) { grid-template-columns: 120px 1fr auto 240px; }
.featured-card:hover { background: var(--s02); }
.fc-left {
  padding: 32px 20px; border-right: 0.5px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.fc-badge {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  color: var(--void); background: var(--jade);
  padding: 3px 10px; letter-spacing: 0.1em; display: inline-block;
}
.fc-date { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.06em; margin-top: 8px; }
.fc-read { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.06em; }
.fc-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.fc-series { font-family: var(--f-mono); font-size: 10px; color: var(--ghost); letter-spacing: 0.14em; margin-bottom: 12px; }
.fc-title {
  font-family: var(--f-display); font-weight: 800; font-size: 32px;
  text-transform: uppercase; color: var(--chalk); line-height: 1.0; margin-bottom: 14px;
}
.fc-excerpt { font-size: 14px; color: var(--ghost); line-height: 1.8; max-width: 600px; }
.fc-action {
  padding: 32px 32px; border-left: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.fc-cta {
  font-family: var(--f-mono); font-size: 11px; color: var(--jade);
  letter-spacing: 0.14em; white-space: nowrap;
  border: 0.5px solid var(--jade); padding: 12px 20px; transition: all 0.15s;
}
.featured-card:hover .fc-cta { background: var(--jade); color: var(--void); }
.fc-cover {
  border-left: 0.5px solid var(--border);
  overflow: hidden; position: relative;
}
.fc-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(20%) contrast(1.05) brightness(0.9);
  transition: filter 0.4s ease;
}
.featured-card:hover .fc-cover img { filter: grayscale(0%) contrast(1.08) brightness(1.0); }

/* ══ YOUTUBE SECTION ══════════════════════════════════ */
.yt-section {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: rgba(136,102,255,0.03);
}
.yt-layout { display: grid; grid-template-columns: 55% 1fr; gap: 52px; align-items: center; }
.yt-embed-frame {
  margin: 0;
  border: 0.5px solid rgba(136,102,255,0.25);
  box-shadow: 0 0 40px rgba(136,102,255,0.08);
}
.yt-meta {
  display: flex; flex-direction: column; gap: 18px;
  padding-left: 20px; border-left: 3px solid rgba(136,102,255,0.4);
}
.yt-meta-label {
  font-family: var(--f-mono); font-size: 10px; color: var(--violet);
  letter-spacing: 0.18em;
}
.yt-title {
  font-family: var(--f-display); font-weight: 800; font-size: 34px;
  text-transform: uppercase; color: var(--chalk); line-height: 1.0;
}
.yt-date { font-family: var(--f-mono); font-size: 10px; color: var(--steel); letter-spacing: 0.12em; }
.yt-watch-btn {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em;
  padding: 14px 28px; background: var(--violet); color: var(--chalk);
  text-decoration: none; display: inline-block; font-weight: 700;
  transition: background 0.15s; align-self: flex-start;
}
.yt-watch-btn:hover { background: #9977ff; }

@media (max-width: 820px) {
  .featured-card, .featured-card:has(.fc-cover) { grid-template-columns: 1fr; }
  .fc-left { border-right: none; border-bottom: 0.5px solid var(--border); flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
  .fc-action { border-left: none; border-top: 0.5px solid var(--border); }
  .fc-cover { display: none; }
  .yt-layout { grid-template-columns: 1fr; }
  .yt-meta { padding-left: 0; border-left: none; border-top: 3px solid rgba(136,102,255,0.4); padding-top: 20px; }
}

/* ═══════════════════════════════════════════════════════
   v2.3 — OPERATOR PROFILE PAGE (industrial schematic)
   ═══════════════════════════════════════════════════════ */
.op-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── Sidebar / Profile Card ── */
.op-profile {
  position: sticky; top: 90px;
  background: var(--s01);
  border: 0.5px solid var(--border);
  border-top: 2px solid var(--jade);
  overflow: hidden;
}
.op-profile .br-tl, .op-profile .br-tr,
.op-profile .br-bl, .op-profile .br-br {
  position: absolute; width: 12px; height: 12px;
  border-color: rgba(0,232,144,0.4); border-style: solid; z-index: 3;
}
.op-profile .br-tl { top: 8px;    left: 8px;  border-width: 1.5px 0 0 1.5px; }
.op-profile .br-tr { top: 8px;    right: 8px; border-width: 1.5px 1.5px 0 0; }
.op-profile .br-bl { bottom: 8px; left: 8px;  border-width: 0 0 1.5px 1.5px; }
.op-profile .br-br { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }

.op-spec-label {
  font-family: var(--f-mono); font-size: 9px; color: var(--steel);
  letter-spacing: 0.22em; padding: 12px 14px 6px;
}

/* Portrait */
.op-portrait-frame {
  position: relative;
  border-bottom: 0.5px solid var(--border);
  overflow: hidden;
  background: var(--s02);
  aspect-ratio: 4/5;
}
.op-portrait-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,232,144,0.07) 0%, transparent 35%, rgba(7,9,14,0.6) 100%);
  z-index: 1; pointer-events: none;
}
.op-portrait-frame img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center top;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.45s ease;
}
.op-portrait-frame:hover img { filter: grayscale(0%) contrast(1.08) brightness(1.03); }
.op-portrait-frame.op-empty::after {
  content: 'OPERATOR PORTRAIT // /assets/operator.png';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
  font-family: var(--f-mono); font-size: 10px; color: var(--steel);
  letter-spacing: 0.12em; line-height: 1.8;
}
.op-portrait-frame .op-sweep {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(0,232,144,0.5), transparent);
  top: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .op-portrait-frame .op-sweep { animation: opSweep 3.5s linear infinite; }
  @keyframes opSweep { 0%{top:0;opacity:0} 8%{opacity:1} 88%{opacity:0.7} 100%{top:100%;opacity:0} }
}
.op-portrait-lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px);
  z-index: 2; pointer-events: none;
}
.op-portrait-id {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(0deg, rgba(7,9,14,0.9) 50%, transparent);
  z-index: 3;
}
.op-portrait-id-label { font-family: var(--f-mono); font-size: 9px; color: var(--jade); letter-spacing: 0.14em; }
.op-portrait-id-sub   { font-family: var(--f-mono); font-size: 9px; color: var(--steel); letter-spacing: 0.1em; margin-top: 3px; }

/* ID card rows */
.op-id { padding: 12px 14px 14px; }
.op-id-name {
  font-family: var(--f-display); font-weight: 800; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--chalk);
  line-height: 1; margin-bottom: 3px;
}
.op-id-role { font-family: var(--f-mono); font-size: 10px; color: var(--jade); letter-spacing: 0.18em; margin-bottom: 10px; }
.op-id-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px;
  padding: 7px 0; border-bottom: 0.5px solid rgba(30,45,66,0.5);
}
.op-id-row:last-child { border-bottom: none; }
.op-id-key { color: var(--steel); letter-spacing: 0.06em; font-size: 9px; }
.op-id-val { color: var(--ghost); }
.op-id-val.go  { color: var(--jade); display: flex; align-items: center; gap: 5px; }
.op-id-val.ice { color: var(--ice); }

/* STATUS pulse dot */
.op-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--jade);
  box-shadow: 0 0 6px rgba(0,232,144,0.8); flex-shrink: 0;
  animation: opPulseDot 2.2s ease-in-out infinite;
}
@keyframes opPulseDot {
  0%,100% { box-shadow: 0 0 8px rgba(0,232,144,0.8); }
  50%      { box-shadow: 0 0 3px rgba(0,232,144,0.2); }
}

/* Sidebar CTAs */
.op-profile-cta {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border-top: 0.5px solid var(--border);
}
.op-cta-primary {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  padding: 11px 18px; background: var(--jade); color: var(--void);
  font-weight: 700; text-decoration: none; display: block; text-align: center;
  transition: background 0.15s;
  animation: opBtnPulse 3s ease-in-out infinite;
}
@keyframes opBtnPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,232,144,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(0,232,144,0); }
}
.op-cta-primary:hover { background: #00cc7a; }
.op-cta-ghost {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  padding: 9px 18px; background: transparent; color: var(--ghost);
  border: 0.5px solid var(--border); display: block; text-align: center;
  text-decoration: none; transition: border-color 0.15s, color 0.15s;
}
.op-cta-ghost:hover { border-color: var(--jade); color: var(--chalk); }

/* ── System Modules ── */
.op-modules { display: flex; flex-direction: column; gap: 16px; }
.op-module {
  background: var(--s01);
  border: 0.5px solid var(--border);
  border-left: 3px solid var(--jade);
  padding: 24px 28px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.op-module.visible { opacity: 1; transform: translateY(0); }
.op-module:nth-child(1) { transition-delay: 0s; }
.op-module:nth-child(2) { transition-delay: 0.08s; }
.op-module:nth-child(3) { transition-delay: 0.16s; }
.op-module:nth-child(4) { transition-delay: 0.24s; }
.op-module.ice   { border-left-color: var(--ice); }
.op-module.amber { border-left-color: var(--amber); }
.op-module.steel { border-left-color: var(--steel); }

.op-mod-label {
  font-family: var(--f-mono); font-size: 10px; color: var(--jade);
  letter-spacing: 0.2em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.op-module.ice   .op-mod-label { color: var(--ice); }
.op-module.amber .op-mod-label { color: var(--amber); }
.op-module.steel .op-mod-label { color: var(--ghost); }
.op-mod-label .op-mod-tag { color: var(--border-hi); }

.op-mod-title {
  font-family: var(--f-display); font-weight: 800; font-size: 22px;
  text-transform: uppercase; line-height: 1; margin-bottom: 14px;
  color: var(--chalk);
}
.op-mod-title .jade   { color: var(--jade); }
.op-mod-title .ice    { color: var(--ice); }
.op-mod-title .amber  { color: var(--amber); }
.op-mod-title .violet { color: var(--violet); }

.op-body { font-family: var(--f-read); font-size: 14px; color: var(--ink); line-height: 1.78; }
.op-body p + p { margin-top: 0.95em; }
.op-body strong { color: var(--chalk); font-weight: 500; }
.op-body em { color: var(--ghost); }
.op-body a { color: var(--jade); text-decoration: none; border-bottom: 1px solid rgba(0,232,144,0.3); }

/* Stack tags (module 01) */
.op-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.op-tag { font-family: var(--f-mono); font-size: 10px; padding: 3px 9px; border: 0.5px solid; letter-spacing: 0.04em; }
.op-tag-jade   { color: var(--jade);   border-color: rgba(0,232,144,0.22);   background: rgba(0,232,144,0.04); }
.op-tag-ice    { color: var(--ice);    border-color: rgba(0,170,255,0.22);   background: rgba(0,170,255,0.04); }
.op-tag-violet { color: var(--violet); border-color: rgba(136,102,255,0.22); background: rgba(136,102,255,0.04); }
.op-tag-ghost  { color: var(--ghost);  border-color: var(--border); }

/* Systems cards (module 02) */
.sys-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); margin-top: 18px;
}
.sys-card { background: var(--s02); padding: 16px; transition: background 0.15s; }
.sys-card:hover { background: var(--s03); }
.sys-card-label { font-family: var(--f-mono); font-size: 9px; color: var(--steel); letter-spacing: 0.16em; margin-bottom: 7px; }
.sys-card-name {
  font-family: var(--f-display); font-weight: 800; font-size: 17px;
  text-transform: uppercase; line-height: 1; margin-bottom: 8px;
}
.sys-card-name.jade   { color: var(--jade); }
.sys-card-name.ice    { color: var(--ice); }
.sys-card-name.violet { color: var(--violet); }
.sys-card-meta { font-family: var(--f-mono); font-size: 9px; color: var(--steel); letter-spacing: 0.04em; line-height: 1.7; }
.sys-card-link {
  font-family: var(--f-mono); font-size: 9px; color: var(--jade);
  letter-spacing: 0.1em; margin-top: 10px; display: block;
  text-decoration: none; transition: color 0.15s;
}
.sys-card-link:hover { color: var(--chalk); }

/* ── Capabilities spec sheet ── */
.cap-sheet { display: flex; flex-direction: column; margin-top: 4px; }
.cap-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px;
  padding: 12px 0; border-bottom: 0.5px solid var(--border); align-items: baseline;
}
.cap-row:last-child { border-bottom: none; }
.cap-key { font-family: var(--f-mono); font-size: 10px; color: var(--ice); letter-spacing: 0.08em; }
.cap-val { font-size: 13px; color: var(--chalk); line-height: 1.6; }
.cap-val .cap-meta { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--steel); margin-top: 2px; letter-spacing: 0.05em; }
.cap-streak { color: var(--jade); font-family: var(--f-led); font-weight: 700; }
.cap-books { display: flex; flex-direction: column; gap: 3px; }
.cap-books span::before { content: '▸ '; color: var(--violet); }

/* Closing quote */
.op-closer {
  font-family: var(--f-read); font-size: 14px; color: var(--ghost);
  line-height: 1.8; max-width: 640px; margin: 32px auto 0; text-align: center;
  font-style: italic;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s 0.2s ease, transform 0.5s 0.2s ease;
}
.op-closer.visible { opacity: 1; transform: translateY(0); }
.op-closer strong { color: var(--jade); font-style: normal; font-weight: 500; }

@media (max-width: 820px) {
  .op-grid { grid-template-columns: 1fr; }
  .op-profile { position: static; max-width: 380px; }
  .cap-row { grid-template-columns: 1fr; gap: 4px; }
  .sys-cards { grid-template-columns: 1fr; }
}
