:root {
  --bg-base: #FBFEFF;
  --bg-canvas: #F4F8FA;
  --terminal-deep: #0E1A1F;
  --terminal-mid: #15252C;
  --terminal-soft: #1F343C;

  --code-green: #5BA8C7;
  --code-green-bright: #7DC8E5;
  --code-green-deep: #2D6985;
  --code-amber: #E8A547;
  --code-red: #D4564B;
  --code-cyan: #5BA8C7;

  --ink: #0E1A1F;
  --ink-soft: rgba(14, 26, 31, 0.85);
  --ink-mute: rgba(14, 26, 31, 0.6);
  --line: rgba(14, 26, 31, 0.1);
  --line-strong: rgba(14, 26, 31, 0.18);

  --shadow: 0 1px 2px rgba(14, 26, 31, 0.04), 0 8px 24px rgba(14, 26, 31, 0.06);
  --shadow-strong: 0 4px 12px rgba(14, 26, 31, 0.1), 0 16px 40px rgba(14, 26, 31, 0.12);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: #020204;
  background-image:
    radial-gradient(ellipse at 20% 15%, rgba(15, 40, 25, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(8, 30, 18, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 40%, rgba(20, 50, 30, 0.20) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 120px;
  background: linear-gradient(170deg, #f5fbf2 0%, #fafefa 50%, #f0f8ec 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(91, 168, 199, 0.08);
  position: relative;
  z-index: 1;
}

/* Article Meta */
.article-meta { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--code-green-deep); margin-bottom: 24px; flex-wrap: wrap; }
.meta-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--code-green); }
.series-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--terminal-deep); border-radius: 100px; color: var(--code-green-bright); font-family: var(--mono); }
.series-tag .blink { width: 6px; height: 6px; background: var(--code-green); border-radius: 50%; animation: blink 1.6s infinite; box-shadow: 0 0 8px var(--code-green); }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.2; } }

h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px; }
h1 em { font-style: italic; color: var(--code-green-deep); font-weight: 400; }

.subtitle { font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 400; color: var(--code-green-deep); line-height: 1.4; margin-bottom: 36px; max-width: 600px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.tag { padding: 5px 12px; background: var(--bg-base); border: 1px solid var(--line); border-radius: 4px; color: var(--code-green-deep); font-weight: 500; }

/* Briefing terminal block */
.briefing { margin: 32px 0 48px; background: var(--terminal-deep); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-strong); }
.briefing-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--terminal-soft); border-bottom: 1px solid rgba(91, 168, 199, 0.2); }
.briefing-header-left { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--code-green-bright); font-weight: 500; }
.briefing-prompt { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; }
.briefing-dots { display: flex; gap: 6px; }
.briefing-dots span { width: 9px; height: 9px; border-radius: 50%; }
.briefing-dots span:nth-child(1) { background: var(--code-red); opacity: 0.6; }
.briefing-dots span:nth-child(2) { background: var(--code-amber); opacity: 0.6; }
.briefing-dots span:nth-child(3) { background: var(--code-green); opacity: 0.8; }
.briefing-body { padding: 28px 32px; font-family: var(--mono); font-size: 14px; color: rgba(255, 255, 255, 0.85); line-height: 1.85; }
.briefing-line { display: grid; grid-template-columns: 120px 1fr; gap: 18px; margin-bottom: 14px; align-items: start; }
.briefing-line:last-child { margin-bottom: 0; }
.briefing-key { color: var(--code-green-bright); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.briefing-val { color: rgba(255, 255, 255, 0.9); font-size: 14.5px; line-height: 1.6; }
.briefing-val strong { color: #FFFFFF; font-weight: 600; }
.briefing-val em { color: var(--code-green-bright); font-style: italic; }
@media (max-width: 600px) { .briefing-line { grid-template-columns: 1fr; gap: 4px; } .briefing-body { padding: 20px 22px; } }

/* Hardware constraint badge */
.hw-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; margin-top: 4px;
  background: rgba(232, 165, 71, 0.15);
  border: 1px solid rgba(232, 165, 71, 0.3);
  border-radius: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--code-amber); font-weight: 600;
}
.hw-badge::before { content: '⚡'; font-size: 12px; }

