:root {
    --color-bg: #f9f8f6;
    --color-text: #1a1a1a;
    --color-accent: #9a8a78;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-sans: 'Outfit', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}

/* Cinematic Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 3vw;
    letter-spacing: 0.2em;
    display: flex;
    gap: 1.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.loader-word, .loader-amp {
    transform: translateY(100%);
    opacity: 0;
}

.loader-progress {
    width: 0%;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0;
    pointer-events: none;
    color: #ffffff;
    mix-blend-mode: difference;
}

.nav > * {
    pointer-events: auto;
}

.nav-center {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

.nav-center a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

/* Base Scene */
.scene {
    position: relative;
    width: 100vw;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    transform: scale(1.1);
}



.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--color-bg);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-title .line {
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(100%);
}

.hero-title .italic {
    font-style: italic;
    font-family: var(--font-heading);
    color: #e0d5c1; /* Slightly brighter accent for dark background */
}

/* Statement Section */
.statement {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-bg);
}

.statement-container {
    width: 60%;
    max-width: 900px;
    text-align: center;
}

.statement-text {
    font-family: var(--font-heading);
    font-size: 3.5vw;
    line-height: 1.3;
    font-weight: 300;
    opacity: 0.3;
    background: linear-gradient(to right, #1a1a1a, #1a1a1a);
    -webkit-background-clip: text;
    background-clip: text;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 0% 100%;
}

/* Showcase Cut-away */
.showcase {
    min-height: 150vh;
    background: var(--color-bg);
    padding: 10vh 5vw;
}

.showcase-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
}

.showcase-left {
    width: 40%;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 5vw;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 300;
}

.showcase-title .italic {
    font-style: italic;
    color: var(--color-accent);
}

.showcase-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
    color: rgba(26, 26, 26, 0.7);
}

.showcase-right {
    width: 50%;
    height: 80vh;
}

.image-reveal-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

.reveal-img {
    transform: scale(1.2);
}

/* Horizontal Scroll */
.horizontal-scroll {
    background: #f0eee9;
    overflow: hidden;
}

.hz-container {
    display: flex;
    width: 300vw;
    height: 100vh;
}

.hz-item {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hz-title {
    font-family: var(--font-heading);
    font-size: 10vw;
    line-height: 0.9;
    font-weight: 300;
    white-space: nowrap;
}

.hz-title span {
    font-style: italic;
    color: var(--color-accent);
}

.hz-desc {
    font-family: var(--font-heading);
    font-size: 4vw;
    max-width: 60vw;
    text-align: center;
    line-height: 1.2;
}

.hz-img-wrap {
    width: 60vw;
    height: 70vh;
    overflow: hidden;
}

/* Footer */
.footer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--color-bg);
}

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

.footer-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    letter-spacing: 0.1em;
    margin-bottom: 4rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out-expo);
}

.footer-links a:hover::after {
    transform: translateX(0);
}

.footer-copy {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(26, 26, 26, 0.4);
}
/* Additional styles for subpages */

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-accent);
}

.page-header {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10vh;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 6vw;
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 300;
    text-align: center;
}

.page-title .line {
    overflow: hidden;
}

.page-title .word {
    display: inline-block;
    transform: translateY(100%);
}

.page-title .italic {
    font-style: italic;
    color: var(--color-accent);
}

/* Gallery Grid */
.gallery {
    padding: 10vw 5vw;
    display: flex;
    flex-direction: column;
    gap: 15vw;
}

.gallery-row {
    display: flex;
    justify-content: space-between;
    gap: 5vw;
}

.gallery-item {
    position: relative;
    width: 100%;
}

.gallery-item.large {
    width: 100%;
    height: 120vh;
}

.gallery-item.medium {
    width: 45%;
    height: 80vh;
}

.gallery-item .img-wrapper {
    overflow: hidden;
}

.gallery-item img {
    transform: scale(1.1);
    transition: transform 1s var(--ease-out-expo);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(26, 26, 26, 0.2);
    padding-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.gallery-caption p {
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

/* Fullscreen Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-overlay.is-active {
    pointer-events: auto;
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    transform: translateY(-100%);
    transition: transform 0.8s var(--ease-out-expo);
}

.menu-overlay.is-active .menu-bg {
    transform: translateY(0);
}

.menu-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10vh 0;
}

.menu-overlay.is-active .menu-inner {
    opacity: 1;
}

.menu-close {
    margin-bottom: clamp(2rem, 5vh, 4rem);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-family: var(--font-sans);
    color: var(--color-text);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vh, 2rem);
}

.menu-link {
    font-family: var(--font-heading);
    font-size: clamp(2rem, min(5vw, 6vh), 5rem);
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.menu-link:hover {
    opacity: 1;
    transform: translateX(10px);
}

.menu-link .num {
    font-family: var(--font-sans);
    font-size: clamp(0.8rem, 1.5vh, 1rem);
    padding-top: 1vw;
    color: var(--color-accent);
}

.nav-right.menu-trigger {
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-right.menu-trigger:hover {
    opacity: 0.5;
}

/* Cinematic Utilities */
.cinematic-reveal {
    overflow: hidden;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: clip-path 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cinematic-reveal.is-visible {
    clip-path: polygon(0 0%, 100% 0%, 100% 100%, 0 100%);
}

.cinematic-reveal img {
    transform: scale(1.2);
    transition: transform 2.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cinematic-reveal.is-visible img {
    transform: scale(1.05); /* keep slight scale for slow scroll effect */
}

.text-blur-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 1.5s ease, filter 1.5s ease, transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.text-blur-in.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        padding: 0 5vw;
    }
}
