/* -------------------------------------------
   RAJAY INTERIORS — MOBILE FIRST CSS (FINAL)
   ------------------------------------------- */

:root {
    --clr-bg: #fdfcfb;
    --clr-surface: #f4f1eb;
    --clr-text-main: #1a1a1a;
    --clr-text-muted: #5a5a5a;
    --clr-accent: #c29b76;
    --clr-white: #ffffff;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
}

/* -------------------------------------------
   GLOBAL RESET
   ------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 6%;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
}

.section-title {
    font-size: clamp(2rem, 7vw, 4rem);
    margin-bottom: 0.5rem;
}

.title-line {
    height: 1px;
    background: var(--clr-accent);
    width: 60px;
    margin-bottom: 1.5rem;
}

.title-line.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

section {
    padding: 4rem 0;
    width: 100%;
    overflow: hidden;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    width: 100%;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: var(--clr-text-main);
    color: var(--clr-white);
}

.btn-primary:hover {
    background: var(--clr-accent);
}

.btn-outline {
    background: transparent;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-text-main);
}

.btn-outline:hover {
    background: var(--clr-text-main);
    color: var(--clr-white);
}

/* =============================================
   MOBILE DEFAULTS
   ============================================= */

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 252, 251, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    gap: 6px;
}

.logo img {
    height: 100%;
    width: auto;
    transition: transform 0.3s ease;
}

/* New Logo Text Styles */
.logo-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    text-transform: uppercase;
}

.logo-text span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    /* Mobile font size */
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--clr-white);
    white-space: nowrap;
}

.logo-text span.small {
    font-family: var(--font-body);
    font-size: 0.6rem;
    /* Mobile font size */
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--clr-white);
    white-space: nowrap;
}

/* Ensure text changes to dark when navbar is scrolled */
.navbar.scrolled .logo-text span {
    color: var(--clr-text-main) !important;
}

.logo:hover img {
    transform: scale(1.08);
}

.navbar.scrolled .logo {
    color: var(--clr-text-main);
}

.navbar.scrolled .menu-toggle .bar {
    background: var(--clr-text-main);
}

.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--clr-text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    z-index: 1001;
}

.nav-links.active {
    transform: translateX(0);
}

.nav-link {
    color: var(--clr-white);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- DROPDOWN NAVIGATION ---- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropbtn {
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    transition: color 0.3s ease;
}

.drop-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    background: var(--clr-white);
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 4px;
    padding: 1rem 0;
    z-index: 1000;
    border-top: 2px solid var(--clr-accent);
}

.nav-dropdown-content a {
    color: var(--clr-text-main);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    text-transform: none;
    letter-spacing: 0.5px;
}

.nav-dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.02);
    color: var(--clr-accent);
    padding-left: 2.2rem;
}

@media screen and (min-width: 992px) {
    .nav-dropdown {
        padding: 1rem 0;
    }

    .nav-dropbtn {
        font-size: 0.8rem;
        font-family: var(--font-body);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }

    .navbar.scrolled .nav-dropbtn {
        color: var(--clr-text-main);
    }

    .nav-dropdown:hover .nav-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-dropdown:hover .drop-icon {
        transform: rotate(180deg);
    }
}

@media screen and (max-width: 991px) {
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-dropbtn {
        width: 100%;
        justify-content: center;
        font-size: 1.3rem;
        padding: 0.5rem 0;
        border: none;
    }

    .nav-dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        visibility: visible;
        opacity: 1;
        transition: max-height 0.4s ease;
        border: none;
    }

    .nav-dropdown.active .nav-dropdown-content {
        max-height: 300px;
        padding: 0.5rem 0;
    }

    .nav-dropdown-content a {
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.1rem;
        padding: 0.6rem 0;
        text-align: center;
    }

    .nav-dropdown.active .drop-icon {
        transform: rotate(180deg);
    }
}

.nav-btn {
    color: var(--clr-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--clr-white);
    transition: all var(--transition-fast);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--clr-white) !important;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--clr-white) !important;
}