/* Wave divider */
.wave-divider { display: flex; justify-content: center; align-items: center; margin: 56px 0 48px; gap: 14px; }
.wave-divider .line { height: 1px; width: 80px; background: linear-gradient(to right, transparent, var(--line-strong), transparent); }

/* Sections */
.section { margin-bottom: 56px; scroll-margin-top: 40px; }
.section-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; color: var(--code-green); font-weight: 500; margin-bottom: 8px; display: block; }

h2 { font-family: var(--serif); font-weight: 500; font-size: 42px; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 24px; position: relative; }
h2::before { content: ''; position: absolute; left: -20px; top: 18px; width: 8px; height: 8px; background: var(--code-green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(91, 168, 199, 0.2); }
@media (max-width: 600px) { h2::before { display: none; } }
h2 em { font-style: italic; color: var(--code-green-deep); }

h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 36px 0 18px; }
h3 em { font-style: italic; color: var(--code-green-deep); }

p { margin-bottom: 20px; font-size: 17px; color: var(--ink-soft); }
p strong { color: var(--ink); font-weight: 600; }
p em { color: var(--code-green-deep); font-style: italic; }

code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; background: var(--terminal-deep); color: var(--code-green-bright); border-radius: 4px; font-weight: 500; }

/* Storage visualisation */
.storage-viz {
  margin: 32px 0;
  padding: 32px 28px;
  background: var(--terminal-deep);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  position: relative; overflow: hidden;
}
.storage-viz::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(91,168,199,0.2), transparent 70%);
  border-radius: 50%;
}
.storage-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--code-green-bright); font-weight: 600; margin-bottom: 20px; position: relative; z-index: 1;
}
.storage-bar-wrap { position: relative; z-index: 1; margin-bottom: 22px; }
.storage-bar-track {
  height: 10px; background: rgba(255,255,255,0.08);
  border-radius: 100px; overflow: hidden; margin-bottom: 10px;
}
.storage-bar-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(to right, var(--code-green), var(--code-green-bright));
  width: 20%;
  transition: width 1s ease;
}
.storage-bar-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
}
.storage-bar-label .used { color: var(--code-green); font-weight: 600; }
.storage-bar-label .free { color: rgba(255,255,255,0.4); }
.storage-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding-top: 18px; border-top: 1px solid rgba(91,168,199,0.15);
  position: relative; z-index: 1;
}
.storage-stat { display: flex; flex-direction: column; gap: 4px; }
.storage-stat-num {
  font-family: var(--serif); font-size: 36px; font-weight: 500;
  color: var(--code-green); line-height: 1; letter-spacing: -0.02em;
}
.storage-stat-num.free-color { color: var(--code-cyan); }
.storage-stat-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); font-weight: 500;
}
.storage-stat-detail { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.4; }
@media (max-width: 540px) { .storage-stats { grid-template-columns: 1fr; gap: 12px; } }

/* Define / plain language boxes */
.define { margin: 32px 0; padding: 22px 26px; background: rgba(91, 168, 199, 0.08); border-left: 3px solid var(--code-cyan); border-radius: 0 12px 12px 0; }
.define-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--code-cyan); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.define-label::before { content: 'ⓘ'; font-size: 14px; }
.define-term { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.005em; }
.define p { font-size: 15.5px; line-height: 1.65; margin-bottom: 0; }
.define strong { color: var(--ink); font-weight: 600; }

