:root {
    --deep-slate: #1a1a1a;
    --soft-sand: #f5f5f0;
    --accent-blue: #0f3460;
    --blueprint-bg: #e6f0fa;
    --eco-green: #e9f5e9;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Lenis base styles */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--deep-slate);
    color: var(--soft-sand);
    font-family: var(--font-mono);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    cursor: none; /* Custom cursor handles this */
}

h1, h2, h3, h4, h5, h6, .section-title {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--soft-sand);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 245, 240, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor-dot.hover {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.9);
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Smart Nav */
.smart-nav {
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: none;
    z-index: 1030;
}

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

.smart-nav .navbar-nav {
    transition: all 0.4s ease;
    border-radius: 50px;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
}

.smart-nav.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
}

.smart-nav.scrolled .navbar-nav {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.5rem 0.4rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.smart-nav .nav-link {
    color: var(--soft-sand) !important;
    text-transform: capitalize;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s, opacity 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.smart-nav .nav-link:hover {
    opacity: 0.7;
}

.smart-nav .nav-item {
    display: flex;
    align-items: center;
}

.btn-contact {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.95);
    color: var(--deep-slate) !important;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    text-transform: capitalize;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.smart-nav.scrolled .btn-contact {
    border: none;
}

.btn-contact:hover {
    background: var(--soft-sand);
    color: var(--deep-slate);
    transform: scale(1.05);
}

.btn-contact-dark {
    border: 1px solid var(--deep-slate);
    color: var(--deep-slate);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
    display: inline-block;
    text-decoration: none;
}

.btn-contact-dark:hover {
    background: var(--deep-slate);
    color: var(--soft-sand);
}

/* Dot Navigation */
.dot-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 900;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(245, 245, 240, 0.3);
    cursor: none;
    transition: all 0.3s ease;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
}

.dot.active {
    background-color: var(--soft-sand);
    transform: scale(1.5);
}

/* General Scene Settings */
.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.section-title {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 2rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.9s cubic-bezier(0.76, 0, 0.24, 1);
    overflow: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Brand name wrapper */
.loading-brand {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.6em;
    overflow: visible;
}

/* Individual word spans */
.brand-word {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 3.2rem);
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(22px);
    will-change: opacity, transform;
}

/* Stagger delays for each word */
.brand-word[data-word="0"] { animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.brand-word[data-word="1"] { animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards; }
.brand-word[data-word="2"] { animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards; }

@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* Meta row: line + percentage */
.loading-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    opacity: 0;
    animation: fadeSlideUp 0.7s ease 1.6s forwards;
}

.loading-line {
    width: 50px;
    height: 1px;
    background: rgba(26, 26, 26, 0.25);
}

.loading-progress {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(26, 26, 26, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Scene 1: Hero Canvas Sequence */
#hero-trigger {
    height: 100vh;
    position: relative;
    width: 100%;
    overflow: hidden; /* Ensure content doesn't bleed out */
}

.sticky-wrapper {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #0a0a0a; /* Match denim edge */
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
    /* object-fit logic handled in JS, but we ensure block display */
}

.story-text {
    z-index: 10;
    pointer-events: none;
    opacity: 0; /* Hidden initially */
    margin-left: 8vw;
    margin-bottom: 12vh;
    max-width: 650px;
}

.story-subtitle-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.story-line {
    width: 40px;
    height: 1px;
    background-color: #d8d3c5;
    margin-right: 15px;
}

.story-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #d8d3c5;
    text-transform: uppercase;
}

.story-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: #e5e1d8;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5); /* Subtle shadow for readability */
}

.story-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #d8d3c5;
    line-height: 1.9;
    opacity: 0.85;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Scene 2: Origins */
.origins-scene {
    background-color: var(--deep-slate);
    border-top: 1px solid rgba(255,255,255,0.05);
    overflow: hidden; /* Hide horizontal scrollbar */
}

.origins-container {
    height: 100vh;
    width: 100%;
}

.origins-left {
    width: 35vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    /* Optional: subtle background gradient to separate from images */
    background: linear-gradient(to right, var(--deep-slate) 80%, transparent);
}

.origins-right-wrap {
    width: 65vw;
    height: 100vh;
    overflow: visible; /* Let JS handle the horizontal translation */
    position: relative;
}

.origins-scroll-content {
    height: 100vh;
    will-change: transform;
}