/* Mobile Menu Links Fix for Inner Pages */
@media screen and (max-width: 991px) {
    .nav-links .nav-link {
        color: var(--clr-white) !important;
    }

    .nav-links .nav-btn {
        color: var(--clr-white) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        background: transparent !important;
    }
}


.hero-socials {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-socials a {
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-socials a:hover {
    opacity: 1;
    transform: scale(1.2);
}

.social-ig:hover {
    color: #E1306C !important;
}

.social-fb:hover {
    color: #1877F2 !important;
}

.social-yt:hover {
    color: #FF0000 !important;
}

.social-li:hover {
    color: #0077B5 !important;
}

.hero-socials svg {
    width: 20px;
    height: 20px;
}

@media screen and (max-width: 768px) {
    .hero-socials {
        right: 50%;
        left: auto;
        top: auto;
        bottom: 1.5rem;
        transform: translateX(50%);
        flex-direction: row;
        padding: 0.8rem 1.8rem;
        gap: 2rem;
    }
}

.hero {
    position: relative;
    height: calc(100vh - 60px);
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 0 6%;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slider-nav {
    position: absolute;
    bottom: 8rem;
    left: 6%;
    right: 6%;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
}

.hero-slider-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.hero-slider-nav button:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
}

.hero-slider-nav button svg {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 768px) {
    .hero-slider-nav {
        bottom: 1.5rem;
        /* Exactly level with social pill */
        left: 4%;
        right: 4%;
        justify-content: space-between;
        transform: none;
        width: auto;
        padding: 0;
        display: flex;
        align-items: center;
    }

    .hero-slider-nav button {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.05);
        /* Match social pill transparency */
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-svg-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

.hero-svg-decor svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    color: var(--clr-white);
    z-index: 10;
    position: relative;
    width: 100%;
}

.hero-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    color: var(--clr-accent);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 400px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hero-actions .btn {
    width: 100%;
    text-align: center;
}

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--clr-white);
}

.hero-actions .btn-primary {
    background: var(--clr-accent);
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--clr-white);
    opacity: 0.4;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.4;
    }

    50% {
        transform: scaleY(1.5);
        opacity: 0.8;
    }
}

/* ---- GRIDS ---- */
.section-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ---- ABOUT ---- */
.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-num {
    display: block;
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--clr-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
}

/* ---- PROCESS ---- */
.process {
    background: var(--clr-surface);
}

.process-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.large-svg {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

.animated-svg {
    width: 100%;
    height: 100%;
}

.process-video {
    width: 100%;
}

.process-video video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* ---- SHOWREEL ---- */
.showreel {
    padding: 0;
    height: 50vh;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.showreel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.showreel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showreel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    color: var(--clr-white);
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--clr-white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
}

.play-btn svg {
    width: 18px;
    height: 18px;
    margin-left: 3px;
}

.showreel-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* ---- MONTAGE ---- */
.montage {
    padding: 0;
    position: relative;
    scroll-snap-align: start;
}

.montage .section-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 10;
    padding: 6rem 6% 3rem;
    pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
}

