:root {
    --bg: #11100e;
    --card: rgba(255,255,255,.075);
    --text: #f8f4ec;
    --muted: #b7aea0;
    --line: rgba(255,255,255,.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 153, .22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(160, 180, 255, .18), transparent 35%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

body.locked {
    overflow: hidden;
}

.hero {
    padding: 72px 7vw 44px;
}

.eyebrow {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .75rem;
}

h1 {
    font-size: clamp(3rem, 9vw, 8rem);
    line-height: .9;
    margin: 0;
    letter-spacing: -.08em;
}

.intro {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;

    margin: -12px 7vw 42px;
}

.info-card {
    padding: 22px 24px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 26px;

    background: rgba(255,255,255,.06);

    color: var(--muted);

    backdrop-filter: blur(16px);

    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.info-card strong {
    display: block;
    color: var(--text);
    margin-bottom: 10px;

    font-size: 1rem;
    letter-spacing: -.02em;
}

.info-card p {
    margin: 0;
    line-height: 1.7;
}

.gallery {
    padding: 0 7vw 90px;
    columns: 3 280px;
    column-gap: 22px;
}

.card {
    display: inline-block;
    width: 100%;
    margin: 0 0 22px;
    break-inside: avoid;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.image-button {
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    background: transparent;
    cursor: zoom-in;
    color: inherit;
    display: block;
}

.image-wrap {
    position: relative;
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.copyright {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,.38);
    color: rgba(255,255,255,.82);
    font-size: .72rem;
    backdrop-filter: blur(8px);
}

figcaption {
    padding: 17px 18px 20px;
    color: var(--muted);
    line-height: 1.55;
    font-size: .96rem;
}

/* Intro video */

.intro-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #080706;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}

.intro-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-loader video {
    position: absolute;
    width: min(900px, 92vw);
    height: min(520px, 70vh);
    object-fit: cover;
    border-radius: 36px;
    opacity: .58;
    filter: saturate(.85) contrast(1.15);
    box-shadow: 0 40px 120px rgba(0,0,0,.7);
}

.intro-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.intro-overlay p {
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .7rem;
    color: rgba(255,255,255,.7);
}

.intro-overlay h2 {
    margin: 0;
    font-size: clamp(3rem, 12vw, 8rem);
    letter-spacing: -.08em;
}

#enter-portfolio {
    margin-top: 28px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: white;
    font-size: .95rem;
    letter-spacing: .04em;
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: transform .25s ease, background .25s ease;
}

#enter-portfolio:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.22);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(8,7,6,.88);
    backdrop-filter: blur(26px);
    display: none;
    place-items: center;
    padding: 32px;
}

.lightbox.open {
    display: grid;
}

.lightbox-inner {
    max-width: min(1400px, 94vw);
    max-height: 88vh;
    text-align: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    object-fit: contain;
    border-radius: 28px;
    box-shadow: 0 40px 120px rgba(0,0,0,.7);
    pointer-events: none;
    user-select: none;
}

#lightbox-caption {
    color: rgba(255,255,255,.75);
    margin-top: 18px;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 9020;
    backdrop-filter: blur(16px);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.09);
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 9010;
    backdrop-filter: blur(16px);
}

.lightbox-prev {
    left: 26px;
}

.lightbox-next {
    right: 26px;
}

@media (max-width: 700px) {
    .hero {
        padding-top: 48px;
    }

    .gallery {
        columns: 1;
    }

    .lightbox {
        padding: 18px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 2.4rem;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
    }
}