/* ============================================================
   hansilanding — Design System
   Inspiré par le design ansicode.fr / HansiLanding
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; }
button { font: inherit; }

/* --- CSS Variables --- */
.pf-root {
  --pf-bg: #07091a;
  --pf-bg-soft: #0c1029;
  --pf-bg-card: #11163a;
  --pf-bg-hover: #161c47;
  --pf-border: #232a5a;
  --pf-border-strong: #353e7a;
  --pf-text: #e8edff;
  --pf-text-muted: #a3aacf;
  --pf-text-soft: #6a72a3;
  --pf-k8s: #326ce5;
  --pf-k8s-light: #4f8df2;
  --pf-accent: #00d4ff;
  --pf-accent-strong: #00b8e0;
  --pf-violet: #a78bfa;
  --pf-green: #22e09e;
  --pf-amber: #fbbf24;
  --pf-red: #ef4444;
  --pf-orange: #fb923c;
  --pf-gold: #fcd34d;
  --pf-on-accent: #07091a;
  --pf-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pf-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pf-radius: 14px;
  --pf-radius-sm: 8px;
  --pf-radius-pill: 999px;
  --pf-shadow-sm: inset 0 1px 0 rgb(255 255 255 / 4%), 0 1px 2px rgb(0 0 0 / 35%), 0 4px 10px rgb(0 0 0 / 25%);
  --pf-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), 0 1px 2px rgb(0 0 0 / 40%), 0 6px 14px rgb(0 0 0 / 30%), 0 18px 40px rgb(0 0 0 / 35%);
  --pf-shadow-lg: inset 0 1px 0 rgb(255 255 255 / 6%), 0 2px 4px rgb(0 0 0 / 45%), 0 10px 24px rgb(0 0 0 / 38%), 0 28px 60px rgb(0 0 0 / 40%);
  --pf-shadow-k8s: inset 0 1px 0 rgb(255 255 255 / 6%), 0 0 0 1px rgb(50 108 229 / 28%), 0 4px 12px rgb(50 108 229 / 22%), 0 16px 40px rgb(50 108 229 / 28%), 0 28px 60px rgb(0 0 0 / 35%);
  --pf-shadow-gold: inset 0 1px 0 rgb(255 255 255 / 6%), 0 0 0 1px rgb(252 211 77 / 30%), 0 4px 12px rgb(252 211 77 / 18%), 0 16px 36px rgb(252 211 77 / 18%), 0 28px 60px rgb(0 0 0 / 30%);
  --pf-glow-k8s: 0 0 24px rgb(50 108 229 / 35%);
  --pf-glow-accent: 0 0 24px rgb(0 212 255 / 30%);
  background: var(--pf-bg);
  color: var(--pf-text);
  font-family: var(--pf-sans);
  font-size: 15px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

:root[data-theme="light"] .pf-root {
  --pf-bg: #f5f7ff;
  --pf-bg-soft: #ebeefb;
  --pf-bg-card: #ffffff;
  --pf-bg-hover: #ebeefb;
  --pf-border: #d6dcf5;
  --pf-border-strong: #b9c2eb;
  --pf-text: #0e1538;
  --pf-text-muted: #495680;
  --pf-text-soft: #8a93b6;
  --pf-accent: #0091b8;
  --pf-accent-strong: #00748f;
  --pf-violet: #7c3aed;
  --pf-green: #059669;
  --pf-on-accent: #ffffff;
  --pf-glow-k8s: 0 0 24px rgb(50 108 229 / 20%);
  --pf-glow-accent: 0 0 24px rgb(0 145 184 / 18%);
  --pf-shadow-sm: inset 0 1px 0 rgb(255 255 255 / 80%), 0 1px 2px rgb(14 21 56 / 6%), 0 4px 10px rgb(14 21 56 / 6%);
  --pf-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 1px 2px rgb(14 21 56 / 8%), 0 6px 14px rgb(14 21 56 / 8%), 0 18px 40px rgb(14 21 56 / 10%);
  --pf-shadow-lg: inset 0 1px 0 rgb(255 255 255 / 90%), 0 2px 4px rgb(14 21 56 / 10%), 0 10px 24px rgb(14 21 56 / 12%), 0 28px 60px rgb(14 21 56 / 14%);
  --pf-shadow-k8s: inset 0 1px 0 rgb(255 255 255 / 90%), 0 0 0 1px rgb(50 108 229 / 22%), 0 4px 12px rgb(50 108 229 / 14%), 0 16px 40px rgb(50 108 229 / 16%), 0 28px 60px rgb(14 21 56 / 12%);
  --pf-shadow-gold: inset 0 1px 0 rgb(255 255 255 / 90%), 0 0 0 1px rgb(252 211 77 / 28%), 0 4px 12px rgb(252 211 77 / 12%), 0 16px 36px rgb(252 211 77 / 14%), 0 28px 60px rgb(14 21 56 / 10%);
}

/* --- Background gradients --- */
.pf-root::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 25%, rgb(50 108 229 / 18%) 0%, transparent 35%),
    radial-gradient(circle at 85% 75%, rgb(167 139 250 / 14%) 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, rgb(0 212 255 / 10%) 0%, transparent 50%);
}

.pf-root::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--pf-border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .5;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 80%);
}

