:root {
    /* Color Palette - Luxury Editorial */
    --color-bg-primary: #FBF7E8; /* Medium Warm Cream */
    --color-bg-dark: #600e17;    /* Deep Burgundy */
    --color-burgundy: #600e17; 
    --color-text-main: #1A1A1A;  /* Charcoal */
    --color-text-light: #5A5A5A;
    --color-white: #FBF7E8; /* Medium Warm Cream (Text) */
    --color-black: #000000;
    --color-gold: #C5A059;   /* Sophisticated Muted Gold */

    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Border Radius & Shadows */
    --br-base: 2px;
    --br-pill: 9999px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hard: none;

    /* Animation Speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --navbar-height: 90px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
}

/* Lenis Smooth Scroll Compatibility */
html.lenis,
html.lenis body {
    height: auto;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-primary);
    overflow-x: clip;
    line-height: 1.6;
    animation: body-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes body-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.no-scroll {
    overflow: hidden;
}


/* Nav & Pill Buttons */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 1000;
    background: var(--color-bg-primary);
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Very subtle bottom edge */
    box-shadow: var(--shadow-soft);
}

/* Mobile Hamburger Icon (Pure CSS) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    transition: transform var(--transition-fast);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-burgundy);
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


.logo {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-burgundy);
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.pill-btn {
    display: inline-block;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text-main);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    border: none;
}

.pill-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.pill-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width var(--transition-fast);
}

.pill-btn:hover::after,
.pill-btn.active::after {
    width: 100%;
}

.pill-btn:hover {
    color: var(--color-gold);
    transform: none;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-bg-primary);
    min-width: 220px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.05);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 26, 26, 0.05);
    padding: 1rem 0;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--color-text-main);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    text-align: center;
}

.dropdown-content a:hover {
    color: var(--color-gold);
    background-color: rgba(193, 154, 107, 0.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    padding: 4rem;
    padding-top: calc(var(--navbar-height) + 4rem);
    background-color: var(--color-burgundy);
    overflow: hidden;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    margin-top: 0;
}


.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-container.type-only {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
}

.hero-content {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.editorial-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.82rem;
    color: var(--color-burgundy);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Use on dark backgrounds (e.g. hero, dark panels) */
.editorial-label--light {
    color: var(--color-white);
    opacity: 0.8;
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--color-gold); /* Updated to gold */
    letter-spacing: -0.04em;
    font-style: normal;
    margin-bottom: 3rem;
    white-space: nowrap;
    overflow: hidden; /* Acts as the reveal mask */
    padding-bottom: 0.35em; /* Show full descenders */
    padding-top: 0.35em; /* Room to translate up on hover */
}

.main-title:hover {
    overflow: visible; /* Ensure mask drops while hovering */
}

.title-reveal {
    display: inline-block;
}

.hover-letter {
    display: inline-block;
    transition: transform var(--transition-bounce);
    padding: 0.1em;
    margin: -0.1em; /* Offsets padding to keep layout exactly the same */
    opacity: 1;
    transform: translateY(0);
    animation: drop-in 0.8s cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

.hover-letter:hover {
    transform: translateY(-15px);
}

@keyframes drop-in {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes luxury-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: var(--color-bg-primary);
    max-width: 600px;
    line-height: 1.4;
    font-weight: 300;
    margin: 0 auto 4rem;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: luxury-fade-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2.8rem; /* Refined 'skinner' padding */
    background-color: var(--color-burgundy); /* Unified deep red */
    color: var(--color-white); /* White text on red bg */
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.8rem;
    border-radius: var(--br-base);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-soft);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background-color: var(--color-text-main);
    color: var(--color-bg-primary);
    letter-spacing: 0.25em;
}

.cta-button:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.hero-image-side {
    position: relative;
    height: 80vh;
    width: 100%;
    background: #eee;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1);
}

.page-content {
    position: relative;
    z-index: 10;
    margin-top: 0;
    background-color: var(--color-bg-primary);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.05);
}

