/* ═══════════════════════════════════════════════════════════
   Nyrox — Dark / Minimal / Technical / Premium
   Cybersecurity aesthetic · GitHub + Discord identity
   Pure CSS · no build step
   ═══════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #000000;
  --bg-2:      #0C0C0C;
  --bg-3:      #0C0C0C;
  --surface:   #1B1B1B;
  --surface-2: #242424;
  --surface-3: #2E2E2E;
  --border:    #373737;
  --border-strong: #4A4A4A;

  --text:      #CFCFCF;
  --heading:   #F6F6F6;
  --muted:     #7D7D7D;
  --muted-2:   #5A5A5A;

  --accent:    #F6F6F6;
  --accent-2:  #CFCFCF;
  --grad:      linear-gradient(135deg, #F6F6F6 0%, #9E9E9E 100%);
  --grad-soft: linear-gradient(135deg, rgba(246,246,246,.10), rgba(207,207,207,.05));

  --discord:   #F6F6F6;
  --green:     #CFCFCF;
  --red:       #F6F6F6;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 7px;

  --maxw: 1160px;
  --nav-h: 72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", Consolas, monospace;

  --shadow:    0 12px 40px rgba(0,0,0,.55);
  --shadow-sm: 0 4px 16px rgba(0,0,0,.4);
  --glow:      0 0 0 1px rgba(246,246,246,.18), 0 8px 32px rgba(0,0,0,.4);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; }

::selection { background: rgba(246,246,246,.25); color: #000; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1B1B1B; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #373737; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ─── Ambient background ─────────────────────────────────── */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(246,246,246,.07), transparent 60%),
    radial-gradient(800px 500px at -8% 22%, rgba(246,246,246,.05), transparent 55%),
    radial-gradient(700px 700px at 50% 120%, rgba(246,246,246,.04), transparent 60%),
    var(--bg);
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