/* Callout variants */
.callout { margin: 32px 0; padding: 24px 28px; background: var(--bg-base); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(to bottom, var(--code-green), var(--code-green-deep)); }
.callout-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--code-green); font-weight: 500; margin-bottom: 8px; }
.callout p { font-size: 16px; line-height: 1.7; margin-bottom: 0; }
.callout strong { color: var(--ink); font-weight: 600; }
.callout-trap::before { background: linear-gradient(to bottom, var(--code-amber), #8B4A1F); }
.callout-trap .callout-label { color: var(--code-amber); }

/* Tech hack / Protocol block */
.tech-hack { margin: 32px 0; padding: 26px 30px; background: linear-gradient(135deg, rgba(91,168,199,0.06), rgba(168,216,240,0.12)); border: 1px solid rgba(91,168,199,0.25); border-radius: 12px; }
.tech-hack-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--code-green); font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tech-hack-label::before { content: '⚙'; font-size: 14px; }
.tech-hack-title { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.tech-hack p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 12px; }
.tech-hack p:last-child { margin-bottom: 0; }
.tech-hack strong { color: var(--ink); font-weight: 600; }

/* Security four-pillar grid */
.security-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
.security-card {
  padding: 24px 22px;
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.security-card:hover { transform: translateY(-2px); border-color: rgba(91,168,199,0.4); }
.security-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
}
.sec-firewall::before { background: linear-gradient(to right, var(--code-green-deep), var(--code-green)); }
.sec-vpn::before { background: linear-gradient(to right, var(--code-cyan), var(--code-green-bright)); }
.sec-passwords::before { background: linear-gradient(to right, var(--code-amber), var(--code-green)); }
.sec-2fa::before { background: linear-gradient(to right, var(--code-green), var(--code-cyan)); }
.security-num {
  font-family: var(--serif); font-size: 36px; font-weight: 500; font-style: italic;
  color: var(--code-green); line-height: 1; margin-bottom: 10px; letter-spacing: -0.02em;
}
.security-name {
  font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink);
  margin-bottom: 4px; letter-spacing: -0.005em;
}
.security-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--code-green); font-weight: 600; margin-bottom: 12px;
}
.security-desc { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.security-desc strong { color: var(--ink); }
.security-analogy { font-size: 12.5px; font-style: italic; color: var(--code-green-deep); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
@media (max-width: 600px) { .security-grid { grid-template-columns: 1fr; } }

/* Terminal ASCII block */
.terminal-block {
  margin: 32px 0;
  background: var(--terminal-deep);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.terminal-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--terminal-soft);
  border-bottom: 1px solid rgba(91,168,199,0.15);
}
.terminal-block-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--code-green-bright); font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.terminal-block-dots { display: flex; gap: 6px; }
.terminal-block-dots span { width: 9px; height: 9px; border-radius: 50%; }
.terminal-block-dots span:nth-child(1) { background: var(--code-red); opacity: 0.6; }
.terminal-block-dots span:nth-child(2) { background: var(--code-amber); opacity: 0.6; }
.terminal-block-dots span:nth-child(3) { background: var(--code-green); opacity: 0.8; }
.terminal-block-body {
  padding: 24px 28px;
  font-family: var(--mono); font-size: 13px; line-height: 1.9;
  color: rgba(255,255,255,0.88);
  overflow-x: auto;
}
.terminal-block-body .prompt { color: var(--code-green); font-weight: 600; margin-right: 8px; }
.terminal-block-body .comment { color: rgba(255,255,255,0.4); }
.terminal-block-body .highlight { color: var(--code-green-bright); font-weight: 600; }
.terminal-block-body .divider { color: rgba(91,168,199,0.5); letter-spacing: 0.02em; }
.terminal-block-body .category { color: var(--code-cyan); font-weight: 600; }
.terminal-block-body .row { display: block; padding: 3px 0; white-space: pre; }
.terminal-block-body .row-indent { display: block; padding: 3px 0 3px 24px; color: rgba(255,255,255,0.7); }

