/* --- CORE --- */
:root {
    --bg-cream: #F9F7F2;
    --bg-dark: #0A0A0A;
    --bg-panel: #141414;
    --text-dark: #1C1B1B;
    --text-light: #F2F2F2;
    --gold: #C5A059;
    --gold-hover: #E6C885;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }
html.lenis { height: auto; } 
.lenis.lenis-smooth { scroll-behavior: auto; } 
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body { font-family: var(--font-body); background-color: var(--bg-cream); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
img { filter: contrast(1.05); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; color: var(--text-dark); }
.italic-serif { font-style: italic; font-family: var(--font-heading); font-weight: 400; }
.text-gold { color: var(--gold); }
.text-light { color: var(--text-light); }

/* --- CURSOR --- */
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 9999; }
.cursor-dot { width: 8px; height: 8px; background: var(--gold); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(197, 160, 89, 0.5); transition: transform 0.2s, width 0.2s, height 0.2s; }
body.hovering .cursor-outline { transform: translate(-50%, -50%) scale(1.5); border-color: var(--gold); background: rgba(197, 160, 89, 0.1); }

/* --- PRELOADER --- */
.preloader { 
    position: fixed; inset: 0; 
    background: var(--bg-cream); 
    z-index: 10000; display: flex; justify-content: center; align-items: center; 
}
.preloader-content { display: flex; flex-direction: column; align-items: center; }
.loader-icon { width: 80px; height: auto; margin-bottom: 2rem; opacity: 0; transform: translateY(20px); animation: riseUp 1.5s var(--easing) forwards; }
.loader-line-wrapper { width: 1px; height: 60px; background: rgba(0,0,0,0.1); margin-bottom: 2rem; overflow: hidden; position: relative; }
.loader-line { width: 100%; height: 0%; background: var(--gold); transition: height 0.2s linear; } 
.loader-text { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--text-dark); opacity: 0; animation: fadeIn 1s 1.5s forwards; }

@keyframes riseUp { to { opacity: 1; transform: translateY(0); } }
@keyframes dropDown { to { transform: translateY(0); } } 
@keyframes fadeIn { to { opacity: 1; } }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1400px; 
    height: 70px; 
    z-index: 1000; transition: all 0.5s var(--easing);
    background: rgba(20, 20, 20, 0.2); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; 
    padding: 0 3rem;
    display: flex; align-items: center; justify-content: center;
}
.navbar.scrolled-view { width: 70%; height: 55px; background: rgba(10, 10, 10, 0.85); top: 15px; }
.navbar.nav-hidden { transform: translate(-50%, -200%); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; }
.logo-img { height: 85px; transition: 0.3s; margin-top: 5px; cursor: pointer; } 
.navbar.scrolled-view .logo-img { height: 70px; margin-top: 0; } 
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-item { text-decoration: none; color: white; font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.nav-item:hover { color: var(--gold); }
.btn-nav { background: var(--gold); color: white; padding: 0.5rem 1.5rem; border-radius: 30px; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: 0.3s; }
.btn-nav:hover { background: var(--gold-hover); transform: translateY(-2px); }
.mobile-toggle { display: none; color: white; font-size: 1.5rem; z-index: 1001; cursor: pointer; }

/* --- HERO --- */
.hero { position: relative; width: 100%; height: 100vh; background: var(--bg-dark); overflow: hidden; display: flex; flex-direction: column; }
.hero-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: object-position 0.5s ease; }

.hero-bottom-gradient { 
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80%; 
    background: linear-gradient(to top, #000000 10%, rgba(0,0,0,0.6) 40%, transparent 100%); 
    z-index: 1; pointer-events: none; 
}

.hero-content { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); z-index: 3; color: white; width: 90%; max-width: 1400px; text-align: left; }
.hero-badge { 
    border: 1px solid rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 50px; 
    display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; 
    margin-bottom: 1.5rem; color: rgba(255,255,255,0.8); 
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}

.hero-title { font-size: clamp(3.5rem, 7vw, 7.5rem); line-height: 1.1; margin-bottom: 1.5rem; color: #fff; }
.word-rotator { height: 1.2em; display: inline-block; overflow: hidden; vertical-align: bottom; position: relative; width: 100%; }
.word { display: block; white-space: nowrap; position: absolute; top: 0; left: 0; opacity: 0; transform: translateY(50px); }

.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 500px; margin-bottom: 2.5rem; line-height: 1.6; }

