* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: #ffffff;
    color: #0a0a0a;
}

/* ==================== LOADER ==================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

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

.loader-content {
    text-align: center;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: #ffffff;
    animation: loaderFill 1.5s ease-in-out forwards;
}

@keyframes loaderFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.loader-text {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 15px;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px 80px;
}

.nav-logo {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-back {
    font-size: 11px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: gap 0.3s ease;
}

.nav-back:hover {
    gap: 15px;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
    will-change: transform;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #0a0a0a);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    will-change: transform;
    z-index: 1;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 400;
    letter-spacing: -4px;
    line-height: 0.9;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(80px);
}

.hero-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 2rem;
    opacity: 0;
    transform: scaleX(0);
}

.hero p {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    font-weight: 300;
}

.hero-scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    animation: scrollPulse 2s ease infinite;
    z-index: 10;
    opacity: 0;
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* ==================== GALLERY ==================== */
.gallery-section {
    padding: 100px 80px 150px;
    background: #0a0a0a;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
}

.section-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
}

/* ==================== MASONRY GRID ==================== */
.masonry-container {
    max-width: 1600px;
    margin: 0 auto;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}

.masonry-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
}

/* Masonry span patterns — varied heights */
.masonry-item:nth-child(5n+1) {
    grid-row: span 2;
}

.masonry-item:nth-child(5n+2) {
    grid-row: span 1;
}

.masonry-item:nth-child(5n+3) {
    grid-row: span 2;
}

.masonry-item:nth-child(5n+4) {
    grid-row: span 1;
}

.masonry-item:nth-child(5n+5) {
    grid-row: span 2;
}

/* ==================== SHIMMER LOADING ==================== */
.shimmer-wrapper {
    position: absolute;
    inset: 0;
    background: #141414;
    z-index: 2;
    overflow: hidden;
}

.shimmer-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            transparent 60%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmerSlide 1.8s ease-in-out infinite;
}

.shimmer-wrapper .shimmer-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.shimmer-line-1 {
    bottom: 50px;
    left: 20px;
    width: 60%;
    height: 14px;
}

.shimmer-line-2 {
    bottom: 25px;
    left: 20px;
    width: 35%;
    height: 10px;
}

.shimmer-wrapper.loaded {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@keyframes shimmerSlide {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== IMAGE ==================== */
.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(1.08);
}

.masonry-item img.loaded {
    opacity: 1;
    transform: scale(1);
}

.masonry-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* ==================== OVERLAY ==================== */
.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-title {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 4px;
    font-weight: 400;
}

.masonry-location {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Video play icon */
.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0a0a0a;
    transition: all 0.3s ease;
    z-index: 10;
}

.masonry-item:hover .video-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    opacity: 0;
    transform: scale(0.9);
}

.lightbox-content img,
.lightbox-content iframe {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
}

.lightbox-content iframe {
    width: 90vw;
    height: 50.625vw;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 3px;
    z-index: 10000;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0a0a0a;
    padding: 100px 80px 60px;
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1600px;
    margin: 0 auto 80px;
}

.footer-brand h3 {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 400;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 300px;
}

.footer-columns {
    display: flex;
    gap: 100px;
}

.footer-column h4 {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-column ul li a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-icons a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==================== CUSTOM CURSOR (DESKTOP) ==================== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ==================== FOOTER ANIMATION PREP ==================== */
.footer-brand,
.footer-column,
.footer-bottom {
    opacity: 0;
    transform: translateY(30px);
}

/* ==================== RESPONSIVE — TABLET ==================== */
@media (max-width: 1200px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
        gap: 14px;
    }

    .gallery-section {
        padding: 100px 60px 130px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 30px 50px;
    }

    .navbar.scrolled {
        padding: 20px 50px;
    }

    .hero {
        padding: 0 50px;
    }

    .gallery-section {
        padding: 80px 40px 120px;
    }

    .footer {
        padding: 80px 50px 50px;
    }

    .footer-columns {
        gap: 60px;
    }
}

/* ==================== RESPONSIVE — MOBILE ==================== */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }

    .navbar {
        padding: 20px 25px;
    }

    .navbar.scrolled {
        padding: 18px 25px;
    }

    .nav-logo {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .nav-back {
        font-size: 10px;
    }

    .hero {
        padding: 0 25px;
        min-height: 90vh;
    }

    .hero h1 {
        letter-spacing: -2px;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .hero-scroll {
        bottom: 30px;
        font-size: 9px;
    }

    .gallery-section {
        padding: 60px 12px 80px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        letter-spacing: -1px;
    }

    .section-header p {
        font-size: 12px;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 6px;
    }

    .masonry-item:nth-child(5n+1) {
        grid-row: span 2;
    }

    .masonry-item:nth-child(5n+2) {
        grid-row: span 1;
    }

    .masonry-item:nth-child(5n+3) {
        grid-row: span 1;
    }

    .masonry-item:nth-child(5n+4) {
        grid-row: span 2;
    }

    .masonry-item:nth-child(5n+5) {
        grid-row: span 1;
    }

    .masonry-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 45%);
        padding: 12px;
    }

    .masonry-title {
        font-size: 0.8rem;
    }

    .masonry-location {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }

    .video-icon {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .lightbox-nav,
    .lightbox-close {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

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

    .lightbox-counter {
        font-size: 11px;
        bottom: 20px;
    }

    .footer {
        padding: 60px 25px 35px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 50px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-columns {
        flex-direction: column;
        gap: 35px;
    }

    .footer-column h4 {
        margin-bottom: 18px;
    }

    .footer-column ul li {
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 30px;
    }

    .social-icons {
        justify-content: center;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        letter-spacing: -1px;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
        gap: 5px;
    }

    .masonry-item:nth-child(3n+1) {
        grid-row: span 2;
    }

    .masonry-item:nth-child(3n+2) {
        grid-row: span 1;
    }

    .masonry-item:nth-child(3n+3) {
        grid-row: span 1;
    }

    .masonry-title {
        font-size: 0.75rem;
    }

    .masonry-overlay {
        padding: 10px;
    }

    .gallery-section {
        padding: 50px 8px 60px;
    }

    .section-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 380px) {
    .masonry-grid {
        grid-auto-rows: 110px;
        gap: 4px;
    }

    .hero {
        min-height: 85vh;
    }

    .navbar {
        padding: 18px 20px;
    }
}

/* credits */
.footer-credit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #ffffff;
}

.dev-name {
    display: inline-block;
    font-weight: 400;
    letter-spacing: 2px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 1) 25%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            rgba(255, 255, 255, 0.3) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameShimmer 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

@keyframes nameShimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}