* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
    background: #060606;
    color: #d8d8d8;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed; inset: 0;
    background-image:
        radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.75) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    pointer-events: none;
    z-index: 0;
    opacity: .9;
}

.stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

/* ─── gradient title ─────────────────────────────────────────── */
.brand {
    font-family: "Pirata One", "UnifrakturMaguntia", serif;
    font-weight: 400;
    font-size: clamp(72px, 14vw, 180px);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 56px;
    user-select: none;

    background: linear-gradient(
        110deg,
        #d9d9d9  0%,
        #ffffff 18%,
        #fff2d6 32%,
        #c9a24a 46%,
        #ffffff 60%,
        #ffe9b3 74%,
        #a07a2a 86%,
        #ffffff 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 0 18px rgba(255, 220, 160, .18))
            drop-shadow(0 0 2px rgba(255, 255, 255, .25));

    animation: shine 7s ease-in-out infinite;
}
@keyframes shine {
    0%, 100% { background-position:   0% 50%; }
    50%      { background-position: 100% 50%; }
}

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.links a {
    color: #d8d8d8;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.links a:hover { color: #fff; }
.wos-tag { color: #c9a24a; margin-left: 4px; }

/* ─── wall overlay (grid) ───────────────────────────────────── */
.wall {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 50;
    overflow-y: auto;
    padding: 72px 32px 48px;
    backdrop-filter: blur(4px);
}
body.wall-open { overflow: hidden; }
.wall-close {
    position: fixed;
    top: 18px; right: 24px;
    background: transparent;
    border: none;
    color: #e4e4e4;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    z-index: 51;
}
.wall-close:hover { color: #fff; }
.wall-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.wall-item {
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,.08);
    padding: 10px;
    border-radius: 2px;
}
.wall-item img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

/* ─── lightbox ──────────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.96);
    z-index: 80;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
    padding: 40px;
}
body.lightbox-open { overflow: hidden; }
.lightbox-img {
    max-width: 95vw;
    max-height: 88vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(.985);
    transition: opacity .22s ease, transform .22s ease;
    box-shadow: 0 20px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
    cursor: zoom-out;
}
.lightbox-img.ready { opacity: 1; transform: scale(1); }
.lightbox-close,
.lightbox-nav {
    position: fixed;
    background: rgba(20,20,20,.6);
    border: 1px solid rgba(255,255,255,.14);
    color: #e4e4e4;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: inherit;
    z-index: 81;
    transition: background .15s, border-color .15s, color .15s;
}
.lightbox-close { top: 18px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.lightbox-count {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #aaa;
    background: rgba(0,0,0,.5);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 600px) {
    .brand { margin-bottom: 40px; }
    .wall { padding: 60px 16px 32px; }
    .wall-grid { grid-template-columns: 1fr; gap: 14px; }
    .lightbox { padding: 20px; }
    .lightbox-nav { width: 38px; height: 38px; font-size: 20px; }
}