/* --- Body --- */
body.pf-body {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 60px;
  padding-bottom: 38px;
  margin: 0;
}

body.pf-body #root {
  height: auto;
  min-height: 100dvh;
}

/* --- Layout --- */
.pf-main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .pf-main { padding: 0 24px; } }

.pf-text-accent {
  color: var(--pf-accent);
  font-family: var(--pf-mono);
  font-size: .92em;
}

/* ============================================================
   Navigation
   ============================================================ */
.pf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #07091acc;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pf-border);
  transition: background .2s ease, border-color .2s ease;
}
.pf-nav-scrolled { background: #07091aeb; }
:root[data-theme="light"] .pf-nav { background: #f5f7ffcc; }
:root[data-theme="light"] .pf-nav-scrolled { background: #f5f7ffeb; }

.pf-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 720px) { .pf-nav-inner { padding: 14px 24px; gap: 24px; } }

.pf-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--pf-text);
  font-family: var(--pf-mono);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.pf-nav-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pf-bg-card), var(--pf-bg-soft));
  border: 1.5px solid var(--pf-k8s);
  box-shadow: 0 0 0 2px #326ce52e, 0 0 12px #326ce559;
  flex-shrink: 0;
}
.pf-nav-brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pf-nav-brand-name { color: var(--pf-text); }
.pf-nav-brand-dot { color: var(--pf-k8s); }
.pf-nav-brand-tld { color: var(--pf-text-muted); }
.pf-nav-brand-status { display: inline-flex; margin-left: 6px; transform: scale(.85); transform-origin: left center; }
.pf-nav-brand-text { display: inline-flex; align-items: baseline; }

.pf-nav-links { display: none; gap: 4px; }
@media (min-width: 900px) { .pf-nav-links { display: flex; } }

.pf-nav-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pf-text-muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--pf-radius-sm);
  font-family: inherit;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.pf-nav-link:hover { color: var(--pf-accent); background: #00d4ff14; }
.pf-nav-link-active { color: var(--pf-accent); }

.pf-nav-actions { display: flex; align-items: center; gap: 10px; }

.pf-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, var(--pf-k8s) 0%, var(--pf-accent) 100%);
  color: #fff;
  border-radius: var(--pf-radius-sm);
  font-size: 13px;
  font-family: var(--pf-mono);
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
  box-shadow: var(--pf-glow-k8s);
  border: none;
  cursor: pointer;
}
.pf-nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.pf-theme-toggle {
  width: 34px; height: 34px;
  border-radius: var(--pf-radius-sm);
  border: 1px solid var(--pf-border);
  background: var(--pf-bg-card);
  color: var(--pf-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pf-shadow-sm);
}
.pf-theme-toggle:hover { color: var(--pf-accent); border-color: var(--pf-accent); }

/* Burger button (mobile only) */
.pf-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 34px; height: 34px;
  padding: 8px 7px;
  background: transparent;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  cursor: pointer;
  color: var(--pf-text-muted);
  transition: color 0.2s, border-color 0.2s;
  box-sizing: border-box;
}
@media (min-width: 900px) { .pf-burger { display: none; } }
.pf-burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.pf-burger:hover { color: var(--pf-accent); border-color: var(--pf-accent); }
.pf-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pf-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pf-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile dropdown menu */
.pf-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  z-index: 49;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 14px;
  background: #07091af0;
  border-bottom: 1px solid var(--pf-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
:root[data-theme="light"] .pf-mobile-menu { background: #f5f7fff0; }
.pf-mobile-menu.pf-mobile-menu-open { display: flex; }
@media (min-width: 900px) { .pf-mobile-menu { display: none !important; } }

.pf-mobile-menu-link {
  display: block;
  padding: 10px 14px;
  color: var(--pf-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--pf-radius-sm);
  transition: color 0.15s, background 0.15s;
}
.pf-mobile-menu-link:hover { color: var(--pf-accent); background: #00d4ff14; }
.pf-mobile-menu-link.pf-nav-link-active { color: var(--pf-accent); }

/* ============================================================
   Section layout
   ============================================================ */
.pf-section { padding: 48px 0; scroll-margin-top: 72px; position: relative; }
@media (min-width: 720px) { .pf-section { padding: 80px 0; } }

.pf-section-head { margin-bottom: 40px; max-width: 820px; }
.pf-section-hud { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }

.pf-section-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pf-mono);
  font-size: 11px;
  color: var(--pf-text-muted);
}
.pf-section-progress-label { letter-spacing: .1em; }
.pf-section-progress-val { color: var(--pf-accent); font-weight: 600; }
.pf-section-progress-track { width: 80px; height: 6px; background: var(--pf-bg-card); border: 1px solid var(--pf-border); border-radius: var(--pf-radius-pill); overflow: hidden; }
.pf-section-progress-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pf-k8s), var(--pf-accent)); box-shadow: 0 0 6px #00d4ff99; transition: width .8s ease; }

.pf-section-title {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--pf-text) 35%, var(--pf-k8s-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pf-section-lead { font-size: 16px; color: var(--pf-text-muted); line-height: 1.6; margin: 0; }

.pf-project-card { overflow: hidden; }
.pf-card-cover { width: calc(100% + 44px); height: 160px; object-fit: cover; border-radius: var(--pf-radius) var(--pf-radius) 0 0; margin: -22px -22px 16px; display: block; }

.pf-subsection { margin-top: 96px; }
.pf-subsection-title { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--pf-text-muted); margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--pf-border); }