/* Mobile Overlay Navigation */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: var(--color-bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 32px;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-overlay-links a {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-burgundy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-overlay-links a:hover {
    color: var(--color-gold);
}


.about-section {
    padding: 8rem 4rem;
    background-color: var(--color-bg-primary);
    display: flex;
    justify-content: center;
    position: relative;
}

.about-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: flex-start;
}

.about-image {
    position: relative;
    height: 70vh;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--color-burgundy);
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 3rem;
    color: var(--color-text-main);
}

.about-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 2rem;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #eee;
}

.detail-group h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--color-burgundy);
}

.detail-group ul {
    list-style: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.detail-group ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.detail-group ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.detail-group p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.software-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    margin-top: 0.5rem;
}

.software-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.8;
    filter: brightness(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.software-icon:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.15); /* Slightly bigger on hover */
}

/* Work Section */
.work-section {
    background-color: var(--color-text-main);
    padding: 10rem 4rem;
    position: relative;
    z-index: 10;
}

.work-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 6rem;
    gap: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-bg-primary); /* Reverted to cream */
    text-transform: uppercase;
    text-align: center;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

.work-item {
    position: relative;
    width: 100%;
    transition: transform var(--transition-bounce);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.work-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    border-radius: var(--br-base);
    border: 1px solid rgba(255, 251, 240, 0.1);
    transition: all var(--transition-fast);
}

.work-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(96, 14, 23, 0.75); /* Darker, more dramatic burgundy overlay */
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-info {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.work-category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    font-weight: 600;
}

.work-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-gold);
    text-transform: none;
    letter-spacing: 0.02em;
}

.work-item:hover {
    transform: translateY(-20px);
}

.work-item:hover .work-image-container img {
    transform: scale(1.05);
}

/* Sticker cleanup */
.sticker { display: none; }

.sticker-top-right {
    top: -1rem;
    right: -1rem;
    transform: rotate(10deg);
}

.sticker-bottom-left {
    bottom: -1rem;
    left: -1rem;
    background: var(--color-accent-pink);
    color: var(--color-white);
    transform: rotate(-5deg);
}

/* Recent Works Section */
.recent-works-section {
    padding: 10rem 4rem;
    background: var(--color-bg-primary);
    position: relative;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--color-burgundy);
    color: var(--color-white);
    padding: 0.7rem 1.8rem; /* Refined 'skinner' padding */
    border-radius: var(--br-base);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(96, 14, 23, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-cta:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: var(--color-gold); /* Shifts to gold on hover */
    color: var(--color-burgundy); /* Contrast with gold */
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.3);
    letter-spacing: 0.15em;
}

/* Testimonials Section */
.testimonials-section {
    padding: 12rem 4rem;
    background-color: var(--color-bg-primary);
    position: relative;
    z-index: 10;
    text-align: center;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title.dark {
    color: var(--color-text-main);
    margin-bottom: 6rem;
}

.marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    white-space: nowrap;
    font-size: 0; /* Remove whitespace gaps between inline tracks */
}

/* Gradient fades for the edges */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12vw;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-primary) 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-primary) 0%, transparent 100%);
}

.marquee-scroll {
    display: inline-block;
}

.marquee-track {
    display: inline-flex;
    width: calc(2280px + 38rem); /* 6 * 380px items + 5 * 6rem gaps + 8rem padding */
    gap: 6rem;
    padding: 0 4rem; /* Safe padding for edges */
    align-items: center;
    vertical-align: top;
    animation: scroll-marquee 60s ease-in-out infinite alternate;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw - 2280px - 38rem)); } /* Moves offscreen precisely without percentage bugs */
}

.testimonial-item {
    font-size: 1rem; /* Restore font size inside cards */
    white-space: normal; /* Restore standard text wrapping */
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    position: relative;
}

.full-bleed-panel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 6rem;
    margin-bottom: 6rem;
    position: relative;
    overflow: hidden;
    height: 50vh; /* Cinematic widescreen height */
    background: #f0f0f0;
}

.full-bleed-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.panel-caption {
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}
.testimonial-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: var(--color-gold);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.2rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 2rem;
        padding-top: calc(var(--navbar-height) + 2rem);
    }

    .main-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .about-section {
        padding: 6rem 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 50vh;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 2rem;
    }
}

