/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root{
  --bg: #0b0c0f;
  --bg-elevated: #14161b;
  --bg-nav: rgba(20, 22, 27, 0.65);
  --text: #ececef;
  --text-dim: #8b8f98;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #d9822b;
  --accent-soft: rgba(217, 130, 43, 0.18);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --nav-height: 50px;
  --radius-pill: 999px;

  --transition-fast: 200ms cubic-bezier(.4, 0, .2, 1);
  --transition-liquid: 480ms cubic-bezier(.16, 1, .3, 1);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; background: var(--bg); }
body{
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(900px 520px at 50% -8%, rgba(217, 130, 43, 0.12), transparent 60%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   DOT-FIELD BACKGROUND (canvas painted by static/js/main.js)
   ========================================================= */
/* =========================================================
   LIQUID CAPSULE NAVBAR
   ========================================================= */
.nav-capsule{
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 4px;
  background: var(--bg-nav);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-liquid-wrap{
  position: absolute;
  inset: 4px;
  filter: url(#goo);
  pointer-events: none;
}

.nav-indicator{
  position: absolute;
  top: 0;
  left: 0;
  height: calc(var(--nav-height) - 8px);
  width: 60px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  box-shadow: 0 0 22px var(--accent-soft) inset;
  transition: transform var(--transition-liquid), width var(--transition-liquid);
  will-change: transform, width;
}

.nav-list{
  position: relative;
  z-index: 2;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.nav-link{
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: calc(var(--nav-height) - 8px);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active{ color: var(--text); }

.nav-icon{ width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 640px){
  .nav-capsule{ top: 12px; }
  .nav-link{ padding: 0 11px; }
  .nav-text{ display: none; }
  .nav-icon{ width: 18px; height: 18px; }
}

/* =========================================================
   LAYOUT / SECTIONS
   ========================================================= */
main{ display: block; }

.section{
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 24px;
  border-top: 1px solid var(--border);
}
.section:first-of-type{ border-top: none; }

.section-title{
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}
.hero-kicker{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero-name{
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  min-height: 1.2em;
}
.hero-role{
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: var(--text-dim);
  margin: 0 0 30px;
  min-height: 1.4em;
}
[data-decrypt], [data-decrypt-cycle]{ font-variant-ligatures: none; }

.hero-actions{ display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.btn-link{
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.btn-link:hover{ border-color: var(--accent); color: var(--accent); }
.btn-link.primary{ color: var(--text); border-color: var(--text-dim); }

.hero-social{ display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.social-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.social-icon svg{ width: 18px; height: 18px; }
.social-icon:hover{ color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p{
  color: var(--text-dim);
  margin: 0 0 16px;
  max-width: 62ch;
}
.terminal-card{
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.terminal-card .dot-row{ display: flex; gap: 6px; margin-bottom: 14px; }
.terminal-dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.terminal-card pre{ margin: 0; white-space: pre-wrap; color: var(--text); font-family: var(--font-mono); }

@media (max-width: 720px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills-list{ display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.skill-pill{
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
}

/* =========================================================
   PROJECTS (minimalist rows, not cards)
   ========================================================= */
.project-row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  transition: padding-left var(--transition-fast);
}
.project-row:first-child{ border-top: none; }
.project-row:hover{ padding-left: 8px; }
.project-main{ flex: 1; min-width: 0; }
.project-title{ font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.project-desc{ color: var(--text-dim); font-size: 0.92rem; margin: 0 0 10px; max-width: 56ch; }
.project-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags .skill-pill{ font-size: 11px; padding: 4px 10px; }
.project-status{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 4px;
}
.project-status.is-live{ color: var(--accent); }
.projects-more{ margin-top: 28px; display: inline-block; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-text{ color: var(--text-dim); max-width: 52ch; margin: 0 0 28px; }
.contact-email{
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  display: inline-block;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.contact-email:hover{ color: var(--accent); border-color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.footer-social{ display: flex; gap: 14px; }
.footer-social a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}
.footer-social a svg{ width: 18px; height: 18px; }
.footer-social a:hover{ color: var(--accent); }
.footer-copyright{ }

.back-to-top{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font: inherit;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.back-to-top svg{ width: 16px; height: 16px; }
.back-to-top:hover{ color: var(--accent); border-color: var(--accent); }

/* =========================================================
   SCROLL-REVEAL UTILITY (main.js: initScrollReveal)
   ========================================================= */
[data-reveal]{
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal="scale"]{ opacity: 0; transform: translateY(16px) scale(0.96); }
[data-reveal="left"]{ opacity: 0; transform: translateX(-28px); }
[data-reveal].is-visible{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   FEATURED PROJECTS (home) — card style, lift + top-bar reveal on hover
   ========================================================= */
.featured-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.featured-card{
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 260ms ease, border-color 260ms ease;
}
.featured-card::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}
.featured-card:hover{ transform: translateY(-4px); border-color: var(--accent); }
.featured-card:hover::before{ transform: scaleX(1); }

.featured-year{ font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.featured-title{ font-size: 1.05rem; font-weight: 600; margin: 10px 0 8px; }
.featured-text{ color: var(--text-dim); font-size: 0.9rem; margin: 0 0 14px; }
.featured-tags{ display: flex; gap: 6px; flex-wrap: wrap; }
.featured-tags .skill-pill{ font-size: 11px; padding: 4px 10px; }

@media (max-width: 820px){
  .featured-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   LATEST POSTS (home) — dashed row list, gap-widening hover
   ========================================================= */
.post-row{
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
  transition: gap 220ms ease, color 220ms ease;
}
.post-row:last-of-type{ border-bottom: none; }
.post-row:hover{ gap: 32px; color: var(--accent); }
.post-date{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 80px;
}
.post-title{ font-size: 0.98rem; }

/* =========================================================
   ABOUT PAGE — intro, tech stack grid, experience list, CTA buttons
   ========================================================= */
.about-lead{
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 65ch;
  margin: 0;
}

.tech-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tech-item{
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: transform 220ms ease, border-color 220ms ease;
}
.tech-item:hover{ transform: translateY(-4px); border-color: var(--accent); }
.tech-icon{
  width: 34px;
  height: 34px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-icon svg{ width: 100%; height: 100%; }
.tech-icon-text{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  width: auto; height: auto;
}
.tech-label{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 720px){
  .tech-grid{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 480px){
  .tech-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.experience-list{ display: flex; flex-direction: column; }
.experience-item{
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.experience-item:first-child{ border-top: none; }
.experience-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.experience-title{ font-size: 1.05rem; font-weight: 600; margin: 0; }
.experience-dates{ font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.experience-text{ color: var(--text-dim); font-size: 0.92rem; margin: 0; max-width: 60ch; }

.cta-row{ display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.btn-pill{
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg);
  transition: transform 200ms ease, opacity 200ms ease;
}
.btn-pill:hover{ transform: translateY(-2px); opacity: 0.9; }
.btn-pill-outline{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-pill-outline:hover{ border-color: var(--accent); color: var(--accent); background: transparent; opacity: 1; }

/* =========================================================
   PROJECTS PAGE — image-top cards, glow border on hover
   (this was missing before — project_list.html/project_detail.html
   classes had no matching CSS yet)
   ========================================================= */
.projects-page{ max-width: 1100px; }

.projects-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card{
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.project-card:hover{
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 32px var(--accent-soft);
}
.project-card-image{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}
.project-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.project-card:hover .project-card-image img{ transform: scale(1.06); }

.project-card-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(11, 12, 15, 0.55);
  opacity: 0;
  transition: opacity 260ms ease;
}
.project-card:hover .project-card-overlay{ opacity: 1; }

.project-card-icon-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease, border-color 200ms ease, color 200ms ease;
}
.project-card:hover .project-card-icon-btn{ transform: translateY(0); opacity: 1; }
.project-card-icon-btn:nth-of-type(2){ transition-delay: 50ms; }
.project-card-icon-btn svg{ width: 18px; height: 18px; }
.project-card-icon-btn:hover{ border-color: var(--accent); color: var(--accent); }

.project-card-body{ padding: 24px 26px 26px; }
.project-card-year{ font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.project-card-title{ font-size: 1.2rem; font-weight: 700; margin: 10px 0 10px; }
.project-card-title a{ color: var(--text); transition: color 200ms ease; }
.project-card-title a:hover{ color: var(--accent); }
.project-card-text{ color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; margin: 0 0 18px; }
.project-card-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.project-card-tags .skill-pill{ font-size: 12px; padding: 6px 12px; }

@media (max-width: 900px){
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .projects-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   PROJECT DETAIL PAGE
   ========================================================= */
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  transition: color 200ms ease, gap 200ms ease;
}
.back-link:hover{ color: var(--accent); gap: 10px; }
.back-link svg{ width: 14px; height: 14px; }

.project-detail-image{
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.project-detail-image img{ width: 100%; display: block; }

.project-detail-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.project-detail-title{ font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin: 0; }
.project-detail-year{ font-family: var(--font-mono); font-size: 13px; color: var(--accent); white-space: nowrap; }

.project-detail-tags{ display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

.project-detail-body p{ color: var(--text-dim); max-width: 68ch; margin: 0 0 18px; line-height: 1.6; }

.project-detail-links{ display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* =========================================================
   BLOG LIST — grouped by year, hover reveals arrow
   ========================================================= */
.blog-page{ max-width: 760px; }
.blog-heading{ text-align: center; }
.blog-subtitle{ text-align: center; color: var(--text-dim); margin: -14px 0 48px; }

.blog-year-group + .blog-year-group{ margin-top: 8px; }
.blog-year{
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
}
.blog-year-group:first-child .blog-year{ border-top: none; padding-top: 0; }

.blog-row{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 14px;
  margin: 0 -14px;
  border-radius: 10px;
  color: var(--text);
  transition: background 200ms ease, padding-left 200ms ease;
}
.blog-row:hover{ background: var(--bg-elevated); padding-left: 22px; }
.blog-row-date{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 56px;
}
.blog-row-title{ flex: 1; font-size: 0.98rem; }
.blog-row-arrow{
  width: 16px;
  height: 16px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
  flex-shrink: 0;
}
.blog-row:hover .blog-row-arrow{ opacity: 1; transform: translateX(0); }

/* =========================================================
   BLOG POST DETAIL — back pill, centered header, prev/next nav
   ========================================================= */
.post-detail{ max-width: 720px; }

.back-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  margin-bottom: 40px;
  transition: color 200ms ease, border-color 200ms ease;
}
.back-pill svg{ width: 14px; height: 14px; }
.back-pill:hover{ color: var(--accent); border-color: var(--accent); }

.post-detail-header{ text-align: center; margin-bottom: 44px; }
.post-detail-title{
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.25;
}
.post-detail-date{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.post-detail-body p{
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 22px;
}
.post-detail-image{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 28px 0;
}
.post-detail-image img{ width: 100%; display: block; }

.post-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-nav-card{
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.post-nav-card:hover{ border-color: var(--accent); transform: translateY(-2px); }
.post-nav-label{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.post-nav-label svg{ width: 14px; height: 14px; }
.post-nav-title{ font-size: 0.98rem; font-weight: 600; color: var(--text); }

.post-nav-next{ text-align: right; }
.post-nav-next .post-nav-label{ justify-content: flex-end; }

@media (max-width: 600px){
  .post-nav{ grid-template-columns: 1fr; }
  .post-nav-next{ text-align: left; }
  .post-nav-next .post-nav-label{ justify-content: flex-start; }
}

/* =========================================================
   CONTACT PAGE — heading, email pill, bordered form card
   ========================================================= */
.contact-page{ max-width: 640px; text-align: center; }
.contact-subtitle{ color: var(--text-dim); margin: -14px 0 32px; }

.contact-email-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  margin-bottom: 48px;
  transition: border-color 200ms ease, color 200ms ease;
}
.contact-email-pill svg{ width: 18px; height: 18px; color: var(--accent); }
.contact-email-pill:hover{ border-color: var(--accent); color: var(--accent); }

.contact-form{
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  background: var(--bg-elevated);
}
.form-field{ margin-bottom: 24px; }
.form-field label{
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}
.form-field input,
.form-field textarea{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: border-color 200ms ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder{ color: var(--text-dim); }
.form-field input:focus,
.form-field textarea:focus{ outline: none; border-color: var(--accent); }
.form-field textarea{ resize: vertical; min-height: 140px; }

.btn-send{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 200ms ease, opacity 200ms ease;
}
.btn-send:hover{ transform: translateY(-2px); opacity: 0.92; }
.btn-send svg{ width: 16px; height: 16px; }

@media (max-width: 480px){
  .contact-form{ padding: 24px; }
}

/* =========================================================
   404 PAGE — terminal-flavoured error state
   ========================================================= */
.error-page{
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.error-code{
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 8px;
}
.error-message{
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  color: var(--text-dim);
  margin: 0 0 40px;
}
.error-terminal{
  width: 100%;
  text-align: left;
  margin-bottom: 40px;
}