/* ============================================================
   Status / Version / Badges
   ============================================================ */
.pf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pf-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: var(--pf-radius-pill);
  background: #22e09e24;
  color: var(--pf-green);
  border: 1px solid rgb(34 224 158 / 26%);
}
.pf-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; position: relative; }
.pf-status-running .pf-status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .4;
  animation: pf-pulse 2s ease-in-out infinite;
}
@keyframes pf-pulse {
  0%, to { transform: scale(1); opacity: .4; }
  50%     { transform: scale(1.8); opacity: 0; }
}
.pf-status-deployed { background: #326ce529; color: var(--pf-k8s-light); border-color: #326ce54d; }
.pf-status-archived { background: #6a72a324; color: var(--pf-text-soft); border-color: #6a72a33d; }

.pf-version { display: inline-block; font-family: var(--pf-mono); font-size: 11px; padding: 3px 9px; background: #a78bfa1f; color: var(--pf-violet); border: 1px solid rgb(167 139 250 / 28%); border-radius: var(--pf-radius-pill); }
.pf-region { display: inline-flex; align-items: center; gap: 4px; font-family: var(--pf-mono); font-size: 11px; color: var(--pf-text-muted); }

.pf-tech { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pf-mono); font-size: 12px; padding: 4px 10px; background: var(--pf-bg-soft); border: 1px solid var(--pf-border); border-radius: var(--pf-radius-pill); color: var(--pf-text); white-space: nowrap; }
.pf-tech-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }

.pf-level { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: linear-gradient(135deg, #326ce529, #00d4ff1a); border: 1px solid var(--pf-k8s); border-radius: var(--pf-radius-pill); font-family: var(--pf-mono); font-size: 12px; color: var(--pf-k8s-light); box-shadow: inset 0 1px #ffffff0f, 0 2px 8px #326ce538, 0 8px 20px #326ce52e; }
.pf-level-glyph { font-size: 14px; color: var(--pf-k8s); }
.pf-level-text { letter-spacing: .04em; }
.pf-level-label { color: var(--pf-text-muted); }

.pf-achievement { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: #fcd34d1f; border: 1px solid var(--pf-gold); color: var(--pf-gold); border-radius: var(--pf-radius-pill); font-family: var(--pf-mono); font-size: 11px; }

/* ============================================================
   XP Bars
   ============================================================ */
.pf-xp { display: flex; align-items: center; gap: 10px; flex: 1; }
.pf-xp-track { flex: 1; height: 10px; background: var(--pf-bg-card); border: 1px solid var(--pf-border); border-radius: var(--pf-radius-pill); overflow: hidden; position: relative; }
.pf-xp-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pf-k8s), var(--pf-accent), var(--pf-green)); background-size: 200% 100%; position: relative; box-shadow: 0 0 8px #00d4ff99; animation: pf-xp-shimmer 4s linear infinite; }
@keyframes pf-xp-shimmer { 0% { background-position: 0% 0%; } to { background-position: 200% 0%; } }
.pf-xp-shine { position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 35%), transparent); animation: pf-shine 3s ease-in-out infinite; }
@keyframes pf-shine { 0%, to { left: -100%; } 50% { left: 200%; } }
.pf-xp-val { font-family: var(--pf-mono); font-size: 11px; color: var(--pf-text-muted); white-space: nowrap; }

/* ============================================================
   Buttons
   ============================================================ */