/* Screenshot embed */
.screenshot-embed {
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line-strong);
  background: var(--terminal-deep);
}
.screenshot-embed-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--terminal-soft);
  border-bottom: 1px solid rgba(91, 168, 199, 0.15);
}
.screenshot-embed-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--code-green-bright); font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.screenshot-embed-dots { display: flex; gap: 6px; }
.screenshot-embed-dots span { width: 9px; height: 9px; border-radius: 50%; }
.screenshot-embed-dots span:nth-child(1) { background: var(--code-red); opacity: 0.6; }
.screenshot-embed-dots span:nth-child(2) { background: var(--code-amber); opacity: 0.6; }
.screenshot-embed-dots span:nth-child(3) { background: var(--code-green); opacity: 0.8; }
.screenshot-embed img {
  width: 100%; height: auto; display: block;
  max-height: 600px; object-fit: cover; object-position: top;
}
.screenshot-embed img.full-height { max-height: none; }
.screenshot-embed-caption {
  padding: 12px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45); line-height: 1.55;
  border-top: 1px solid rgba(91, 168, 199, 0.1);
}
.screenshot-embed-caption strong { color: var(--code-green-bright); font-weight: 600; }
.screenshot-embed-caption code { font-size: 0.92em; }

/* Pivot tag */
.pivot-tag { display: inline-block; margin-top: 6px; padding: 6px 12px; background: rgba(91, 168, 199, 0.15); border: 1px solid rgba(91, 168, 199, 0.3); border-radius: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--code-green-deep); font-style: italic; }
.pivot-tag a { color: var(--code-green); text-decoration: none; font-weight: 600; }
.pivot-tag a:hover { text-decoration: underline; }

/* Inline link */
.inline-link { color: var(--code-green); font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(91,168,199,0.4); }
.inline-link:hover { color: var(--code-green-deep); border-bottom-color: var(--code-green-deep); }

/* Pull quote */
.pullquote { margin: 48px 0; padding: 32px 36px; background: linear-gradient(135deg, rgba(168, 216, 240, 0.18), rgba(91, 168, 199, 0.06)); border-left: 3px solid var(--code-green); border-radius: 0 8px 8px 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink); position: relative; }
.pullquote::before { content: '"'; position: absolute; top: 8px; left: 18px; font-size: 60px; color: var(--code-green); opacity: 0.3; font-family: var(--serif); line-height: 1; }

/* Systems Thinking dark callout */
.systems { margin: 48px 0; padding: 40px 36px; background: linear-gradient(135deg, var(--terminal-deep) 0%, var(--terminal-mid) 100%); border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 4px 12px rgba(15, 42, 29, 0.15), 0 20px 50px rgba(15, 42, 29, 0.18); }
.systems::before { content: ''; position: absolute; top: -50px; right: -50px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(91, 168, 199, 0.25), transparent 70%); border-radius: 50%; }
.systems-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--code-green-bright); font-weight: 600; margin-bottom: 16px; position: relative; z-index: 1; }
.systems-title { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); font-weight: 500; color: #FFFFFF; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 18px; position: relative; z-index: 1; }
.systems-title em { font-style: italic; color: var(--code-green-bright); }
.systems p { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.88); margin-bottom: 14px; position: relative; z-index: 1; }
.systems p:last-child { margin-bottom: 0; }
.systems p strong { color: #FFFFFF; font-weight: 600; }

/* Verdict */
.verdict { margin: 64px 0 32px; padding: 48px 40px; background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-canvas) 100%); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); text-align: center; position: relative; overflow: hidden; }
.verdict::before { content: ''; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(91, 168, 199, 0.15), transparent 70%); border-radius: 50%; }
.verdict-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--code-green); font-weight: 500; margin-bottom: 20px; }
.verdict-rating { font-size: 36px; margin-bottom: 16px; letter-spacing: 4px; }
.verdict-rating .star { color: var(--code-green); filter: drop-shadow(0 2px 4px rgba(91, 168, 199, 0.3)); }
.verdict-score { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--code-green-deep); margin-bottom: 24px; }
.verdict-final { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--ink); max-width: 560px; margin: 0 auto 18px; }
.verdict-kicker { font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 500; color: var(--code-green); margin-top: 12px; }

