:root {
    --bg: #000;
    --text: #f4f4f4;
    --muted: rgba(255,255,255,.58);
    --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 64px);
    background: linear-gradient(to bottom, rgba(0,0,0,.72), transparent);
    transition: background .35s ease, transform .35s ease;
}
.site-header.scrolled { background: rgba(0,0,0,.88); backdrop-filter: blur(12px); }
.brand { font-size: .92rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; gap: 30px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a { opacity: .72; transition: opacity .2s; }
.main-nav a:hover { opacity: 1; }
.menu-button { display: none; background: none; border: 0; color: white; padding: 8px; }
.menu-button span:not(.sr-only) { display: block; width: 25px; height: 1px; background: white; margin: 6px 0; }

.hero {
    position: relative;
    min-height: 100svh;
    background: #080808;
    overflow: hidden;
}
.hero > img {
    width: 100%;
    height: 100svh;
    object-fit: cover;
    object-position: center;
    animation: heroIn 1.8s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes heroIn { from { transform: scale(1.04); opacity: .35; } to { transform: scale(1); opacity: 1; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.12) 55%, rgba(0,0,0,.72)); }
.hero-content { position: absolute; left: clamp(24px, 6vw, 92px); bottom: clamp(80px, 12vh, 150px); max-width: 760px; }
.hero-content h1 { margin: 0 0 16px; font-size: clamp(2.5rem, 7vw, 7rem); font-weight: 400; letter-spacing: -.04em; line-height: .95; }
.hero-content p { margin: 0; font-size: clamp(1rem, 1.8vw, 1.35rem); color: var(--muted); }
.hero-placeholder { min-height: 100svh; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: .65rem; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.68); }
.scroll-hint i { display: block; width: 1px; height: 42px; background: rgba(255,255,255,.55); animation: pulse 1.8s infinite; transform-origin: top; }
@keyframes pulse { 0%,100% { transform: scaleY(.35); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }

.gallery { width: 100%; padding: clamp(70px, 11vw, 180px) 0; }
.gallery-item { margin: 0 auto clamp(90px, 14vw, 220px); width: min(86vw, 1440px); }
.gallery-item.offset-left { transform: translate3d(-4vw, 80px, 0); }
.gallery-item.offset-right { transform: translate3d(4vw, 80px, 0); }
.gallery-item.reveal { opacity: 0; transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.18,.72,.22,1); }
.gallery-item.reveal.visible { opacity: 1; transform: translate3d(0,0,0); }
.image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.image-button img { width: 100%; max-height: 88svh; object-fit: contain; background: #030303; }
.empty-gallery { min-height: 50vh; display: grid; place-content: center; text-align: center; padding: 30px; color: var(--muted); }
.empty-gallery h1 { color: white; font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 400; margin: 0 0 20px; }
.empty-gallery code { color: white; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 36px clamp(20px,4vw,64px); border-top: 1px solid rgba(255,255,255,.12); color: var(--muted); font-size: .78rem; letter-spacing: .08em; }
.site-footer div { display: flex; gap: 22px; }

.image-viewer {
    width: 100vw;
    height: 100svh;
    max-width: none;
    max-height: none;
    border: 0;
    padding: 0;
    background: rgba(0,0,0,.98);
    color: white;
    overflow: hidden;
    overscroll-behavior: contain;
}
.image-viewer::backdrop { background: rgba(0,0,0,.96); }
.image-viewer[open] { display: block; }
.viewer-stage {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 7vh 7vw;
    overflow: hidden;
}
.viewer-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 86svh;
    object-fit: contain;
    transform: translate3d(0,0,0);
    transform-origin: center center;
    transition: width .35s cubic-bezier(.2,.75,.2,1), height .35s cubic-bezier(.2,.75,.2,1), transform .35s cubic-bezier(.2,.75,.2,1);
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    will-change: transform;
}
.image-viewer.zoom-100 .viewer-stage img {
    cursor: context-menu;
}
.image-viewer.is-dragging .viewer-stage img {
    cursor: grabbing;
    transition: none;
}
.viewer-close {
    position: fixed;
    top: 16px;
    right: 22px;
    z-index: 4;
    border: 0;
    background: rgba(0,0,0,.38);
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
}
.viewer-hint {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 4;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,.68);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.legal-page { min-height: 100vh; padding: 120px max(24px, calc((100vw - 820px)/2)) 80px; line-height: 1.72; }
.legal-page h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 400; margin: 0 0 42px; }
.legal-page h2 { margin-top: 42px; }
.legal-page p, .legal-page li { color: rgba(255,255,255,.72); }
.legal-page a { text-decoration: underline; }

@media (max-width: 760px) {
    :root { --header-h: 64px; }
    .menu-button { display: block; }
    .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; display: grid; gap: 0; padding: 20px; background: rgba(0,0,0,.96); transform: translateY(-130%); transition: transform .3s ease; }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 17px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
    .gallery-item { width: 100%; margin-bottom: 70px; }
    .gallery-item.offset-left, .gallery-item.offset-right { transform: translate3d(0,55px,0); }
    .site-footer { align-items: flex-start; flex-direction: column; }
    .lightbox-nav { font-size: 3rem; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