.pf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pf-radius-sm); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease; font-family: inherit; }
.pf-btn:hover { transform: translateY(-1px); }
.pf-btn-primary { background: linear-gradient(135deg, var(--pf-k8s) 0%, var(--pf-accent) 100%); color: #fff; border-color: var(--pf-k8s); box-shadow: var(--pf-glow-k8s); }
.pf-btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 32px #326ce57f; }
.pf-btn-ghost { background: transparent; color: var(--pf-text); border-color: var(--pf-border-strong); }
.pf-btn-ghost:hover { border-color: var(--pf-accent); color: var(--pf-accent); box-shadow: var(--pf-glow-accent); }
.pf-btn-secondary { background: rgba(255,255,255,.04); color: var(--pf-text-muted); border-color: var(--pf-border-strong); }
.pf-btn-secondary:hover { background: rgba(255,255,255,.08); color: var(--pf-text); border-color: var(--pf-accent); box-shadow: var(--pf-glow-accent); }
.pf-btn-secondary svg { flex-shrink: 0; }

/* ============================================================
   Hero
   ============================================================ */
.pf-hero { padding: 24px 0 56px; }
.pf-hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 720px) { .pf-hero { padding: 40px 0 72px; } }
@media (min-width: 980px) { .pf-hero { padding: 56px 0 96px; } .pf-hero-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

.pf-hero-content { min-width: 0; }
.pf-hero-hud { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.pf-hero-eyebrow { font-family: var(--pf-mono); font-size: 14px; color: var(--pf-accent); margin: 0 0 8px; }
.pf-hero-title { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0 0 16px; text-shadow: 0 4px 30px rgb(50 108 229 / 20%); }
.pf-hero-name { background: linear-gradient(135deg, var(--pf-text) 30%, var(--pf-k8s-light) 70%, var(--pf-accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-hero-tagline { font-family: var(--pf-mono); font-size: 14px; color: var(--pf-violet); margin: 0 0 20px; }
.pf-hero-bio { font-size: 16px; color: var(--pf-text-muted); line-height: 1.65; margin: 0 0 24px; max-width: 580px; }

.pf-hero-xp { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; padding: 14px 18px; background: var(--pf-bg-card); border: 1px solid var(--pf-border); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow); }
.pf-hero-xp-row { display: flex; align-items: center; gap: 14px; }
.pf-hero-xp-label { font-family: var(--pf-mono); font-size: 12px; color: var(--pf-text-muted); width: 100px; flex-shrink: 0; }
.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

.pf-hero-stats { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; border: 1px solid var(--pf-border); border-radius: var(--pf-radius); background: var(--pf-bg-card); overflow: hidden; box-shadow: var(--pf-shadow); }
.pf-stat { margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--pf-border); }
.pf-stat:last-child { border-bottom: none; }
@media (min-width: 720px) {
  .pf-hero-stats { grid-template-columns: repeat(3, 1fr); }
  .pf-stat { padding: 18px 20px; border-bottom: none; border-right: 1px solid var(--pf-border); }
  .pf-stat:last-child { border-right: none; }
}
.pf-stat-value { font-family: var(--pf-mono); font-size: 24px; font-weight: 700; color: var(--pf-accent); margin: 0 0 4px; }
.pf-stat-label { font-size: 12px; color: var(--pf-text-muted); margin: 0; line-height: 1.3; }

/* --- Hero Visual & Orbit --- */
.pf-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; order: -1; }
@media (min-width: 720px) { .pf-hero-visual { min-height: 400px; } }
@media (min-width: 980px) { .pf-hero-visual { min-height: 480px; order: 0; } }

.pf-orbit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pf-orbit-center { position: absolute; z-index: 1; filter: drop-shadow(0 0 24px rgb(50 108 229 / 50%)); }
.pf-orbit-wheel { animation: pf-spin 24s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgb(50 108 229 / 30%); animation: pf-orbit-spin linear infinite; display: flex; align-items: center; justify-content: center; }
.pf-orbit-ring-1 { width: 180px; height: 180px; animation-duration: 18s; }
.pf-orbit-ring-2 { width: 240px; height: 240px; animation-duration: 28s; animation-direction: reverse; }
.pf-orbit-ring-3 { width: 300px; height: 300px; animation-duration: 40s; }
.pf-orbit-ring-4 { width: 380px; height: 380px; animation-duration: 52s; animation-direction: reverse; }
@media (min-width: 720px) {
  .pf-orbit-ring-1 { width: 200px; height: 200px; }
  .pf-orbit-ring-2 { width: 280px; height: 280px; }
  .pf-orbit-ring-3 { width: 360px; height: 360px; }
  .pf-orbit-ring-4 { width: 460px; height: 460px; }
}
@media (min-width: 980px) {
  .pf-orbit-ring-1 { width: 220px; height: 220px; }
  .pf-orbit-ring-2 { width: 320px; height: 320px; }
  .pf-orbit-ring-3 { width: 440px; height: 440px; }
  .pf-orbit-ring-4 { width: 540px; height: 540px; }
}
@keyframes pf-orbit-spin { to { transform: rotate(360deg); } }
.pf-orbit-pod { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; font-family: var(--pf-mono); font-size: 11px; font-weight: 700; border-radius: 10px; background: var(--pf-bg-card); border: 1px solid; color: var(--pf-text); animation: pf-counter-spin 18s linear infinite; }
.pf-orbit-ring-2 .pf-orbit-pod { animation-duration: 28s; animation-direction: reverse; }
.pf-orbit-ring-3 .pf-orbit-pod { animation-duration: 40s; }
.pf-orbit-ring-4 .pf-orbit-pod { animation-duration: 52s; animation-direction: reverse; }
@keyframes pf-counter-spin { to { transform: rotate(-360deg); } }
.pf-orbit-pod-cpp   { top: -19px; left: calc(50% - 19px); border-color: #4f8df2; color: #75a7ff; }
.pf-orbit-pod-rust  { top: calc(50% - 19px); right: -19px; border-color: #fb923c; color: #fb923c; }
.pf-orbit-pod-llm   { bottom: 10%; left: -19px; border-color: #a78bfa; color: #c4b5fd; }
.pf-orbit-pod-rn    { top: 10%; left: 8%; border-color: #00d4ff; color: #00d4ff; }
.pf-orbit-pod-docker{ top: 50%; right: -19px; border-color: #2496ed; color: #6cb6f5; }
.pf-orbit-pod-agent { bottom: 5%; left: 30%; border-color: #22e09e; color: #22e09e; }

/* --- Portrait card --- */
.pf-portrait-card { position: relative; z-index: 2; width: 100%; max-width: 220px; background: var(--pf-bg-card); border: 1px solid var(--pf-border-strong); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow-k8s); overflow: hidden; backdrop-filter: blur(8px); }
@media (min-width: 720px) { .pf-portrait-card { max-width: 260px; } }
@media (min-width: 980px) { .pf-portrait-card { max-width: 300px; } }
.pf-portrait-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: linear-gradient(180deg, var(--pf-bg-hover), var(--pf-bg-card)); border-bottom: 1px solid var(--pf-border); }
.pf-portrait-id { font-family: var(--pf-mono); font-size: 12px; color: var(--pf-accent); }
.pf-portrait-frame { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, #326ce529, #a78bfa29); display: flex; align-items: center; justify-content: center; }
.pf-portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.08) contrast(1.04); }
.pf-portrait-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 20%, transparent 45%, rgb(7 9 26 / 18%) 100%), linear-gradient(180deg, transparent 70%, rgb(7 9 26 / 32%)); }
.pf-portrait-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-family: var(--pf-mono); font-size: 72px; font-weight: 700; color: var(--pf-accent); }
.pf-portrait-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px); background-size: 18px 18px; opacity: .7; }
.pf-portrait-footer { padding: 14px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--pf-border); }
.pf-portrait-row { display: flex; justify-content: space-between; font-family: var(--pf-mono); font-size: 12px; }
.pf-portrait-key { color: var(--pf-text-soft); }
.pf-portrait-val { color: var(--pf-text); }