.hero-actions { display: flex; gap: 1rem; }
.btn-hero-primary, .btn-hero-secondary {
    position: relative; overflow: hidden;
    padding: 1rem 2.5rem; border-radius: 50px;
    text-decoration: none; font-weight: 600; transition: 0.4s ease;
    z-index: 1;
}
.btn-hero-primary { background: var(--gold); color: white; border: 1px solid var(--gold); }
.btn-hero-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: white; z-index: -1;
    transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--easing);
}
.btn-hero-primary:hover { color: var(--bg-dark); border-color: white; }
.btn-hero-primary:hover::before { transform: scaleY(1); }

.btn-hero-secondary { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-hero-secondary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gold); z-index: -1;
    transform: scaleY(0); transform-origin: bottom; transition: transform 0.4s var(--easing);
}
.btn-hero-secondary:hover { color: white; border-color: var(--gold); }
.btn-hero-secondary:hover::before { transform: scaleY(1); }


/* --- TICKER STRIP --- */
.ticker-strip {
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: #000; z-index: 4; padding: 1.5rem 0; overflow: hidden;
    border-top: none;
}
.ticker-track { display: flex; gap: 4rem; width: max-content; animation: scrollTicker 40s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 1rem; color: rgba(255,255,255,0.8); font-family: var(--font-heading); font-size: 1.1rem; }
.ticker-item img { height: 30px; width: auto; filter: invert(1); transition: 0.5s; } 
.ticker-item i { font-size: 1.5rem; color: var(--gold); }
@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-33.333% - 1.33rem)); } }

.glow-1 { animation: pulseGlow 4s infinite ease-in-out; }
.glow-2 { animation: pulseGlow 5s infinite ease-in-out 1s; }
.glow-3 { animation: pulseGlow 6s infinite ease-in-out 2s; }

@keyframes pulseGlow {
    0%, 100% { text-shadow: none; filter: none; opacity: 0.7; }
    50% { text-shadow: 0 0 15px var(--gold); opacity: 1; color: white; }
}
.ticker-item:hover { text-shadow: 0 0 15px var(--gold); opacity: 1; color: white; }
.ticker-item:hover img { filter: invert(1) drop-shadow(0 0 10px var(--gold)); }


/* --- ABOUT --- */
.about-section { background: #000; color: white; padding: 10rem 0; position: relative; z-index: 2; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 6rem; align-items: center; width: 90%; max-width: 1200px; margin: 0 auto; }
.lead-text { font-size: 1.5rem; line-height: 1.4; margin-bottom: 1.5rem; color: white; }
.body-text { color: rgba(255,255,255,0.6); margin-bottom: 2rem; max-width: 550px; }

.core-values-list { list-style: none; padding: 0; margin-bottom: 3rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.core-values-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.founder-block { 
    display: grid; 
    grid-template-columns: auto 1fr; 
    grid-template-rows: auto auto; 
    column-gap: 2rem; 
    row-gap: 1.5rem; 
    align-items: start; 
    margin-top: 2rem; 
}
.founder-img { 
    grid-row: 1 / 3; 
    grid-column: 1; 
    width: 140px; height: auto; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.2); 
}
.founder-sig { 
    grid-row: 1; 
    grid-column: 2; 
    align-self: end; 
}
.sig-text { font-family: 'Mrs Saint Delafield', cursive; font-size: 2.5rem; color: var(--gold); display: block; line-height: 1; }
.sig-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); }

.founder-quote {
    grid-row: 2; 
    grid-column: 2;
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    margin: 0; 
}

.about-visuals { display: flex; flex-direction: column; align-items: flex-end; position: relative; }
.gold-filter { filter: invert(66%) sepia(35%) saturate(666%) hue-rotate(356deg) brightness(92%) contrast(88%); }
.globe-svg { width: 100%; max-width: 550px; opacity: 0.8; margin-bottom: 3rem; animation: floatGlobe 10s ease-in-out infinite; }
@keyframes floatGlobe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.about-stats { display: flex; gap: 4rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; justify-content: flex-end; width: 100%; }
.stat-box { display: flex; flex-direction: column; align-items: flex-end; }
.stat-num { font-family: var(--font-heading); font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); }
.fade-to-cream { position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background: linear-gradient(to bottom, transparent, var(--bg-cream)); pointer-events: none; }

