/*
 * Nexlab — Stefy Lanza · freelance developer / systems hacker
 * Terminal-flavoured dark theme. Rewritten 2026.
 * NOTE: legacy class names (.article, .article-card, .category-card,
 * .project-card, .pagination-*, .hero, .nav ...) are preserved so the
 * blog/article/category pages restyle automatically.
 */

/* ---------- Tokens ---------- */
:root {
    --bg:        #0a0e14;
    --bg-grid:   rgba(57, 211, 83, 0.035);
    --bg-elev:   #0e131b;
    --bg-card:   #10161f;
    --bg-card-2: #131b26;
    --border:    #1d2430;
    --border-hi: #2b3646;
    --fg:        #c9d4e0;
    --fg-dim:    #8b98a8;
    --fg-mute:   #5f6b7a;
    --green:     #39d353;
    --green-dim: #2ea043;
    --cyan:      #39c5cf;
    --amber:     #e3b341;
    --pink:      #f778ba;
    --link:      #58a6ff;
    --danger:    #ff7b72;
    --mono: ui-monospace, 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --radius: 10px;
    --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    line-height: 1.65;
    color: var(--fg);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: center top;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(57, 211, 83, 0.28); color: #eafff0; }

a { color: var(--link); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.mono { font-family: var(--mono); }
.accent { color: var(--green); }
.prompt { color: var(--green); font-family: var(--mono); }

/* ---------- Header ---------- */
.header {
    background: rgba(10, 14, 20, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    gap: 1rem;
}
.logo a {
    font-family: var(--mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}
.logo a::before { content: '~/'; color: var(--green); margin-right: 2px; }
.logo a::after {
    content: '_';
    color: var(--green);
    animation: blink 1.15s steps(1) infinite;
    margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
    color: var(--fg-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: var(--mono);
    position: relative;
    transition: color 0.2s ease;
}
.nav a:not(.nav-hire):hover { color: var(--green); }
.nav a:not(.nav-hire)::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--green);
    transition: width 0.25s ease;
}
.nav a:not(.nav-hire):hover::after { width: 100%; }
.nav-hire {
    background: var(--green);
    color: #04140a !important;
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    font-weight: 700;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.nav-hire:hover { box-shadow: 0 0 18px rgba(57,211,83,0.45); transform: translateY(-1px); }

/* ---------- Main / layout ---------- */
.main { margin-top: 62px; padding: 2rem 0 1rem; }

/* Section eyebrow (mono, terminal-y) */
.section-label {
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: lowercase;
    color: var(--green);
    margin-bottom: 0.4rem;
}
.section-label::before { content: '// '; color: var(--fg-mute); }

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 3.4rem 0 2.6rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.6rem;
    background:
        radial-gradient(60% 120% at 50% -10%, rgba(57,211,83,0.10), transparent 60%);
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
    color: #fff;
    letter-spacing: -1.2px;
    font-family: var(--mono);
}
.hero-subtitle { font-size: 1.2rem; margin-bottom: 1.2rem; color: var(--green); font-weight: 500; font-family: var(--mono); }
.hero-description { font-size: 1.08rem; max-width: 720px; margin: 0 auto; color: var(--fg-dim); line-height: 1.8; }

/* Terminal card (home hero) */
.terminal {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-hi);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(57,211,83,0.05);
    overflow: hidden;
    text-align: left;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.9rem;
    background: #0b1017;
    border-bottom: 1px solid var(--border);
}
.terminal-bar .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
.terminal-bar .title { margin-left: 8px; font-family: var(--mono); font-size: 0.8rem; color: var(--fg-mute); }
.terminal-body {
    padding: 1.3rem 1.4rem 1.6rem;
    font-family: var(--mono);
    font-size: 0.94rem;
    line-height: 1.85;
    color: var(--fg);
}
.terminal-body .cmd { color: #fff; }
.terminal-body .cmd::before { content: '$ '; color: var(--green); }
.terminal-body .out { color: var(--fg-dim); }
.terminal-body .out b { color: var(--cyan); font-weight: 600; }
.terminal-body .out .k { color: var(--amber); }
.terminal-body .comment { color: var(--fg-mute); }
.term-cursor::after { content: '▋'; color: var(--green); animation: blink 1.15s steps(1) infinite; }

/* Hero CTA row */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.9rem; }
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--mono); font-weight: 600; font-size: 0.95rem;
    padding: 0.7rem 1.3rem; border-radius: 7px; text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    border: 1px solid transparent;
}
.btn-primary { background: var(--green); color: #04140a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(57,211,83,0.5); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-hi); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ---------- Services strip ---------- */
.services { margin: 0 0 3.4rem; }
.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }
.service {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.service:hover { border-color: var(--green-dim); transform: translateY(-3px); }
.service .ico { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }
.service h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.4rem; font-family: var(--mono); }
.service p { color: var(--fg-dim); font-size: 0.9rem; line-height: 1.55; }

