:root {
    --ink: #1b1a1a;
    --paper: #F8F7F5;
    --ash: #7c7c7c;
    --fog: #D0CFC9;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
}


/* ── CUSTOM CURSOR ── */

.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--paper);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

.cursor.big {
    width: 40px;
    height: 40px;
}


/* ── MAIN SITE ── */

#site {
    opacity: 0;
    transition: opacity 0.6s 0.6s;
    min-height: 100vh;
}

#site.visible {
    opacity: 1;
}


/* ── NAV ── */


/* ── NAV ── */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    letter-spacing: 0.1em;
    color: var(--paper);
    text-decoration: none;
}


/* Hamburger */

.hamburger {
    background: none;
    border: none;
    cursor: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    z-index: 102;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--paper);
    transition: all 0.3s ease;
    display: block;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(12px, 0px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(12px, 0px);
}


/* Menu Overlay */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--ink);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    gap: 8rem;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 6vw, 72px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper);
    text-decoration: none;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(0);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--paper);
    transition: width 0.4s cubic-bezier(0.25, 0, 0, 1);
}

.menu-link:hover {
    opacity: 1;
    transform: translateX(20px);
}

.menu-link:hover::after {
    width: 100%;
}

.menu-link.active {
    opacity: 1;
}

.menu-link.active::after {
    width: 100%;
}

.menu-contact {
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ash);
    text-decoration: none;
    margin-top: 2rem;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    display: inline-block;
}

.menu-contact:hover {
    color: var(--paper);
    border-bottom-color: var(--paper);
}

.menu-instagram {
    /* inherits .menu-link styles for typography/animation */
}


/* Menu Image */

.menu-image {
    position: relative;
    width: 400px;
    height: 550px;
    overflow: hidden;
    border-radius: 4px;
}

.menu-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.1);
}

.menu-image img.active {
    opacity: 1;
    transform: scale(1);
}


/* Mobile Responsive */

@media (max-width: 890px) {
    .menu-content {
        flex-direction: column;
        gap: 3rem;
        padding: 6rem 2rem 2rem;
    }
    .menu-image {
        display: none;
    }
    .menu-link {
        font-size: clamp(36px, 8vw, 48px);
    }
    .hamburger span {
        width: 24px;
    }
}


/* ── SECTION BASE ── */

section {
    padding: 8rem 2.5rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 6vw, 80px);
    letter-spacing: 0.04em;
    line-height: 1;
}

.section-count {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ash);
    font-weight: 400;
}


/* ── ASYMMETRIC GRID ── */

.photo-grid {
    display: grid;
    gap: 10px;
}


/* Portfolio grid — 3-col asymmetric */

#portfolio .photo-grid {
    grid-template-columns: 1.6fr 1fr 1.2fr;
    grid-auto-rows: 350px;
}


/* Collabs grid — 2-col asymmetric */

#collabs .photo-grid {
    grid-template-columns: 1fr 1.5fr;
    grid-auto-rows: 550px;
}


/* Span helpers */

.span-2c {
    grid-column: span 2;
}

.span-3c {
    grid-column: span 3;
}

.span-2r {
    grid-row: span 2;
}

.span-3r {
    grid-row: span 3;
}

.tall {
    grid-row: span 2;
}

.wide {
    grid-column: span 2;
}


/* ── PHOTO ITEM ── */

.grid-item {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    image-rendering: crisp-edges;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0, 0, 1), filter 0.4s;
    image-rendering: -webkit-optimize-contrast;
}

.grid-item:hover img {
    transform: scale(1.03);
    filter: blur(6px) brightness(0.6);
}

.grid-item-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s;
    z-index: 2;
    padding: 1rem;
    text-align: center;
}

.grid-item:hover .grid-item-label {
    opacity: 1;
}

.grid-item-label .shoot-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(14px, 1.6vw, 20px);
    color: var(--paper);
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.grid-item-label .shoot-type {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(248, 247, 245, 0.55);
    margin-top: 6px;
    font-weight: 400;
}

@media (max-width: 890px) {
    /* Stack everything into one column */
    .photo-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-auto-rows: 800px;
    }
    /* Reset all spanning (critical) */
    .span-2c,
    .span-3c,
    .span-2r,
    .span-3r,
    .tall,
    .wide {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    /* Let images define height naturally */
    .grid-item {
        width: 100%;
        object-position: center center;
        max-height: 800px;
    }
    .grid-item img {
        width: 100%;
        height: 100%;
        object-position: center center;
        object-fit: cover;
        /* or keep cover if you prefer cropping */
        overflow: hidden;
    }
    .grid-item:hover .grid-item-label {
        opacity: 0;
    }
    .grid-item:hover img {
        transform: none;
        filter: none;
    }
}


/* ── DIVIDER ── */

.divider {
    width: 100%;
    height: 0.5px;
    background: #2a2a2a;
    margin: 1rem 1rem;
    width: calc(100% - 5rem);
    top: 1rem;
    bottom: 1rem;
}


/* ── CONTACT ── */

#contact {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-eyebrow {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ash);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.contact-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 9vw, 120px);
    letter-spacing: 0.02em;
    line-height: 0.88;
    margin-bottom: 3rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper);
    text-decoration: none;
    border-bottom: 0.5px solid var(--fog);
    padding-bottom: 4px;
    transition: border-color 0.2s, gap 0.2s;
    font-weight: 400;
}

.contact-link:hover {
    border-color: var(--paper);
    gap: 1.5rem;
}

.contact-link::after {
    content: '→';
    font-size: 16px;
}

.contact-footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 0.5px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--ash);
    font-weight: 400;
}


/* ── SEE MORE LINK ── */

.see-more-wrap {
    padding: 3.5rem 0 1rem;
}

.see-more-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 7vw, 96px);
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--paper);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.18;
    transition: opacity 0.3s;
    border-bottom: 1.5px solid transparent;
}

.see-more-link:hover {
    opacity: 1;
    border-bottom-color: var(--paper);
}

.see-more-link .arrow {
    font-size: 0.55em;
    line-height: 1;
    margin-bottom: 0.1em;
}


/* ── ABOUT BLOCK (pre-footer) ── */

.about-block {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 1rem 2.5rem 6rem;
}

.about-block-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(52px, 7vw, 96px);
    letter-spacing: 0.03em;
    line-height: 1;
    color: var(--paper);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.18;
    transition: opacity 0.3s;
    border-bottom: 1.5px solid transparent;
}

.about-block-link:hover {
    opacity: 1;
    border-bottom-color: var(--paper);
}


/* ── SCROLLBAR ── */

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--ink);
}

::-webkit-scrollbar-thumb {
    background: #333;
}

.nav-desktop,
.nav-mobile {
    display: flex;
    align-items: center;
}

.nav-mobile {
    display: none;
}