/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3D271A;
    /* Dark Taupe Bg */
    --secondary-color: #C5A059;
    /* Metallic Brass/Gold */
    --accent-color: #8b7355;
    /* Bronze */
    --bg-color: #3D271A;
    /* Dark Taupe Bg */
    --card-bg: #1a1a1a;
    /* Darker Card Bg */
    --text-color: #e5e5e5;
    /* Off-white Text */
    --text-light: #a0a0a0;
    /* Light Grey Text */
    --white: #ffffff;
    --border-color: #333333;
    /* Dark Border */

    --pantone-egret: #F5F3E7;
    /* Pantone 11-0109 TSX */
    --pantone-dark-taupe: #3D271A;
    --pantone-black-taupe: #130F08;

    --font-heading: 'degular', 'Outfit', sans-serif;
    --font-main: 'sophia-pro', 'Sofia Sans Condensed', sans-serif;
    --font-logo: 'Cormorant Garamond', serif;
    --font-serif: 'Cormorant Garamond', serif;

    /* FLUID TYPOGRAPHY: Scales from 16px at 320px to 24px at 2560px */
    --base-font-size: clamp(1rem, 0.95rem + 0.25vw, 1.5rem);

    --h1-size: clamp(2.5rem, 5vw, 6rem);
    --h2-size: clamp(2rem, 3.5vw, 4.5rem);
    --h3-size: clamp(1.2rem, 2vw, 2.5rem);
    --body-size: 1rem;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Darker shadow */
    --container-width: clamp(300px, 92vw, 2400px);
    --body-font-size: 1.05rem;
}

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    font-size: var(--body-size);
}


/* ===== LIGHT THEME OVERRIDES ===== */
.light-theme {
    --bg-color: var(--pantone-egret);
    --text-color: var(--pantone-black-taupe);
    --text-light: rgba(19, 15, 8, 0.7);
    /* Black Taupe with opacity */
    --card-bg: #ffffff;
    --border-color: rgba(61, 39, 26, 0.1);
}

.light-theme body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Headings: Dark Taupe */
.light-theme h1,
.light-theme h2,
.light-theme h3 {
    color: var(--pantone-dark-taupe);
}

/* Subheadings & Body: Black Taupe */
.light-theme p,
.light-theme h4,
.light-theme h5,
.light-theme h6,
.light-theme .section-label {
    color: var(--pantone-black-taupe);
}

/* Exception: Cinematic White Titles */
.light-theme .story-heading.clickable-title,
.light-theme .slide-title,
.light-theme .overlay-title,
.narrative-overlay h2,
.cinematic-hero h1 {
    color: var(--white);
}

/* Contact Page Specific: Brown Headings, Black Body */
.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4:not(footer h4),
.contact-page h5,
.contact-page h6 {
    color: var(--primary-color) !important;
}

.contact-page p:not(footer p) {
    color: #000000 !important;
}

.contact-page .section-label {
    color: var(--primary-color) !important;
    opacity: 0.8;
}

.narrative-overlay .section-label {
    color: rgba(255, 255, 255, 0.5) !important;
}

.narrative-overlay p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.narrative-overlay h2 {
    color: var(--secondary-color) !important;
}

.light-theme .navbar:not(.scrolled) .nav-link {
    color: var(--pantone-dark-taupe);
}

.collections-page .navbar:not(.scrolled) .nav-link,
.collections-page .navbar:not(.scrolled) .menu-toggle {
    color: var(--white) !important;
}

.collections-page .navbar:not(.scrolled) .nav-logo-img {
    filter: brightness(0) invert(1) !important;
}

.light-theme .navbar.scrolled {
    background-color: rgba(61, 39, 26, 0.98);
    /* border-bottom removed */
}

/* ===== PROJECTS PAGE ===== */
.project-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
    width: 100%;
}

.category-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
    text-align: center;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.category-item .section-label {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
    color: var(--secondary-color);
}

.category-item h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .project-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-item {
        padding: 3rem 2rem;
    }
}

.projects-header {
    padding-top: 10rem !important;
    padding-bottom: 1rem !important;
    text-align: center;
}

.projects-content {
    padding-top: 1rem !important;
    padding-bottom: 8rem !important;
}