/* ---------- Section titles ---------- */
.articles, .categories { margin-bottom: 3.6rem; }
.articles-title, .categories-title {
    font-size: 1.7rem; margin-bottom: 1.6rem; color: #fff; font-weight: 700;
    font-family: var(--mono); letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 0.6rem;
}
.articles-title::before, .categories-title::before { content: '#'; color: var(--green); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.section-head .articles-title, .section-head .categories-title { margin-bottom: 0; }
.section-head .more-link { font-family: var(--mono); font-size: 0.88rem; color: var(--green); text-decoration: none; }
.section-head .more-link:hover { text-decoration: underline; }

/* ---------- Article cards ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none; color: inherit;
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(0,0,0,0.5); border-color: var(--border-hi); }
.article-card-image { width: 100%; height: 190px; object-fit: cover; background: #0b1017; border-bottom: 1px solid var(--border); }
.article-card-content { padding: 1.3rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; color: #fff; line-height: 1.3; }
.article-card-meta { display: flex; gap: 1rem; margin-bottom: 0.8rem; font-size: 0.78rem; color: var(--fg-mute); font-family: var(--mono); }
.article-card-excerpt { color: var(--fg-dim); line-height: 1.6; flex-grow: 1; margin-bottom: 1rem; font-size: 0.92rem; }
.article-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.read-more { color: var(--green); text-decoration: none; font-weight: 600; font-family: var(--mono); font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.25s ease; }
.read-more:hover { gap: 0.55rem; }
.read-more::after { content: "→"; }

/* ---------- Category cards ---------- */
.categories-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; }
.category-card {
    background: var(--bg-card);
    padding: 1.6rem;
    border-radius: var(--radius);
    text-decoration: none; color: inherit;
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.45); border-left-color: var(--cyan); }
.category-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: #fff; font-weight: 600; font-family: var(--mono); }
.category-card p { color: var(--fg-dim); line-height: 1.5; font-size: 0.9rem; }

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; padding: 0.4rem 0 0; }
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    text-decoration: none;
    transition: all 0.22s ease;
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform 0.22s ease;
}
.project-card:hover { background: var(--bg-card-2); border-color: var(--border-hi); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.project-card:hover::before { transform: scaleY(1); }
.project-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; font-family: var(--mono); display: flex; align-items: center; gap: 0.5rem; }
.project-description { color: var(--fg-dim); font-size: 0.9rem; line-height: 1.55; margin-bottom: 0.9rem; flex-grow: 1; }
.project-language { display: inline-block; background: rgba(57,211,83,0.1); color: var(--green); padding: 0.2rem 0.6rem; border-radius: 5px; font-size: 0.72rem; font-weight: 600; font-family: var(--mono); align-self: flex-start; }

/* Featured (flagship) project cards */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .featured-grid { grid-template-columns: 1fr; } }
.feature-card {
    background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card));
    border: 1px solid var(--border-hi);
    border-radius: 14px;
    padding: 1.7rem;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