/* --- STORY --- */
.story-section { background: var(--bg-cream); padding: 8rem 0; }
.center { text-align: center; margin-bottom: 5rem; }
.section-title { font-size: 3.5rem; margin-bottom: 1rem; }
.timeline-wrapper { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline-line { position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: rgba(0,0,0,0.1); transform: translateX(-50%); }
.line-inner { width: 100%; height: 0%; background: var(--gold); transition: height 0.1s linear; }
.timeline-row { display: flex; justify-content: space-between; margin-bottom: 8rem; position: relative; }
.timeline-row::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; background: var(--bg-cream); border: 2px solid var(--gold); border-radius: 50%; transform: translate(-50%, -50%); z-index: 2; transition: 0.3s; }
.timeline-row.active-story::after { background: var(--gold); box-shadow: 0 0 0 6px rgba(197, 160, 89, 0.2); }
.row-left { flex-direction: row; }
.row-right { flex-direction: row-reverse; }
.timeline-content { width: 42%; padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.step-number { font-family: var(--font-heading); font-size: 4rem; color: rgba(0,0,0,0.05); line-height: 1; margin-bottom: -1rem; position: relative; z-index: 0; }
.timeline-content h3 { position: relative; z-index: 1; font-size: 2rem; margin-bottom: 1rem; }
.timeline-img-wrapper { width: 42%; height: 400px; position: relative; }
.timeline-img-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); position: relative; z-index: 1; }
.glow-backdrop { position: absolute; inset: 0; background: var(--gold); filter: blur(50px); opacity: 0; transition: 0.8s; z-index: 0; }
.timeline-row.active-story .glow-backdrop { opacity: 0.4; }