.projects-description {
    color: #000000 !important;
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: 1px;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.light-theme .navbar.scrolled .nav-link {
    color: var(--white);
}

.navbar.scrolled .menu-toggle {
    color: var(--secondary-color);
}

.light-theme .navbar.scrolled .nav-logo-img {
    filter: brightness(0) invert(1);
}

.light-theme .nav-logo-img {
    filter: none;
    /* Show original colors if any, or target specifically */
}

/* Gradient Background Depth Removed */
body::after {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    color: var(--white);
    /* Headings pop on dark */
    font-weight: 400;
    /* Degular Regular style */
    font-family: var(--font-heading);
}

h1 {
    font-size: var(--h1-size);
    line-height: 1.1;
    letter-spacing: -1px;
}

h2 {
    font-size: var(--h2-size);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: var(--h3-size);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.section-label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.sanskrit {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--secondary-color);
    /* Gold Sanskrit */
}

/* Add generic blockquote/ethos style if missing or ensure it inherits */
.quote-block p {
    color: var(--text-color);
}

/* ===== LAYOUT ===== */
.container {
    width: 95%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

@media (min-width: 2500px) {
    :root {
        --container-width: 2000px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
}

section {
    padding: 6rem 0;
    position: relative;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 3000;
    /* Absolute top priority */
    padding: 1.5rem 0;
    transition: var(--transition);
    /* Subtle border removed */
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(61, 39, 26, 0.98);
    /* Dark bg */
    box-shadow: none;
    /* Removed shadow that can look like a line */
    backdrop-filter: blur(10px);
}

.navbar.active {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-logo);
}

.nav-logo-img {
    height: 65px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.light-theme .nav-logo-img {
    filter: none;
}

.logo:hover .nav-logo-img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.nav-item {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    /* Dark dropdown */
    min-width: 240px;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 2px solid var(--secondary-color);
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    /* Light hover on dark */
    padding-left: 2rem;
    color: var(--secondary-color);
}

/* Sub-dropdown */
.dropdown-sub {
    position: relative;
}

.dropdown-sub-content {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background-color: var(--card-bg);
    /* Dark sub-dropdown */
    box-shadow: var(--shadow);
    padding: 1rem 0;
    border-top: 2px solid var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
}

.dropdown-sub:hover .dropdown-sub-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s infinite alternate;
    /* Slow zoom */
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Fade transition for slides instead of slide */
.carousel-slide {
    position: absolute;
    /* Stack for fade */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 80%;
    max-width: 900px;
    z-index: 2;
}

.slide-title {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-subtitle {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* ===== BUTTONS ===== */
/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: transparent;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.hero-btns .btn {
    min-width: 220px;
    text-align: center;
    margin: 0 0.5rem;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-dark {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-dark:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Premium Segmented Filters */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 4rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    padding: 2px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 100px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 2rem;
    margin: 0;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    transition: var(--transition);
    border-radius: 100px;
    position: relative;
}

.filter-btn span {
    font-size: 0.6rem;
    vertical-align: super;
    margin-left: 4px;
    opacity: 0.5;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.filter-btn:hover:not(.active) {
    color: var(--white);
}

/* ===== COLLECTIONS & PRODUCTS ===== */
/* Artistic Asymmetric Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 450px;
    grid-auto-flow: dense;
    gap: 2rem;
    margin-top: 2rem;
}

.collection-item.span-2 {
    grid-column: span 2;
}

.collection-item.span-v {
    grid-row: span 2;
    height: 100% !important;
}

.collection-item.span-v-long {
    grid-row: span 3;
    height: 100% !important;
}

.collection-item {
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-img-wrapper,
.collection-img {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.collection-img,
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Full-frame fill for Product Catalog */
.product-item .collection-img {
    object-fit: cover;
    padding: 0;
    background-color: var(--pantone-egret);
}

/* Specific visibility fix for MRNAAL piece - now super-long sized */
.mrnaal-black .collection-img {
    object-fit: cover !important;
    padding: 0 !important;
    height: 100% !important;
}

.collection-item:hover .collection-img {
    transform: scale(1.1);
}

/* Glassmorphism Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    pointer-events: none;
    /* Initially none so we can hover the item */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.collection-item:hover .product-overlay {
    opacity: 1;
    pointer-events: all;
    /* Enable when visible */
}

.overlay-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.overlay-cat {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.view-btn {
    padding: 0.8rem 2rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    transform: translateY(20px);
    transition: var(--transition);
}

.collection-item:hover .overlay-title,
.collection-item:hover .overlay-cat,
.collection-item:hover .view-btn {
    transform: translateY(0);
}

/* Consolidated with authoritative styles below */

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-details {
        padding: 2rem;
    }

    #modalTitle {
        font-size: 2rem;
    }
}

.collection-item:hover .view-btn {
    transform: translateY(0);
}

.collection-info {
    display: none;
    /* Hide old blocky info */
}

.product-dims {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ===== ABOUT PAGE ===== */
.quote-block {
    text-align: center;
    padding: 4rem 2rem !important;
    background-color: var(--card-bg);
    /* Dark Quote Block */
    margin: 3rem 0;
    border-left: 4px solid var(--secondary-color);
}

.text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.full-width-msg {
    text-align: center;
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 4rem;
}

.full-width-msg h3 {
    color: var(--secondary-color);
}

.full-width-msg p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== SECTION SPECIFIC ===== */
/* ===== SECTION SPECIFIC ===== */
.horizontal-scroll-container {
    padding: 5rem 0;
    background-color: var(--primary-color);
    /* Dark Bg */
    overflow-x: hidden;
    /* Changed to hidden because GSAP handles the movement */
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 4rem;
    /* Increased gap for better look */
    padding: 0 5vw;
    width: max-content;
}

.horizontal-scroll-container .product-card {
    min-width: 400px;
    /* Wider cards */
    max-width: 400px;
    box-shadow: var(--shadow);
}

/* --- About Page Gallery: Kinetic Collage --- */
.about-gallery {
    padding: 6rem 0;
    overflow: hidden;
    background-color: var(--primary-color);
}

.collage-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 4rem auto;
}

.collage-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    height: 350px;
    /* Reduced for a more compact feel */
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collage-item:hover img {
    transform: scale(1.05);
}

.collage-item:hover {
    z-index: 10 !important;
    transform: scale(1.02);
}

/* Item Variations */
.collage-item.large {
    grid-column: span 2;
}

.collage-item.medium {
    grid-column: span 1;
}

.collage-item.small {
    grid-column: span 1;
}

.collage-item.vertical {
    grid-column: span 1;
}

.collage-item.square {
    grid-column: span 1;
}

.collage-item.wide {
    grid-column: span 2;
}

.collage-item.tall {
    grid-column: span 1;
}

.collage-item.accent {
    grid-column: span 1;
}

.collage-item.float {
    grid-column: span 1;
}

.collage-item.deep {
    grid-column: span 1;
}

/* Tags on Images */
.item-tag {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(5px);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-weight: 600;
    border-left: 2px solid var(--secondary-color);
}

/* Mobile Responsiveness for Collage */
@media (max-width: 991px) {
    .collage-container {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .collage-item {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .collage-item.large {
        grid-column: span 2;
        height: 400px !important;
    }
}

.collage-item.square {
    border-radius: 0;
}

/* ===== JOURNEY SECTION ===== */
.journey-section {
    padding: 8rem 0;
    background-color: var(--card-bg);
}

.journey-section {
    background-color: var(--pantone-egret);
    padding: 10rem 0;
}

.journey-header {
    text-align: center;
    margin-bottom: 5rem;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.journey-step {
    padding: 2.5rem;
    background-color: #3D271A;
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: var(--transition);
    position: relative;
}

.journey-step:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.step-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-weight: 700;
}

.journey-step h4 {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.journey-step p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: #000000;
    padding: 8rem 0 3rem;
    position: relative;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 4rem;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-brand .footer-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.footer-brand .footer-logo:hover {
    transform: scale(1.05);
}

.footer-brand p {
    color: #888;
    line-height: 1.8;
    font-size: 1rem;
}

.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1.2rem;
    color: var(--white);
}

.footer-links a {
    color: #999;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Back to Top */
.back-to-top {
    position: absolute;
    top: -30px;
    right: 5vw;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
}

.newsletter-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    width: 100%;
    color: var(--white);
    font-family: var(--font-main);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 6rem auto 0;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding-top: 6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .text-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-carousel {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--secondary-color) !important;
        /* Force high contrast */
        position: relative;
        z-index: 3005;
        /* Above navbar content */
    }

    .footer-content {
        flex-direction: column;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        height: 85vh;
        /* Increased from 70vh */
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-content {
        top: 45%;
        padding-top: 8rem;
        /* Significant top padding for full visibility */
    }
}

/* Mobile Menu Header Fix */
.navbar.active {
    background: transparent !important;
}

/* Micro-responsiveness (200px - 350px) */
@media (max-width: 350px) {
    :root {
        --base-font-size: 14px;
    }

    .logo img {
        height: 40px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-subtitle {
        font-size: 1.2rem;
    }

    .hero-btns .btn {
        min-width: 160px;
        padding: 1rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Ultra-wide Responsiveness (2000px - 5000px) */
@media (min-width: 2000px) {
    :root {
        --base-font-size: 24px;
    }

    .container {
        max-width: 2200px;
    }

    .hero-carousel {
        height: 100vh;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Mobile Menu */
/* Mobile Menu Dropdown */
.mobile-menu {
    position: fixed;
    top: 80px;
    /* Below navbar */
    left: 0;
    width: 100%;
    background: rgba(61, 39, 26, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2900;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    /* border-bottom removed */
}

.mobile-menu.active {
    max-height: 80vh;
    padding: 2rem 0;
}

.mobile-nav-link {
    font-size: 1.2rem;
    color: var(--white);
    padding: 1rem 10%;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--secondary-color);
    padding-left: 12%;
}

.navbar.active {
    background: var(--primary-color) !important;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3D271A;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo img {
    width: 320px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORMS ===== */
form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.02);
}

/* ===== PROJECTS MASONRY ===== */
.projects-masonry {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 600px) {
    .projects-masonry {
        column-count: 2;
    }
}

@media (min-width: 900px) {
    .projects-masonry {
        column-count: 3;
    }
}

.project-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1rem 1rem 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    color: var(--white);
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--secondary-color);
}

.project-overlay p {
    font-size: 0.9rem;
    font-family: var(--font-serif);
    font-style: italic;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
    /* Cool effect on dark/light */
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 160, 89, 0.1);
    /* Gold tint */
    border-color: transparent;
}

/* Hide default cursor on body implies we need JS to set standard cursor to none, 
   but usually we just hide it on interactive elements or body. 
   Let's set body cursor to none roughly or just rely on overlay opacity.
   Actually, keeping default pointer is safe for fallback. */

@media (max-width: 768px) {
    .cursor {
        display: none;
        /* Hide on mobile */
    }
}

/* ===== PAGE TRANSITION ===== */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.transition-overlay.active {
    pointer-events: all;
    opacity: 1;
}

/* ===== PRODUCT LIGHTBOX ===== */
.product-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 0;
    border: 1px solid var(--secondary-color);
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.2);
    position: relative;
    animation: modalSlide 0.4s ease;
    overflow-y: auto;
}

@keyframes modalSlide {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: var(--white);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 2;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.modal-gallery {
    display: flex;
    gap: 10px;
    padding: 15px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-thumb {
    width: 65px;
    height: 65px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    opacity: 0.6;
}

.gallery-thumb.active {
    border-color: var(--secondary-color);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.modal-cat {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 1.5rem 0;
    font-family: var(--font-serif);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image img {
        height: 300px;
    }

    .modal-details {
        padding: 1.5rem;
    }
}

/* ===== SPOTLIGHT EFFECT REMOVED ===== */

/* ===== CINEMATIC PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 20000;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.preloader-content {
    text-align: center;
    overflow: hidden;
    /* For text reveal */
}

.preloader-logo {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--secondary-color);
    letter-spacing: 5px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.preloader-line {
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    margin-top: 20px;
    transition: width 1s ease;
}

/* ===== SIMPLE ABOUT GALLERY ===== */
.about-gallery-simple {
    padding: 8rem 0;
    background-color: #F5F3E7;
    /* Cappuccino Foam / Egret */
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-cell {
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    /* Subtle backdrop */
    border-radius: 4px;
    padding: 1rem;
    overflow: hidden;
}

.gallery-cell img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Ensure full image is visible */
    transition: transform 0.8s ease;
}

.gallery-cell:hover img {
    transform: scale(1.03);
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 5%;
    }

    .gallery-cell {
        height: 50vh;
    }
}

/* ===== EDITORIAL ABOUT GALLERY ===== */
.about-gallery-editorial {
    padding: 6rem 0;
    background-color: #F5F3E7;
    /* Cappuccino Foam */
    color: var(--primary-color);
    overflow: hidden;
}

.editorial-header {
    text-align: center;
    margin-bottom: 6rem;
}

.editorial-header h3 {
    font-size: 3rem;
    margin-top: 1rem;
    font-weight: 300;
}

.editorial-container {
    max-width: 1200px;
    /* More compact container */
    margin: 0 auto;
    padding: 0 4%;
}

/* ===== FRAMED MASONRY GALLERY ===== */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3-column base as per reference */
    gap: 2rem;
    width: 100%;
    align-items: start;
    padding: 2rem 0;
}

.mosaic-item {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--pantone-egret);
    /* Cappuccino Foam base for the frame */
    border: 8px solid var(--pantone-egret);
    /* Thick Cappuccino Foam frame */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the frame as per reference */
    transition: transform 1.2s ease;
    display: block;
}

.mosaic-item:hover .mosaic-box {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.mosaic-item:hover img {
    transform: scale(1.05);
}

/* Vertical Rhythm Classes */
.mosaic-h-sm .mosaic-box {
    height: 45vh;
}

.mosaic-h-md .mosaic-box {
    height: 62vh;
}

.mosaic-h-lg .mosaic-box {
    height: 78vh;
}

/* Horizontal Spanning (Optional for 3-col) */
.mosaic-w-full {
    grid-column: span 3;
}

.mosaic-w-half {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mosaic-box {
        height: 50vh !important;
        border-width: 6px;
    }
}

/* Horizontal Scroll Gallery (Full-Screen Sequential) */
.horizontal-scroll-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: transparent;
    display: flex;
    align-items: flex-start;
    /* Start below the navbar clearance */
    padding-top: 120px;
    /* Stronger clearance for Navbar */
}

.gallery-track {
    display: flex;
    padding: 0;
    gap: 0;
    height: 80vh;
    /* Normalized height for better fit */
    background: var(--pantone-egret);
    will-change: transform;
    /* GPU Acceleration */
}

.gallery-item {
    flex: 0 0 auto;
    width: 100vw;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--pantone-egret);
    will-change: transform;
    /* GPU Acceleration */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Refined Mosaic Masonry (Asymmetrical Rhythm) */
.mosaic-showcase-section {
    background: var(--pantone-egret);
    padding: 12vh 0;
}

/* 3X3 Uniform Collaboration Grid (Left-Aligned Alignment) */
.refined-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    /* Slightly larger gap for clean symmetry */
    width: 85%;
    /* Narrowed to allow for larger left offset */
    max-width: 1400px;
    margin-left: 10vw;
    /* Significant left-side padding/offset */
    margin-right: auto;
}

.mosaic-tile {
    position: relative;
    overflow: hidden;
    background: var(--pantone-egret);
    border: 1px solid rgba(0, 0, 0, 0.03);
    aspect-ratio: 4/5;
    /* Uniform vertical proportion */
    height: 65vh;
    /* Definitive vertical presence */
}

.mosaic-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-tile:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .mosaic-tile {
        height: 50vh;
    }
}

@media (max-width: 991px) {
    .refined-mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .mosaic-tile {
        height: 60vh;
    }
}

@media (max-width: 576px) {
    .refined-mosaic {
        grid-template-columns: 1fr;
    }

    .mosaic-tile {
        height: 70vh;
    }
}

@media (max-width: 576px) {
    .refined-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 80vw;
    }

    .mosaic-tile {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Atmospheric Fade Decals */
.horizontal-scroll-container::before,
.horizontal-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.horizontal-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, var(--dark-taupe), transparent);
}

.horizontal-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, var(--dark-taupe), transparent);
}

/* Framed Masonry Editorial Gallery Styles */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3rdrd-column grid for smaller images */
    column-gap: 1rem;
    row-gap: 1.5rem;
}

.editorial-item {
    position: relative;
    width: 100%;
}

.editorial-item.staggered {
    margin-top: 8rem;
    /* Compact Vertical Rhythm */
}

.editorial-box {
    position: relative;
    width: 100%;
    height: 40vh;
    /* Smaller height for small-scale look */
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-item:hover .editorial-box {
    transform: translateY(-10px);
}

.editorial-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}


.editorial-footer {
    text-align: center;
    margin-top: 8rem;
    padding-bottom: 3rem;
}

.editorial-footer h3 {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

@media (max-width: 991px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        row-gap: 8rem;
    }

    .editorial-item.staggered {
        margin-top: 0;
    }

    .editorial-box {
        height: 50vh;
        padding: 1rem;
    }

    .editorial-footer {
        margin-top: 8rem;
    }
}

/* ===== HORIZONTAL SCROLL GALLERY ===== */
.horizontal-scroll-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    background-color: var(--primary-color);
}

