*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 400;
}

/* Background */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('background.jpg') center/cover no-repeat;
    filter: grayscale(1) contrast(1.02);
}
.bg-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.55) 100%);
}

/* Film grain (animated SVG noise) */
.grain {
    position: fixed;
    inset: -4%;
    z-index: 5;
    pointer-events: none;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-2%, 1%); }
    40%  { transform: translate(1%, -1%); }
    60%  { transform: translate(-1%, 2%); }
    80%  { transform: translate(2%, -2%); }
    100% { transform: translate(0, 0); }
}

/* Bottom dock */
.dock {
    position: fixed;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}

.nav-glass {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    background: rgba(20, 20, 20, 0.32);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 2px;
}
.nav-glass button {
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 14px 20px;
    min-width: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.nav-glass button:last-child { border-right: 0; }
.nav-glass button:hover { background: rgba(255, 255, 255, 0.08); }

.motto-hero {
    pointer-events: none;
    font-family: inherit;
    font-size: clamp(20px, 2.6vw, 36px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.005em;
    text-align: right;
    max-width: min(60vw, 720px);
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}


/* Drawer */
.drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.45);
    transition: opacity 0.25s ease;
    opacity: 1;
}
.drawer-scrim[hidden] {
    display: block;
    opacity: 0;
    pointer-events: none;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: min(560px, 92vw);
    background: rgba(15, 15, 15, 0.78);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
    display: flex;
    flex-direction: column;
    color: #fff;
}
.drawer.is-open { transform: translateX(0); }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 22px 28px;
}
.drawer-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.drawer-close:hover { opacity: 1; }
.drawer-close:focus { outline: none; }

.drawer-body {
    overflow-y: auto;
    padding: 36px 40px 56px;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.005em;
}
.drawer-body p { margin: 0 0 14px; }
.drawer-body p:last-child { margin-bottom: 0; }
.drawer-body h2 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #fff;
}
.drawer-body h2:first-child { margin-top: 0; }

/* Lightbox */
.lb {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lbfade 0.18s ease-out;
}
.lb[hidden] { display: none; }
@keyframes lbfade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.lb-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.lb-close,
.lb-arrow {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}
.lb-close {
    top: 16px;
    right: 20px;
    font-size: 28px;
    line-height: 1;
    padding: 6px 10px;
    opacity: 0.7;
}
.lb-close:hover { opacity: 1; }
.lb-arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
    line-height: 1;
    padding: 16px;
    opacity: 0.55;
}
.lb-arrow:hover { opacity: 1; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.65;
}

/* Responsive */
@media (max-width: 640px) {
    .motto-hero {
        max-width: none;
        text-align: center;
        font-size: clamp(18px, 5vw, 26px);
    }
    .dock {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }
    .nav-glass {
        width: 100%;
    }
    .nav-glass button {
        flex: 1;
        min-width: 0;
        padding: 12px 6px;
        font-size: 15px;
    }
    .drawer-body {
        padding: 28px 24px 44px;
        font-size: 17px;
    }
    .lb-arrow {
        font-size: 40px;
        padding: 10px;
    }
    .lb-prev { left: 0; }
    .lb-next { right: 0; }
    .lb-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
}