.year-card {
    width: 35vw; /* Each card takes up roughly half the remaining space or more */
    height: 100vh;
    flex-shrink: 0;
}

.year-image-wrap {
    height: 45vh; /* Fixed height for image area to keep consistency */
    width: 100%;
    overflow: hidden;
}

.year-image-wrap img {
    transition: transform 0.5s ease;
}

.year-card:hover .year-image-wrap img {
    transform: scale(1.05);
}

.max-width-500 { max-width: 500px; }
.ls-3 { letter-spacing: 3px; }
.ls-5 { letter-spacing: 5px; }

.badge {
    font-family: var(--font-mono);
    font-weight: 300;
}

/* Scene 3: Craftsmanship */
/* .split-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.split-left, .split-right {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blueprint-side {
    background-color: var(--blueprint-bg);
}

.fabric-side {
    background-color: #3a2a22; 
}

.reveal-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--blueprint-bg);
    transform-origin: right center;
    z-index: 1;
}

.fabric-side .content-wrapper {
    position: relative;
    z-index: 2;
} */

.craftsmanship-scene {
    background-color: #0a0a0a;
}

.split-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.blueprint-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111; /* Dark background under the blueprint if it's transparent */
    z-index: 1;
}

.blueprint-img {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0.9;
}

.fabric-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: inset(0 0 0 100%); /* Hidden initially on the right */
}

.fabric-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 100%; /* Follows the clip-path */
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4);
    z-index: 4;
}

.scanner-glow {
    position: absolute;
    right: 0;
    width: 100px; /* Wider glow */
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.15), transparent);
}

.label-tech {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-blue);
    letter-spacing: 2px;
    opacity: 0.5;
}

.concept-title {
    position: absolute;
    text-align: left;
    font-size: clamp(5rem, 10vw, 10rem);
    line-height: 0.9;
    /* color: var(--deep-slate); */
    letter-spacing: -2px;
}

.concept-title span {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: rgba(26, 26, 26, 0.4);
}

.huge-title {
    font-family: var(--font-serif);
    line-height: 0.75;
    margin: 0;
    font-weight: 400;
    letter-spacing: -2px;
}

.font-serif {
    font-family: var(--font-serif);
}

/* Scene 4: Sustainability */
.sustainability-scene {
    background: linear-gradient(rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0.95)), url('../images/sustainability/eco-background.jpg') center/cover no-repeat;
    background-color: #0d1117;
    position: relative;
    width: 100%;
}

.sus-container {
    height: 100vh;
    width: 100%;
}

.sus-left {
    width: 40vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.sus-right-wrap {
    width: 60vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.sus-card-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
}

.sus-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 4rem 40px 4rem;
    will-change: transform, opacity;
}

.sus-card-img-wrap {
    width: 100%;
    height: 40vh;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.sus-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.sus-card:hover .sus-card-img {
    transform: scale(1.05);
}

.sus-card-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cert-card-special .sus-card-content {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cert-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.cert-item {
    position: relative;
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0; /* Removed padding to let image fill */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 14vh;
    min-height: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden; /* Keep image inside rounded corners */
}

.cert-item::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(245, 205, 71, 0.4);
    border-radius: 10px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2; /* Ensure border is above the image */
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(245, 205, 71, 0.5);
}

.cert-item:hover::before {
    border: 1px solid rgba(245, 205, 71, 0.8);
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the entire container */
    border-radius: 16px;
    z-index: 1;
}

.sus-card-content .badge {
    background-color: var(--soft-sand);
    color: var(--deep-slate);
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
}

/* Scene 5: Gallery */
.gallery-scene {
    background-color: var(--deep-slate);
    color: var(--soft-sand);
    overflow: hidden;
}

.gallery-tabs {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(245, 245, 240, 0.6);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: none; /* handled by custom cursor */
}

.tab-btn:hover {
    color: var(--soft-sand);
}

.tab-btn.active {
    background: var(--soft-sand);
    color: var(--deep-slate);
    font-weight: 700;
}

.gallery-track-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
    display: flex;
    align-items: center;
}

.gallery-track-wrapper.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    padding-left: 2rem;
    height: 100%;
    align-items: center;
    will-change: transform;
}