.gallery-track {
    display: flex;
    width: fit-content;
    height: 100%;
    align-items: center;
    gap: 0;
}


.gallery-item-wrapper {
    height: 80vh;
    min-width: 60vw;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
}

.gallery-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item-wrapper:hover img {
    transform: scale(1.05);
}


@media (max-width: 991px) {
    .horizontal-scroll-container {
        height: auto;
        overflow: visible;
    }

    .gallery-track {
        flex-direction: column;
        width: 100%;
        padding: 4rem 5%;
        gap: 3rem;
    }

    .gallery-intro,
    .gallery-item-wrapper,
    .gallery-outro {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
    }

    .gallery-item-wrapper {
        height: 50vh !important;
    }
}

.gallery-item {
    width: 60vh;
    /* Based on viewport height for consistency */
    height: 70vh;
    margin-right: 5vw;
    flex-shrink: 0;
    position: relative;
    border-right: 1px solid rgba(197, 160, 89, 0.3);
    padding-right: 20px;
}

.gallery-item img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

.gallery-details {
    margin-top: 1rem;
    color: var(--text-color);
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.gallery-desc {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ===== ABOUT PAGE REVAMP ===== */
.about-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    background-color: var(--pantone-egret);
    position: relative;
    overflow: hidden;
    padding-top: 25vh;
    /* Properly positioning content at the top of the viewing area */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1.1);
    filter: saturate(0.5);
}

