:root {
    --bg: #0b0d09;
    --surface: #14170f;
    --line: #2a2d20;
    --bone: #f2efe4;
    --muted: #9a9a84;
    --teal: #5c9484;
    --teal-dim: #3c6459;
    --amber: #d69a46;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
    background: var(--bg);
    color: var(--bone);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ---- Header: single row — logo left, nav center, socials right ---- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.logo {
    font-family: 'Carter One', cursive;
    font-size: clamp(20px, 4vw, 28px);
    color: var(--bone);
    white-space: nowrap;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
nav a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}
nav a:hover,
nav a.active {
    color: var(--bone);
    border-bottom-color: var(--teal);
}
.social {
    display: flex;
    align-items: center;
    gap: 16px;
}
.social img {
    width: 16px;
    height: 16px;
    filter: invert(1) brightness(0.92);
    opacity: 0.7;
    transition: opacity 0.2s;
}
.social a:hover img { opacity: 1; }

/* ---- Wall: tight edge-to-edge masonry-in-grid ---- */
.wall {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 4px;
    gap: 4px;
    padding: 4px;
    max-width: 1400px;
    margin: 0 auto;
}
.tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform .4s ease, filter .4s ease;
    filter: saturate(0.92);
}
.tile:hover img {
    transform: scale(1.04);
    filter: saturate(1);
}
@media (max-width: 1000px) { .wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) {
    .wall { grid-template-columns: repeat(2, 1fr); }
    header { justify-content: center; text-align: center; }
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 4, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    z-index: 200;
    flex-direction: column;
    padding: 40px 20px;
    width: 100%;
    height: 100%;
}
.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}
.lightbox .frame {
    max-width: 90vw;
    max-height: 80vh;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox .frame img {
    display: block;
    height: auto;
    max-height: 80vh;
    width: auto;
    max-width: 88vw;
    opacity: 1;
    transition: opacity 0.15s ease;
}
.lightbox .frame img.is-loading {
    opacity: 0;
}
.lightbox .close,
.lightbox .nav-btn {
    position: absolute;
    background: none;
    border: 1px solid var(--line);
    color: var(--bone);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.lightbox .close:hover,
.lightbox .nav-btn:hover {
    border-color: var(--teal-dim);
    color: var(--teal);
}
.lightbox .close { top: 24px; right: 24px; }
.lightbox .prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
    .lightbox .prev, .lightbox .next { display: none; }
}

/* ---- Footer: single line ---- */
footer {
    border-top: 1px solid var(--line);
    padding: 18px 32px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
}