/* ─── Layout helpers ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015) 12%, rgba(255,255,255,.015) 88%, transparent); }

.divider { height: 1px; max-width: var(--maxw); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--border), transparent); }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
.section-label::before { content: "//"; color: var(--muted-2); }

.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.section-head p  { color: var(--muted); max-width: 560px; margin-top: 12px; font-size: 16.5px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
  background: var(--grad); color: #0C0C0C; box-shadow: 0 6px 22px rgba(0,0,0,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.55); }

.btn-outline {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }

.btn-discord {
  background: var(--discord); color: #0C0C0C; box-shadow: 0 6px 22px rgba(0,0,0,.45);
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.55); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }

.btn-danger { background: rgba(246,246,246,.08); color: var(--red); border-color: rgba(246,246,246,.3); }
.btn-danger:hover { background: rgba(246,246,246,.15); }

.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

.btn[disabled] { opacity: .55; pointer-events: none; }

/* ─── Cards / tags ─────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); white-space: nowrap;
}
.tag-tech { color: #CFCFCF; border-color: rgba(246,246,246,.25); background: rgba(246,246,246,.06); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge-green { background: rgba(246,246,246,.07); color: var(--green); border: 1px solid rgba(246,246,246,.25); }
.badge-accent { background: var(--grad-soft); color: var(--accent-2); border: 1px solid rgba(246,246,246,.25); }
.badge-gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-discord { background: rgba(246,246,246,.08); color: #F6F6F6; border: 1px solid rgba(246,246,246,.3); }
.badge-red { background: rgba(246,246,246,.07); color: var(--red); border: 1px solid rgba(246,246,246,.25); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.live { background: var(--green); box-shadow: 0 0 0 0 rgba(246,246,246,.6); animation: pulse-dot 2s infinite; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.navbar.scrolled { border-bottom-color: var(--border); background: rgba(0,0,0,.88); box-shadow: 0 8px 30px rgba(0,0,0,.35); }

.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad); color: #0C0C0C; font-size: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  flex-shrink: 0;
}
.logo-icon-sm { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #0C0C0C; font-size: 13px; flex-shrink: 0; }
.logo-svg { width: 22px; height: 22px; display: block; }
.logo-icon-sm .logo-svg { width: 17px; height: 17px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 13px; font-size: 14px; font-weight: 500; color: var(--muted);
  border-radius: 8px; transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--accent-2); background: var(--grad-soft); }

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

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 17px; align-items: center; justify-content: center;
}

.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(0,0,0,.97); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px); padding: 12px 24px 20px;
}
.nav-mobile.open { display: block; }
.nav-mobile .nav-link { display: block; padding: 12px 8px; font-size: 15px; }
.nav-mobile .nav-cta { margin-top: 10px; width: 100%; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero { min-height: calc(100vh - var(--nav-h)); padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; display: flex; align-items: center; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(246,246,246,.25); background: rgba(246,246,246,.05); color: var(--green);
  margin-bottom: 22px;
}

.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 900; letter-spacing: -.03em; line-height: 1.04; }
.hero-role {
  font-family: var(--mono); font-size: clamp(14px, 1.8vw, 17px); color: var(--accent-2);
  margin-top: 14px; letter-spacing: .01em;
}
.hero-role .cursor { display: inline-block; width: 9px; height: 18px; background: var(--accent-2); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }

.hero-bio { color: var(--muted); max-width: 540px; margin-top: 18px; font-size: 17px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { color: var(--accent-2); }

.social-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 42px; max-width: 480px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.social-stats .stat-item {
  display: block; background: var(--bg-2); padding: 18px 16px; text-align: center;
  color: inherit; text-decoration: none;
  transition: background .2s;
}
.social-stats .stat-item:hover { background: var(--surface); }
.stat-number { display: block; font-size: 26px; font-weight: 800; font-family: var(--mono); }
.stat-label { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.avatar-ring {
  position: relative; width: min(340px, 78vw); aspect-ratio: 1; border-radius: 50%;
  padding: 4px; background: var(--grad);
  box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(246,246,246,.15);
  animation: float 6s ease-in-out infinite;
}
.avatar-ring::after {
  content: ""; position: absolute; inset: -40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,246,246,.10), transparent 65%);
  filter: blur(20px); z-index: -1;
}
.avatar-ring .avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-3); display: block; }
.avatar-ring .avatar-fallback {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; font-size: 90px; color: var(--accent-2);
  background: linear-gradient(160deg, #1B1B1B, #0C0C0C);
}
.avatar-chip {
  position: absolute; bottom: 26px; right: -6px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-3); border: 1px solid var(--border-strong);
  padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm); font-family: var(--mono);
}
.avatar-chip .status-dot { width: 9px; height: 9px; }
.avatar-chip i { color: var(--discord); }

/* ─── About ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }

.about-panel { position: relative; }
.about-panel img, .about-panel .about-fallback {
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.about-fallback { display: grid; place-items: center; background: var(--bg-3); font-size: 84px; color: var(--accent-2); }
.about-panel .about-tools {
  position: absolute; left: -16px; bottom: -14px;
  display: flex; gap: 8px; background: var(--bg-3);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 16px;
  box-shadow: var(--shadow); font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.about-panel .about-tools i { color: var(--accent-2); }

.about-copy h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }

.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.fact {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px;
}
.fact i { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--accent-2); font-size: 14px; }
.fact small { display: block; font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; }
.fact a:hover { color: var(--accent-2); }

/* ─── Skills ─────────────────────────────────────────────── */
.skills-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.skill-group h3 { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.skill-group h3::after { content: ""; height: 1px; flex: 1; background: var(--border); }

.skill-row { margin-bottom: 17px; }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.skill-head span { font-size: 14.5px; font-weight: 600; }
.skill-head .pct { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); }
.skill-track { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.skill-fill {
  height: 100%; width: 0; border-radius: 99px; background: var(--grad);
  box-shadow: 0 0 12px rgba(246,246,246,.25);
  transition: width 1.1s var(--ease);
}

/* ─── Cards grid (projects / labs) ─────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .card-status { position: absolute; top: 12px; left: 12px; }
.card-media .card-icon {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 42px; color: var(--accent-2); background: linear-gradient(160deg, #1B1B1B, #0C0C0C);
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.card-body h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.card-body .card-desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--border); }
.card-links { display: flex; gap: 14px; align-items: center; }
.card-links a { font-size: 13px; font-weight: 600; color: var(--muted); transition: color .18s; }
.card-links a:hover { color: var(--accent-2); }
.card-arrow { color: var(--muted-2); font-size: 13px; transition: transform .2s var(--ease), color .2s; }
.card:hover .card-arrow { transform: translateX(4px); color: var(--accent-2); }

/* ─── Timeline (learning journey) ────────────────────────── */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 18px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border-strong) 8%, var(--border-strong) 92%, transparent);
}
.timeline-item { position: relative; padding-left: 60px; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 11px; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--bg);
  border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(246,246,246,.10);
}
.timeline-item .t-date {
  font-family: var(--mono); font-size: 12px; color: var(--accent-2);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.timeline-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.timeline-item p { color: var(--muted); font-size: 14.5px; max-width: 640px; }
.timeline-item .t-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ─── GitHub section ─────────────────────────────────────── */
.gh-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.gh-card .gh-head { display: flex; align-items: center; gap: 12px; }
.gh-card .gh-head .gh-icon {
  width: 44px; height: 44px; border-radius: 11px; background: #0C0C0C;
  border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 21px; color: var(--text);
}
.gh-card h3 { font-size: 15px; font-weight: 700; }
.gh-card .gh-meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }
.gh-card .gh-desc { color: var(--muted); font-size: 13.5px; min-height: 20px; }
.gh-card .gh-foot { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.gh-card .gh-foot span { display: inline-flex; align-items: center; gap: 6px; }
.gh-card .gh-foot i { font-size: 13px; }
.gh-lang { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.gh-empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  padding: 40px 20px; font-family: var(--mono); font-size: 14px;
}

/* ─── Discord section ────────────────────────────────────── */
.discord-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 44px 48px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(246,246,246,.08), rgba(246,246,246,.02) 55%, transparent);
  border: 1px solid rgba(246,246,246,.2); position: relative; overflow: hidden;
}
.discord-banner::before {
  content: ""; position: absolute; top: -120px; right: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(246,246,246,.10), transparent 65%);
}
.discord-banner .db-left { display: flex; align-items: center; gap: 22px; position: relative; }
.discord-logo {
  width: 66px; height: 66px; border-radius: 18px; background: var(--discord);
  display: grid; place-items: center; font-size: 32px; color: #0C0C0C;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); flex-shrink: 0;
}
.discord-banner h3 { font-size: 22px; font-weight: 800; }
.discord-banner .db-sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.discord-banner .db-handle { font-family: var(--mono); font-size: 13px; color: #CFCFCF; margin-top: 8px; }
.discord-banner .db-right { position: relative; flex-shrink: 0; }

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-side p { color: var(--muted); margin-top: 14px; }
.contact-channels { display: grid; gap: 12px; margin-top: 26px; }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.channel:hover { border-color: var(--border-strong); transform: translateX(4px); }
.channel i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-size: 16px; flex-shrink: 0; }
.channel.c-github  i { background: rgba(246,246,246,.06); color: var(--text); }
.channel.c-discord i { background: rgba(246,246,246,.08); color: #F6F6F6; }
.channel.c-mail    i { background: var(--grad-soft); color: var(--accent-2); }
.channel .c-label { display: block; font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.channel .c-value { font-size: 14.5px; font-weight: 600; }

.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-size: 14.5px; resize: vertical;
  transition: border-color .18s, box-shadow .18s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-2); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(246,246,246,.12);
}

