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

/* ═══════════════════════════════
   CSS VARIABLES — DARK (default)
═══════════════════════════════ */
:root {
  --bg:           #131320;
  --bg-2:         #1a1a2a;
  --bg-3:         #212134;
  --border:       #2c2c44;
  --border-hi:    #3e3e5c;
  --text:         #dcdcf0;
  --text-muted:   #7272a0;
  --accent:       #a855f7;
  --accent-dim:   #7c3aed;
  --accent-glow:  rgba(168, 85, 247, 0.18);
  --accent-sub:   rgba(168, 85, 247, 0.06);
  --silver:       #94a3b8;
  --mono:         'Space Mono', 'Courier New', monospace;
  --radius:       3px;
  --nav-h:        60px;
}

/* ═══════════════════════════════
   CSS VARIABLES — LIGHT MODE
═══════════════════════════════ */
.light-mode {
  --bg:           #f2eefa;
  --bg-2:         #e9e3f5;
  --bg-3:         #dfd8ee;
  --border:       #c8bde6;
  --border-hi:    #b3a6d8;
  --text:         #1a1430;
  --text-muted:   #6b5f94;
  --accent:       #7c3aed;
  --accent-dim:   #5b21b6;
  --accent-glow:  rgba(124, 58, 237, 0.14);
  --accent-sub:   rgba(124, 58, 237, 0.05);
  --silver:       #6b7a8d;
}

/* ═══════════════════════════════
   BASE
═══════════════════════════════ */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

/* ── Scanlines overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.055) 3px,
    rgba(0, 0, 0, 0.055) 4px
  );
  pointer-events: none;
  z-index: 9997;
}
.light-mode body::after {
  opacity: 0.45;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--accent); color: #fff; }

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

/* ═══════════════════════════════
   BUTTONS
═══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .04em;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 12px var(--accent-sub);
}
.btn-large { padding: 14px 36px; font-size: .83rem; }

/* ── Section label ── */
.section-label {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -.025em;
}

/* ═══════════════════════════════
   NAV
═══════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
#navbar.scrolled {
  background: rgba(7, 7, 12, 0.93);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.light-mode #navbar.scrolled {
  background: rgba(242, 238, 250, 0.93);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--accent);
  flex-shrink: 0;
}
.nav-logo::before { content: '> '; color: var(--text-muted); }

.nav-links {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

/* ── Nav Controls (lang + theme) ── */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 8px;
  cursor: default;
}
.lang-opt {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  transition: color .15s, background .15s;
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active {
  color: var(--accent);
  background: var(--accent-sub);
}
.lang-sep {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--border-hi);
  pointer-events: none;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Default dark: show sun, hide moon */
.icon-moon { display: none; }
/* Light mode: show moon, hide sun */
.light-mode .icon-sun  { display: none; }
.light-mode .icon-moon { display: block; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px; height: 1px;
  background: var(--text-muted);
  transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--accent); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--accent); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 20px;
  gap: 16px;
  transition: background .3s;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.nav-mobile a:hover { color: var(--accent); }

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* Dot grid — full page fixed */
#hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--accent-sub) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -1;
}

.hero-greeting {
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-greeting::before { content: '> '; color: var(--accent); }

.hero-name {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.0;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}
.hero-name span { color: var(--accent); }

/* Glitch layers */
.hero-name::before,
.hero-name::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.hero-name::before {
  color: #d946ef;
  animation: glitch-1 7s infinite;
  left: 2px;
}
.hero-name::after {
  color: #22d3ee;
  animation: glitch-2 7s infinite;
  left: -2px;
}
/* Disable glitch in light mode */
.light-mode .hero-name::before,
.light-mode .hero-name::after { display: none; }

@keyframes glitch-1 {
  0%, 85%, 100%  { opacity: 0; }
  86%  { opacity: 1; clip-path: polygon(0 16%, 100% 16%, 100% 36%, 0 36%); transform: translate(-4px, 1px); }
  88%  { opacity: 1; clip-path: polygon(0 60%, 100% 60%, 100% 76%, 0 76%); transform: translate(3px, -1px); }
  90%  { opacity: 0; }
}
@keyframes glitch-2 {
  0%, 87%, 100%  { opacity: 0; }
  88%  { opacity: 1; clip-path: polygon(0 42%, 100% 42%, 100% 56%, 0 56%); transform: translate(4px, 0); }
  90%  { opacity: 1; clip-path: polygon(0 6%, 100% 6%, 100% 22%, 0 22%);  transform: translate(-3px, 2px); }
  92%  { opacity: 0; }
}

.hero-tagline {
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 44px;
  letter-spacing: .02em;
}
.cursor {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink .85s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

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

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 48px; height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: slide 2s ease infinite;
}
@keyframes slide { 0% { left: -100%; } 100% { left: 100%; } }

/* ═══════════════════════════════
   ABOUT
═══════════════════════════════ */
#about { padding: 130px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 64px;
  align-items: start;
}
.about-text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: .9rem;
  line-height: 1.78;
}