.signoff { margin: 32px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--code-green-deep); }
.signoff-name { display: block; margin-top: 6px; font-style: normal; font-weight: 500; font-size: 18px; color: var(--ink); letter-spacing: 0.04em; }

/* Synergy Notes */
.synergy { margin: 56px 0 32px; padding: 32px 30px; background: linear-gradient(135deg, var(--bg-base) 0%, rgba(91, 168, 199, 0.05) 100%); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.synergy-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--code-green); font-weight: 500; margin-bottom: 6px; }
.synergy-title { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); margin-bottom: 20px; letter-spacing: -0.01em; }
.synergy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.synergy-card { display: block; padding: 18px 20px; background: var(--bg-canvas); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.synergy-card:hover { transform: translateX(2px); border-color: rgba(91, 168, 199, 0.4); background: rgba(91, 168, 199, 0.05); }
.synergy-card-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--code-green); font-weight: 500; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.synergy-card-status { color: var(--code-green-deep); opacity: 0.7; font-size: 9px; }
.synergy-card-name { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.25; margin-bottom: 6px; }
.synergy-card-desc { font-size: 13px; line-height: 1.5; color: var(--ink-mute); }
.synergy-card-arrow { display: inline-block; margin-left: 4px; transition: transform 0.2s; color: var(--code-green); }
.synergy-card:hover .synergy-card-arrow { transform: translateX(3px); }

.up-next { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line); }
.up-next-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--code-green); font-weight: 500; margin-bottom: 12px; }
.up-next-title { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.up-next-desc { font-size: 15px; color: var(--code-green-deep); }

.intro p:first-of-type::first-letter { font-family: var(--serif); font-size: 64px; font-weight: 600; color: var(--code-green-deep); float: left; line-height: 0.85; margin: 6px 10px 0 0; padding-top: 4px; }

/* Post pager (unified prev/next nav at article bottom) */
.post-pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(91, 168, 199, 0.22);
}
.post-pager-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  background: linear-gradient(150deg, rgba(91, 168, 199, 0.08) 0%, rgba(255, 255, 255, 0.55) 60%, rgba(91, 168, 199, 0.04) 100%);
  border: 1px solid rgba(91, 168, 199, 0.24);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
a.post-pager-item:hover {
  transform: translateY(-2px);
  border-color: var(--code-green);
  background: linear-gradient(150deg, rgba(91, 168, 199, 0.14) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(91, 168, 199, 0.07) 100%);
  box-shadow: 0 8px 24px rgba(15, 42, 50, 0.18), 0 0 28px rgba(91, 168, 199, 0.14);
}
.post-pager-item.is-pending { opacity: 0.62; cursor: default; }
.post-pager-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--code-green);
  font-weight: 500;
}
.post-pager-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
  color: var(--ink);
}
.post-pager-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--code-green-deep);
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
article > * { animation: fadeUp 0.6s ease-out backwards; }
article > *:nth-child(1) { animation-delay: 0.05s; }
article > *:nth-child(2) { animation-delay: 0.12s; }
article > *:nth-child(3) { animation-delay: 0.19s; }
article > *:nth-child(4) { animation-delay: 0.26s; }