.about-hero .hero-bg img {
    opacity: 0.05;
    transform: scale(1);
    filter: saturate(0);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-ethos-container {
    max-width: 1000px;
    padding: 0 5vw;
    z-index: 2;
    text-align: center;
}

.hero-ethos-text {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.5;
    color: var(--pantone-black-taupe);
    font-weight: 300;
    margin: 0 auto;
    max-width: 900px;
}

.hero-ethos-subtext {
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sanskrit {
    color: var(--primary-color) !important;
    font-style: normal !important;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 3rem;
    font-weight: 400;
}

.story-section {
    padding: 10rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.story-section.reverse .section-grid {
    direction: ltr;
    /* Ensure grid is normal, but we swap items in HTML */
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}

.section-image {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.8s ease;
}

.story-section:hover .section-image img {
    filter: grayscale(0%);
}

.section-content {
    padding: 2rem 0;
}

.story-heading {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin: 1.5rem 0;
    line-height: 1.1;
}

.journey-narrative {
    position: relative;
    z-index: 5;
    background: var(--bg-color);
}

.narrative-body p {
    text-align: justify;
    hyphens: auto;
}

@media (max-width: 991px) {
    .journey-narrative .section-grid {
        grid-template-columns: 1fr;
    }

    .journey-narrative .section-image {
        height: 500px !important;
        position: static !important;
        margin-top: 3rem;
    }
}

/* Reveal Helpers */
.reveal-text p {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-image {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-image.active {
    clip-path: inset(0 0 0 0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

@media (max-width: 991px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .story-section.reverse .section-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .section-image {
        height: 400px;
    }

    .story-heading {
        font-size: 2.5rem;
    }
}

/* ===== PREMIUM IMMERSIVE EFFECTS ===== */

/* Analog Grain Noise */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200vh;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
    animation: noiseAnimation 0.2s infinite;
}

@keyframes noiseAnimation {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }

    100% {
        transform: translate(5%, 0);
    }
}

/* Floating Particles */
.floating-particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

/* Custom Cursor Base */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, transform 0.1s ease-out;
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 160, 89, 0.1);
    border-width: 0.5px;
}

/* Page Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 110000;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

.transition-overlay.active {
    transform: translateY(0);
    pointer-events: all;
}