.montage .section-title {
    color: var(--clr-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.montage .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.montage-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    width: 100vw;
    height: 100svh;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.montage-grid::-webkit-scrollbar {
    display: none;
}

.montage-item {
    flex: 0 0 100svh;
    width: 100vw;
    height: 100svh;
    min-height: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.montage-item img,
.montage-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.montage-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 3rem 1.5rem 1.2rem;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.montage-title {
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.montage-item:hover img {
    transform: scale(1.05);
}

/* ---- PORTFOLIO ---- */
.portfolio-heroic-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-card,
.project-card.reversed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--clr-white);
    padding: 0.5rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.project-location {
    color: var(--clr-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* ---- PORTFOLIO MASONRY COLLAGE & MODAL ---- */
.project-collage {
    columns: 2;
    column-gap: 0.8rem;
    width: 100%;
    flex: 1.5;
    overflow: visible;
}

.collage-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 0.8rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    break-inside: avoid;
}

.collage-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Removed fixed brick classes to allow natural flow */
.collage-item:hover img {
    transform: scale(1.1);
}

.collage-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collage-item:hover .collage-overlay {
    opacity: 1;
}

.collage-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Styling */
.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.project-modal.active {
    display: flex;
}

.modal-content {
    background: var(--clr-bg);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    position: relative;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--clr-text-main);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media screen and (min-width: 992px) {
    .modal-body {
        grid-template-columns: 2fr 1fr;
    }
}

.modal-gallery {
    position: relative;
    background: #000;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.modal-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.modal-slide {
    min-width: 100%;
    height: 100%;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    backdrop-filter: blur(5px);
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--clr-accent);
}

.modal-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.modal-info p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media screen and (max-width: 767px) {
    .modal-gallery {
        aspect-ratio: 1/1;
    }

    .modal-info {
        padding: 1.5rem;
        text-align: center;
    }

    .modal-info h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .modal-info .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        width: fit-content;
        margin: 0 auto;
    }

    .close-modal {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 2rem;
        background: rgba(255, 255, 255, 0.8);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Desktop Overrides for project cards */
@media screen and (min-width: 992px) {
    .project-card .project-collage {
        flex: 1.5;
    }

    .project-card .project-content {
        flex: 1;
    }
}

.director-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--clr-accent);
}

.studio-image {
    position: relative;
}

.studio-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.signature {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 2rem;
    color: var(--clr-text-main);
    margin-top: 0.5rem;
    display: block;
    text-align: right;
}

/* ---- PRESS MARQUEE — FIXED ---- */
.press {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text-muted);
    margin: 0 0.8rem;
    white-space: nowrap;
}

.marquee-content .dot {
    font-size: 0.35rem;
    color: var(--clr-accent);
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---- JOURNAL ---- */
.journal {
    position: relative;
    padding: 4rem 0;
    background: var(--clr-surface);
    overflow: hidden;
}

.journal-interactive-list {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.journal-row {
    display: grid;
    grid-template-columns: 35px 1fr;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 0.3rem;
    align-items: start;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.journal-row:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.j-num {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--clr-accent);
    padding-top: 2px;
}

.j-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--clr-text-main);
    font-weight: 400;
}

.j-cat {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
    padding-top: 0.2rem;
}

@media screen and (max-width: 767px) {
    .journal .section-header {
        text-align: center;
    }

    .journal .title-line {
        margin-left: auto;
        margin-right: auto;
    }
}

.journal-bg-layer {
    display: none;
}

/* ---- BEFORE & AFTER TRANSFORMATION ---- */
.transformation {
    background: var(--clr-surface);
}

.ba-container {
    width: 100%;
    max-width: 900px;
    margin: 2.5rem auto 0;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    --pos: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-after {
    z-index: 1;
}

.ba-before {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    left: var(--pos);
    transform: translateX(-50%);
    background: var(--clr-accent);
    z-index: 3;
    pointer-events: none;
}

.ba-slider-btn {
    position: absolute;
    top: 50%;
    left: var(--pos);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 4;
    pointer-events: none;
}

.ba-slider-btn::before,
.ba-slider-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.ba-slider-btn::before {
    border-right: 8px solid var(--clr-white);
    margin-right: 4px;
}

.ba-slider-btn::after {
    border-left: 8px solid var(--clr-white);
    margin-left: 4px;
}

.ba-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.ba-label {
    position: absolute;
    bottom: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 4;
    pointer-events: none;
}

.ba-label-before {
    left: 1rem;
}

.ba-label-after {
    right: 1rem;
}

/* ---- SPACES WE TRANSFORM ---- */
.spaces {
    background: var(--clr-bg);
}

.spaces-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.space-card {
    background: var(--clr-white);
    padding: 1.5rem 1.2rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.space-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--clr-accent);
}

.space-icon {
    width: 36px;
    height: 36px;
    color: var(--clr-accent);
    margin: 0 auto 0.8rem;
}

.space-icon svg {
    width: 100%;
    height: 100%;
}

.space-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.space-card p {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    line-height: 1.4;
}

/* ---- IMPACT NUMBERS ---- */
.impact {
    background: var(--clr-text-main);
    color: var(--clr-white);
    padding: 3rem 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.impact-num {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 500;
    color: var(--clr-accent);
    line-height: 1;
}

.impact-plus,
.impact-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--clr-accent);
    vertical-align: top;
    margin-left: 2px;
}