/* ── Timeline ── */
.about-timeline {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.tl-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }
/* Dot on the timeline bar */
.tl-item::before {
  content: '';
  position: absolute;
  left: -25px; top: 18px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.tl-icon {
  color: var(--accent);
  margin-top: 1px;
  flex-shrink: 0;
}
.tl-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tl-title {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}
.tl-sub {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ── Avatar ── */
.about-visual {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.avatar-placeholder {
  width: 200px; height: 200px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1.5rem;
  letter-spacing: .12em;
  color: var(--accent);
  position: relative;
}
.avatar-placeholder::before,
.avatar-placeholder::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
  opacity: .7;
}
.avatar-placeholder::before {
  top: -4px; left: -4px;
  border-width: 1px 0 0 1px;
}
.avatar-placeholder::after {
  bottom: -4px; right: -4px;
  border-width: 0 1px 1px 0;
}

/* ═══════════════════════════════
   PROJECTS
═══════════════════════════════ */
#projects { padding: 130px 0; background: var(--bg-2); transition: background .3s; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.project-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, box-shadow .25s, transform .2s, background .3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}
.project-card:hover::before { transform: scaleY(1); }
.project-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 30px var(--accent-glow), 0 4px 24px rgba(0,0,0,.3);
  transform: translateY(-2px);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.project-icon {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--accent);
}
.project-links a { color: var(--text-muted); transition: color .2s; }
.project-links a:hover { color: var(--accent); }
.project-card h3 { font-size: .94rem; font-weight: 600; letter-spacing: -.01em; }
.project-card p  { font-size: .84rem; color: var(--text-muted); flex: 1; line-height: 1.72; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tags span {
  font-family: var(--mono);
  font-size: .66rem;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: .04em;
  transition: background .3s, border-color .3s;
}

/* ═══════════════════════════════
   SKILLS
═══════════════════════════════ */
#skills { padding: 130px 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.skill-category {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, background .3s;
  position: relative;
  overflow: hidden;
}
.skill-category::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s ease;
}
.skill-category:hover::before { transform: scaleY(1); }
.skill-category:hover { border-color: var(--border-hi); }

.sc-header {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 20px;
}
.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-tags span {
  font-family: var(--mono);
  font-size: .7rem;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  letter-spacing: .04em;
  transition: border-color .2s, color .2s, background .2s;
  cursor: default;
}
.sc-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-sub);
}

/* ═══════════════════════════════
   INTERESTS
═══════════════════════════════ */
#interests { padding: 130px 0; background: var(--bg-2); transition: background .3s; }

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.hobby-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--bg-3);
  transition: border-color .25s, box-shadow .25s, transform .2s, background .3s;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hobby-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--accent-glow);
}
.hobby-icon { color: var(--accent); margin-bottom: 18px; }
.hobby-card h3 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.hobby-card p  { font-size: .83rem; color: var(--text-muted); line-height: 1.72; margin-bottom: 14px; }

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.interest-tags span {
  font-family: var(--mono);
  font-size: .65rem;
  padding: 3px 9px;
  border-radius: 2px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: .04em;
  transition: background .3s, border-color .3s;
}

/* ═══════════════════════════════
   CONTACT
═══════════════════════════════ */
#contact { padding: 130px 0; }