.form-feedback {
  display: none; align-items: center; gap: 9px;
  padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px;
}
.form-feedback.error   { display: flex; background: rgba(246,246,246,.07); border: 1px solid rgba(246,246,246,.25); color: var(--red); }
.form-feedback.success { display: flex; background: rgba(246,246,246,.07); border: 1px solid rgba(246,246,246,.25); color: var(--green); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 60px 0 34px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .18s, transform .18s; }
.footer-col a:hover { color: var(--accent-2); transform: translateX(3px); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); transition: all .2s var(--ease);
}
.social-link:hover { color: var(--accent-2); border-color: var(--accent); transform: translateY(-3px); }

.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-2);
}
.footer-bottom .mono { font-size: 12px; }
.footer-bottom a:hover { color: var(--accent-2); }

/* ─── Animations ─────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-up.visible { opacity: 1; transform: none; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(246,246,246,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(246,246,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(246,246,246,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 60px 0; color: var(--muted); font-family: var(--mono); font-size: 14px;
}
.loading i { animation: spin 1s linear infinite; color: var(--accent-2); }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 800px 100%; animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}

.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty-state i { font-size: 40px; color: var(--muted-2); margin-bottom: 14px; display: block; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; color: var(--text); }

/* ─── Page hero (listing / detail) ───────────────────────── */
.page-hero { padding: calc(var(--nav-h) + 76px) 0 0; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 900; letter-spacing: -.02em; }
.page-hero p { color: var(--muted); max-width: 620px; margin-top: 12px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs i { font-size: 10px; }

/* ─── Listing toolbar (search / filter) ──────────────────── */
.toolbar {
  display: flex; flex-direction: column; gap: 18px; margin: 48px 0 32px;
  position: sticky; top: calc(var(--nav-h) + 14px); z-index: 40;
  background: rgba(0,0,0,.82); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}

/* ─── Detail pages ───────────────────────────────────────── */
.detail-hero { padding: calc(var(--nav-h) + 60px) 0 40px; }
.detail-title { font-size: clamp(30px, 4.5vw, 46px); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; margin-top: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.detail-meta .dm { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.detail-meta .dm i { color: var(--accent-2); }

.detail-cover {
  margin: 36px 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 21/9; background: var(--bg-3);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 72px; color: var(--accent-2); }

.detail-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.prose { max-width: 820px; }
.prose h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 40px 0 14px; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: "//"; font-family: var(--mono); color: var(--accent); font-size: 20px; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose ul { list-style: none; margin-bottom: 18px; }
.prose ul li { color: var(--muted); padding: 6px 0 6px 26px; position: relative; }
.prose ul li::before { content: "▸"; position: absolute; left: 0; color: var(--accent-2); font-size: 13px; }
.prose pre {
  background: #0C0C0C; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; overflow-x: auto; margin: 20px 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
}
.prose code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }
.prose .tag { margin: 0 6px 8px 0; }

.screenshots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.screenshot { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/9; background: var(--bg-3); }
.screenshot img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted-2); font-size: 30px; }