/* --- COMMODITIES --- */
.products-section { padding-top: 4rem; background: var(--bg-cream); padding-bottom: 8rem; }
.catalog-header-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3rem; width: 90%; max-width: 1200px; margin: 0 auto 5rem auto; align-items: center; }
.catalog-title-col { text-align: right; }
.big-title { font-size: 5rem; line-height: 1; margin-top: 0.5rem; }
.catalog-divider { width: 1px; height: 100px; background: var(--gold); opacity: 0.5; }
.catalog-desc-col { text-align: left; }
.section-desc { font-size: 1rem; color: rgba(0,0,0,0.6); max-width: 400px; }
.bento-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 450px 350px; gap: 1.5rem; width: 90%; max-width: 1200px; margin: 0 auto; }
.flip-card-container { perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; }
.flip-card-container.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 12px; overflow: hidden; }
.flip-card-front { background: #000; }
.card-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.6s var(--easing), opacity 0.5s; }
.flip-card-container:hover .card-img { opacity: 0.6; transform: scale(1.05); }
.front-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; text-align: left; }
.front-content h3 { color: white; font-size: 1.5rem; margin-bottom: 0.5rem; }
.etching-icon-front { position: absolute; top: 2rem; right: 2rem; width: 60px; height: 60px; filter: invert(1) brightness(0.8); opacity: 0.7; transition: 0.5s; }
.flip-card-container:hover .etching-icon-front { opacity: 1; filter: invert(1) drop-shadow(0 0 10px var(--gold)); transform: scale(1.1); }
.flip-card-back { background: #141414; color: white; transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; border: 1px solid var(--gold); }
.back-icon { width: 60px; height: 60px; filter: invert(1); margin-bottom: 1.5rem; }
.flip-card-back h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 1.5rem; }
.specs-list { list-style: none; padding: 0; text-align: left; width: 100%; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.specs-list li { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 0; display: flex; justify-content: space-between; }
.back-desc { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
.main-feature { grid-column: 1 / 2; grid-row: 1 / 3; }
.secondary { grid-column: 2 / 4; grid-row: 1 / 2; }
.tertiary { grid-column: span 1; grid-row: 2 / 3; }

/* --- CONTACT --- */
.contact { background: var(--bg-cream); padding-bottom: 6rem; padding-top: 4rem; }
.contact-panel {
    background: var(--bg-panel); border-radius: 20px; padding: 5rem; color: white; 
    width: 90%; max-width: 1200px; margin: 0 auto;
    background-image: url('assets/contactBG.png'); background-size: cover; background-blend-mode: multiply;
}
.panel-text { text-align: center; margin-bottom: 4rem; }
.panel-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; }
.panel-item {
    display: flex; align-items: center; gap: 1.5rem; text-decoration: none; color: white;
    background: rgba(255,255,255,0.05); padding: 1.5rem 2rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; width: 300px;
}
.panel-item:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); transform: translateY(-5px); }
.icon-circle { width: 50px; height: 50px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--text-dark); }
.panel-item h4 { color: white; font-size: 1rem; margin-bottom: 0.2rem; }
.panel-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-bar { margin-top: 4rem; text-align: center; opacity: 0.5; font-size: 0.8rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-logo { height: 90px; filter: brightness(0) invert(0); }

/* === MODIFICATION: Comprehensive Mobile Responsiveness === */
@media (max-width: 900px) {
    /* General */
    .section { padding: 6rem 0; }
    /* FIX: Added margin auto to prevent left shifting */
    .container { width: 90%; margin-inline: auto; }
    
    /* Navbar & Mobile Menu Overlay */
    /* FIX: Removed transform and left:50% to prevent context issues */
    .navbar { 
        top: 0; left: 0; transform: none; 
        width: 100%; border-radius: 0; border: none; height: 70px; padding: 0 2rem; 
    }
    .navbar.scrolled-view { width: 100%; top: 0; height: 60px; }
    .logo-img { height: 75px; }
    .navbar.scrolled-view .logo-img { height: 60px; }

    .mobile-toggle { display: block; }

    /* Fix: Full Screen Overlay Menu */
    .nav-links {
        position: fixed;
        inset: 0;
        height: 100vh; width: 100vw; /* Ensure full coverage */
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        opacity: 0; visibility: hidden; pointer-events: none;
        transform: none;
        transition: opacity 0.5s var(--easing), visibility 0.5s;
        z-index: 999;
    }

    .nav-links.nav-active {
        opacity: 1; visibility: visible; pointer-events: all;
    }
    
    .nav-item { font-size: 1.5rem; font-weight: 400; font-family: var(--font-heading); }
    .btn-nav { font-size: 1rem; padding: 0.8rem 2rem; }
    
    /* Hero Section */
    .hero-content { 
        top: 50%; 
        /* FIX: Center align text on mobile */
        text-align: center; 
        align-items: center;
    }
    .hero-bg { object-position: 70% 50%; }
    .hero-title { font-size: clamp(2.5rem, 10vw, 3rem); }
    .hero-sub { font-size: 1rem; max-width: 90%; margin-inline: auto; }
    .hero-actions { 
        flex-direction: column; 
        align-items: center; /* FIX: Center buttons */
        gap: 1rem; 
    }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 300px; text-align: center; }

    /* About Section */
    .about-section { padding: 6rem 0; }
    .about-grid { grid-template-columns: 1fr; gap: 4rem; }
    .about-text, .about-visuals { text-align: center; }
    .about-visuals { align-items: center; }
    .core-values-list { justify-content: center; }
    
    /* Founder Block Mobile Reset */
    .founder-block { 
        display: flex; flex-direction: column; align-items: center; text-align: center; 
        gap: 1rem;
    }
    .founder-img { width: 120px; }
    .founder-sig { align-self: center; }
    .founder-quote { 
        border-left: none; padding-left: 0; 
        margin-top: 1rem; max-width: 100%; 
    }

    .about-stats { justify-content: center; gap: 3rem; }
    .stat-box { align-items: center; }
    
    /* Story Section */
    .timeline-line { display: none; }
    .timeline-row { 
        flex-direction: row; 
        align-items: center; 
        gap: 1rem; margin-bottom: 4rem; 
    }
    .timeline-row.row-right { flex-direction: row-reverse; }
    .timeline-row::after { display: none; }
    
    .timeline-content { 
        width: 50%; padding: 0.5rem; 
        text-align: left; 
    }
    .row-right .timeline-content { text-align: right; }
    
    .timeline-img-wrapper { width: 50%; height: 200px; }
    .timeline-content h3 { font-size: 1.2rem; }
    .timeline-content p { font-size: 0.8rem; }
    .step-number { font-size: 2.5rem; }

    /* Catalog / Products Section */
    .catalog-header-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .catalog-title-col, .catalog-desc-col { text-align: center; }
    .catalog-divider { width: 100px; height: 1px; margin: 0 auto; }
    .big-title { font-size: 3.5rem; }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }
    .main-feature, .secondary, .tertiary {
        grid-column: auto;
        grid-row: auto;
        min-height: 450px;
    }
    
    /* Contact Section */
    .contact-panel { padding: 3rem 1.5rem; }
    .panel-grid { flex-direction: column; align-items: center; gap: 1rem; }
    .panel-item { width: 100%; max-width: 350px; }
    .footer-bar { margin-top: 3rem; }
}