/* Footer Section */
.footer {
    background: var(--color-burgundy);
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    position: relative;
    z-index: 10;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer .editorial-label {
    color: rgba(255, 255, 255, 0.6);
}

.footer-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem); /* Matched to About Section size */
    font-weight: 400;
    color: var(--color-gold); /* Updated to gold */
    line-height: 1.1;
    margin-bottom: 2rem;
}

.footer-cta {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.footer .cta-button,
.hero .cta-button {
    background-color: var(--color-white);
    color: var(--color-burgundy);
    box-shadow: none;
}

.footer .cta-button:hover,
.hero .cta-button:hover {
    background-color: var(--color-text-main); /* Black/Charcoal */
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.footer-bottom {
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; /* For absolute logo placement */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.22rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-white);
    line-height: 1;
}

.footer-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a i {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.5;
    text-align: center;
}

@media (max-width: 1024px) {
    .footer-logo {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Project Details Page */
.project-page-content {
    margin-top: 50vh; /* Match project-hero height */
    position: relative;
    z-index: 10;
    background-color: var(--color-bg-primary);
}

.project-detail-offset {
    padding-top: 15rem !important; /* Offset for the fixed floating navbar */
}

.project-main {
    background-color: var(--color-bg-primary) !important;
}

.project-details-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}

.project-overview-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: var(--color-bg-primary);
    padding: 4rem;
}

.project-overview-box p {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.project-img-main {
    width: 100%;
    margin-bottom: 4rem;
    filter: contrast(1.05);
}

.project-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.project-img-grid img {
    width: 100%;
    height: auto;
}

.project-footer {
    text-align: center;
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #eee;
}

/* Reference-Based Project Layout (Mango Media style) */
.editorial-split-hero {
    display: flex;
    min-height: 80vh;
    margin-bottom: 6rem;
    gap: 4rem;
}

.hero-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 4rem;
}

.hero-right {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-accent-panel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.hero-accent-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=1200&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.2; /* Subtle background image instead of solid color */
    z-index: 0;
}

.hero-mockup {
    width: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    position: relative;
    z-index: 1;
}

.project-display-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.95;
    margin: 2rem 0;
    color: var(--color-text-main);
    letter-spacing: 0.01em;
}

.project-subtitle {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-burgundy);
    margin-bottom: 3rem;
}

.project-hero-overview {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 500px;
    font-family: var(--font-display);
    opacity: 0.8;
}

/* Strategic Vision Matrix */
.strategic-vision-section {
    margin-bottom: 6rem;
}

.section-header-block {
    margin-bottom: 4rem;
    text-align: left;
}

.editorial-section-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    margin-top: 1rem;
    letter-spacing: -0.02em;
}

.strategy-table {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.strategy-row {
    display: flex;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.strategy-col.label {
    flex: 0 0 30%;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-burgundy);
}

.strategy-col.content {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 750px;
}

/* Editorial Content Flow */
.project-editorial-block {
    margin-bottom: 6rem;
    scroll-margin-top: 30vh;
}

.editorial-content-flow {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.editorial-block-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.editorial-block-layout.reverse {
    flex-direction: row-reverse;
}

.block-visual {
    flex: 1.2;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.block-visual.slideshow-wrapper {
    position: relative;
    min-height: 520px;
}

.block-visual img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.block-visual.slideshow-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.block-visual.slideshow-wrapper img.active {
    opacity: 1;
    z-index: 1;
}

.block-text {
    flex: 0.8;
    align-self: center;
}

.block-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 1.5rem 0 2rem;
    letter-spacing: -0.02em;
}

.block-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.full-bleed-panel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 10rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.full-bleed-panel img {
    width: 80%;
    max-width: 1400px;
}

.panel-caption {
    color: var(--color-text-main);
    font-family: var(--font-display);
    font-size: 1.2rem;
    opacity: 0.7;
}

.vertical-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Responsive Redesign */
@media (max-width: 1024px) {
    .editorial-split-hero {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero-left {
        padding-right: 0;
        margin-bottom: 4rem;
    }

    .editorial-block-layout, 
    .editorial-block-layout.reverse {
        flex-direction: column;
        gap: 4rem;
    }

    .strategy-row {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 0;
    }

    .strategy-col.label {
        font-size: 1.2rem;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 45px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-burgundy);
    text-decoration: none;
    cursor: pointer;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    height: auto;
}

@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 100%;
    }
}

/* Project Detail Case Study Modules */
.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.color-swatch-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.color-rect {
    width: 120px;
    height: 80px;
    border-radius: 2px;
}

.color-info {
    display: flex;
    flex-direction: column;
}

.color-name {
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.color-hex {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-burgundy);
}

.color-palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.color-swatch-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-rect {
    width: 60px;
    height: 40px;
    border-radius: 2px;
}

.color-info {
    display: flex;
    flex-direction: column;
}

.color-hex {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-burgundy);
    font-weight: 500;
}

