/* 
   COLORS & VARIABLES (Neutral/Minimalist Palette)
*/
:root {
    --bg-light: #fdfdfd;
    --bg-dark: #121212;
    --bg-darker: #0d0d0d;
    --text-main: #1f1f1f;
    --text-light: #f0f0f0;
    --text-muted: #888888;
    
    --accent: #d2a679; /* Warm wood tone */
    --accent-dark: #b88a5e;
    
    --font-primary: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --spacing-section: 8rem;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

.btn-secondary:hover {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* --- MUTED PRIMARY BUTTONS --- */
.btn-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    background-color: #333; /* Deep charcoal instead of bright green */
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-muted:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-outline-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    background-color: transparent;
    border: 1px solid #ddd;
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-muted:hover {
    border-color: #333;
    color: #000;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.4), rgba(18, 18, 18, 0.8));
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
    animation: fadeIn 1.2s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 0.4s forwards;
}

.hero h2 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--text-light);
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background-color: var(--accent);
    color: var(--text-light);
}

/* --- TYPOGRAPHY ANIMATION --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoEntrance {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* --- PREMIUM PORTFOLIO SHOWCASE --- */
.dark-portfolio {
    background-color: #0f0f10;
    background-image: linear-gradient(to top, rgba(15, 15, 16, 1) 0%, rgba(15, 15, 16, 0.85) 50%, rgba(15, 15, 16, 1) 100%), url('../assets/wardrobe.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #eee;
    padding: 10rem 0;
    min-height: 100vh;
}

.dark-portfolio .page-title, .dark-portfolio h2 {
    color: #fff;
}

/* --- HOMEPAGE PORTFOLIO WITH BACKDROP --- */
.portfolio-with-backdrop {
    position: relative;
    padding: 10rem 0;
    background-image: linear-gradient(to top, rgba(15, 15, 16, 1) 0%, rgba(15, 15, 16, 0.8) 50%, rgba(15, 15, 16, 1) 100%), url('../assets/wardrobe.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #eee;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-with-backdrop .premium-grid .grid-item {
    background-color: rgba(15, 15, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.premium-grid .grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #151515;
    aspect-ratio: 4/5;
}

.premium-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
    filter: grayscale(10%) contrast(1.05) brightness(0.95);
}

.premium-grid .grid-item:hover img {
    transform: scale(1.03);
    opacity: 0.85;
}

@media (max-width: 900px) {
    .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }
}

/* Minimal overlay */
.premium-grid .item-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0) 100%);
    color: #f7f7f7;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.premium-grid .grid-item:hover .item-overlay {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .premium-grid .item-overlay {
        transform: translateY(0);
        opacity: 0.95;
        background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.2) 100%);
        padding: 3rem 1.5rem 1.5rem;
    }
}

.premium-grid .project-name {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    font-family: var(--font-serif);
    margin-bottom: 0.3rem;
}

.premium-grid .project-location {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    font-style: normal;
}

.premium-grid .project-category { display: none; }

/* --- LIGHTBOX MODAL --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 5% auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

#modalText {
    color: var(--text-light);
    text-align: left;
    padding: 1rem 0;
}

#modalTitle {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--accent);
}

/* --- CONTACT REDESIGN --- */
.contact-redesign {
    background: #0f0f10;
    background-image: linear-gradient(to bottom, rgba(15, 15, 16, 0.85), rgba(15, 15, 16, 0.95)), url('../assets/condo.png');
    background-size: cover;
    background-position: center;
    color: #e5e5e5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Tier 1: Hero CTA */
.contact-cta {
    padding: 80px 0 100px;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-cta-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 3rem;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

.contact-cta-logo:hover {
    opacity: 1;
}

.contact-cta h2 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #f7f7f7;
    font-family: var(--font-serif);
}

.contact-subtext {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-actions .btn-outline-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: border-color 0.4s ease, color 0.4s ease;
}

.contact-actions .btn-outline-muted:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background-color: transparent;
}

