:root {
    --bg-dark: #070907;
    --accent-primary: #D4AF37; /* Gold */
    --accent-secondary: #F3E5AB; /* Cream */
    --text-light: #FAFAF9;
    --text-muted: #A3A3A3;
    --btn-coral: rgba(212, 175, 55, 0.15); /* Translucent Gold */
    --font-heading: 'Bodoni Moda', serif;
    --font-mono: 'Jost', sans-serif;
}

* {
    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: var(--accent-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 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: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1100px;
}

.hero-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-wordmark {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 0.9;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-wordmark sup {
    font-size: 0.3em;
    -webkit-text-fill-color: var(--accent-primary);
    vertical-align: super;
}

.hero-accent-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.hero-bottom-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 700;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.6rem;
}

.hero-sub-claim {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.hero-bottom-right {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.hero-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 90px;
    transition: background 0.3s, border-color 0.3s;
}

.hero-trust-badge:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.trust-icon {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.trust-text {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    line-height: 1.4;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero-bottom-split {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .hero-bottom-right {
        justify-content: flex-start;
    }
    .hero-wordmark {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    .hero-trust-badge {
        padding: 0.6rem 0.8rem;
        min-width: 75px;
    }
}

/* 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: linear-gradient(135deg, var(--accent-primary) 0%, #B8860B 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.waitlist-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.secondary-btn {
    background: var(--btn-coral);
    color: var(--accent-primary);
    border: 1px solid rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.secondary-btn:hover {
    transform: scale(1.02);
    background: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* 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(212, 175, 55, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
    color: var(--accent-secondary);
}

.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: #070605; }
#slide-2 { background-color: #0a0907; }
#slide-3 { background-color: #050403; }
#slide-4 { background-color: #090807; }

.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);
}

/* --- REDESIGNED SPLIT-LAYOUT SLIDES --- */
.slide-split {
    text-align: left;
    align-items: stretch;
    justify-content: stretch;
}

.slide-content-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1300px;
    padding: 0 5%;
    align-items: center;
}

.slide-left {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.slide-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 700;
}

.slide-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -1px;
    color: var(--text-light);
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.slide-accent-line {
    width: 90px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
}

.slide-desc {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    max-width: 440px;
}

.slide-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: #FFF;
    line-height: 1;
}

.stat-value small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.5;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
}

/* Right column: Feature cards */
.slide-right {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.4rem 1.6rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    transform: translateX(6px);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    line-height: 1;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #FFF;
}

.feature-desc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.5);
}

/* Mobile: Stack split slides vertically */
@media (max-width: 900px) {
    .slide-content-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .slide-headline {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .slide-stats {
        gap: 1.5rem;
    }
    .stat-value {
        font-size: 1.6rem;
    }
    .feature-card {
        padding: 1rem 1.2rem;
    }
    .feature-icon {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }
}

/* 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 rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.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: #050403;
    color: var(--text-light);
    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, #070907, #050403);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    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; }

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #070907;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #FFF;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-logo sup {
    font-size: 0.6rem;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    animation: preloaderFill 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes preloaderFill {
    0% { width: 0%; }
    60% { width: 80%; }
    100% { width: 100%; }
}

/* --- HAMBURGER MENU (mobile) --- */
.hamburger {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1002;
    flex-direction: column;
    gap: 5px;
    order: -1; /* Place before logo on mobile */
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFF;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Desktop-only helper */
.desktop-only { display: inline; }

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .desktop-only { display: none !important; }
}

/* --- MOBILE NAV DRAWER --- */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background: #111;
    z-index: 9995;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-link {
    color: #FFF;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s, padding-left 0.2s;
}

.drawer-link:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

.drawer-cta {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #FFF;
    cursor: pointer;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.2s;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(255,255,255,0.2);
}

/* --- HEADER AUTO-HIDE --- */
.fixed-nav {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fixed-nav.nav-hidden {
    transform: translateY(-100%);
}

/* Fix: scrolled-past-hero back-to-top conflict on mobile */
@media (max-width: 900px) {
    body.scrolled-past-hero .back-to-top.visible {
        bottom: 6rem; /* Above the floating book button */
    }
}