.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.side-card { padding: 22px; margin-bottom: 16px; }
.side-card h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.side-list { display: grid; gap: 10px; }
.side-list .sl { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.side-list .sl i { width: 26px; text-align: center; color: var(--accent-2); font-size: 13px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }

/* ─── Markdown-ish content fallback ──────────────────────── */
.content-text { white-space: pre-wrap; color: var(--muted); }

/* ─── Auth (login) ───────────────────────────────────────── */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 410px; padding: 40px 36px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.auth-logo { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; margin-bottom: 30px; }
.auth-card h2 { font-size: 24px; font-weight: 800; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 6px 0 26px; }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-card .form-feedback { margin-top: 16px; }
.auth-back-p { margin-top: 22px; text-align: center; }
.auth-back-link { font-size: 13.5px; color: var(--muted); transition: color .18s; }
.auth-back-link:hover { color: var(--accent-2); }

/* ─── Admin / Dashboard ──────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.dash-sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 22px 16px;
}
.dash-sidebar-header { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 800; padding: 0 8px 22px; }
.dash-nav { display: grid; gap: 3px; flex: 1; }
.dash-nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 13px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--muted); font-size: 14px; font-weight: 500; text-align: left;
  transition: all .16s var(--ease);
}
.dash-nav-item:hover { color: var(--text); background: var(--surface); }
.dash-nav-item.active { color: var(--accent-2); background: var(--grad-soft); border-color: rgba(246,246,246,.2); }
.dash-nav-item i { width: 18px; text-align: center; font-size: 14px; }

.dash-sidebar-footer { border-top: 1px solid var(--border); padding-top: 16px; display: grid; gap: 8px; }
.dash-sidebar-footer strong { font-size: 13px; padding: 0 8px; word-break: break-all; }
.view-link { font-size: 13px; color: var(--muted); padding: 8px; border-radius: 8px; display: flex; align-items: center; gap: 8px; transition: color .18s; }
.view-link:hover { color: var(--accent-2); }

.dash-main { min-width: 0; padding: 30px 34px 60px; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-topbar h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.dash-topbar .mono { font-size: 12.5px; color: var(--muted-2); }

.dash-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.dash-card > h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }

.dash-form { display: grid; gap: 16px; }
.dash-form .form-row { grid-template-columns: 1fr 1fr; }
.dash-form .form-group label { color: var(--muted); font-size: 12.5px; }
.form-hint { font-size: 12px; color: var(--muted-2); }

/* Overview tiles */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.overview-tile {
  display: grid; gap: 10px; text-align: left; padding: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: all .2s var(--ease);
}
.overview-tile:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.overview-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-2); font-size: 17px; }
.overview-count { font-size: 30px; font-weight: 800; font-family: var(--mono); }
.overview-label { font-size: 13px; color: var(--muted); }
.overview-count .badge { margin-left: 8px; font-size: 10px; vertical-align: middle; }