.contact-inner { max-width: 560px; }
.contact-inner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.contact-inner > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: .9rem;
  line-height: 1.75;
}
.social-links {
  display: flex;
  gap: 18px;
  margin-top: 28px;
}
.social-links a {
  color: var(--text-muted);
  transition: color .2s, transform .2s;
  display: flex;
}
.social-links a:hover { color: var(--accent); transform: translateY(-2px); }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  transition: border-color .3s;
}
footer p {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-align: center;
}
footer p span { color: var(--accent); }

/* ═══════════════════════════════
   BLOG LIST PAGE
═══════════════════════════════ */
#blog-hero {
  padding: calc(var(--nav-h) + 80px) 0 64px;
}
#blog-hero .blog-hero-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
#blog-hero .blog-hero-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
}
#blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}
#blog-hero p {
  color: var(--text-muted);
  font-size: .9rem;
  font-family: var(--mono);
  letter-spacing: .02em;
}

#blog-posts { padding: 0 0 120px; }

.blog-post-list { display: flex; flex-direction: column; }

.blog-post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 32px;
  align-items: start;
  transition: padding-left .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.blog-post-card:first-child { border-top: 1px solid var(--border); }
.blog-post-card:hover { padding-left: 8px; }
.blog-post-card:hover .bpc-title { color: var(--accent); }

.bpc-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}
.bpc-date {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}
.bpc-lang {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  width: fit-content;
}

.bpc-body { display: flex; flex-direction: column; gap: 6px; }
.bpc-title {
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.015em;
  transition: color .2s;
  margin-bottom: 2px;
}
.bpc-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.bpc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.bpc-tags span {
  font-family: var(--mono);
  font-size: .64rem;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.bpc-arrow {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent);
  margin-top: 8px;
}

.blog-empty {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-muted);
  padding: 48px 0;
  letter-spacing: .06em;
}

/* ═══════════════════════════════
   BLOG POST / READER PAGE
═══════════════════════════════ */
#post-page {
  padding: calc(var(--nav-h) + 80px) 0 120px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 48px;
  transition: color .2s;
}
.post-back:hover { color: var(--accent); }
.post-back::before { content: '←'; }

.post-header { margin-bottom: 48px; max-width: 680px; }
.post-header-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.post-header-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
}
.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  flex-wrap: wrap;
}
.post-meta-row .sep { color: var(--border-hi); }
.post-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.post-tags-row span {
  font-family: var(--mono);
  font-size: .66rem;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ── Prose / Markdown content ── */
.post-content {
  max-width: 680px;
  font-size: .95rem;
  line-height: 1.82;
  color: var(--text);
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 2.2em 0 .8em;
  color: var(--text);
}
.post-content h1 { font-size: 1.6rem; }
.post-content h2 {
  font-size: 1.2rem;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin: 2.8em 0 1.2em;
}
.post-content h3 { font-size: 1.05rem; }
.post-content p  { margin-bottom: 1.4em; }
.post-content a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { opacity: .8; }
.post-content strong { font-weight: 600; color: var(--text); }
.post-content em { font-style: italic; color: var(--text-muted); }
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}
.post-content blockquote {
  border-left: 2px solid var(--accent);
  margin: 1.8em 0;
  padding: 12px 0 12px 24px;
  color: var(--text-muted);
  font-style: italic;
}
.post-content ul,
.post-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}
.post-content li { margin-bottom: .4em; }
.post-content ul li { list-style: none; position: relative; }
.post-content ul li::before {
  content: '—';
  position: absolute;
  left: -1.4em;
  color: var(--accent);
  font-size: .85em;
}
.post-content code {
  font-family: var(--mono);
  font-size: .82em;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 7px;
  color: var(--accent);
}
.post-content pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.6em 0;
  position: relative;
}
.post-content pre::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .82rem;
  color: var(--text);
}
.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.6em 0;
}

.post-loading {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  padding: 60px 0;
}
.post-loading::after {
  content: ' _';
  animation: blink .9s step-end infinite;
}

/* ═══════════════════════════════
   FADE-IN ANIMATION
═══════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual { order: -1; }
  .avatar-placeholder { width: 130px; height: 130px; font-size: 1.2rem; }
  #hero { padding: 0 24px; }
  .hero-scroll { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .nav-controls { gap: 8px; }
}
