:root {
    --color-cream: #F3EFE8;
    --color-dark: #020603;
    --color-mint: #97D8B5;
    --color-bright: #c0f994;
    
    --font-heading: 'Archivo Black', sans-serif;
    --font-accent: 'Outfit', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8vw;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

html.lenis {
    height: auto;
}

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

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    background-color: var(--color-cream);
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    cursor: none; /* Custom cursor */
}

/* Force hide system cursor on all elements — browser default sets cursor:pointer on <a>/<button> which overrides inherited cursor:none */
*, *::before, *::after {
    cursor: none !important;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    mix-blend-mode: exclusion;
}

.cursor-dot.hovered {
    width: 40px;
    height: 40px;
    background-color: var(--color-mint);
    mix-blend-mode: exclusion;
}

/* Typography styles */
h1, h2, h3, h4 {
    font-weight: normal;
    text-transform: uppercase;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem var(--spacing-xl) var(--spacing-md) var(--spacing-xl); /* Reduced top padding */
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align to top instead of center */
    z-index: 100;
    color: var(--color-dark);
    transition: padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.4s ease,
                backdrop-filter 0.4s ease,
                border-bottom 0.4s ease,
                color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.logo {
    height: 180px;
    width: auto;
    margin-top: -15px; /* Pull the logo up */
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                margin-top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.4s ease,
                filter 0.3s ease;
}

/* Scrolled Header style */
.header.scrolled {
    padding: 10px var(--spacing-xl);
    background-color: rgba(243, 239, 232, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(2, 6, 3, 0.05);
    align-items: center;
}

.header.scrolled .logo {
    height: 140px;
    margin-top: 0;
    /* Scrolled header always has cream bg — logo must always be dark */
    filter: none !important;
}

.header.scrolled.dark-mode {
    background-color: rgba(2, 6, 3, 0.92);
    border-bottom-color: rgba(243, 239, 232, 0.08);
}

/* When scrolled over dark section, keep nav text cream */
.header.scrolled.dark-mode .logo {
    filter: brightness(0) invert(1) !important;
}

/* Dark Mode Header Toggle */
.header.dark-mode {
    color: var(--color-cream);
}

.header.dark-mode .logo {
    filter: brightness(0) invert(1);
}

.header.dark-mode .btn-primary {
    background-color: var(--color-cream);
}

.header.dark-mode .nav .btn-primary {
    color: var(--color-dark);
}

.nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav a {
    color: inherit;
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.btn-primary {
    background-color: var(--color-dark);
    color: var(--color-cream);
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    border: none;
    font-family: var(--font-accent);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav .btn-primary {
    color: var(--color-cream);
}

.btn-primary:hover {
    background-color: var(--color-mint);
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* Utils */
.screen-height {
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl);
    padding-top: 220px; /* Clear the massive logo */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 0.9;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.block {
    display: block;
    overflow: hidden;
}

.block span {
    display: inline-block;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    max-width: 600px;
    font-weight: 300;
}

.scroll-indicator {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator .line {
    position: relative;
    width: 2px;
    height: 40px;
    background-color: var(--color-dark);
    margin-left: 24px; /* Centered visually under SCROLL */
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--color-dark);
}

/* Philosophy */
.philosophy {
    padding: calc(var(--spacing-xl) * 1.5) var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
}

.phil-text-block {
    max-width: 800px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    margin-bottom: var(--spacing-md);
    color: var(--color-mint);
}

.body-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--font-accent);
    font-weight: 300;
    line-height: 1.4;
}

/* Horizontal Showcase */
.collection-showcase {
    background-color: var(--color-dark);
    color: var(--color-cream);
    overflow: hidden;
    padding-top: 160px; /* Moved higher to be properly visible in viewport */
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.collection-header {
    padding: 0 var(--spacing-xl) var(--spacing-sm) var(--spacing-xl);
}

.collection-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: var(--color-cream);
}

.collection-line {
    width: 100%;
    height: 1px;
    background-color: rgba(243,239,232,0.2);
    margin-top: var(--spacing-md);
}

.horizontal-scroll-container {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: var(--spacing-xl);
    width: 100%;
    overflow: hidden;
}

.horizontal-scroll-track {
    display: flex;
    gap: 8vw;
    padding-right: var(--spacing-xl);
    align-items: center;
}

.showcase-item {
    width: 60vw;
    min-width: 600px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.image-wrapper {
    width: 100%;
    height: 60vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: rgba(255,255,255,0.05); /* slightly lighter dark background */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover to fill the full container bound */
    transform: scale(1.1); /* Slightly zoomed for parallax effect */
}

.item-details h3 {
    font-family: var(--font-accent);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-mint);
}

.item-details p {
    font-size: 1.1rem;
    color: rgba(243,239,232,0.7);
    max-width: 80%;
}

/* Legacy Section */
.legacy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md) var(--spacing-xl);
    min-height: 100vh;
}

.legacy-content {
    margin: auto;
}

.huge-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.85;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
}