.gallery-item {
    flex: 0 0 auto;
    width: 30vw;
    height: 40vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: none; /* handled by custom cursor */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    filter: grayscale(80%) contrast(1.2);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    filter: grayscale(0%) contrast(1);
    z-index: 10;
}

.gallery-item:hover::after {
    opacity: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Styles */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.gallery-lightbox.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-lightbox.active .lightbox-backdrop {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--soft-sand);
    font-size: 3rem;
    font-weight: 300;
    z-index: 10000;
    cursor: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.gallery-lightbox.active .lightbox-close {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    /* Set initial state for animation */
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-lightbox.active .lightbox-content {
    opacity: 1;
    transform: scale(1);
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 90vh;
    display: block;
}


/* Scene 6: Global Reach */
/* Scene 6 Custom Styles */
/* .global-scene {
    /* Background handled by inline style */
} */

.office-info-wrapper {
    background: rgba(255, 255, 255, 0.5);
    padding: 3rem;
    border-left: 2px solid var(--deep-slate);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#office-details {
    transition: all 0.5s ease;
}

.globe-wrapper {
    position: relative;
    cursor: grab;
}

.globe-wrapper:active {
    cursor: grabbing;
}

/* Ensure the canvas doesn't overflow its container on mobile */
#globe-canvas {
    max-width: 100%;
    max-height: 100%;
}

.globe-marker-label {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
    padding-bottom: 12px; /* Spacing above the cobe dot */
    pointer-events: none;
}

.marker-text {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: bold;
    color: #0d6efd;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255,255,255,1), 0 0 10px rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.7);
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


.globe-wrapper {
  width: 600px;
  height: 600px;
  position: relative;
}

.polaroid {
  position: absolute;
  background: #fff;
  padding: 6px 6px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.05);
  pointer-events: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
  transform-origin: bottom center;
}

.polaroid:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 2px 5px rgba(0,0,0,0.05);
  z-index: 20;
}

.polaroid img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 1px;
}

.polaroid span {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #333;
  font-weight: 500;
  font-family: var(--font-mono);
}

/* -----------------------------------------
   MOBILE RESPONSIVE OVERRIDES
----------------------------------------- */
@media (max-width: 991px) {
    /* Hide custom cursor on mobile */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    body { cursor: auto !important; }

    /* Nav Mobile */
    .smart-nav .navbar-nav {
        background: rgba(15, 15, 15, 0.95);
        padding: 2rem !important;
        border-radius: 20px;
        margin-top: 1rem;
    }

    .smart-nav .navbar-brand {
        left: 1.5rem !important;
    }

    /* Dot Nav: Hide on small screens to reduce clutter */
    .dot-nav {
        display: none;
    }

    /* Scene 1: Hero */
    .story-text {
        margin-left: 5vw;
        margin-bottom: 5vh;
        width: 90vw;
    }

    .story-title {
        font-size: 2.8rem;
    }

    /* Scene 2: Origins - Stack vertically */
    .origins-container {
        flex-direction: column !important;
        height: auto !important;
    }

    .origins-left {
        width: 100% !important;
        height: auto !important;
        padding: 80px 1.5rem 40px !important;
        background: var(--deep-slate);
    }

    .origins-right-wrap {
        width: 100% !important;
        height: auto !important;
    }

    .origins-scroll-content {
        flex-direction: column !important;
        height: auto !important;
        transform: none !important;
    }

    .year-card {
        width: 100% !important;
        height: auto !important;
        padding: 3rem 1.5rem !important;
        border-left: none !important;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .year-image-wrap {
        height: 30vh;
    }

    /* Scene 3: Craftsmanship */
    .huge-title {
        font-size: 3.5rem !important;
    }
    
    .concept-title {
        display: none;
    }

    /* Scene 4: Sustainability */
    .sus-container {
        flex-direction: column !important;
    }

    .sus-left {
        width: 100% !important;
        height: auto !important;
        padding: 60px 1.5rem 20px !important;
    }

    .sus-right-wrap {
        width: 100% !important;
        height: 80vh !important;
    }

    .sus-card {
        padding: 2rem 1.5rem !important;
    }

    .sus-card-img-wrap {
        height: 25vh;
    }

    .cert-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Scene 5: Gallery */
    .gallery-item {
        width: 70vw !important;
        height: 30vh !important;
    }

    /* Scene 6: Global */
    .globe-wrapper {
        width: 100% !important;
        height: 350px !important;
    }
}