a.feature-card { text-decoration: none; color: inherit; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,0.55); border-color: var(--green-dim); }
.src-list { font-family: var(--mono); font-size: 0.82rem; color: var(--fg-mute); }
.live-badge { font-family: var(--mono); font-size: 0.62rem; color: var(--green); border: 1px solid var(--green-dim); border-radius: 20px; padding: 0.02rem 0.4rem; margin-left: 0.5rem; vertical-align: middle; }
.feature-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(90% 60% at 100% 0%, rgba(57,197,207,0.10), transparent 60%);
    pointer-events: none;
}
.feature-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; position: relative; }
.feature-head .fico { font-size: 1.7rem; }
.feature-card h3 { color: #fff; font-size: 1.35rem; font-family: var(--mono); letter-spacing: -0.5px; }
.feature-card .tagline { color: var(--green); font-size: 0.86rem; font-family: var(--mono); margin-bottom: 0.8rem; }
.feature-card p { color: var(--fg-dim); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem; position: relative; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.feature-tags span { font-family: var(--mono); font-size: 0.72rem; color: var(--fg-dim); background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 0.18rem 0.55rem; border-radius: 5px; }
.feature-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: auto; position: relative; }
.feature-links a { font-family: var(--mono); font-size: 0.85rem; color: var(--link); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.feature-links a:hover { text-decoration: underline; color: var(--cyan); }
.feature-links a .ext::after { content: '↗'; font-size: 0.75em; }
.badge-live { color: var(--green); border: 1px solid var(--green-dim); border-radius: 20px; padding: 0.05rem 0.55rem; font-size: 0.68rem; font-family: var(--mono); margin-left: auto; align-self: center; }

/* ---------- Project media ---------- */
/* Thumbnail strip on cards */
.card-thumb {
    margin: -1.7rem -1.7rem 1.1rem;
    border-bottom: 1px solid var(--border);
    background: #0b1017;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    position: relative;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 178px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}
.project-card .card-thumb {
    margin: -1.4rem -1.4rem 1rem;
    border-radius: 10px 10px 0 0;
}
.project-card .card-thumb img { height: 140px; }
.feature-card:hover .card-thumb img,
.project-card:hover .card-thumb img { transform: scale(1.035); }

/* Gallery on detail pages */
.shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    margin: 1.2rem 0 2rem;
}
.shot {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.shot:hover { border-color: var(--green-dim); transform: translateY(-3px); }
.shot img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    object-position: top center;
    margin: 0;
    border: none;
    border-radius: 0;
    background: #0b1017;
}
.shot figcaption {
    padding: 0.7rem 0.9rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--fg-dim);
    line-height: 1.5;
    border-top: 1px solid var(--border);
}
/* Wide diagrams read better uncropped */
.shot.wide { grid-column: 1 / -1; }
.shot.wide img { max-height: none; object-fit: contain; padding: 0.6rem; }

/* Cover art (logo) when there is no real screenshot */
.proj-cover {
    margin: 1.4rem 0 2rem;
    text-align: center;
}
.proj-cover img {
    max-width: 300px;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0;
}

/* Subsection heading (mono) */
.sub-h {
    font-family: var(--mono);
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: -0.4px;
    margin: 2.4rem 0 0.4rem;
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.sub-h .count {
    font-size: 0.78rem;
    font-family: var(--mono);
    color: var(--amber);
    background: rgba(227,179,65,0.08);
    border: 1px solid rgba(227,179,65,0.22);
    padding: 0.1rem 0.55rem;
    border-radius: 20px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Private badge on project cards */
.project-language.priv {
    background: rgba(227,179,65,0.1);
    color: var(--amber);
}

/* Private-work callout box */
.note-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--amber);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin: 1rem 0 0;
}
.note-box h4 { color: #fff; font-family: var(--mono); font-size: 1rem; margin-bottom: 0.6rem; }
.note-box p { color: var(--fg-dim); font-size: 0.92rem; line-height: 1.65; }
.note-box .lock::before { content: '🔒 '; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.tag-cloud span, .tag-cloud a { font-family: var(--mono); font-size: 0.74rem; color: var(--fg-dim); background: rgba(227,179,65,0.07); border: 1px solid rgba(227,179,65,0.2); padding: 0.16rem 0.55rem; border-radius: 5px; text-decoration: none; transition: all 0.18s ease; }
.tag-cloud a:hover { color: var(--amber); border-color: var(--amber); background: rgba(227,179,65,0.14); }

/* ---------- Article (single page) ---------- */
.article { background: var(--bg-elev); padding: 2.6rem; border-radius: 12px; margin-bottom: 2rem; border: 1px solid var(--border); }
.article-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.article-title { font-size: 2.3rem; margin-bottom: 1rem; color: #fff; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.88rem; color: var(--fg-mute); font-family: var(--mono); }
.article-date { color: var(--fg-mute); }
.article-author { color: var(--green); font-weight: 500; }
.article-categories { margin-top: 0.75rem; }
.article-category { color: var(--green); text-decoration: none; padding: 0.22rem 0.7rem; border: 1px solid var(--green-dim); border-radius: 20px; font-size: 0.78rem; font-family: var(--mono); transition: all 0.2s ease; display: inline-block; margin-right: 0.5rem; margin-bottom: 0.5rem; }
.article-category:hover { background: var(--green); color: #04140a; }
.article-content { margin-bottom: 2rem; line-height: 1.8; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 { color: #fff; margin: 2rem 0 1rem; font-weight: 700; }
.article-content h2 { font-size: 1.6rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content p { margin-bottom: 1.4rem; color: var(--fg); }
.article-content a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(88,166,255,0.4); transition: all 0.2s ease; }
.article-content a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.article-content img { max-width: 100%; height: auto; margin: 2rem 0; border-radius: 8px; border: 1px solid var(--border); }
.article-content blockquote { border-left: 3px solid var(--green); margin: 2rem 0; font-style: italic; color: var(--fg-dim); background: var(--bg-card); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; }
.article-content code { background: #0b1017; padding: 0.2rem 0.42rem; border-radius: 4px; font-family: var(--mono); color: var(--pink); font-size: 0.88em; border: 1px solid var(--border); }
.article-content pre { background: #0b1017; padding: 1.4rem; border-radius: 8px; overflow-x: auto; margin: 2rem 0; border: 1px solid var(--border); }
.article-content pre code { background: transparent; color: #d6deeb; padding: 0; border: none; }
.article-content ul, .article-content ol { margin: 1.4rem 0; padding-left: 2rem; color: var(--fg); }
.article-content li { margin-bottom: 0.5rem; }
.article-footer { border-top: 1px solid var(--border); padding-top: 2rem; }
.article-tags { color: var(--fg-mute); }
.article-tag { color: var(--fg-dim); text-decoration: none; padding: 0.22rem 0.7rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; font-size: 0.78rem; font-family: var(--mono); margin-right: 0.5rem; margin-bottom: 0.5rem; display: inline-block; transition: all 0.2s ease; }
.article-tag:hover { background: var(--green); color: #04140a; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(160deg, #0d1620, #0a0e14);
    border: 1px solid var(--border-hi);
    border-radius: 14px;
    padding: 2.6rem 2rem;
    text-align: center;
    margin: 1rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(60% 120% at 50% 0%, rgba(57,211,83,0.12), transparent 55%);
    pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: 1.8rem; font-family: var(--mono); margin-bottom: 0.7rem; letter-spacing: -0.5px; position: relative; }
.cta-band p { color: var(--fg-dim); max-width: 640px; margin: 0 auto 1.6rem; position: relative; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; padding: 1.5rem 0; gap: 0.3rem; margin: 1.5rem 0; }
.pagination-controls { display: flex; align-items: center; justify-content: center; gap: 0.35rem; flex-wrap: wrap; }
.pagination-btn, .pagination-link {
    padding: 0.45rem 0.75rem; border: 1px solid var(--border); border-radius: 7px;
    text-decoration: none; color: var(--fg-dim); background: var(--bg-card);
    transition: all 0.2s ease; font-size: 0.9rem; font-weight: 600; font-family: var(--mono);
    min-width: 40px; text-align: center; display: inline-flex; align-items: center; justify-content: center;
}
.pagination-btn:hover, .pagination-link:hover { background: var(--green); color: #04140a; border-color: var(--green); }
.pagination-current {
    padding: 0.45rem 0.75rem; background: var(--green); color: #04140a; border: 1px solid var(--green);
    border-radius: 7px; font-weight: 700; font-family: var(--mono); min-width: 40px; text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
}
.pagination-pages { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; justify-content: center; }
#pagination { margin: 1.5rem 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-elev); margin-top: 2rem; }
.footer-content { padding: 2.2rem 0; display: flex; flex-direction: column; gap: 0.4rem; align-items: center; text-align: center; }
.footer-content p { color: var(--fg-mute); font-size: 0.88rem; font-family: var(--mono); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; margin-bottom: 0.6rem; }
.footer-links a { color: var(--fg-dim); text-decoration: none; font-family: var(--mono); font-size: 0.88rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--green); }

/* ---------- Misc / responsive ---------- */
@media (max-width: 680px) {
    .hero-title { font-size: 2.2rem; }
    .nav { gap: 1rem; }
    .nav a:not(.nav-hire) { display: none; }
    .terminal-body { font-size: 0.82rem; }
    .article { padding: 1.5rem; }
    .services { margin-bottom: 2.4rem; }
}
