:root {
    --bg-dark: #0A0A0A;
    --accent-primary: #FF4400; /* Orange-red */
    --accent-secondary: #22CCCC; /* Cyan */
    --text-light: #FFFFFF;
    --text-muted: #CCCCCC;
    --btn-coral: #FF6B55;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-mono); /* Default to mono, override headings */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Header */
.fixed-nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding-bottom: 2rem;
}

.fixed-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, transparent 100%);
}

.top-marks {
    height: 6px;
    background-color: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    width: 100%;
}

.top-marks-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 0%;
    background-color: hsl(55, 90%, 70%);
    box-shadow: 0 0 10px hsla(55, 90%, 70%, 0.6);
    border-radius: 0 4px 4px 0;
    will-change: width, background-color, box-shadow;
    z-index: 2;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: underline;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-underline-offset: 4px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.globe-icon { font-size: 1.4rem; }
.reg-mark { font-size: 0.5rem; }

.progress-indicator {
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.6;
    letter-spacing: 2px;
    margin-top: -5px;
}

/* 1. HERO SECTION */
.hero-section {
    height: 350vh; /* Long scroll track */
    position: relative;
}

.hero-sticky-container {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    transition: opacity 0.5s ease;
    object-fit: cover; /* Added for video support */
}

.layer-1 { opacity: 1; }
.layer-2 { opacity: 0; }
.layer-3 { opacity: 0; }
.layer-4 { opacity: 0; }
.layer-5 { opacity: 0; }
.layer-6 { opacity: 0; }

.hero-sticky-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.6);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    width: 100%; height: 100%;
    padding: 6rem 2rem 2rem;
    z-index: 1;
}

.hero-text-left, .hero-text-right {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.8;
}

.hero-text-left { left: 5%; }
.hero-text-right { right: 5%; text-align: right; }

.fade-text {
    opacity: 0.1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}
.fade-text.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-center-bottom {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero-main-claim {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    line-height: 1.3;
}

.hero-sub-claim {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Buttons */
.primary-btn, .secondary-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem 3rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.3s;
}

.waitlist-btn {
    background: #FFF;
    color: #000;
}
.waitlist-btn:hover {
    transform: scale(1.02);
}

.secondary-btn {
    background: var(--btn-coral);
    color: #000;
}
.secondary-btn:hover {
    transform: scale(1.02);
}

/* Floating Booking Button */
.floating-book-btn {
    position: fixed;
    top: var(--btn-top, 85vh); 
    left: var(--btn-left, 50vw);
    width: var(--btn-width, auto);
    transform: none;
    z-index: 1001;
    /* No transition by default to instantly track the scroll! */
    transition: none;
}

body.scrolled-past-hero .floating-book-btn {
    top: 1.15rem;
    left: calc(100% - 240px); /* Top right corner */
    width: 210px; /* Constrain width during transition */
    transform: none;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    /* Transition only applies when flying into the fixed top right state */
    transition: top 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                left 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                width 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                font-size 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Social Links Navigation Snapping */
.nav-link[href*="facebook"], 
.nav-link[href*="instagram"] {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}

body.social-bot .nav-link[href*="facebook"], 
body.social-bot .nav-link[href*="instagram"] {
    transform: translateY(85vh);
}

/* 2. BENEFITS SLIDES */
.benefits-section {
    background: var(--bg-dark);
    height: 400vh; /* Long scroll track */
    position: relative;
    z-index: 10;
}

.benefits-sticky-container {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.benefits-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 6rem; /* Push down below fixed header */
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.pill-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #FFF;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.pill-btn .dot {
    display: none; /* Removed dot for a cleaner look as requested */
}

.pill-btn.active { 
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.slide-indicator {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0.6;
    position: relative;
    z-index: 2;
}

.slides-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 0;
    overflow: hidden;
    transform: scale(0.5); /* Start small */
    opacity: 0;
    transform-origin: center center;
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10rem 2rem 2rem; /* Add padding to push text below nav buttons */
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

#slide-1 { background-color: #0b1416; }
#slide-2 { background-color: #05101a; }
#slide-3 { background-color: #1a0f05; }
#slide-4 { background-color: #111111; }

.slide video.bg-layer {
    z-index: 0;
    object-fit: cover;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.65);
    z-index: 1;
    pointer-events: none;
}

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

.slide-copy {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.slide-tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
    max-width: 600px;
    color: var(--text-muted);
}

/* 3. MASONRY GALLERY & ZOOM SCROLL */
.gallery-section {
    background: var(--bg-dark);
    height: 180vh; /* Faster Scroll Track! */
    position: relative;
    z-index: 20;
}

.gallery-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
    
    /* Perfect Square Constraint Logic */
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: min(90vw, 80vh);
    max-height: min(90vw, 80vh);
    
    transform-origin: center center;
    will-change: transform;
    margin: 0 auto;
}

.center-maximize {
    position: relative;
    z-index: 10;
    box-shadow: 0 0 0 150vmax rgba(7, 9, 7, 0); /* Base transparent */
    will-change: transform, border-radius, box-shadow;
}

.center-maximize video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: 1;
}