/* ============================================================
   Cards
   ============================================================ */
.pf-card { background: var(--pf-bg-card); border: 1px solid var(--pf-border); border-radius: var(--pf-radius); padding: 22px; box-shadow: var(--pf-shadow); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.pf-card:hover { border-color: var(--pf-border-strong); transform: translateY(-3px); box-shadow: var(--pf-shadow-lg); }
.pf-card-wide { grid-column: 1 / -1; }
.pf-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--pf-accent); }
.pf-card-head h3 { font-size: 15px; font-weight: 600; color: var(--pf-text); margin: 0; }
.pf-card-body { margin: 0 0 6px; color: var(--pf-text); font-size: 15px; line-height: 1.55; }
.pf-card-meta { margin: 0; font-family: var(--pf-mono); font-size: 12px; color: var(--pf-text-soft); }

/* --- About grid --- */
.pf-about-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .pf-about-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.pf-kv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-kv-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--pf-text); }
.pf-kv-val { font-family: var(--pf-mono); font-size: 12px; color: var(--pf-text-muted); text-align: right; }

/* ============================================================
   Experience / Deploy timeline
   ============================================================ */
.pf-deploy-list { list-style: none; margin: 0; padding: 0; position: relative; }
.pf-deploy-list::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 18px; width: 2px; background: linear-gradient(to bottom, var(--pf-k8s), var(--pf-accent), transparent); opacity: .6; box-shadow: 0 0 8px #326ce566; }
.pf-deploy-item { position: relative; padding-left: 60px; padding-bottom: 28px; }
.pf-deploy-item:last-child { padding-bottom: 0; }
.pf-deploy-marker { position: absolute; left: 0; top: 6px; width: 38px; height: 38px; background: var(--pf-bg-card); border: 2px solid var(--pf-k8s); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pf-k8s-light); z-index: 1; box-shadow: var(--pf-glow-k8s); font-family: var(--pf-mono); font-size: 12px; font-weight: 700; }
.pf-deploy-card { background: var(--pf-bg-card); border: 1px solid var(--pf-border); border-radius: var(--pf-radius); padding: 22px; box-shadow: var(--pf-shadow); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.pf-deploy-card:hover { border-color: var(--pf-k8s); transform: translateY(-2px); box-shadow: var(--pf-shadow-k8s); }
.pf-deploy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.pf-deploy-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-deploy-role { font-size: 18px; font-weight: 600; margin: 0; }
.pf-deploy-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pf-deploy-meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--pf-text-muted); }
.pf-deploy-meta-mono { font-family: var(--pf-mono); font-size: 12px; }
.pf-deploy-quest { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: #fcd34d1a; color: var(--pf-gold); border: 1px solid rgb(252 211 77 / 30%); border-radius: var(--pf-radius-pill); font-family: var(--pf-mono); font-size: 11px; }
.pf-deploy-highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-deploy-highlights li { color: var(--pf-text-muted); font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; }
.pf-deploy-highlights li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--pf-accent); box-shadow: 0 0 6px #00d4ff99; }

/* ============================================================
   Projects grid
   ============================================================ */
.pf-project-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .pf-project-grid { grid-template-columns: repeat(2, 1fr); } }
.pf-project-card { min-height: 260px; display: flex; flex-direction: column; gap: 16px; }
.pf-project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pf-project-title { font-size: 20px; margin: 0 0 8px; }
.pf-project-desc { margin: 0; color: var(--pf-text-muted); line-height: 1.6; }
.pf-tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ============================================================
   Skills grid
   ============================================================ */
.pf-skill-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .pf-skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pf-skill-grid { grid-template-columns: repeat(4, 1fr); } }
.pf-skill-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pf-skill-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--pf-bg-soft); border: 1px solid var(--pf-border); border-radius: var(--pf-radius-sm); color: var(--pf-text-muted); font-size: 13px; }
.pf-skill-list span { font-family: var(--pf-mono); font-size: 11px; color: var(--pf-accent); }

/* ============================================================
   Contact / Social
   ============================================================ */
.pf-contact { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .pf-contact { grid-template-columns: 1.05fr .95fr; } }
.pf-contact .pf-card { display: flex; flex-direction: column; }
.pf-contact .pf-card .pf-social-grid { margin-top: auto; }