.inline-visual {
    width: 100%;
    margin-bottom: 2.5rem;
}

.inline-visual img {
    width: 100%;
    border-radius: 4px;
}

/* Immersive Section Styles */
.immersive-section {
    position: relative;
    padding: 10rem 0;
    margin-bottom: 6rem;
    overflow: hidden;
}

.section-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken to make text pop */
}

.immersive-section .section-header-block,
.immersive-section .full-bleed-panel {
    position: relative;
    z-index: 1;
}

.white-text h2, 
.white-text span {
    color: var(--color-white) !important;
}

.services-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    padding-inline: 4rem;
    text-align: center;
    background-color: var(--color-burgundy);
    color: var(--color-white);
}

.services-hero .editorial-label {
    color: var(--color-bg-primary);
}

.services-hero .project-display-title {
    color: var(--color-bg-primary);
}

.service-list {
    margin-top: 2.5rem;
    list-style: none;
    padding-left: 0;
}

.services-content {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.service-list li {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: '—';
    margin-right: 1.5rem;
    color: var(--color-burgundy);
}

.service-list li:last-child {
    border-bottom: none;
}
.service-cta {
    margin-top: 5rem; /* Significant padding from text above as requested */
    display: inline-block;
    background-color: var(--color-burgundy); /* Deep red brand color */
    color: var(--color-white);
    padding: 0.8rem 2.2rem; /* Refined 'skinner' padding */
    border-radius: var(--br-base);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-cta:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: var(--color-text-main); /* Shifts to black on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.2em;
}

.pill-btn {
    text-decoration: none;
    color: var(--color-text-main);
    padding: 0.5rem 1.1rem; /* Refined 'skinner' padding */
    border-radius: var(--br-pill);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    transition: all var(--transition-bounce);
    border: 1px solid transparent;
}

.lightbox-trigger {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.lightbox-trigger:hover {
    transform: scale(1.02);
}

/* Contact Page Specifics */
.contact-page-wrapper {
    padding: 15rem 4rem 10rem;
    background-color: var(--color-bg-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
    align-items: start;
}

.contact-info-side {
    position: relative;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-subtitle a {
    color: var(--color-text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text-main);
    transition: all 0.3s ease;
}

.contact-subtitle a:hover {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.contact-socials {
    display: flex;
    gap: 2rem;
}

.contact-socials a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-socials a:hover {
    color: var(--color-gold);
}

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-main);
    font-weight: 500;
}

.luxury-form input,
.luxury-form textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--br-base);
    padding: 1rem 1.2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.luxury-form input:focus,
.luxury-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.08);
}

.luxury-form input::placeholder,
.luxury-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.3);
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
}

.luxury-form textarea {
    resize: vertical;
    min-height: 120px;
}

.luxury-form .cta-button {
    align-self: flex-start;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    .hero-container, .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero {
        padding: 6rem 2rem;
    }
    .hero-image-side {
        height: 60vh;
    }
    .about-section {
        padding: 6rem 2rem;
    }
    .about-image {
        position: relative;
        top: 0;
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    .work-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer {
        padding: 6rem 2rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}