/* CRUD */
.crud-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.crud-list-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.crud-list-header h3 { font-size: 16px; font-weight: 700; margin: 0; }
.crud-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 8px;
}
.crud-item span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crud-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-icon {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted); font-size: 12.5px;
  display: grid; place-items: center; transition: all .16s;
}
.btn-icon:hover { color: var(--text); border-color: var(--border-strong); }
.btn-icon.danger:hover { color: var(--red); border-color: rgba(246,246,246,.3); }

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

.image-field-row { display: flex; gap: 10px; align-items: center; }
.image-field-row input { flex: 1; }
.upload-btn { display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; transition: all .18s; }
.upload-btn:hover { color: var(--accent-2); border-color: var(--accent); }
.upload-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; background: var(--bg-3); }

/* Messages */
.messages-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.messages-header h3 { margin: 0; }
.message-item {
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px;
}
.message-item.unread { border-color: rgba(246,246,246,.3); background: var(--grad-soft); }
.message-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.message-name { font-weight: 700; font-size: 14.5px; }
.message-item.unread .message-name::after { content: "●"; color: var(--accent); font-size: 10px; margin-left: 8px; }
.message-email { color: var(--accent-2); font-size: 13px; }
.message-date { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.message-body { color: var(--muted); font-size: 14px; margin-top: 12px; white-space: pre-wrap; }
.message-actions { display: flex; gap: 10px; margin-top: 14px; }

/* Dash quick actions */
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.dash-empty { text-align: center; color: var(--muted); padding: 40px; }

/* Upload progress */
.upload-progress { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }

/* JSON/textarea field */
textarea.code-input { font-family: var(--mono); font-size: 13px; min-height: 130px; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-panel { max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .crud-layout { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .skills-layout { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: static; height: auto; flex-direction: row; align-items: center;
    padding: 12px 16px; flex-wrap: wrap; gap: 10px;
  }
  .dash-sidebar-header { padding: 0; margin-right: auto; }
  .dash-nav { flex: none; flex-direction: row; flex-wrap: wrap; order: 3; width: 100%; }
  .dash-nav-item { width: auto; }
  .dash-sidebar-footer { border-top: 0; padding-top: 0; flex-direction: row; align-items: center; }
  .dash-sidebar-footer strong { display: none; }
  .dash-main { padding: 24px 20px 50px; }
  .discord-banner { flex-direction: column; align-items: flex-start; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .form-row { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .social-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-number { font-size: 21px; }
  .timeline-item { padding-left: 48px; }
  .screenshots { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .toolbar { top: calc(var(--nav-h) + 8px); padding: 14px; }
  .auth-card { padding: 32px 24px; }
  .avatar-chip { right: 4px; }
  .about-panel .about-tools { left: 8px; }
}

/* ─── Detail modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4, 4, 10, .82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative; width: min(900px, 100%); max-height: 90vh;
  overflow-y: auto; background: var(--bg-2);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  animation: modalIn .22s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: sticky; top: 0; z-index: 3;
  margin: 12px 12px 0 auto; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--muted); font-size: 15px;
  cursor: pointer; display: grid; place-items: center;
  transition: color .18s, border-color .18s;
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.modal-body { padding: 4px clamp(22px, 4vw, 40px) 40px; }
.modal-body .detail-title { font-size: clamp(26px, 4vw, 38px); }
body.modal-open { overflow: hidden; }

/* Cards openable as buttons */
.card[role="button"] { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   NoxLog — blog-specific styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero (blog) ─────────────────────────────────────────── */
.blog-hero { padding: calc(var(--nav-h) + 84px) 0 64px; position: relative; }
.blog-hero .hero-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); border: 1px solid var(--border); background: var(--surface); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.blog-hero h1 { font-size: clamp(38px, 6.5vw, 64px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 18px; }
.blog-hero .hero-intro { max-width: 640px; color: var(--muted); font-size: 17.5px; margin-bottom: 34px; }

/* ─── Search ──────────────────────────────────────────────── */
.search-wrap { max-width: 620px; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 6px 8px 6px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(246,246,246,.08); }
.search-bar i { color: var(--muted-2); font-size: 15px; }
.search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px; padding: 10px 0;
}
.search-bar input::placeholder { color: var(--muted-2); }
.search-clear { background: none; border: none; color: var(--muted-2); padding: 6px; border-radius: 8px; }
.search-clear:hover { color: var(--text); }

/* ─── Chips / filters ─────────────────────────────────────── */
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em;
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
  transition: color .18s, border-color .18s, background .18s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--grad); color: #0C0C0C; border-color: transparent; font-weight: 600; }
.chip .chip-count { opacity: .6; margin-left: 6px; }

/* ─── Article cards ───────────────────────────────────────── */
.article-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.article-cover { aspect-ratio: 16/8; background: var(--surface-2); overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover .cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em; color: var(--muted-2);
  text-transform: uppercase;
}
.article-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.article-meta .sep { color: var(--muted-2); }
.article-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.article-card h3:hover { color: var(--accent-2); }
.article-card .desc { color: var(--muted); font-size: 14.5px; flex: 1; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.grid-blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-blog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-blog { grid-template-columns: 1fr; } }

/* ─── Tag cloud ───────────────────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill {
  font-family: var(--mono); font-size: 12.5px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: color .18s, border-color .18s, transform .18s var(--ease);
}
.tag-pill:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.tag-pill.active { background: var(--grad); color: #0C0C0C; border-color: transparent; }
.tag-pill .n { opacity: .55; margin-left: 5px; font-size: 11px; }

/* ─── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 34px; color: var(--muted-2); margin-bottom: 14px; display: block; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ─── Article page ────────────────────────────────────────── */
.article-page { max-width: 780px; margin: 0 auto; padding: calc(var(--nav-h) + 60px) 0 90px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 34px; transition: color .18s; }
.back-link:hover { color: var(--accent-2); }
.article-page .article-cover-lg { aspect-ratio: 16/7; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; }
.article-page .article-cover-lg img { width: 100%; height: 100%; object-fit: cover; }
.article-page .a-cat { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.article-page h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -.025em; line-height: 1.12; margin: 12px 0 20px; }
.article-page .byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-bottom: 26px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.byline .author { color: var(--heading); font-weight: 600; }
.byline .sep { color: var(--muted-2); }

/* Prose (article content) */
.prose { font-size: 16.5px; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; line-height: 1.3; letter-spacing: -.015em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--heading); }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .35em 0; }
.prose blockquote {
  border-left: 3px solid var(--accent-2); background: var(--surface);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted);
}
.prose blockquote p { margin: 0; }
.prose hr { border: none; height: 1px; background: var(--border); margin: 2.2em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; color: var(--heading); }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }

/* Code blocks */
.codeblock {
  position: relative; margin: 1.6em 0;
  background: #0C0C0C; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.codeblock .cb-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; }
.codeblock pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.codeblock pre code { background: none; border: none; padding: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--text); }
.cb-copy { background: none; border: 1px solid var(--border); color: var(--muted); font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 6px; transition: color .18s, border-color .18s; }
.cb-copy:hover { color: var(--text); border-color: var(--border-strong); }

/* Article page tags + related */
.article-page .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.related { margin-top: 64px; }
.related h2 { font-size: 22px; margin-bottom: 22px; }
.related .grid-blog { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .related .grid-blog { grid-template-columns: 1fr; } }

/* ─── About page ──────────────────────────────────────────── */
.about-page { max-width: 780px; margin: 0 auto; padding: calc(var(--nav-h) + 60px) 0 90px; }
.about-page .section-label { margin-top: 46px; }
.about-page h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -.025em; margin: 12px 0 20px; }
.about-page p.lead { font-size: 18px; color: var(--text); }
.about-page p { margin: 1em 0; color: var(--muted); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
@media (max-width: 640px) { .about-facts { grid-template-columns: 1fr; } }
.fact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.fact-card i { color: var(--accent-2); margin-right: 10px; }
.fact-card strong { color: var(--heading); }
.fact-card span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ─── Loading ─────────────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 90px 0; color: var(--muted); font-family: var(--mono); font-size: 13px; }