.impact-label {
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.3rem;
    display: block;
}

/* ---- TESTIMONIALS SLIDER ---- */
.testimonial-slider-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-card {
    min-width: 100%;
    background: var(--clr-white);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.testimonial-stars {
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--clr-text-main);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--clr-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--clr-accent);
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.testimonial-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
}

.testimonial-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clr-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-controls button:hover {
    background: var(--clr-accent);
    color: var(--clr-white);
    border-color: var(--clr-accent);
}

.testimonial-controls svg {
    width: 20px;
    height: 20px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
}

.testimonial-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background: var(--clr-accent);
    transform: scale(1.3);
}

@media screen and (max-width: 768px) {
    .testimonial-card {
        padding: 2.5rem 1.8rem;
        text-align: left;
        /* Shift text to left for better readability on mobile */
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-author {
        justify-content: flex-start;
        /* Align author to the left */
        text-align: left;
    }

    .testimonial-controls {
        display: none;
    }

    .testimonial-slider-container {
        margin-top: 2rem;
        padding-bottom: 2rem;
        /* Add space so dots aren't cut off */
        overflow: visible;
        /* Ensure dots are visible */
    }

    .testimonial-dots {
        margin-top: 2rem;
    }
}

/* ---- CTA BANNER ---- */
.cta-banner {
    position: relative;
    background: url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1260') center/cover no-repeat;
    padding: 5rem 0;
    color: var(--clr-white);
    text-align: center;
    overflow: hidden;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 0.8rem;
}

.cta-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

/* ---- FAQ ACCORDION ---- */
.faq {
    background: var(--clr-bg);
}

.faq-list {
    max-width: 750px;
    margin: 2.5rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-main);
    text-align: left;
    gap: 1rem;
}

.faq-question:hover {
    color: var(--clr-accent);
}

.faq-icon {
    font-size: 1.3rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--clr-accent);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 1.2rem;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* ---- CONTACT / FOOTER ---- */
.contact {
    background: var(--clr-text-main);
    color: var(--clr-white);
    padding: 4rem 0;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--clr-accent);
}

.contact-form select {
    appearance: none;
    cursor: pointer;
}

.contact-form select option {
    background: var(--clr-text-main);
    color: var(--clr-white);
}

/* Services */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: var(--clr-white);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 40px;
    height: 40px;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

.footer {
    background: #111;
    color: var(--clr-white);
    padding: 3rem 0 1rem;
}