/* Footer */
footer { background: #090308; border-top: 1px solid #1a0a10; padding: 2.5rem 3rem 2rem; text-align: center; }
.footer-logo-img { width: 44px; height: auto; margin: 0 auto 0.6rem; display: block; opacity: 0.8; filter: drop-shadow(0 0 6px rgba(212,175,55,0.2)); }
.footer-logo { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; color: #dde6f4; margin-bottom: 0.4rem; }
.footer-logo span { color: #D4AF37; }
.footer-tagline { font-size: 0.78rem; color: #7a6570; font-style: italic; margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { color: #7a6570; text-decoration: none; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.3s ease; }
.footer-links a:hover { color: #D4AF37; }
.footer-coffee-link { color: #f4b400 !important; }
.footer-coffee-link:hover { color: #D4AF37 !important; }
.footer-bottom { font-size: 0.7rem; color: #7a6570; border-top: 1px solid #1a0a10; padding-top: 1.2rem; }

@media (max-width: 640px) {
  article { padding: 24px 22px 80px; }
  h1 { font-size: 38px; } h2 { font-size: 30px; } h3 { font-size: 22px; }
  .subtitle { font-size: 19px; }
  .pullquote { font-size: 19px; padding: 24px 24px 24px 28px; }
  .verdict { padding: 28px 24px; } .verdict-final { font-size: 19px; }
  body { font-size: 16px; }
  .systems { padding: 28px 24px; }
  .terminal-block-body { padding: 18px 20px; font-size: 12px; }
  .screenshot-embed img { max-height: 280px; }
}

/* ── Side Dock ── */
.side-dock { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 0.4rem; background: rgba(4,6,14,0.78); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border: 1px solid rgba(26,127,168,0.22); border-radius: 18px; padding: 0.65rem 0.5rem; box-shadow: 0 8px 32px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04); }
.dock-item { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; text-decoration: none; color: rgba(139,160,180,0.65); transition: color 0.22s ease, background 0.22s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease; touch-action: manipulation; }
.dock-item::before { content: ''; position: absolute; inset: 0; border-radius: 12px; background: radial-gradient(ellipse at center, rgba(0,200,150,0.26) 0%, transparent 72%); opacity: 0; transition: opacity 0.25s ease; }
.dock-item:hover::before, .dock-item.active::before { opacity: 1; }
.dock-item:hover { color: #00c896; background: rgba(0,200,150,0.1); transform: scale(1.18); box-shadow: 0 0 22px rgba(0,200,150,0.48), 0 0 9px rgba(0,200,150,0.3), 0 4px 14px rgba(0,0,0,0.32); }
.dock-item.active { color: #00c896; background: rgba(0,200,150,0.08); box-shadow: 0 0 12px rgba(0,200,150,0.22); }
.dock-item.active::after { content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: #00c896; box-shadow: 0 0 7px rgba(0,200,150,0.9); }
.dock-icon { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.dock-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(8px); background: rgba(4,6,14,0.94); backdrop-filter: blur(12px); color: #dde6f4; font-family: 'Inter', system-ui, sans-serif; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.26rem 0.62rem; border-radius: 6px; border: 1px solid rgba(26,127,168,0.28); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.18s ease, transform 0.18s ease; }
.dock-item:hover .dock-label { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 768px) {
  .side-dock { right: 0.55rem; padding: 0.5rem 0.35rem; gap: 0.3rem; border-radius: 14px; }
  .dock-item { width: 36px; height: 36px; border-radius: 10px; }
  .dock-item:hover { transform: scale(1.1); }
  .dock-icon { width: 17px; height: 17px; }
  .dock-label { display: none; }
  .dock-item.active::after { width: 3px; height: 3px; bottom: 2px; }
}
@media (max-width: 768px) { body { background-attachment: scroll; } }
@media (max-width: 768px) { footer { padding-right: 70px; } }

@media (prefers-reduced-motion: reduce) {
  article > * { animation: none; }
  .dock-item { transition: none; }
}
@media (hover: none) and (pointer: coarse) {
  .dock-item:hover { transform: none; box-shadow: none; background: none; }
  .dock-item:hover::before { opacity: 0; }
}

/* ── Canopy glass ── */
#canopy-glass {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 40px), 1160px);
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(91, 168, 199, 0.04) 30%, rgba(91, 168, 199, 0.02) 50%, rgba(91, 168, 199, 0.04) 70%, transparent 100%);
  border-left: 1px solid rgba(91, 168, 199, 0.06);
  border-right: 1px solid rgba(91, 168, 199, 0.06);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 768px) { #canopy-glass { display: none; } }