/* Tier 2: Studio Info & Integrated Map */
.studio-info {
    padding: 0;
    background-color: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.studio-details {
    padding: 100px 4% 100px 0;
}

.studio-details h3 {
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 3rem;
    color: #fff;
}

.info-item label {
    color: rgba(255,255,255,0.4);
}

.info-item p, .info-item a {
    color: #eee;
    font-weight: 300;
}

.map-immersive {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background-color: #000;
    position: relative;
}

.map-immersive iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(0.9) hue-rotate(180deg) brightness(1.1) contrast(1.3);
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.map-immersive:hover iframe {
    opacity: 0.9;
}

/* Minimal Footer */
.footer {
    background: #0f0f10;
    color: rgba(255, 255, 255, 0.3);
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

/* --- SPLIT LAYOUT SECTIONS --- */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- EDITORIAL STUDIO SECTION --- */
.editorial-studio {
    background-color: #0f0f10;
    color: #f7f7f7;
    padding: 12rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.studio-text {
    max-width: 550px;
}

.studio-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.studio-text h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 300;
    font-family: var(--font-serif);
    margin-bottom: 3rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.studio-divider {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
}

.studio-text p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #9a9a9a;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.studio-text p:last-child {
    margin-bottom: 0;
}

.studio-image-wrapper {
    position: relative;
    padding: 0 2rem;
}

.framed-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(15%) contrast(1.1) brightness(0.9);
}

@media (max-width: 1024px) {
    .studio-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

/* --- SERVICES & PROCESS --- */
.services-process {
    padding: var(--spacing-section) 0;
    background-color: #fff;
}

.section-wrapper {
    display: flex;
    flex-direction: column;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--text-main);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.service-num {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    padding-top: 0.4rem;
    min-width: 20px;
}

.service-content h3 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.service-content p {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: #6a6a6a;
    line-height: 1.8;
    font-weight: 300;
}

/* --- PROCESS WORKFLOW (Horizontal) --- */
.process-workflow {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    gap: 2rem;
    padding-top: 1rem;
}

/* Connecting line */
.process-workflow::before {
    content: '';
    position: absolute;
    top: 50px; 
    left: 2%;
    right: 2%;
    height: 1px;
    background-color: #ededed;
    z-index: 1;
}

.workflow-step {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
}

.workflow-num {
    font-family: var(--font-primary);
    font-size: 4rem; 
    font-weight: 300;
    color: #f2f2f2;
    line-height: 1;
    margin-bottom: 2rem;
    display: inline-block;
    background-color: var(--bg-light);
    padding-right: 1rem;
    transition: color 0.4s ease;
}

.workflow-step:hover .workflow-num {
    color: var(--accent); /* subtle hover effect */
}

.workflow-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.workflow-desc {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: #888888;
    font-weight: 300;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .process-workflow {
        flex-direction: column;
        gap: 3.5rem;
    }
    .process-workflow::before {
        display: none;
    }
    .workflow-step {
        padding-right: 0;
        align-items: center;
        text-align: center;
    }
    .workflow-num {
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    padding: var(--spacing-section) 0;
    text-align: left;
}

.contact-map-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    min-height: 400px;
    height: 100%;
}

.premium-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* This filter makes the map dark and moody, feeling incredibly high-end */
    filter: invert(90%) hue-rotate(180deg) grayscale(80%) contrast(1.2) brightness(1.1);
    transition: filter 0.5s ease;
}

.contact-map-wrapper:hover .premium-map-iframe {
    filter: invert(90%) hue-rotate(180deg) grayscale(40%) contrast(1.1) brightness(1.1);
}

.map-link-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.map-link-overlay:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact p {
    color: #b3b3b3;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary.whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-primary.whatsapp:hover {
    background-color: #1ebe57;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
}

.location-info {
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-darker);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
}

/* --- MEDIA QUERIES (Mobile First constraints adjusted) --- */
@media (max-width: 768px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .contact-actions {
        flex-direction: column;
    }

    /* Fixed logo truncation on mobile */
    .nav-logo {
        position: absolute;
        top: 50%;
        transform: translateY(-50%) !important;
        left: 5%;
        opacity: 1 !important;
    }

    .nav-logo-img {
        height: 30px !important;
    }

    .navbar {
        padding: 1rem 0 !important;
        min-height: 60px;
    }
}