.footer .logo {
    color: var(--clr-white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer p {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent);
    margin-bottom: 0.3rem;
}

.footer-links a {
    color: #999;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--clr-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.75rem;
    margin: 0;
}

/* =============================================
   ANIMATIONS — FAST REVEAL
   ============================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.reveal-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.active.reveal-up,
.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* =============================================
   TABLET — min-width: 768px
   ============================================= */
@media screen and (min-width: 768px) {
    .btn {
        width: auto;
    }

    section {
        padding: 6rem 0;
    }

    .hero-actions {
        flex-direction: row;
    }

    .hero-actions .btn {
        width: auto;
    }

    .hero-content h1 {
        font-size: clamp(3rem, 8vw, 5rem);
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .stats {
        gap: 3rem;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .showreel {
        height: 65vh;
    }

    .montage {
        padding: 6rem 0;
        position: static;
    }

    .montage .section-header {
        position: static;
        padding: 0;
        background: none;
        pointer-events: auto;
        width: 100%;
    }

    .montage .section-title {
        color: var(--clr-text-main);
        text-shadow: none;
    }

    .montage .section-subtitle {
        color: var(--clr-text-muted);
    }

    .montage-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 2.5rem;
        width: 100%;
        height: auto;
        position: static;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    .montage-item {
        height: 280px;
        flex: auto;
        width: 100%;
        border-radius: 0;
        scroll-snap-stop: normal;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .journal-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem 0;
    }

    .j-num {
        width: 8%;
        padding-top: 0;
        font-size: 1.1rem;
    }

    .j-title {
        width: 62%;
        font-size: 1.6rem;
    }

    .j-cat {
        width: 22%;
        text-align: right;
        padding-top: 0;
        margin-top: 0;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }

    .marquee-content span {
        font-size: 1.5rem;
        margin: 0 1.2rem;
    }

    .spaces-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonial-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }

    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =============================================
   DESKTOP — min-width: 992px
   ============================================= */
@media screen and (min-width: 992px) {
    section {
        padding: 8rem 0;
    }

    .container {
        padding: 0 5%;
    }

    /* Navbar desktop */
    .menu-toggle {
        display: none;
    }

    .logo {
        font-size: 1.8rem;
    }

    .nav-links {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        flex-direction: row;
        justify-content: flex-end;
        gap: 2.5rem;
        transform: none;
    }

    .nav-link {
        color: var(--clr-white);
        font-size: 0.85rem;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--clr-accent);
        transition: width var(--transition-fast);
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .navbar.scrolled .nav-link {
        color: var(--clr-text-main);
    }

    .navbar.scrolled .logo {
        color: var(--clr-text-main);
    }

    /* Hero desktop */
    .hero-content h1 {
        font-size: clamp(3.5rem, 6vw, 6rem);
    }

    .hero-tagline {
        font-size: 1.1rem;
        max-width: 500px;
    }

    /* Grids */
    .section-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: center;
    }

    .about-image,
    .about-text,
    .service-card,
    .impact-item,
    .process-step {
        width: 100%;
    }

    .process-layout {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .process-steps {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        flex: 1;
    }

    .process-step h3 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .process-step p {
        font-size: 1.1rem;
        max-width: 600px;
    }

    .process-video {
        flex: 0 0 400px;
        max-width: 400px;
        height: 500px;
        border-radius: 12px;
        overflow: hidden;
    }

    .process-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .large-svg {
        width: 70px;
        height: 70px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .showreel {
        height: 80vh;
    }

    /* Montage complex grid */
    .montage {
        padding: 8rem 0;
    }

    .montage-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: 140px;
        gap: 1rem;
        margin-top: 2.5rem;
    }

    .m1 {
        grid-column: 1 / 5;
        grid-row: 1 / 4;
        height: auto;
    }

    .m2 {
        grid-column: 5 / 9;
        grid-row: 1 / 3;
        height: auto;
    }

    .m3 {
        grid-column: 9 / 13;
        grid-row: 1 / 4;
        height: auto;
    }

    .m4 {
        grid-column: 1 / 5;
        grid-row: 4 / 6;
        height: auto;
    }

    .m5 {
        grid-column: 5 / 9;
        grid-row: 3 / 6;
        height: auto;
    }

    .m6 {
        grid-column: 9 / 13;
        grid-row: 4 / 6;
        height: auto;
    }

    .montage-item:hover img,
    .montage-item:hover video {
        transform: scale(1.04);
    }

    /* Portfolio */
    .portfolio-heroic-list {
        gap: 8rem;
    }

    .project-card {
        flex-direction: row;
        gap: 5rem;
        align-items: center;
    }

    .project-card.reversed {
        flex-direction: row-reverse;
    }

    .project-image {
        flex: 1.5;
    }

    .project-content {
        flex: 1;
    }

    .project-content h3 {
        font-size: 2.5rem;
    }

    /* Studio */
    .signature {
        position: absolute;
        bottom: -1.5rem;
        right: -1.5rem;
        background: var(--clr-bg);
        padding: 0.8rem 1.5rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
        font-size: 3.5rem;
        text-align: left;
    }

    /* Journal hover bg */
    .journal {
        padding: 10rem 0;
    }

    .j-title {
        font-size: clamp(1.8rem, 3.5vw, 3rem);
    }

    .journal-row:hover {
        transform: translateX(15px);
    }

    .journal-bg-layer {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 0.6s ease;
        filter: brightness(0.35);
        z-index: 0;
        pointer-events: none;
    }

    .journal-bg-layer.active {
        opacity: 1;
    }

    .journal.has-active-bg .section-title,
    .journal.has-active-bg .title-line,
    .journal.has-active-bg .journal-row,
    .journal.has-active-bg .j-num,
    .journal.has-active-bg .j-title,
    .journal.has-active-bg .j-cat {
        color: var(--clr-white);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .marquee-content span {
        font-size: 2rem;
        margin: 0 1.5rem;
    }

    /* New sections desktop */
    .ba-slider {
        aspect-ratio: 16/9;
    }

    .spaces-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .space-icon {
        width: 44px;
        height: 44px;
    }

    .impact-num {
        font-size: 3.5rem;
    }

    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .cta-content h2 {
        font-size: 3rem;
    }
}

/* --- COMPACT & ANIMATED LIGHTBOX STYLES --- */
.lightbox {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    /* Hide via opacity for animation */
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    display: flex;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Lighter backdrop */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Frosted blur */
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    background: var(--clr-surface);
    width: 100%;
    max-width: 1050px;
    /* Bigger on desktop */
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Pop animation */
}

.lightbox.active .lightbox-container {
    transform: scale(1);
}

@media (max-width: 768px) {
    .lightbox-container {
        flex-direction: column;
        max-height: 90vh;
    }
}

.lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--clr-surface);
    border: none;
    font-size: 1.5rem;
    color: var(--clr-text-main);
    cursor: pointer;
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.lightbox-close:hover {
    background: #eee;
}

.lightbox-left {
    position: relative;
    background: var(--clr-surface);
    /* White background */
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1.2;
    padding: 1rem;
    /* Padding to give image breathing room */
}

@media (max-width: 768px) {
    .lightbox-left {
        flex: none;
        height: 38vh;
        min-height: unset;
        padding: 0.5rem;
    }
}

.lb-slider {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lb-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    /* Rounded image corners */
    transition: opacity 0.25s ease;
    /* Fade effect for slideshow */
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    /* Darker arrows for light background */
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.lb-nav.prev {
    left: 1.5rem;
}

.lb-nav.next {
    right: 1.5rem;
}

.lightbox-right {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .lightbox-right {
        padding: 1.25rem;
    }
}

#lb-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

#lb-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#lb-desc {
    color: var(--clr-text-muted);
    line-height: 1.5;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.lb-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.dim-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dim-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dim-value {
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--clr-text-main);
}

.lb-project-nav {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.lb-project-nav button {
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--clr-text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0;
}

.lb-project-nav button:hover {
    color: var(--clr-accent);
}

/* --- SUBPAGE NAVBAR FIX (Dark Text on Light Backgrounds) --- */

/* 1. Make the mobile menu hamburger icon AND Logo Text dark on all screens (UNLESS it's open/scrolled) */
.navbar.subpage-nav:not(.scrolled) .menu-toggle:not(.active) .bar {
    background-color: #1a1a1a !important;
}

.navbar.subpage-nav:not(.scrolled) .logo-text span {
    color: #1a1a1a !important;
    font-weight: 500;
}

/* 2. Make the nav text/buttons dark ONLY on Desktop. 
      On mobile, they stay white inside the dark slide-out menu. */
@media screen and (min-width: 992px) {

    .navbar.subpage-nav:not(.scrolled) .nav-link,
    .navbar.subpage-nav:not(.scrolled) .nav-dropbtn {
        color: #1a1a1a !important;
        font-weight: 500;
    }

    .navbar.subpage-nav:not(.scrolled) .nav-btn {
        color: #1a1a1a !important;
        border-color: #1a1a1a !important;
    }
}