.bento-item {
    border-radius: clamp(8px, 1.5vw, 16px);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.bento-item:hover { transform: translateY(-5px); }

.placeholder-label {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0.5;
    z-index: 2;
    transition: opacity 0.3s;
}

/* Hover Video Logic */
.hover-vid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.media-wrapper:hover .hover-vid { opacity: 1; }
.media-wrapper:hover .placeholder-label { opacity: 0; }

/* Perfectly Aligned Symmetric Bento Grid Spans */
.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
.bento-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }

.bento-item:nth-child(3) { grid-column: span 1; grid-row: span 2; }
.bento-item:nth-child(4) { grid-column: span 2; grid-row: span 2; } /* Center Hero is implicitly a perfect symmetrical square */
.bento-item:nth-child(5) { grid-column: span 1; grid-row: span 2; }

.bento-item:nth-child(6) { grid-column: span 2; grid-row: span 1; }
.bento-item:nth-child(7) { grid-column: span 2; grid-row: span 1; }

/* Gallery Video Object Fit */
.bento-item video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.bento-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.4); /* Slightly lighter for gallery */
    z-index: 2;
    pointer-events: none;
}

.center-maximize video {
    z-index: 3; /* Above shadow-overlay and grid tint */
}

/* 4. ANCIENT WISDOM */
.ancient-wisdom-section {
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.indicator-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 4rem;
}
.indicator { font-size: 0.75rem; letter-spacing: 2px; opacity: 0.6; }
.logo-mark { font-family: var(--font-heading); font-weight: 700; letter-spacing: 1px; }

.huge-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    font-style: italic;
    color: #EEE;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    margin-bottom: 3rem;
    letter-spacing: -2px;
}

.body-mono {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: #AAA;
}

/* 5. CTA SECTION */
.cta-section {
    background: #FFF;
    color: #0A0A0A;
    padding: 8rem 2rem;
    text-align: center;
}

.stacked-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    font-weight: 900;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.split-color {
    color: var(--accent-primary);
}

.cta-body {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

/* 6. GRADIENT FOOTER */
.gradient-footer {
    background: linear-gradient(to bottom, #FF4400, #FF7733);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-top-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8rem;
}

.huge-bg-text {
    font-family: var(--font-heading);
    font-size: 14vw;
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255,255,255,0.15);
    margin-bottom: 4rem;
    word-break: break-word;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 4rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
}

.left-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.right-nav {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.right-nav a { color: #FFF; text-decoration: none; }
.right-nav a:hover { text-decoration: underline; }
.ig-link { margin-left: 2rem; }

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.badges {
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 1px solid #FFF;
    background: rgba(255,255,255,0.1);
}
.ritual-text {
    margin-left: 1rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.final-taglines {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}

.tag-center { text-align: center; }
.tag-right { text-align: right; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        aspect-ratio: auto;
        max-height: none;
        max-width: 100%;
    }
    .bento-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 6rem 1rem 2rem;
    }
    .hero-text-left, .hero-text-right {
        position: relative;
        text-align: center;
        top: auto; left: auto; right: auto;
        transform: none;
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    .hero-center-bottom {
        position: relative;
        bottom: auto; left: auto;
        transform: none;
        width: 100%;
        margin-top: 2rem;
    }
    .hero-main-claim { font-size: 1.4rem; }
    
    .slide {
        padding: 6rem 1.5rem 1.5rem;
    }
    .slide-copy {
        font-size: 1.8rem;
    }

    body.scrolled-past-hero .floating-book-btn {
        top: auto;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
        font-size: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .final-taglines {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    .tag-center, .tag-right { text-align: left; }
    
    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }
    .right-nav { flex-direction: column; gap: 0.5rem; }
    .ig-link { margin-left: 0; margin-top: 1rem; }
    
    .huge-title { font-size: 3rem; }
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(100px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
                filter 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, filter, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
