
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --accent:       #e8c84a;
    --bg:           #f0ece4;
    --font-heading: 'Anton', sans-serif;
    --font-mono:    'Space Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
 
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}
 
body {
    background-color: var(--bg);
    color: #0d0d0d;
    font-family: var(--font-mono);
    width: 100%;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

p, span {
    font-family: var(--font-mono);
    line-height: 1.65;
}
 
a {
    font-family: 'Space Mono', Courier, monospace;
    text-decoration: none;
}
 
/* ── HEADER ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 6%;
    background-color: #0d0d0d;
    border-bottom: 3px solid var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
 
.logo {
    font-family: 'Anton', monospace;
    font-size: 2.4rem;
    color: var(--bg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.2s ease;
}
 
.logo:hover {
    color: var(--accent);
}
 
nav {
    display: flex;
    align-items: center;
    gap: 0;
}
 
nav a {
    font-size: 0.85rem;
    color: var(--bg);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
 
nav a:hover {
    background-color: var(--bg);
    color: #0d0d0d;
}
 
nav a.active {
    background-color: var(--accent);
    color: #0d0d0d;
}
 
/* ── ABOUT SECTION ── */
.abt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 68px; /* offset for fixed header */
}
 
.abt-img {
    overflow: hidden;
    position: relative;
    border-right: 4px solid #0d0d0d;
}
 
.abt-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%) contrast(1.08);
    transition: transform 0.6s ease;
}
 
.abt-img:hover img {
    transform: scale(1.03);
}
 
.abt-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 6% 4rem;
    background-color: var(--bg);
    position: relative;
}

.abt-text {
    padding-bottom: 1rem;
}
 
/* Brutalist corner accent */
.abt-content::before {
    content: '';
    position: absolute;
    top: 5rem;
    left: 6%;
    width: 40px;
    height: 6px;
    background-color: var(--accent);
}
 
.abt-content h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 0.92;
    color: #0d0d0d;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.abt-headshot-wrap {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    margin-top: auto;
    margin-bottom: auto;
    flex-shrink: 0;
}

.abt-headshot-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.abt-content h3 {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 2rem;
    padding-left: 2px;
}
 
.abt-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #222;
    max-width: 460px;
    border-left: 4px solid #0d0d0d;
    padding-left: 1.2rem;
    margin-bottom: 2.5rem;
}
 
/* ── SOCIAL ICONS ── */
.social-icons {
    display: flex;
    gap: 0;
}
 
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #0d0d0d;
    color: var(--bg);
    font-size: 1.1rem;
    border: 2px solid #0d0d0d;
    transition: background-color 0.2s ease, color 0.2s ease;
}
 
.social-icons a:hover {
    background-color: var(--accent);
    color: #0d0d0d;
    border-color: #0d0d0d;
}
 
/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .abt {
        grid-template-columns: 1fr;
    }
 
    .abt-img {
        height: 55vw;
        border-right: none;
        border-bottom: 4px solid #0d0d0d;
    }
 
    .abt-img img {
        width: 100%;
        height: 100%;
    }
 
    nav a {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }
}
 
