:root {
    --bg: #0B1D18;
    --fg: #ffffff;
    --accent: #d4bc8e;
    --muted: #a0aec0;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Manrope', sans-serif;
    --container-width: 1300px;
    --section-padding: 15rem;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 20px;
    --transition-fast: 0.6s;
}

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

html, body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-loading {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 2.5rem 0;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
    backdrop-filter: blur(5px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; }

.nav-desktop { display: flex; gap: 3rem; align-items: center; }
.nav-desktop a { font-size: 0.85rem; font-weight: 600; opacity: 0.7; letter-spacing: 0.02em; }
.nav-desktop a:hover { opacity: 1; color: var(--accent); }

.btn-pill {
    padding: 1rem 2.2rem;
    background: var(--accent);
    color: #0B1D18;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-block;
    transition: all 0.4s var(--ease);
    border: 1px solid var(--accent);
}
.btn-pill:hover { 
    transform: translateY(-4px); 
    background: #fff; 
    border-color: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- ANIMATION CORE --- */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Hero elements auto-trigger as soon as loading ends */
body.is-loaded .hero .reveal-up {
    animation: fadeInUp 1.2s var(--ease) forwards;
}

/* Progression delays for Hero */
body.is-loaded .hero h1.reveal-up { animation-delay: 0.2s; }
body.is-loaded .hero .content-right.reveal-up { animation-delay: 0.4s; }
body.is-loaded .hero .scroll-indicator.reveal-up { animation-delay: 0.8s; }

/* Global reveal-up for other sections (JS triggered) */
.reveal-up { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity var(--transition-fast) var(--ease), transform var(--transition-fast) var(--ease);
    will-change: transform, opacity;
}

.reveal-up.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Failsafe: if JS doesn't trigger, reveal everything after a while */
body.is-loaded .reveal-up {
    transition-delay: 1.5s; /* Long delay fallback */
}
body.is-loaded .reveal-up.is-visible {
    transition-delay: 0s; /* Reset when JS triggers correctly */
}

/* --- SECTIONS --- */
.section { padding: var(--section-padding) 0; }
.hero { padding: 22rem 0 15rem; min-height: 100vh; position: relative; }

.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: flex-start;
}

h1 { 
    font-family: var(--font-serif); 
    font-size: clamp(3.5rem, 8vw, 6rem); 
    line-height: 1.05; 
    font-weight: 700; 
    color: #fff; 
    letter-spacing: -0.03em;
}
h2 { font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 4rem); line-height: 1.1; font-weight: 700; }
h3 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 1.5rem; color: #fff; }

.hero-sub { font-size: 1.4rem; color: var(--muted); line-height: 1.5; max-width: 35ch; }

.scroll-indicator {
    position: absolute;
    bottom: 5rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background: #fff;
    animation: scrollMove 2s infinite ease-in-out;
}

@keyframes scrollMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* Immersion Image Grid */
.immersion-header { margin-bottom: 5rem; text-align: left; }
.immersion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.image-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 600px;
    background: #1a1a1a;
}
.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.image-card:hover img { transform: scale(1.1); }
.image-caption {
    position: absolute;
    bottom: 2rem; left: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
}

/* Three Column Info */
.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 5rem;
}
.card {
    padding: 4rem 3rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease);
}
.card:hover { 
    border-color: var(--accent); 
    background: rgba(212, 188, 142, 0.05);
    transform: translateY(-10px);
}
.u-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 2rem; display: block; font-weight: 800; }

/* Loader */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}
body.is-loaded .loader { transform: translateY(-100%); }

#viewport { position: fixed; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
#content { padding-bottom: 5rem; }

/* Footer */
.footer { border-top: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 1100px) {
    .split-grid, .three-col, .immersion-grid { grid-template-columns: 1fr; gap: 3rem; }
    .image-card { height: 400px; }
    .hero { padding: 15rem 0 8rem; }
}