.legacy p {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.huge-btn {
    font-size: 1.4rem;
    padding: 1.2rem 3.5rem;
}

.huge-btn:hover {
    background-color: var(--color-bright);
    color: var(--color-dark);
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-family: var(--font-accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: var(--spacing-xl);
}

@media (max-width: 1024px) {
    .header {
        padding: 1rem var(--spacing-md) var(--spacing-sm) var(--spacing-md);
    }
    
    .header.scrolled {
        padding: 10px var(--spacing-md);
    }
    
    .logo {
        height: 130px;
        margin-top: -10px;
    }
    
    .header.scrolled .logo {
        height: 90px;
        margin-top: 0;
    }
    
    .hero {
        padding-top: 170px;
    }
    
    .hero-title {
        font-size: clamp(3rem, 7vw, 5rem);
    }
    
    .huge-title {
        font-size: clamp(3rem, 8vw, 6rem);
    }
    
    .collection-showcase {
        padding-top: 100px;
        height: 100vh;
    }
    
    .collection-header h2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .image-wrapper {
        height: 42vh;
    }
    
    .item-details h3 {
        font-size: 1.6rem;
    }
    
    .item-details p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1.5rem;
    }
    
    .header.scrolled {
        padding: 10px 1.5rem;
    }
    
    .logo {
        height: 90px;
        margin-top: -5px;
    }
    
    .header.scrolled .logo {
        height: 55px;
        margin-top: 0;
    }
    
    .hero {
        padding-top: 120px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .huge-title {
        font-size: clamp(2rem, 9vw, 3.8rem);
    }
    
    .legacy {
        padding: 4rem 1.5rem 2rem 1.5rem;
        min-height: 60vh;
    }

    .philosophy {
        padding: 4rem 1.5rem;
        justify-content: flex-start;
        overflow: hidden;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .body-text {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    }
    
    .collection-showcase {
        padding-top: 60px;
        height: 100vh;
    }
    
    .collection-header h2 {
        font-size: 1.8rem;
    }

    .showcase-item {
        width: 85vw;
        min-width: 0;
        gap: 1rem;
    }
    
    .image-wrapper {
        height: 32vh;
    }
    
    .image-wrapper img {
        object-fit: cover;
    }
    
    .item-details h3 {
        font-size: 1.3rem;
    }
    
    .item-details p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    /* Mobile Navigation Hamburger and Menu Drawer */
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 16px;
        background: none;
        border: none;
        padding: 0;
        cursor: none;
        z-index: 110;
        margin-top: 12px;
        transition: transform 0.3s ease;
    }
    
    .header.scrolled .mobile-nav-toggle {
        margin-top: 0;
    }
    
    .hamburger-line {
        width: 100%;
        height: 2px;
        background-color: currentColor;
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    }
    
    .nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-cream);
        color: var(--color-dark) !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 105;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 2rem;
    }
    
    .header.mobile-nav-open .nav {
        transform: translateY(0);
    }
    
    .header.mobile-nav-open .nav a {
        color: var(--color-dark) !important;
        font-size: 1.5rem;
    }
    
    .header.mobile-nav-open .nav .btn-primary {
        background-color: var(--color-dark) !important;
        color: var(--color-cream) !important;
        font-size: 1.2rem;
        width: 80%;
        max-width: 280px;
        padding: 1rem 2rem;
    }
    
    .header.mobile-nav-open {
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom-color: transparent !important;
    }
    
    /* Hamburger animation to 'X' */
    .header.mobile-nav-open .mobile-nav-toggle .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--color-dark) !important;
    }
    
    .header.mobile-nav-open .mobile-nav-toggle .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .header.mobile-nav-open .mobile-nav-toggle .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--color-dark) !important;
    }
}
