/* ═══════════════════════════════════════════════════════
   ENGR INSIGHT — Junior Data Analyst Portfolio
   Mark John Merana | Power BI & SQL Server
   Design: Classic Professional · Navy / White / Gold
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #f8f6f1;
  color: #1a2b4a;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --blue:      #1a2b4a;
  --blue-dim:  #263d68;
  --blue-glow: rgba(26,43,74,.12);
  --blue-sub:  rgba(26,43,74,.06);
  --teal:      #c9a84c;
  --teal-sub:  rgba(201,168,76,.10);
  --green:     #3a7d44;
  --amber:     #c9a84c;
  --red:       #b83232;
  --bg:        #f8f6f1;
  --bg2:       #f2efe8;
  --bg3:       #eae6dd;
  --card:      #ffffff;
  --card2:     #fdfcf9;
  --border:    rgba(26,43,74,.10);
  --border-b:  rgba(201,168,76,.40);
  --text:      #1a2b4a;
  --text-dim:  #4a6080;
  --text-muted:#8a9bb0;
  --mono:      'IBM Plex Mono', monospace;
  --sans:      'DM Sans', sans-serif;
  --serif:     'Playfair Display', serif;
  --radius:    5px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-w:     1180px;
  --shadow:    0 4px 24px rgba(26,43,74,.08);
  --shadow-lg: 0 12px 48px rgba(26,43,74,.14);
  --glow:      0 0 28px rgba(201,168,76,.15);
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c9a84c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ─── GRID OVERLAY ───────────────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(26,43,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,43,74,.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ─── CONTAINER ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,43,74,.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201,168,76,.18);
  transition: border-color .3s;
}
#navbar.scrolled { border-bottom-color: rgba(201,168,76,.35); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
}
.nav-logo {
  font-family: var(--mono); font-size: .88rem; font-weight: 600;
  color: #ffffff; letter-spacing: .05em;
  display: flex; align-items: center; gap: 2px;
}
.logo-bracket { color: rgba(255,255,255,.35); }
.logo-accent  { color: #c9a84c; }
.logo-dot     { color: rgba(255,255,255,.55); margin-left: 2px; }

.nav-badge {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .22rem .7rem;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 30px; color: #c9a84c;
  display: flex; align-items: center; gap: .4rem;
}
.nav-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #3a7d44; animation: blink 2.5s ease infinite;
}
.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-links a {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6); padding: .45rem .85rem;
  border-radius: var(--radius); transition: all .2s;
  border: 1px solid transparent;
}
.nav-links a:hover { color: #ffffff; background: rgba(255,255,255,.06); }
.nav-links a.active {
  color: #c9a84c;
  border-color: rgba(201,168,76,.3);
  background: rgba(201,168,76,.1);
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: rgba(255,255,255,.7); display: block; transition: all .2s; }
.nav-mobile {
  display: none; flex-direction: column;
  background: #1a2b4a; border-top: 1px solid rgba(201,168,76,.15); padding: .5rem 0 .8rem;
}
.nav-mobile a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.6); padding: .7rem 2rem; display: block;
}
.nav-mobile a.active { color: #c9a84c; }
.nav-mobile.open { display: flex; }

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-bar {
  background: #1a2b4a; border-bottom: 1px solid rgba(201,168,76,.18);
  height: 28px; overflow: hidden; display: flex; align-items: center;
}
.ticker-label {
  font-family: var(--mono); font-size: .58rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  background: #c9a84c; color: #1a2b4a;
  padding: 0 1rem; height: 100%;
  display: flex; align-items: center; flex-shrink: 0;
}
.ticker-inner { flex: 1; overflow: hidden; }
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ti {
  font-family: var(--mono); font-size: .6rem;
  color: rgba(255,255,255,.35); padding: 0 2rem;
  display: flex; align-items: center; gap: .35rem;
}
.ti b { color: #c9a84c; font-weight: 600; }
.ti-sep { color: rgba(255,255,255,.15); margin: 0 .4rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── PAGE BANNER ────────────────────────────────────────── */
.page-banner {
  background: #1a2b4a; border-bottom: 1px solid rgba(201,168,76,.2);
  padding: 3.5rem 0 3rem; position: relative; overflow: hidden; z-index: 2;
}
.page-banner::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #c9a84c 40%, rgba(201,168,76,.4) 60%, transparent 100%);
}
.banner-bg-word {
  position: absolute; right: -1rem; top: 50%; transform: translateY(-50%);
  font-family: 'Playfair Display', serif; font-size: 9rem; font-weight: 800;
  color: rgba(201,168,76,.06); pointer-events: none; white-space: nowrap;
}
.banner-eyebrow {
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #c9a84c;
  display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem;
}
.banner-eyebrow::before { content: '//'; color: rgba(255,255,255,.3); font-size: .56rem; }
.banner-title {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.015em; line-height: 1.05;
  color: #ffffff;
}
.banner-title em { font-style: italic; color: #c9a84c; }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section    { padding: 6rem 0; position: relative; z-index: 2; }
.section-sm { padding: 4rem 0; position: relative; z-index: 2; }
.s-eye {
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #c9a84c;
  display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem;
}
.s-eye::before { content: '//'; color: var(--text-muted); font-size: .56rem; }
.s-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -.01em; line-height: 1.1;
  color: var(--text); margin-bottom: .6rem;
}
.s-title em { font-style: italic; color: #c9a84c; }
.s-sub { font-size: .97rem; color: var(--text-dim); max-width: 500px; line-height: 1.72; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-blue {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .8rem 1.8rem; background: #c9a84c; color: #1a2b4a;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: all .25s; display: inline-flex; align-items: center; gap: .45rem;
}
.btn-blue:hover { background: #d4b660; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.3); }
.btn-ghost {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .8rem 1.8rem; background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .25s; display: inline-flex; align-items: center; gap: .45rem;
}
.btn-ghost:hover { border-color: var(--border-b); color: #c9a84c; }

/* ─── DASHBOARD CARD SHELL ───────────────────────────────── */
.d-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.d-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
}
.d-card:hover { border-color: var(--border-b); }

/* ─── METRIC CARD ────────────────────────────────────────── */
.metric-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.3rem 1.5rem;
  transition: all .25s; box-shadow: var(--shadow);
}
.metric-card:hover { border-color: var(--border-b); box-shadow: var(--glow); }
.mc-label {
  font-family: var(--mono); font-size: .58rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .4rem; display: flex; align-items: center; justify-content: space-between;
}
.mc-val {
  font-family: var(--mono); font-size: 1.75rem; font-weight: 700;
  color: #c9a84c; line-height: 1; margin-bottom: .3rem;
}
.mc-sub {
  font-family: var(--mono); font-size: .6rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .35rem;
}
.mc-up    { color: var(--green); }
.mc-warn  { color: #c9a84c; }
.mc-info  { color: #2276cc; }

/* ─── STACK CARD ─────────────────────────────────────────── */
.stack-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem 1.6rem;
  transition: all .28s; cursor: default; box-shadow: var(--shadow);
}
.stack-card:hover {
  border-color: var(--border-b);
  background: var(--card2);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}
.sc-icon { font-size: 1.8rem; margin-bottom: .9rem; }
.sc-title {
  font-family: var(--sans); font-size: .95rem; font-weight: 700;
  color: var(--text); margin-bottom: .3rem;
}
.sc-level {
  font-family: var(--mono); font-size: .58rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #c9a84c;
  margin-bottom: .5rem;
}
.sc-desc { font-size: .82rem; color: var(--text-dim); line-height: 1.6; }

/* skill bars */
.skill-track { height: 3px; background: var(--bg3); border-radius: 3px; overflow: hidden; margin-top: .6rem; }
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a84c, #d4b660);
  border-radius: 3px; width: 0;
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
}

/* ─── POST CARD ──────────────────────────────────────────── */
.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 2rem; transition: all .3s; cursor: pointer;
  box-shadow: var(--shadow);
}
.post-card:hover {
  border-color: var(--border-b);
  box-shadow: 0 8px 40px rgba(26,43,74,.12), var(--glow);
  transform: translateY(-2px);
}
.post-img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg3); overflow: hidden;
  border-bottom: 1px solid var(--border); position: relative;
}
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-img img { transform: scale(1.03); }
.post-img-ph {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
  background: linear-gradient(135deg, #eae6dd, #ddd9cf);
  color: var(--text-muted); font-family: var(--mono);
  font-size: .68rem; letter-spacing: .1em;
}
.post-img-ph .ph-icon { font-size: 2.5rem; opacity: .3; }
.post-body-wrap { padding: 1.8rem 2rem 2rem; }
.post-cat {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: #c9a84c;
  display: block; margin-bottom: .5rem;
}
.post-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.pill {
  font-family: var(--mono); font-size: .56rem; font-weight: 500;
  letter-spacing: .1em; color: #4a6080;
  padding: .18rem .6rem; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 30px;
}
.post-card h2 {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700;
  line-height: 1.25; color: var(--text); margin-bottom: .65rem;
  transition: color .2s;
}
.post-card:hover h2 { color: #c9a84c; }
.post-excerpt { font-size: .93rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 1.3rem; }
.post-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; gap: .6rem;
}
.post-author {
  font-family: var(--mono); font-size: .62rem; color: var(--text-muted);
  display: flex; align-items: center; gap: .5rem;
}
.author-chip {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .52rem; font-weight: 700; color: #c9a84c;
}
.read-link {
  font-family: var(--mono); font-size: .63rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: #c9a84c;
  display: flex; align-items: center; gap: .4rem; transition: gap .2s;
}
.read-link:hover { gap: .7rem; }

/* ─── BLOG LAYOUT ────────────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr 284px; gap: 3rem; align-items: start; }

/* ─── SIDEBAR ────────────────────────────────────────────── */
.sidebar { position: sticky; top: 78px; }
.widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}
.widget:last-child { margin-bottom: 0; }
.w-head {
  padding: .85rem 1.2rem; background: #1a2b4a;
  border-bottom: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; gap: .5rem;
}
.w-head-label {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.w-head-dot { width: 5px; height: 5px; border-radius: 50%; background: #c9a84c; }
.w-body { padding: 1rem 1.2rem; }
.search-row { display: flex; gap: .4rem; }
.search-inp {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .6rem .9rem;
  font-family: var(--mono); font-size: .72rem; color: var(--text);
  outline: none; transition: border-color .2s;
}
.search-inp:focus { border-color: var(--border-b); }
.search-inp::placeholder { color: var(--text-muted); }
.search-btn {
  width: 34px; height: 34px; background: #c9a84c;
  border: none; border-radius: var(--radius); cursor: pointer;
  font-size: .8rem; color: #1a2b4a; transition: background .2s; flex-shrink: 0; font-weight: 700;
}
.search-btn:hover { background: #d4b660; }
.recent-item {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .75rem 0; border-bottom: 1px solid var(--border);
}
.recent-item:last-child { border-bottom: none; }
.recent-thumb {
  width: 52px; height: 40px; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: .95rem; overflow: hidden;
}
.recent-info h4 {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  color: var(--text); line-height: 1.3; transition: color .2s; margin-bottom: .2rem;
}
.recent-info h4:hover { color: #c9a84c; }
.recent-date { font-family: var(--mono); font-size: .6rem; color: var(--text-muted); }
.tag-wrap { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-family: var(--mono); font-size: .57rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: #4a6080; padding: .22rem .7rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 30px; cursor: default; transition: all .2s;
}
.tag:hover { color: #c9a84c; border-color: var(--border-b); background: rgba(201,168,76,.06); }

/* mini stats in sidebar */
.mini-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
}
.ms-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .65rem .7rem; text-align: center;
}
.ms-val {
  font-family: var(--mono); font-size: 1rem; font-weight: 700;
  color: #c9a84c; line-height: 1; margin-bottom: .15rem;
}
.ms-label {
  font-family: var(--mono); font-size: .52rem; color: var(--text-muted);
  letter-spacing: .1em; text-transform: uppercase;
}

/* ─── POST ARTICLE ───────────────────────────────────────── */
.article-cat { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #c9a84c; display: block; margin-bottom: .5rem; }
.article-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -.01em; line-height: 1.1; color: var(--text); margin-bottom: 1rem;
}
.article-meta {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: .9rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: .63rem; color: var(--text-muted); letter-spacing: .07em;
  margin-bottom: 2rem;
}
.article-meta strong { color: #c9a84c; }
.article-meta .sep { color: var(--border); }
.article-feat {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .7rem;
  color: var(--text-muted); font-family: var(--mono); font-size: .72rem;
  min-height: 220px; margin-bottom: 2.5rem;
}
.article-feat img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1rem; color: #3a5070; line-height: 1.86; }
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 800;
  color: var(--text); margin: 2.8rem 0 .85rem;
  padding-left: 1rem; border-left: 3px solid #c9a84c;
}
.article-body h3 { font-family: 'Playfair Display', serif; font-size: 1.12rem; font-weight: 700; color: var(--text); margin: 2rem 0 .65rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { font-style: italic; color: var(--text-dim); }
.article-body a { color: #c9a84c; border-bottom: 1px solid rgba(201,168,76,.3); transition: border-color .2s; }
.article-body a:hover { border-color: #c9a84c; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.article-body li { margin-bottom: .55rem; }
.article-body pre {
  background: #1a2b4a; border: 1px solid rgba(201,168,76,.2);
  border-left: 3px solid #c9a84c;
  border-radius: var(--radius-md); padding: 1.4rem 1.8rem;
  overflow-x: auto; font-family: var(--mono); font-size: .8rem;
  line-height: 1.7; color: #c9a84c; margin: 1.8rem 0;
}
.article-body code {
  font-family: var(--mono); font-size: .84em;
  background: rgba(201,168,76,.1); color: #b8963a;
  padding: .1em .4em; border-radius: 3px;
}
.article-body pre code { background: none; color: #c9a84c; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-size: .9rem; }
.article-body th {
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  background: #1a2b4a; color: #c9a84c;
  padding: .75rem 1rem; text-align: left; border: 1px solid var(--border);
}
.article-body td { padding: .65rem 1rem; border: 1px solid var(--border); color: var(--text-dim); vertical-align: top; }
.article-body tr:nth-child(even) td { background: rgba(26,43,74,.03); }
.callout {
  background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.25);
  border-left: 3px solid #c9a84c; border-radius: var(--radius);
  padding: 1.2rem 1.5rem; margin: 1.8rem 0;
  font-size: .95rem; color: var(--text-dim);
}
.callout strong { color: #c9a84c; }
.img-block {
  width: 100%; margin: 2rem 0; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg3);
}
.img-block img { width: 100%; display: block; }
.img-ph {
  min-height: 190px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .55rem;
  font-family: var(--mono); font-size: .68rem; color: var(--text-muted); letter-spacing: .1em;
}
.article-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0; border-top: 1px solid var(--border); margin-top: 3rem;
  flex-wrap: wrap; gap: 1rem;
}
.share-btn {
  width: 32px; height: 32px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; cursor: pointer; transition: all .2s;
}
.share-btn:hover { background: rgba(201,168,76,.1); border-color: var(--border-b); }
.author-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem 2rem;
  display: flex; gap: 1.4rem; align-items: flex-start; margin-top: 2.5rem;
  box-shadow: var(--shadow);
}
.author-avatar-lg {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: rgba(201,168,76,.12); border: 2px solid rgba(201,168,76,.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 1rem; font-weight: 700; color: #c9a84c;
}
.author-name { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .15rem; }
.author-role { font-family: var(--mono); font-size: .6rem; color: #c9a84c; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .65rem; }
.author-bio { font-size: .88rem; color: var(--text-dim); line-height: 1.7; }

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 5rem; align-items: start; }
.about-photo-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; min-height: 360px; position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .7rem;
  color: var(--text-muted); font-family: var(--mono); font-size: .7rem;
  box-shadow: var(--shadow-lg);
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-badge {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  background: rgba(26,43,74,.93); backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,.3); border-radius: var(--radius-md); padding: .9rem 1.1rem;
}
.photo-badge-name { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: #ffffff; }
.photo-badge-role { font-family: var(--mono); font-size: .58rem; color: #c9a84c; letter-spacing: .12em; text-transform: uppercase; margin-top: .18rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: .3rem; animation: blink 2.5s ease infinite; }
.about-acc {
  position: absolute; top: -0.8rem; right: -0.8rem;
  background: #c9a84c; color: #1a2b4a;
  border-radius: var(--radius-md); padding: .75rem 1rem; text-align: center;
}
.acc-num { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; line-height: 1; }
.acc-label { font-family: var(--mono); font-size: .55rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin-top: .18rem; }

/* focus area items */
.focus-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.1rem 1.3rem;
  display: flex; align-items: flex-start; gap: .9rem;
  transition: all .25s; margin-bottom: .8rem; box-shadow: var(--shadow);
}
.focus-item:hover { border-color: var(--border-b); background: rgba(201,168,76,.04); }
.focus-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.focus-title { font-family: var(--sans); font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.focus-desc { font-size: .82rem; color: var(--text-dim); line-height: 1.6; }

/* stats grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.stat-box {
  background: var(--card); padding: 1.8rem 1.5rem; text-align: center;
  transition: background .2s;
}
.stat-box:hover { background: rgba(201,168,76,.04); }
.stat-num { font-family: var(--mono); font-size: 2.1rem; font-weight: 700; color: #c9a84c; line-height: 1; }
.stat-label { font-family: var(--mono); font-size: .58rem; color: var(--text-muted); letter-spacing: .14em; text-transform: uppercase; margin-top: .35rem; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3.5rem; align-items: start; }
.form-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 2.2rem; box-shadow: var(--shadow);
}
.form-panel-title {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: .55rem;
}
.form-panel-title::before { content: '→'; color: #c9a84c; font-family: var(--mono); font-size: .9rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-group { margin-bottom: 1rem; }
.f-label {
  font-family: var(--mono); font-size: .58rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); display: block; margin-bottom: .38rem;
}
.f-ctrl {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem;
  font-family: var(--sans); font-size: .9rem; color: var(--text);
  outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.f-ctrl:focus { border-color: var(--border-b); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }
.f-ctrl::placeholder { color: var(--text-muted); }
textarea.f-ctrl { min-height: 130px; }
.info-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.info-panel-head {
  background: #1a2b4a; padding: 1.3rem 1.6rem;
}
.info-panel-head-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: #ffffff; margin-bottom: .15rem; }
.info-panel-head-sub { font-family: var(--mono); font-size: .6rem; color: rgba(255,255,255,.55); letter-spacing: .1em; }
.info-panel-body { padding: 1.4rem 1.6rem; }
.info-row { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.2rem; }
.info-row:last-child { margin-bottom: 0; }
.info-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.info-lbl { font-family: var(--mono); font-size: .56rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #c9a84c; display: block; margin-bottom: .18rem; }
.info-val { font-size: .88rem; color: var(--text-dim); line-height: 1.4; }
.soc-row { display: flex; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.soc-btn {
  flex: 1; height: 34px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--mono); font-size: .62rem;
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer; letter-spacing: .06em;
}
.soc-btn:hover { background: rgba(201,168,76,.1); border-color: var(--border-b); color: #c9a84c; }
/* open-to badge */
.open-badge {
  background: rgba(58,125,68,.07); border: 1px solid rgba(58,125,68,.2);
  border-radius: var(--radius-md); padding: 1rem 1.3rem; margin-top: 1.2rem;
}
.ob-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: .4rem; animation: blink 2.5s ease infinite; }
.ob-label { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .4rem; display: flex; align-items: center; }
.ob-text { font-size: .84rem; color: var(--text-dim); line-height: 1.6; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: #1a2b4a; border-top: 1px solid rgba(201,168,76,.2);
  position: relative; z-index: 2;
}
footer::before {
  content: ''; display: block; height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, rgba(201,168,76,.4), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding: 3.5rem 0 2.5rem; }
.footer-brand .f-logo { font-family: var(--mono); font-size: .88rem; font-weight: 600; color: #ffffff; display: flex; align-items: center; gap: 2px; margin-bottom: .8rem; }
.footer-brand p { font-size: .87rem; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 270px; }
.f-col-title { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #c9a84c; margin-bottom: .9rem; }
.f-links { display: flex; flex-direction: column; gap: .45rem; }
.f-links a { font-family: var(--mono); font-size: .75rem; color: rgba(255,255,255,.45); transition: color .2s; }
.f-links a:hover { color: #c9a84c; }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,.12); padding: 1.2rem 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
}
.f-copy { font-family: var(--mono); font-size: .62rem; color: rgba(255,255,255,.35); letter-spacing: .06em; }
.f-copy span { color: #c9a84c; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink   { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Fallback: if JS fails or observer misses, show content after delay */
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
.reveal { animation: revealFallback 0s ease 1.5s forwards; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* hero anims */
.anim-1 { opacity: 0; animation: fadeUp .5s ease .15s forwards; }
.anim-2 { opacity: 0; animation: fadeUp .5s ease .3s  forwards; }
.anim-3 { opacity: 0; animation: fadeUp .5s ease .45s forwards; }
.anim-4 { opacity: 0; animation: fadeUp .5s ease .6s  forwards; }
.anim-5 { opacity: 0; animation: fadeUp .5s ease .75s forwards; }
.anim-p { opacity: 0; animation: fadeIn .9s ease .85s forwards; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid         { grid-template-columns: 1fr; }
  .about-photo-wrap   { display: flex; max-width: 360px; margin: 0 auto 2rem; aspect-ratio: 4/5; min-height: auto; }
  .contact-grid       { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .footer-brand       { grid-column: 1 / -1; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .section-sm .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-badge { display: none; }
  .nav-toggle            { display: flex; }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar     { position: static; }
  .f-row { grid-template-columns: 1fr; }
  .soc-row { flex-wrap: wrap; }
  .soc-btn { flex: 1 1 calc(50% - .25rem); min-width: 80px; }
  .post-body-wrap { padding: 1.2rem 1.2rem 1.4rem; }
  .post-footer    { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .article-meta   { gap: .7rem; }
  .article-body h2 { font-size: 1.25rem; }
  .author-box     { flex-direction: column; gap: 1rem; }
  .skill-bar-section div[style*="justify-content:space-between"] { flex-wrap: wrap; gap: .25rem; }
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .banner-bg-word { font-size: 5rem; }
  .page-banner    { padding: 2.5rem 0 2rem; }
}

@media (max-width: 480px) {
  .container  { padding: 0 1.2rem; }
  .section    { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }
  .nav-inner  { height: 54px; padding: 0 1.2rem; }
  .banner-title { font-size: 1.75rem; }
  .s-title      { font-size: 1.55rem; }
  .banner-bg-word { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num   { font-size: 1.6rem; }
  .post-body-wrap { padding: 1rem 1rem 1.2rem; }
  .post-card h2   { font-size: 1.1rem; }
  .post-excerpt   { font-size: .88rem; }
  .info-panel-body { padding: 1rem 1.1rem; }
  .soc-btn         { font-size: .58rem; height: 38px; }
  .form-panel { padding: 1.4rem 1.2rem; }
  .focus-item { padding: .9rem 1rem; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .article-title  { font-size: 1.5rem; }
  .article-feat   { min-height: 160px; }
  .article-body   { font-size: .93rem; }
  .article-body h2 { font-size: 1.15rem; }
  .article-body pre { padding: 1rem; font-size: .75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ─── INDEX.HTML MOBILE FIXES ── */
@media (max-width: 768px) {
  .hero-grid          { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .hero-mockup        { display: none !important; }
  .hero-section       { padding: 5rem 0 3.5rem !important; min-height: auto !important; }
  .stack-grid         { grid-template-columns: repeat(2, 1fr) !important; }
  .metrics-grid-row   { grid-template-columns: repeat(2, 1fr) !important; border-radius: var(--radius-lg) !important; }
  .metrics-grid-row .metric-card { border-bottom: 1px solid var(--border) !important; }
  .posts-grid         { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .stack-grid         { grid-template-columns: 1fr !important; }
  .metrics-grid-row   { grid-template-columns: repeat(2, 1fr) !important; }
  .metric-card        { padding: 1rem .85rem !important; }
  .mc-val             { font-size: 1.3rem !important; }
  .hero-section h1    { font-size: 2.6rem !important; }
  .stack-card         { padding: 1.2rem !important; }
}

/* ═══════════════════════════════════════════════════════
   PROJECTS PAGE
═══════════════════════════════════════════════════════ */
.filter-bar {
  display: flex; align-items: center; gap: .55rem;
  flex-wrap: wrap; margin-bottom: 2.8rem;
}
.filter-label {
  font-family: var(--mono); font-size: .58rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-right: .3rem;
}
.filter-btn {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; padding: .38rem .82rem; cursor: pointer; transition: all .18s;
}
.filter-btn:hover,
.filter-btn.active {
  color: #c9a84c; border-color: var(--border-b); background: rgba(201,168,76,.08);
}
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.proj-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .2s, transform .22s, box-shadow .22s;
  cursor: default; position: relative; box-shadow: var(--shadow);
}
.proj-card:hover {
  border-color: var(--border-b); transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(26,43,74,.12), var(--glow);
}
.proj-card-bar {
  background: #1a2b4a; border-bottom: 1px solid rgba(201,168,76,.15);
  padding: .6rem 1rem; display: flex; align-items: center; gap: .45rem;
}
.proj-card-bar-dot { width: 7px; height: 7px; border-radius: 50%; }
.proj-card-bar-title {
  font-family: var(--mono); font-size: .58rem; color: rgba(255,255,255,.4);
  margin-left: .3rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-card-bar-status { font-family: var(--mono); font-size: .54rem; display: flex; align-items: center; gap: .28rem; }
.proj-card-bar-status .blink-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: blink 2.5s ease infinite;
}
.proj-card-bar-status.wip .blink-dot { background: #c9a84c; }
.proj-card-bar-status.wip  { color: #c9a84c; }
.proj-card-bar-status.live { color: var(--green); }
.proj-preview {
  width: 100%; aspect-ratio: 16/9; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
}
.proj-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-terminal {
  width: 100%; height: 100%; background: #1a2b4a;
  padding: .9rem 1rem; font-family: var(--mono); font-size: .65rem;
  line-height: 1.75; overflow: hidden; box-sizing: border-box;
}
.proj-web-preview {
  width: 100%; height: 100%; background: #1a2b4a;
  padding: .85rem 1rem; font-family: var(--mono); font-size: .6rem;
  line-height: 1.7; overflow: hidden; box-sizing: border-box;
}
.t-comment { color: rgba(255,255,255,.25); }
.t-dim     { color: rgba(255,255,255,.2); opacity: .7; }
.t-white   { color: #ffffff; }
.t-blue    { color: #c9a84c; }
.t-teal    { color: #d4c070; }
.t-green   { color: #3a7d44; }
.t-amber   { color: #c9a84c; }
.proj-body { padding: 1.3rem 1.4rem 1.4rem; }
.proj-type {
  font-family: var(--mono); font-size: .55rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: #c9a84c; margin-bottom: .55rem;
}
.proj-title {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.3; margin-bottom: .55rem;
}
.proj-desc { font-size: .86rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 1.1rem; }
.proj-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.2rem; }
.proj-links { display: flex; gap: .6rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); }
.proj-link {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
  text-decoration: none; display: flex; align-items: center; gap: .32rem; transition: color .15s;
}
.proj-link:hover { color: #c9a84c; }
.proj-link.primary {
  color: #c9a84c; background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25); border-radius: 4px; padding: .35rem .75rem;
}
.proj-link.primary:hover { background: rgba(201,168,76,.15); }
.proj-ribbon {
  position: absolute; top: .7rem; right: .7rem;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); border-radius: 4px;
  font-family: var(--mono); font-size: .52rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #c9a84c;
  padding: .22rem .55rem; z-index: 2;
}
.proj-coming-soon {
  background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius-lg);
  padding: 2.2rem; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: .6rem; min-height: 200px; opacity: .25;
}
.proj-coming-soon .cs-ico   { font-size: 1.8rem; }
.proj-coming-soon .cs-label { font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.proj-coming-soon .cs-title { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--text-dim); }

@media (max-width: 780px) { .projects-grid { grid-template-columns: 1fr; } .filter-bar { gap: .4rem; } }
@media (max-width: 480px) { .proj-body { padding: 1rem 1.1rem 1.2rem; } .proj-title { font-size: .95rem; } .proj-terminal, .proj-web-preview { font-size: .58rem; } }