/* --- STICKY NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    background: transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 40px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-center-logo {
    width: 240px;
    height: auto;
    margin-bottom: 3rem;
    opacity: 0;
    animation: logoEntrance 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    /* Removed filters, using dedicated logo-light.png asset */
}

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

.nav-links a {
    color: var(--text-light); /* Initially light for dark hero bg */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.navbar.scrolled .nav-links a {
    color: #222; /* Dark text when scrolled */
}

/* --- NAV LOGO --- */
.nav-logo {
    position: absolute;
    left: 4%;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.navbar.scrolled .nav-logo {
    opacity: 1;
    transform: translateX(0);
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.dark-section .nav-logo-img {
    filter: invert(1); /* Ensure visibility on dark navbars */
}

.nav-logo-text {
    display: none; /* Logo image already contains the brand name */
}

.dark-section .nav-logo-text {
    color: white;
}

/* Override properties for strictly dark sections if needed */
.dark-section .nav-logo-img {
    mix-blend-mode: screen;
    filter: invert(1) brightness(2);
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #222;
}

/* --- MINIMAL FOOTER --- */
.footer {
    background-color: #0f0f0f;
    color: rgba(255,255,255,0.3);
    padding: 6rem 0;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- RESPONSIVE FALLBACKS --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile fallback, ideally a hamburger menu */
    }
    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        align-items: center;
    }
    .footer-contact {
        text-align: center;
    }

    /* Fixed contact backdrop alignment on mobile */
    .contact-redesign {
        background-attachment: scroll !important;
        background-position: center top !important;
        background-size: cover !important;
        background-repeat: no-repeat;
    }

    .contact-cta {
        padding: 60px 0 80px !important;
    }
}

/* --- PORTFOLIO PAGE --- */
.portfolio-page {
    padding: var(--spacing-section) 0;
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

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

.filter-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--bg-dark);
}

.dark-portfolio .filter-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f7f7f7;
}

.dark-portfolio .filter-btn:hover, .dark-portfolio .filter-btn.active {
    background-color: rgba(255, 255, 255, 0.95);
    color: #111;
    border-color: rgba(255, 255, 255, 0.95);
}

button.btn-secondary {
    background-color: transparent;
    cursor: pointer;
}

.load-more-container {
    text-align: center;
    margin-top: 4rem;
}

.btn-secondary.dark-text {
    color: var(--text-main);
    border-color: var(--text-main);
}
.btn-secondary.dark-text:hover {
    background-color: var(--text-main);
    color: var(--text-light);
}

.project-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* --- PREMIUM PROJECT DETAIL PAGE --- */
.dark-project {
    background-color: #111;
    color: #eee;
}

.project-header.dark-project {
    padding: 10rem 0 4rem;
    text-align: center;
}

.project-header.dark-project .project-title-large {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: var(--font-serif);
    font-weight: 300;
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.project-header.dark-project .project-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.project-header.dark-project .meta-item strong {
    color: #fff;
    margin-right: 0.5rem;
    font-weight: 400;
}

/* Storytelling Sequence Grid */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    padding-bottom: 8rem;
    max-width: 1600px;
    margin: 0 auto;
}

.project-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(1.05) brightness(0.95);
    border-radius: 2px;
}

.seq-full {
    grid-column: 1 / -1;
    max-height: 90vh;
    margin-bottom: 4rem;
}

.seq-split {
    grid-column: span 6;
    aspect-ratio: 3/4;
}

.seq-detail {
    grid-column: 4 / 10;
    aspect-ratio: 4/5;
    margin: 6rem 0;
}

@media (max-width: 768px) {
    .project-gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 8rem;
    }
    .seq-full {
        max-height: 60vh;
    }
    .seq-split, .seq-detail {
        grid-column: 1 / -1;
        aspect-ratio: auto;
        margin: 3rem 0;
    }
}