@media (max-width: 600px) {
    header {
        padding: 0.8rem 4%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    nav a {
        display: flex;
        font-size: 0.65rem;
        padding: 0.4rem 0.6rem;
    }
 
    .abt-content {
        padding: 3.5rem 6%;
    }
}
   /* ── PAGE HEADER ── */
        .page-hero {
            padding-top: 68px;
            background-color: #0d0d0d;
            padding-bottom: 0;
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: end;
            padding-left: 6%;
            padding-right: 6%;
            padding-top: calc(68px + 3rem);
            border-bottom: 4px solid var(--accent);
        }

        .page-hero-text h1 {
            font-size: clamp(4rem, 9vw, 9rem);
            color: var(--bg);
            line-height: 0.88;
            margin-bottom: 1.2rem;
        }

        .page-hero-text p {
            color: #888;
            font-size: 0.82rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            margin-bottom: 2rem;
        }

        .project-count {
            font-family: 'Anton', monospace;
            font-size: clamp(5rem, 14vw, 14rem);
            color: #1a1a1a;
            line-height: 1;
            user-select: none;
            padding-bottom: 0;
            letter-spacing: -0.02em;
            align-self: end;
        }

        /* ── FILTER BAR ── */
        .filter-bar {
            background-color: var(--bg);
            padding: 1rem 6%;
            display: flex;
            gap: 0;
            align-items: center;
            border-bottom: 3px solid #0d0d0d;
            flex-wrap: wrap;
        }

        .filter-label {
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: #888;
            margin-right: 1.5rem;
        }

        .filter-btn {
            font-family: 'Space Mono', monospace;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 0.55rem 1.2rem;
            border: 2px solid #0d0d0d;
            background: transparent;
            color: #0d0d0d;
            cursor: pointer;
            margin-right: -2px;
            transition: background-color 0.15s ease, color 0.15s ease;
        }

        .filter-btn:hover {
            background-color: #0d0d0d;
            color: var(--bg);
        }

        .filter-btn.active {
            background-color: var(--accent);
            color: #0d0d0d;
            border-color: #0d0d0d;
            z-index: 1;
        }

        .filter-sub-btn {
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            background: none;
            border: 2px solid #555;
            color: #888;
            padding: 0.3rem 0.8rem;
            cursor: pointer;
            transition: background-color 0.15s ease, color 0.15s ease;
        }

        .filter-sub-btn:hover {
            background-color: #0d0d0d;
            color: var(--bg);
        }

        .filter-sub-btn.active {
            background-color: #0d0d0d;
            color: var(--accent);
            border-color: #0d0d0d;
        }

        .add-btn {
            margin-left: auto;
            font-family: 'Space Mono', monospace;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 0.55rem 1.4rem;
            background-color: #0d0d0d;
            color: var(--bg);
            border: 2px solid #0d0d0d;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            transition: background-color 0.15s ease, color 0.15s ease;
        }

        .add-btn:hover {
            background-color: var(--accent);
            color: #0d0d0d;
            border-color: #0d0d0d;
        }

        /* ── PROJECTS GRID ── */
        .projects-grid {
            padding: 3rem 6%;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 0;
            background-color: var(--bg);
        }

        /* ── PROJECT CARD ── */
        .project-card {
            border: 2px solid #0d0d0d;
            margin: -1px; /* collapse borders */
            background-color: var(--bg);
            position: relative;
            overflow: hidden;
            transition: transform 0.25s ease;
            cursor: pointer;
        }

        .project-card:hover {
            z-index: 2;
            transform: translate(-3px, -3px);
            box-shadow: 6px 6px 0 #0d0d0d;
        }

        /* Photo card */
        .card-img-wrap {
            width: 100%;
            aspect-ratio: 4/3;
            overflow: hidden;
            border-bottom: 2px solid #0d0d0d;
            background-color: #1a1a1a;
            position: relative;
        }

        .card-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            filter: grayscale(15%) contrast(1.05);
            transition: transform 0.5s ease, filter 0.3s ease;
        }

        .project-card:hover .card-img-wrap img {
            transform: scale(1.04);
            filter: grayscale(0%) contrast(1.08);
        }

        .card-type-badge {
            position: absolute;
            top: 0;
            right: 0;
            font-family: 'Space Mono', monospace;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            padding: 0.35rem 0.75rem;
            background-color: var(--accent);
            color: #0d0d0d;
            border-left: 2px solid #0d0d0d;
            border-bottom: 2px solid #0d0d0d;
        }

        .card-type-badge.article {
            background-color: #0d0d0d;
            color: var(--bg);
        }

        /* Article card image area */
        .card-article-cover {
            width: 100%;
            aspect-ratio: 4/3;
            border-bottom: 2px solid #0d0d0d;
            background-color: #0d0d0d;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .card-article-cover .article-icon {
            font-size: 3rem;
            color: #2a2a2a;
            transition: color 0.3s ease;
        }

        .project-card:hover .card-article-cover .article-icon {
            color: var(--accent);
        }

        .card-article-cover .article-excerpt-preview {
            position: absolute;
            inset: 0;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        .excerpt-lines {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .excerpt-line {
            height: 2px;
            background-color: #2a2a2a;
            border-radius: 1px;
        }

        .excerpt-line:nth-child(1) { width: 90%; }
        .excerpt-line:nth-child(2) { width: 75%; }
        .excerpt-line:nth-child(3) { width: 85%; }
        .excerpt-line:nth-child(4) { width: 60%; }
        .excerpt-line:nth-child(5) { width: 80%; }
        .excerpt-line:nth-child(6) { width: 45%; }

        /* Card body */
        .card-body {
            padding: 1.2rem 1.4rem 1.4rem;
        }

        .card-category {
            font-family: 'Space Mono', monospace;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: #888;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .card-category::before {
            content: '';
            display: inline-block;
            width: 18px;
            height: 2px;
            background-color: var(--accent);
        }

        .card-title {
            font-family: 'Anton', monospace;
            font-size: 1.5rem;
            font-weight: 400;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            color: #0d0d0d;
            line-height: 1.05;
            margin-bottom: 0.7rem;
        }

        .card-excerpt {
            font-family: 'Space Mono', monospace;
            font-size: 0.78rem;
            line-height: 1.7;
            color: #555;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-footer {
            display: flex;
            align-items: center;
        }

        .card-date {
            font-family: 'Space Mono', monospace;
            font-size: 0.68rem;
            color: #999;
            letter-spacing: 0.05em;
        }

        .card-arrow {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 36px;
            height: 36px;
            background-color: #0d0d0d;
            color: var(--bg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            transition: background-color 0.2s ease;
        }

        .project-card:hover .card-arrow {
            background-color: var(--accent);
            color: #0d0d0d;
        }

        /* ── EMPTY STATE ── */
        .empty-state {
            grid-column: 1 / -1;
            padding: 6rem 2rem;
            text-align: center;
            display: none;
        }

        .empty-state.visible {
            display: block;
        }

        .empty-state h2 {
            font-size: 2rem;
            color: #ccc;
            margin-bottom: 0.5rem;
        }

        .empty-state p {
            color: #aaa;
            font-size: 0.82rem;
        }

        /* ── MODAL OVERLAY ── */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(13,13,13,0.85);
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .modal-overlay.open {
            opacity: 1;
            pointer-events: all;
        }

        .modal {
            background-color: var(--bg);
            border: 3px solid #0d0d0d;
            width: 100%;
            max-width: 580px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.2s ease;
        }

        .modal-overlay.open .modal {
            transform: translateY(0);
        }

        .modal-header {
            background-color: #0d0d0d;
            padding: 1.2rem 1.8rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .modal-header h2 {
            font-size: 1.3rem;
            color: var(--bg);
            letter-spacing: 0.05em;
        }

        .modal-close {
            background: none;
            border: 2px solid var(--bg);
            color: var(--bg);
            width: 32px;
            height: 32px;
            cursor: pointer;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.15s, color 0.15s;
        }

        .modal-close:hover {
            background-color: var(--accent);
            border-color: var(--accent);
            color: #0d0d0d;
        }

        .modal-body {
            padding: 2rem 1.8rem;
        }

        /* Type selector */
        .type-selector {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            margin-bottom: 2rem;
            border: 2px solid #0d0d0d;
        }

        .type-option {
            padding: 1.2rem;
            cursor: pointer;
            text-align: center;
            border: none;
            background: transparent;
            transition: background-color 0.15s;
            border-right: 2px solid #0d0d0d;
        }

        .type-option:last-child {
            border-right: none;
        }

        .type-option.selected {
            background-color: var(--accent);
        }

        .type-option i {
            font-size: 1.6rem;
            color: #0d0d0d;
            display: block;
            margin-bottom: 0.5rem;
        }

        .type-option span {
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: #0d0d0d;
        }

        /* Form fields */
        .field {
            margin-bottom: 1.4rem;
        }

        .field label {
            display: block;
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: #555;
            margin-bottom: 0.5rem;
        }

        .field input,
        .field textarea,
        .field select {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid #0d0d0d;
            background-color: #fff;
            font-family: 'Space Mono', monospace;
            font-size: 0.85rem;
            color: #0d0d0d;
            outline: none;
            appearance: none;
            transition: border-color 0.15s;
        }

        .field input:focus,
        .field textarea:focus,
        .field select:focus {
            border-color: var(--accent);
        }

        .field textarea {
            resize: vertical;
            min-height: 90px;
            line-height: 1.6;
        }

        /* Upload drop zone */
        .upload-zone {
            border: 2px dashed #0d0d0d;
            padding: 2.5rem 1.5rem;
            text-align: center;
            cursor: pointer;
            background-color: #fff;
            transition: background-color 0.2s, border-color 0.2s;
            position: relative;
        }

        .upload-zone:hover,
        .upload-zone.drag-over {
            background-color: #faf7ef;
            border-color: var(--accent);
        }

        .upload-zone input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            width: 100%;
            height: 100%;
        }

        .upload-zone i {
            font-size: 2rem;
            color: #ccc;
            display: block;
            margin-bottom: 0.7rem;
        }

        .upload-zone p {
            font-family: 'Space Mono', monospace;
            font-size: 0.78rem;
            color: #888;
            line-height: 1.6;
        }

        .upload-zone .file-name {
            margin-top: 0.8rem;
            font-size: 0.8rem;
            font-weight: 700;
            color: #0d0d0d;
            word-break: break-all;
        }

        .upload-zone .img-preview {
            margin-top: 1rem;
            max-height: 180px;
            object-fit: cover;
            border: 2px solid #0d0d0d;
            display: none;
        }

        /* Submit */
        .modal-submit {
            width: 100%;
            padding: 1rem;
            background-color: #0d0d0d;
            color: var(--bg);
            border: 2px solid #0d0d0d;
            font-family: 'Anton', monospace;
            font-size: 1.1rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            cursor: pointer;
            margin-top: 0.5rem;
            transition: background-color 0.2s, color 0.2s;
        }

        .modal-submit:hover {
            background-color: var(--accent);
            color: #0d0d0d;
        }

        /* Article form fields (shown/hidden by type) */
        .article-fields { display: none; }
        .photo-fields { display: none; }
        .fields-active { display: block; }

        /* ── RESPONSIVE ── */
        @media (max-width: 700px) {
            .projects-grid {
                grid-template-columns: 1fr;
                padding: 2rem 4%;
            }

            .page-hero {
                grid-template-columns: 1fr;
                padding-top: calc(68px + 2rem);
            }

            .project-count {
                display: none;
            }

            .filter-bar {
                padding: 0.8rem 4%;
            }
        }


        /* ── ADMIN BASE ── */
        body { background-color: var(--bg); }

        /* ── LOGIN GATE ── */
        #login-screen {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #0d0d0d;
        }

        .login-box {
            background: var(--bg);
            border: 4px solid var(--accent);
            padding: 3.5rem 3rem;
            width: 100%;
            max-width: 400px;
        }

        .login-box h1 {
            font-size: 2.5rem;
            color: #0d0d0d;
            margin-bottom: 0.4rem;
        }

        .login-box p {
            font-size: 0.78rem;
            color: #666;
            margin-bottom: 2rem;
            letter-spacing: 0.05em;
        }

        .login-error {
            font-family: 'Space Mono', monospace;
            font-size: 0.75rem;
            color: #c0392b;
            font-weight: 700;
            letter-spacing: 0.1em;
            margin-bottom: 1rem;
            display: none;
        }

        .form-group {
            margin-bottom: 1.2rem;
        }

        .form-group label {
            display: block;
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: #555;
            margin-bottom: 0.4rem;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem 0.9rem;
            background: #fff;
            border: 2px solid #0d0d0d;
            font-family: 'Space Mono', monospace;
            font-size: 0.85rem;
            color: #0d0d0d;
            outline: none;
            transition: border-color 0.15s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--accent);
        }

        .form-group textarea {
            min-height: 140px;
            resize: vertical;
        }

        .btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #0d0d0d;
            color: var(--bg);
            border: 2px solid #0d0d0d;
            font-family: 'Space Mono', monospace;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
        }

        .btn-primary:hover {
            background: var(--accent);
            color: #0d0d0d;
            border-color: #0d0d0d;
        }

        .btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: transparent;
            color: #0d0d0d;
            border: 2px solid #0d0d0d;
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            padding: 0.55rem 1rem;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
        }

        .btn-secondary:hover {
            background: #0d0d0d;
            color: var(--bg);
        }

        .btn-danger {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: transparent;
            color: #c0392b;
            border: 2px solid #c0392b;
            font-family: 'Space Mono', monospace;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 0.4rem 0.8rem;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
        }

        .btn-danger:hover {
            background: #c0392b;
            color: #fff;
        }

        /* ── ADMIN PANEL ── */
        #admin-panel { display: none; }

        .admin-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1rem 6%;
            background-color: #0d0d0d;
            border-bottom: 3px solid var(--accent);
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
        }

        .admin-header-left {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .admin-logo {
            font-family: 'Anton', monospace;
            font-size: 1.8rem;
            color: var(--bg);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .admin-badge {
            font-family: 'Space Mono', monospace;
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            background: var(--accent);
            color: #0d0d0d;
            padding: 0.2rem 0.6rem;
        }

        .admin-content {
            padding-top: 80px;
            display: grid;
            grid-template-columns: 380px 1fr;
            min-height: 100vh;
            gap: 0;
        }

        @media (max-width: 900px) {
            .admin-content { grid-template-columns: 1fr; }
        }

        /* ── ADD FORM PANEL ── */
        .add-panel {
            background: #0d0d0d;
            padding: 2.5rem 2rem;
            border-right: 3px solid var(--accent);
            position: sticky;
            top: 80px;
            max-height: calc(100vh - 80px);
            overflow-y: auto;
        }

        .add-panel h2 {
            font-size: 1.8rem;
            color: var(--bg);
            margin-bottom: 0.3rem;
        }

        .add-panel > p {
            font-size: 0.72rem;
            color: #666;
            margin-bottom: 2rem;
            letter-spacing: 0.05em;
        }

        .add-panel .form-group label { color: #999; }

        .add-panel .form-group input,
        .add-panel .form-group select,
        .add-panel .form-group textarea {
            background: #1a1a1a;
            border-color: #333;
            color: var(--bg);
        }

        .add-panel .form-group input:focus,
        .add-panel .form-group select,
        .add-panel .form-group textarea:focus {
            border-color: var(--accent);
        }

        .add-panel .form-group select option {
            background: #1a1a1a;
        }

        .type-toggle {
            display: flex;
            margin-bottom: 1.5rem;
            border: 2px solid #333;
        }

        .type-toggle button {
            flex: 1;
            padding: 0.6rem;
            background: none;
            border: none;
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #666;
            cursor: pointer;
            transition: all 0.2s;
        }

        .type-toggle button.active {
            background: var(--accent);
            color: #0d0d0d;
        }

        .featured-row {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            margin-bottom: 1.5rem;
        }

        .featured-row input[type="checkbox"] {
            width: 20px;
            height: 20px;
            border: 2px solid #333;
            accent-color: var(--accent);
            cursor: pointer;
        }

        .featured-row label {
            font-family: 'Space Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #999;
            cursor: pointer;
        }

        .image-preview {
            width: 100%;
            aspect-ratio: 16/9;
            background: #1a1a1a;
            border: 2px dashed #333;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .image-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }

        .image-preview-placeholder {
            font-family: 'Space Mono', monospace;
            font-size: 0.7rem;
            color: #555;
            text-align: center;
        }

        /* ── MANAGE PANEL ── */
        .manage-panel {
            padding: 2.5rem 3%;
        }

        .manage-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .manage-header h2 {
            font-size: 1.8rem;
            color: #0d0d0d;
        }

        .manage-controls {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            flex-wrap: wrap;
        }

        .search-input {
            padding: 0.55rem 0.9rem;
            background: #fff;
            border: 2px solid #0d0d0d;
            font-family: 'Space Mono', monospace;
            font-size: 0.78rem;
            color: #0d0d0d;
            width: 200px;
            outline: none;
        }

        .search-input:focus { border-color: var(--accent); }

        /* ── PROJECT LIST ── */
        .project-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .project-list-item {
            display: grid;
            grid-template-columns: 80px 1fr auto;
            align-items: center;
            gap: 1.2rem;
            padding: 1rem 1.2rem;
            border: 2px solid #0d0d0d;
            margin-bottom: -2px;
            background: #fff;
            transition: background 0.15s;
        }

        .project-list-item:hover { background: #fdf8ef; }

        .project-list-thumb {
            width: 80px;
            height: 55px;
            object-fit: cover;
            border: 2px solid #0d0d0d;
            display: block;
        }

        .project-list-thumb.no-img {
            background: #0d0d0d;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            font-size: 1.4rem;
        }

        .project-list-info h3 {
            font-family: 'Anton', monospace;
            font-size: 1rem;
            font-weight: 400;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            color: #0d0d0d;
            margin-bottom: 0.2rem;
        }

        .project-list-meta {
            display: flex;
            gap: 0.8rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .tag-pill {
            font-family: 'Space Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            padding: 0.15rem 0.5rem;
            background: var(--bg);
            border: 1.5px solid #ccc;
            color: #555;
        }

        .tag-pill.type-photo { border-color: #0d0d0d; color: #0d0d0d; }
        .tag-pill.type-article { background: #0d0d0d; color: var(--bg); border-color: #0d0d0d; }
        .tag-pill.featured { background: var(--accent); border-color: var(--accent); color: #0d0d0d; }

        .project-list-actions {
            display: flex;
            gap: 0.5rem;
            flex-shrink: 0;
        }

        /* ── STATS BAR ── */
        .stats-bar {
            display: flex;
            gap: 0;
            margin-bottom: 2rem;
            border: 2px solid #0d0d0d;
        }

        .stat-box {
            flex: 1;
            padding: 1.2rem 1rem;
            border-right: 2px solid #0d0d0d;
            text-align: center;
        }

        .stat-box:last-child { border-right: none; }

        .stat-number {
            font-family: 'Anton', monospace;
            font-size: 2rem;
            font-weight: 400;
            letter-spacing: 0.02em;
            color: #0d0d0d;
            display: block;
        }

        .stat-label {
            font-family: 'Space Mono', monospace;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: #888;
        }

        /* ── EDIT MODAL ── */
        .edit-modal-bg {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(13,13,13,0.92);
            z-index: 500;
            overflow-y: auto;
        }

        .edit-modal-bg.open { display: block; }

        .edit-modal {
            background: #0d0d0d;
            max-width: 600px;
            margin: 3rem auto;
            padding: 2.5rem 2rem;
            border: 3px solid var(--accent);
        }

        .edit-modal h2 {
            font-size: 1.8rem;
            color: var(--bg);
            margin-bottom: 1.5rem;
        }

        .edit-modal .form-group label { color: #999; }

        .edit-modal .form-group input,
        .edit-modal .form-group select,
        .edit-modal .form-group textarea {
            background: #1a1a1a;
            border-color: #333;
            color: var(--bg);
        }

        .edit-modal-footer {
            display: flex;
            gap: 0.8rem;
            margin-top: 1.5rem;
        }

        /* ── TOAST ── */
        .toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: #0d0d0d;
            color: var(--bg);
            font-family: 'Space Mono', monospace;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            padding: 1rem 1.5rem;
            border-left: 4px solid var(--accent);
            z-index: 1000;
            transform: translateX(200%);
            transition: transform 0.3s ease;
        }

        .toast.show { transform: translateX(0); }

        /* ── EMPTY ── */
        .manage-empty {
            padding: 4rem 2rem;
            text-align: center;
            border: 3px dashed #ddd;
        }

        .manage-empty h3 { font-size: 1.5rem; color: #ccc; margin-bottom: 0.5rem; }
        .manage-empty p { font-size: 0.8rem; color: #aaa; }

        /* ── IMPORT/EXPORT ── */
        .data-actions {
            display: flex;
            gap: 0.8rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }

/* ═══════════════════════════════════════
   ADMIN TABS
═══════════════════════════════════════ */
.admin-tab-nav {
    position: sticky;
    top: 80px;
    z-index: 90;
    background-color: #111;
    border-bottom: 2px solid #222;
    display: flex;
    padding: 0 2%;
    overflow-x: auto;
}

.admin-tab {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 1.4rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.admin-tab:hover { color: var(--bg); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* ── PAGE EDIT PANEL (About / Contact tabs) ── */
.page-edit-panel {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: #0d0d0d;
    border: 3px solid var(--accent);
}

.page-edit-panel h2 {
    font-size: 1.8rem;
    color: var(--bg);
    margin-bottom: 0.4rem;
}

.page-edit-panel > p {
    font-size: 0.72rem;
    color: #666;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.page-edit-panel .form-group label { color: #999; }

.page-edit-panel .form-group input,
.page-edit-panel .form-group textarea {
    background: #1a1a1a;
    border-color: #333;
    color: var(--bg);
}

.page-edit-panel .form-group input:focus,
.page-edit-panel .form-group textarea:focus {
    border-color: var(--accent);
}

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(13,13,13,0.96);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    background: none;
    border: 2px solid var(--bg);
    color: var(--bg);
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 1;
}

.lightbox-close:hover {
    background-color: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
}

.lightbox-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 96vw;
}

.gallery-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img-wrap img {
    max-width: 82vw;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid var(--bg);
    display: block;
    transition: opacity 0.15s ease;
}

.gallery-nav {
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.gallery-nav:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #0d0d0d;
}

.gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #2a2a2a;
    width: 100%;
    max-width: 860px;
}

.lightbox-caption {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: #ddd;
    letter-spacing: 0.02em;
    margin: 0;
    flex: 1;
}

.gallery-counter {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #888;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.gallery-count-badge {
    position: absolute;
    bottom: 0.6rem;
    left: 0.6rem;
    background: rgba(13,13,13,0.75);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    pointer-events: none;
}

/* ═══════════════════════════════════════
   ARTICLE READER MODAL
═══════════════════════════════════════ */
.article-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(13,13,13,0.88);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow-y: auto;
}

.article-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.article-reader {
    background-color: var(--bg);
    border: 3px solid #0d0d0d;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
    margin: auto;
}

.article-modal-overlay.open .article-reader {
    transform: translateY(0);
}

.article-reader-header {
    background-color: #0d0d0d;
    padding: 1.2rem 1.8rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.article-reader-header h2 {
    font-size: 1.3rem;
    color: var(--bg);
    letter-spacing: 0.03em;
    flex: 1;
}

.article-reader-header .card-category {
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.modal-close-btn {
    background: none;
    border: 2px solid var(--bg);
    color: var(--bg);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
}

.article-reader-cover {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: none;
}

.article-reader-excerpt {
    display: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.7;
    color: #555;
    border-left: 4px solid var(--accent);
    margin: 1.5rem 2.4rem 0;
    padding-left: 1.2rem;
}

.article-reader-body {
    padding: 1.5rem 2.4rem 2.4rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.9;
    color: #222;
}

.article-reader-body p {
    margin-bottom: 1.2rem;
    font-family: 'Space Mono', monospace;
}

/* ═══════════════════════════════════════
   EXPERIENCE PAGE
═══════════════════════════════════════ */
.exp-section {
    padding: 4rem 6%;
    background-color: var(--bg);
}

.exp-section--dark {
    background-color: #0d0d0d;
}

.exp-section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.exp-section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #0d0d0d;
    margin-bottom: 3rem;
    border-bottom: 4px solid #0d0d0d;
    padding-bottom: 1rem;
}

.exp-section--dark .exp-section-title {
    color: var(--bg);
    border-color: #333;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 160px 1px 1fr;
    gap: 0 2.5rem;
    padding-bottom: 3rem;
}

.timeline-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    padding-top: 0.25rem;
    text-align: right;
}

.exp-section--dark .timeline-date {
    color: #666;
}

.timeline-line {
    background-color: #0d0d0d;
    position: relative;
    flex-shrink: 0;
}

.exp-section--dark .timeline-line {
    background-color: #333;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border: 2px solid #0d0d0d;
}

.timeline-content {
    padding-bottom: 1.5rem;
}

.timeline-role {
    font-family: 'Anton', monospace;
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #0d0d0d;
    margin-bottom: 0.2rem;
}

.exp-section--dark .timeline-role {
    color: var(--bg);
}

.timeline-org {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 0.7rem;
    letter-spacing: 0.08em;
}

.exp-section--dark .timeline-org {
    color: #888;
}

.timeline-desc {
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.75;
    color: #444;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
}

.exp-section--dark .timeline-desc {
    color: #aaa;
}

.timeline-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border: 1.5px solid #0d0d0d;
    margin-top: 0.8rem;
    margin-right: 0.4rem;
    color: #0d0d0d;
}

.exp-section--dark .timeline-tag {
    border-color: #444;
    color: #aaa;
}

.skills-grid {
    display: flex;
    flex-direction: column;
}

.skill-row {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #ddd;
}

.skill-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    flex-shrink: 0;
}

.skill-row-left i {
    font-size: 1rem;
    color: var(--accent);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.skill-row-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #0d0d0d;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.skill-row-desc {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 700px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding-bottom: 2rem;
    }
    .timeline-line { display: none; }
    .timeline-date { text-align: left; }
    .skill-row { flex-direction: column; gap: 0.4rem; }
    .skill-row-left { min-width: unset; }
}

/* ═══════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════ */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 68px);
    margin-top: 68px;
}

.contact-info {
    background-color: #0d0d0d;
    padding: 5rem 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 4px solid var(--accent);
}

.contact-info h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    color: var(--bg);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.contact-info > p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: #aaa;
    max-width: 380px;
    margin-bottom: 2.5rem;
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-social a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid #2a2a2a;
    color: var(--bg);
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: -1.5px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-social a:hover {
    background-color: var(--accent);
    color: #0d0d0d;
    border-color: var(--accent);
}

.contact-form-panel {
    background-color: var(--bg);
    padding: 5rem 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-panel h2 {
    font-size: 2rem;
    color: #0d0d0d;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cf-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555;
}

.cf-input, .cf-textarea {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #0d0d0d;
    background-color: #fff;
    border: 2px solid #0d0d0d;
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
    appearance: none;
}

.cf-input:focus, .cf-textarea:focus {
    border-color: var(--accent);
}

.cf-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
}

.cf-submit {
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    background-color: #0d0d0d;
    color: var(--bg);
    border: 2px solid #0d0d0d;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cf-submit:hover {
    background-color: var(--accent);
    color: #0d0d0d;
    border-color: #0d0d0d;
}

.cf-status {
    display: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--accent);
    background: #fff;
    color: #0d0d0d;
    margin-top: 0.5rem;
}

.cf-status.error {
    border-color: #c0392b;
    color: #c0392b;
}

@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .contact-info {
        border-right: none;
        border-bottom: 4px solid var(--accent);
    }
}