.pf-social-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
@media (min-width: 620px) { .pf-social-grid { grid-template-columns: repeat(2, 1fr); } }
.pf-social-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-sm); background: var(--pf-bg-soft); color: var(--pf-text); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease; }
.pf-social-link:hover { transform: translateY(-1px); border-color: var(--pf-accent); box-shadow: var(--pf-glow-accent); }
.pf-social-name { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.pf-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--pf-border-strong); color: var(--pf-accent); font-family: var(--pf-mono); font-size: 12px; }
.pf-social-handle { color: var(--pf-text-muted); font-family: var(--pf-mono); font-size: 11px; }

/* ============================================================
   Footer
   ============================================================ */
.pf-footer { position: relative; z-index: 1; margin-top: 80px; border-top: 1px solid var(--pf-border); background: linear-gradient(180deg, transparent 0%, var(--pf-bg-soft) 100%); }
.pf-footer-inner { max-width: 1180px; margin: 0 auto; padding: 32px 16px 24px; display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .pf-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px 28px; } .pf-footer-brand-col { grid-column: 1 / -1; } }
@media (min-width: 980px) { .pf-footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 48px 24px 32px; } .pf-footer-brand-col { grid-column: auto; } }
.pf-footer-brand-col { display: flex; flex-direction: column; gap: 14px; }
.pf-footer-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pf-mono); font-size: 16px; font-weight: 600; text-decoration: none; }
.pf-footer-brand-logo { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--pf-bg-card); border: 1.5px solid var(--pf-k8s); box-shadow: 0 0 6px #326ce54d; flex-shrink: 0; }
.pf-footer-brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-footer-brand-name { color: var(--pf-text); }
.pf-footer-bio { margin: 0; font-size: 13px; color: var(--pf-text-muted); line-height: 1.6; max-width: 280px; }
.pf-footer-fstatus { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pf-mono); font-size: 12px; color: var(--pf-text-muted); }
.pf-footer-col { display: flex; flex-direction: column; gap: 12px; }
.pf-footer-col-title { font-family: var(--pf-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-accent); margin: 0; }
.pf-footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-footer-list a, .pf-footer-list span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pf-text-muted); text-decoration: none; transition: color .15s ease; word-break: break-word; }
.pf-footer-list a:hover { color: var(--pf-accent); }
.pf-footer-list-icons svg { color: var(--pf-text-soft); flex-shrink: 0; }
.pf-footer-bottom { max-width: 1180px; margin: 0 auto; padding: 18px 24px; border-top: 1px solid var(--pf-border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pf-footer-copy { font-family: var(--pf-mono); font-size: 11px; color: var(--pf-text-soft); }
.pf-footer-lab { font-family: var(--pf-mono); font-size: 12px; color: var(--pf-text-soft); text-decoration: none; padding: 4px 10px; border: 1px solid var(--pf-border); border-radius: var(--pf-radius-pill); transition: border-color .15s ease, color .15s ease; }
.pf-footer-lab:hover { border-color: var(--pf-k8s); color: var(--pf-k8s-light); }

/* ============================================================
   Status bar
   ============================================================ */
.pf-statusbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 38px; background: #07091acc; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--pf-border); }
:root[data-theme="light"] .pf-statusbar { background: #f5f7ffd9; }
.pf-statusbar-inner { max-width: 1180px; margin: 0 auto; height: 100%; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--pf-mono); font-size: 11px; }
@media (min-width: 720px) { .pf-statusbar-inner { padding: 0 24px; } .pf-statusbar-hide-mobile { display: inline; } .pf-statusbar-link { width: 26px; height: 26px; } }
.pf-statusbar-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; overflow: hidden; }
.pf-statusbar-left .pf-status { flex-shrink: 0; }
.pf-statusbar-mono { color: var(--pf-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-statusbar-sep { color: var(--pf-text-soft); }
.pf-statusbar-hide-mobile { display: none; }
.pf-statusbar-right { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pf-statusbar-link { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; color: var(--pf-text-muted); text-decoration: none; transition: color .15s, background .15s; }
.pf-statusbar-link:hover { color: var(--pf-accent); background: var(--pf-bg-hover); }
.pf-statusbar-top { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--pf-border); border-radius: 6px; background: var(--pf-bg-card); color: var(--pf-text-muted); cursor: pointer; transition: border-color .15s, color .15s, transform .15s; }
.pf-statusbar-top:hover { border-color: var(--pf-k8s); color: var(--pf-k8s-light); transform: translateY(-1px); }

/* ============================================================
   Chat widget
   ============================================================ */
.pf-chat-card { position: fixed; right: 24px; bottom: 96px; z-index: 56; width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 126px); border: 1px solid var(--pf-border-strong); border-radius: var(--pf-radius); background: var(--pf-bg-card); box-shadow: var(--pf-shadow-k8s); overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px) scale(.97); transform-origin: right bottom; transition: opacity .18s ease, visibility .18s ease, transform .2s ease; }
.pf-chat-card.pf-chat-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.pf-chat-head { padding: 13px 16px; border-bottom: 1px solid var(--pf-border); background: linear-gradient(180deg, var(--pf-bg-hover), var(--pf-bg-card)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-chat-title { margin: 0; font-size: 14px; font-family: var(--pf-mono); color: var(--pf-accent); }
.pf-chat-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.pf-chat-close { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--pf-border); border-radius: 7px; background: var(--pf-bg-soft); color: var(--pf-text-muted); cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.pf-chat-close:hover { border-color: var(--pf-accent); color: var(--pf-accent); background: var(--pf-bg-hover); }
.pf-chat-body { max-height: min(380px, calc(100dvh - 250px)); padding: 16px; display: grid; gap: 10px; overflow-y: auto; }
.pf-message { padding: 10px 12px; border-radius: 12px; line-height: 1.5; font-size: 14px; max-width: 92%; }
.pf-message-bot { background: var(--pf-bg-soft); border: 1px solid var(--pf-border); color: var(--pf-text-muted); }
.pf-message-user { margin-left: auto; background: linear-gradient(135deg, var(--pf-k8s), var(--pf-accent)); color: #fff; }
.pf-chat-input { display: flex; gap: 10px; border-top: 1px solid var(--pf-border); padding: 12px; }
.pf-chat-input input { flex: 1; min-width: 0; border: 1px solid var(--pf-border); background: var(--pf-bg-soft); color: var(--pf-text); border-radius: var(--pf-radius-sm); padding: 10px 12px; font: 13px var(--pf-mono); }
.pf-chat-input button { border: 1px solid var(--pf-k8s); background: var(--pf-k8s); color: white; border-radius: var(--pf-radius-sm); padding: 0 12px; cursor: pointer; }

.pf-chat-bubble { position: fixed; right: 24px; bottom: 54px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; border: none; padding: 0; background: linear-gradient(135deg, var(--pf-k8s) 0%, var(--pf-accent) 100%); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 1px rgb(255 255 255 / 18%), 0 8px 22px rgb(50 108 229 / 50%), 0 16px 40px rgb(0 0 0 / 35%); touch-action: none; transition: transform .2s ease, box-shadow .2s ease, opacity .18s ease; }
.pf-chat-bubble:hover { transform: scale(1.06); box-shadow: inset 0 1px rgb(255 255 255 / 24%), 0 12px 28px rgb(50 108 229 / 60%), 0 20px 48px rgb(0 0 0 / 40%); }
.pf-chat-bubble:active { transform: scale(.96); }
.pf-chat-bubble-hidden { opacity: 0; pointer-events: none; transform: scale(.6); }
.pf-chat-bubble-avatar { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 6%)); }
.pf-chat-bubble-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.pf-chat-bubble-initials { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; font-family: var(--pf-mono); font-weight: 700; font-size: 18px; letter-spacing: .05em; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / 30%); }
.pf-chat-bubble-ring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--pf-green); pointer-events: none; animation: pf-bubble-ring 2.4s ease-out infinite; z-index: 2; }
@keyframes pf-bubble-ring { 0% { transform: scale(1); opacity: .9; } 70%, to { transform: scale(1.25); opacity: 0; } }
.pf-chat-bubble-badge { position: absolute; top: -6px; right: -6px; z-index: 3; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: linear-gradient(135deg, #ff3b3b, var(--pf-red)); color: #fff; font-size: 13px; font-weight: 800; font-family: var(--pf-mono); display: inline-flex; align-items: center; justify-content: center; border: 2.5px solid var(--pf-bg); box-shadow: inset 0 1px rgb(255 255 255 / 30%), 0 2px 8px rgb(239 68 68 / 60%), 0 4px 14px rgb(239 68 68 / 35%), 0 6px 18px rgb(0 0 0 / 40%); animation: pf-badge-pop .48s cubic-bezier(.34,1.6,.64,1), pf-badge-pulse 2.4s ease-in-out .6s infinite; }
@keyframes pf-badge-pop { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes pf-badge-pulse { 0%, to { transform: scale(1); } 50% { transform: scale(1.08); } }

@media (max-width: 560px) {
  .pf-chat-card { right: 12px; bottom: 90px; width: calc(100vw - 24px); max-height: calc(100dvh - 112px); }
  .pf-chat-bubble { right: 12px; bottom: 50px; }
}

/* ============================================================
   Responsive overrides
   ============================================================ */
@media (max-width: 720px) {
  body.pf-body { padding-top: 56px; }
  .pf-nav-brand-status, .pf-region { display: none; }
  .pf-hero-actions { flex-direction: column; }
  .pf-btn { justify-content: center; }
  .pf-deploy-list::before { display: none; }
  .pf-deploy-item { padding-left: 0; }
  .pf-deploy-marker { display: none; }
  .pf-deploy-head { flex-direction: column; }
  .pf-hero-title { font-size: clamp(38px, 12vw, 54px); }
}

/* ============================================================
   Blog — Article (single.html)
   ============================================================ */
.pf-article { max-width: 740px; margin: 0 auto; padding: 40px 0 80px; }
.pf-article-header { margin-bottom: 40px; }
.pf-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.pf-article-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 16px; background: linear-gradient(135deg, var(--pf-text) 40%, var(--pf-k8s-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-article-desc { font-size: 17px; color: var(--pf-text-muted); line-height: 1.6; margin: 0 0 24px; }
.pf-article-sep { border: none; border-top: 1px solid var(--pf-border); margin: 32px 0; }

.pf-article-content { color: var(--pf-text-muted); line-height: 1.75; font-size: 16px; }
.pf-article-content h1,
.pf-article-content h2,
.pf-article-content h3,
.pf-article-content h4 { color: var(--pf-text); font-weight: 700; letter-spacing: -.02em; margin: 2em 0 .75em; }
.pf-article-content h2 { font-size: 1.6em; border-bottom: 1px solid var(--pf-border); padding-bottom: .4em; }
.pf-article-content h3 { font-size: 1.25em; }
.pf-article-content p { margin: 0 0 1.25em; }
.pf-article-content a { color: var(--pf-accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.pf-article-content a:hover { border-color: var(--pf-accent); }
.pf-article-content code { font-family: var(--pf-mono); font-size: .88em; background: var(--pf-bg-card); border: 1px solid var(--pf-border); border-radius: 4px; padding: 2px 6px; color: var(--pf-green); }
.pf-article-content pre { background: var(--pf-bg-card); border: 1px solid var(--pf-border); border-radius: var(--pf-radius); padding: 20px; overflow-x: auto; margin: 1.5em 0; box-shadow: var(--pf-shadow); }
.pf-article-content pre code { background: none; border: none; padding: 0; font-size: .9em; color: var(--pf-text); }
.pf-article-content blockquote { border-left: 3px solid var(--pf-k8s); margin: 1.5em 0; padding: .75em 1.25em; background: var(--pf-bg-soft); border-radius: 0 var(--pf-radius-sm) var(--pf-radius-sm) 0; color: var(--pf-text-muted); font-style: italic; }
.pf-article-content ul, .pf-article-content ol { margin: 0 0 1.25em 1.5em; }
.pf-article-content li { margin-bottom: .4em; }
.pf-article-content img { max-width: 100%; border-radius: var(--pf-radius); border: 1px solid var(--pf-border); margin: 1.5em 0; }
.pf-article-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; }
.pf-article-content th { font-family: var(--pf-mono); font-size: 12px; text-align: left; padding: 10px 14px; background: var(--pf-bg-soft); border-bottom: 2px solid var(--pf-border-strong); color: var(--pf-accent); }
.pf-article-content td { padding: 10px 14px; border-bottom: 1px solid var(--pf-border); }

.pf-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* Blog — List page (homepage cards) */
.pf-post-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .pf-post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pf-post-list { grid-template-columns: repeat(3, 1fr); } }
.pf-post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.pf-post-card:hover { border-color: var(--pf-k8s); box-shadow: var(--pf-shadow-k8s); }
.pf-post-card-img { margin: -22px -22px 0 -22px; border-radius: var(--pf-radius) var(--pf-radius) 0 0; overflow: hidden; height: 160px; flex-shrink: 0; }
.pf-post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.pf-post-card:hover .pf-post-card-img img { transform: scale(1.04); }
.pf-post-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--pf-text); line-height: 1.3; }
.pf-post-desc { font-size: 14px; color: var(--pf-text-muted); line-height: 1.55; margin: 0; flex: 1; }
.pf-post-date { font-family: var(--pf-mono); font-size: 11px; color: var(--pf-text-soft); }

/* Blog — Posts list grouped by month */
.pf-month-group { margin-bottom: 40px; }
.pf-month-title {
  font-family: var(--pf-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pf-border);
}
.pf-post-month-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-post-month-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: var(--pf-radius-sm);
  transition: background .15s ease;
}
.pf-post-month-item:hover { background: var(--pf-bg-hover); }
.pf-post-month-item .pf-post-date {
  font-family: var(--pf-mono);
  font-size: 12px;
  color: var(--pf-text-soft);
  width: 20px;
  flex-shrink: 0;
  text-align: right;
}
.pf-post-month-link {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--pf-text);
  text-decoration: none;
  transition: color .15s ease;
  min-width: 0;
}
.pf-post-month-item:hover .pf-post-month-link { color: var(--pf-accent); }
.pf-post-month-tags { display: flex; gap: 6px; flex-shrink: 0; }
.pf-post-month-tags .pf-tech { font-size: 11px; padding: 2px 8px; }

/* Tags — nuage de mots */
.pf-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 24px 0;
}
.pf-tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--pf-radius-pill);
  border: 1px solid var(--pf-border);
  background: var(--pf-bg-card);
  color: var(--pf-text-muted);
  text-decoration: none;
  font-family: var(--pf-mono);
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .2s ease;
}
.pf-tag-cloud-item:hover {
  color: var(--pf-accent);
  border-color: var(--pf-accent);
  background: var(--pf-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--pf-glow-accent);
}
.pf-tag-cloud-count {
  font-size: .8em;
  color: var(--pf-text-soft);
  background: var(--pf-bg-soft);
  border-radius: var(--pf-radius-pill);
  padding: 1px 6px;
}
.pf-tag-size-sm { font-size: 12px; opacity: .8; }
.pf-tag-size-md { font-size: 14px; }
.pf-tag-size-lg { font-size: 16px; border-color: var(--pf-border-strong); color: var(--pf-text); }
.pf-tag-size-xl { font-size: 19px; border-color: var(--pf-k8s); color: var(--pf-k8s-light); box-shadow: 0 0 0 1px rgb(50 108 229 / 20%); }
