/* Hide Google Translate UI completely to avoid flashing */
.goog-te-banner-frame.skiptranslate, 
.skiptranslate > iframe,
iframe.skiptranslate,
iframe.VIpgJd-Zvi9od-xl07Ob-OEVmcd,
#goog-gt-tt, .goog-te-balloon-frame { 
    display: none !important; 
    visibility: hidden !important; 
    opacity: 0 !important; 
    width: 0 !important;
    height: 0 !important;
}
body { top: 0px !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #f5f5f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #050505;
}

body {
    background-color: #050505;
    color: var(--text-primary);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) #050505;
}

/* Typography */
h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* Minimalist Section Header System */
.section-header-minimal {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.section-kicker-small {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.75;
}

.section-title-medium {
    font-size: clamp(1.15rem, 2.6vw, 1.65rem);
    font-weight: 300; /* Medium-light styling */
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent; /* Completely transparent at start */
    border-bottom: 1px solid rgba(255, 255, 255, 0); /* Faint transparent border at start */
    transition: transform 1.0s cubic-bezier(0.15, 1, 0.3, 1), padding 0.5s ease, background-color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

/* Scrolled matte luxury solid background */
.navbar.scrolled {
    background: #050505; /* Solid velvet black */
    padding: 1.1rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}



.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 24px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.8;
}

.lang-switcher {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    transition: color 0.4s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1.5rem; /* space between separator and text */
}

.lang-switcher:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101; /* Above the overlay */
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 28px;
    height: 1px;
    background-color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem; /* Tiny & premium */
    font-weight: 400;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.4s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Underline slide animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Nav subtitle (Arabic translation below English label) */
.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.nav-sub {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.6;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 300;
    transition: opacity 0.4s ease;
}

.nav-links a:hover .nav-sub {
    opacity: 1;
}

.nav-links a.active .nav-sub {
    opacity: 0.85;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax scrolling effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Removed dimming overlay per user request */
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.25;
    margin-bottom: 2.5rem;
    color: #ffffff;
    font-weight: 300; /* Luxury thin styling */
    letter-spacing: -0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    height: clamp(34px, 5.3vw, 60px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #e0e0e0;
    max-width: 450px;
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-cta-btn {
    display: inline-block;
    margin-top: 2rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    padding: 0.6rem 2.2rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-btn:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-color) !important; /* Turns pitch black */
    border-color: var(--text-primary) !important;
}

.hero-bottom-text {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 10%;
    z-index: 2;
}

.credit {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.credit .name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 5px;
}

.credit .role {
    font-size: 0.65rem;
    color: #b0b0b0;
    letter-spacing: 1px;
}

/* Containers */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 6rem 5%;
}

/* Sections */
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-text {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.8;
}

/* About */
.about {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8rem 0 2rem; /* Reduced bottom padding for a closer transition */
}

.about .container {
    padding-top: 0;
    padding-bottom: 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2.2fr; /* 2 columns for RTL layout */
    gap: 4rem;
    align-items: start;
    text-align: right;
    max-width: 1100px;
    margin: 0 auto;
}

.about-brand {
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 3rem;
}

.about-brand .brand-logo {
    font-size: 3rem;
    font-weight: 300; /* Luxury thin styling */
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.about-brand .brand-sub {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    transform: translateY(10px);
    margin-bottom: 1.5rem;
}

.about-brand .brand-est {
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: inline-block;
    width: 80%;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-details p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

.about-meta, .about-scope {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meta-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.meta-group p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-group ul {
    list-style: none;
    padding: 0;
}

.meta-group li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr; /* Stack beautifully on tablet/mobile */
        gap: 3rem;
    }
    .about-brand {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    .about-details p {
        text-align: center;
    }
}

/* Gallery */
.gallery {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0 4.5rem; /* Aligned with standard vertical paddings and margins */
    background-color: #050505;
    overflow: visible;
}

/* Gallery Layout */
.collapsible-gallery {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    height: 500px; /* Stately locked vertical height of the monumental collage */
    overflow: visible;
}

.gallery-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: flex 5.0s cubic-bezier(0.1, 1, 0.1, 1); /* Double the slow drift duration to 5 seconds */
}

.gallery-col.col-portrait {
    flex: 1.2;
}

.gallery-col.col-landscape-group {
    flex: 1;
    gap: 1.5rem;
}

.monolithic-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.03); /* Delicate fine border outline */
    display: flex;
    flex-direction: column;
    transition: border-color 4.0s cubic-bezier(0.1, 1, 0.1, 1),
                box-shadow 4.0s cubic-bezier(0.1, 1, 0.1, 1),
                flex 5.0s cubic-bezier(0.1, 1, 0.1, 1);
}

/* Portrait direct items take full height of column */
.gallery-col.col-portrait .monolithic-item {
    height: 100%;
}

/* Landscape nested items share height inside the column */
.gallery-col.col-landscape-group .monolithic-item {
    flex: 1;
    height: auto; /* Governed by flex share */
}

/* KINETIC ZERO-OVERLAP GRID EXPANSION & SHRINKAGE */

/* Width adjustments: when gallery is hovered, columns shrink by default, and hovered column expands */
.collapsible-gallery:hover .gallery-col {
    flex: 0.9; /* Minimal surrounding width shrinkage for peak atmospheric restraint */
}

.collapsible-gallery .gallery-col:hover {
    flex: 1.3; /* Quiet, whisper-soft width expansion */
}

/* Height adjustments: inside the landscape column, unhovered items shrink, hovered expands */
.gallery-col.col-landscape-group:hover .monolithic-item {
    flex: 0.9; /* Minimal surrounding height shrinkage */
}

.gallery-col.col-landscape-group .monolithic-item:hover {
    flex: 1.2; /* Quiet, whisper-soft vertical expansion */
}

/* Image & Hover details */
.monolithic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 7.0s cubic-bezier(0.1, 1, 0.1, 1); /* Massively slow cinematic zoom drift (7 seconds!) */
}

.monolithic-item:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.monolithic-item:hover img {
    transform: scale(1.02); /* Absolute pinnacle of whisper-quiet luxury drift (2% micro-zoom) */
}

/* Elegant Text Overlay */
.monolithic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.8rem 2rem;
    z-index: 4;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.4) 60%, transparent 100%);
}

.monolithic-category {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.85;
    transition: color 0.6s ease;
}

.monolithic-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
}

.monolithic-desc {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(10px);
    margin: 0.2rem 0 0 0;
    transition: opacity 3.5s cubic-bezier(0.1, 1, 0.1, 1),
                transform 3.5s cubic-bezier(0.1, 1, 0.1, 1); /* meditative text entry */
}

/* Hover Details Reveal */
.monolithic-item:hover .monolithic-desc {
    opacity: 0.95;
    transform: translateY(0);
}

.monolithic-item:hover .monolithic-category {
    color: #ffffff;
}

/* Responsive Grid System */
/* Responsive Layout */
@media (max-width: 1024px) {
    .collapsible-gallery {
        flex-direction: column;
        height: auto;
        gap: 2rem;
    }
    
    .gallery-col {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .gallery-col.col-landscape-group {
        gap: 2rem;
    }
    
    .gallery-col.col-portrait .monolithic-item {
        height: 380px !important;
    }
    
    .gallery-col.col-landscape-group .monolithic-item {
        flex: none !important;
        height: 240px !important;
    }
    
    /* Disable interactive flex expansions on tablet/mobile */
    .collapsible-gallery:hover .gallery-col {
        flex: none !important;
    }
    .collapsible-gallery .gallery-col:hover {
        flex: none !important;
    }
    .gallery-col.col-landscape-group:hover .monolithic-item {
        flex: none !important;
    }
    .gallery-col.col-landscape-group .monolithic-item:hover {
        flex: none !important;
    }
    
    .monolithic-desc {
        opacity: 0.95;
        transform: none;
    }
}

@media (max-width: 600px) {
    .collapsible-gallery {
        gap: 1.5rem;
    }
    
    .gallery-col.col-landscape-group {
        gap: 1.5rem;
    }
    
    .gallery-col.col-portrait .monolithic-item {
        height: 340px !important;
    }
    
    .gallery-col.col-landscape-group .monolithic-item {
        height: 200px !important;
    }
}

/* Editorial Articles Section */
.articles {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0 4.5rem; /* Matched to the perfect spacing between Gallery and Articles */
    background-color: var(--bg-color);
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.articles-header .section-title {
    margin-bottom: 0;
}

.section-subtitle-small {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 420px;
    line-height: 1.7;
    text-align: right;
}

.editorial-typo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5rem;
    margin-top: 4rem;
}

.inspired-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-decoration: none;
    cursor: pointer;
}

.inspired-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
}

.inspired-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspired-card:hover .inspired-img-wrapper img {
    transform: scale(1.05);
}

.inspired-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inspired-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
    transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspired-card:hover .inspired-card-header {
    border-color: rgba(255, 255, 255, 0.3);
}

.inspired-card-title {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspired-card:hover .inspired-card-title {
    color: var(--text-primary);
}

.inspired-card-kicker {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 300;
}

.inspired-card-desc {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 0.8rem;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspired-card:hover .inspired-card-desc {
    opacity: 1;
}

.articles-4-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4.5rem 2rem;
    margin-top: 3rem;
}
@media (max-width: 1200px) {
    .articles-4-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .articles-4-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .editorial-typo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .editorial-typo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2rem;
        margin-top: 2rem;
    }
    .editorial-typo-grid .inspired-img-wrapper {
        height: 180px;
    }
    .editorial-typo-grid .inspired-card-title {
        font-size: 1.05rem;
    }
    .editorial-typo-grid .inspired-card-kicker {
        font-size: 0.75rem;
    }
    .editorial-typo-grid .inspired-card-desc {
        font-size: 0.82rem;
        line-height: 1.7;
    }
}

@media (max-width: 550px) {
    .editorial-typo-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 2rem;
    }
    .editorial-typo-grid .inspired-img-wrapper {
        height: 220px;
    }
    .editorial-typo-grid .inspired-card-title {
        font-size: 1.15rem;
    }
    .editorial-typo-grid .inspired-card-kicker {
        display: inline-block;
        font-size: 0.78rem;
    }
    .editorial-typo-grid .inspired-card-desc {
        font-size: 0.88rem;
        line-height: 1.8;
    }
}

/* Footer Styles */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5rem 0 3rem;
    background-color: var(--bg-color);
}

/* Minimalist Contact CTA Section */
.contact-cta-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5.5rem 0; /* Refined breathing room to match page margins */
    background-color: var(--bg-color);
    text-align: center;
    position: relative;
}

.contact-cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-cta-content {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Tighter, more cohesive flow */
}

.contact-cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem); /* Masterfully balanced size that whispers luxury */
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.3px;
}

.contact-cta-desc {
    font-size: 0.9rem; /* Delicate, elegant editorial typography */
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-secondary);
    opacity: 0.7; /* Soft contrast for a true quiet premium feel */
    margin: 0 auto;
    max-width: 580px;
}

.contact-cta-btn {
    margin-top: 0.8rem;
    align-self: center !important;
}

@media (max-width: 768px) {
    .contact-cta-section {
        padding: 4.5rem 0;
    }
}

/* Contact Section Styles (Redesigned with Premium Luxury Theme) */
.contact-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0 8rem; /* Top padding aligned to match the vertical spacing above */
    background-color: var(--bg-color);
    position: relative;
}

.contact-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.3fr;
    gap: 7rem;
    align-items: start;
}

/* Left Column: Studio Board */
.contact-studio-card {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.studio-frame {
    position: relative;
    height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.studio-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-frame:hover .studio-image {
    transform: scale(1.05);
}

.studio-frame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0) 20%, rgba(5, 5, 5, 0.85) 100%);
    z-index: 2;
}

.studio-frame-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.2rem;
    text-align: right;
}

.studio-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.studio-frame-title {
    font-size: 1.45rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--text-primary);
}

.studio-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.8rem;
    max-width: 380px; /* Keep key-value columns connected and premium */
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    font-size: 0.72rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.meta-val {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Right Column: Form */
.contact-form-wrapper {
    text-align: right;
}

.align-start {
    text-align: right;
    align-items: flex-start;
    margin-bottom: 3.5rem;
}

.contact-form-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 300;
    line-height: 1.35;
    color: var(--text-primary);
    max-width: 680px;
    margin: 0.6rem 0 0.8rem 0;
}

.section-desc-light {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0.85;
}

.contact-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group-floating {
    position: relative;
    margin-bottom: 2.2rem;
    width: 100%;
}

.form-input-luxury, .form-textarea-luxury {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8rem 0;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-primary);
    font-family: inherit;
    text-align: right;
    transition: border-color 0.4s ease;
}

.form-textarea-luxury {
    resize: none;
    min-height: 42px;
    line-height: 1.6;
    overflow-y: hidden;
    box-sizing: border-box;
    field-sizing: content;
}

.form-input-luxury:focus, .form-textarea-luxury:focus {
    outline: none;
}

.form-input-luxury::placeholder,
.form-textarea-luxury::placeholder {
    color: transparent;
    opacity: 0;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.form-input-luxury:focus::placeholder,
.form-textarea-luxury:focus::placeholder {
    color: rgba(255, 255, 255, 0.32);
    opacity: 1;
}

.form-label-luxury {
    position: absolute;
    right: 0;
    top: 0.8rem;
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0.85;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), font-size 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

/* Floating behavior */
.form-input-luxury:focus ~ .form-label-luxury,
.form-input-luxury:not(:placeholder-shown) ~ .form-label-luxury,
.form-textarea-luxury:focus ~ .form-label-luxury,
.form-textarea-luxury:not(:placeholder-shown) ~ .form-label-luxury {
    transform: translateY(-1.8rem) scale(0.85);
    opacity: 0.9;
    color: #ffffff;
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input-luxury:focus ~ .input-focus-line,
.form-textarea-luxury:focus ~ .input-focus-line {
    width: 100%;
}

/* Services Chip group */
.form-group-services {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 4rem;
}

.services-label {
    font-size: 0.78rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.service-chip {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.service-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip-content {
    display: inline-block;
    padding: 0.55rem 1.3rem;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-chip:hover .chip-content {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.service-chip input:checked + .chip-content {
    background-color: rgba(197, 168, 128, 0.08);
    border-color: #c5a880;
    color: #c5a880;
}

/* Luxury Submit Button */
.submit-btn-luxury {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.72rem 2.2rem;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn-luxury::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.submit-btn-luxury:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn-luxury:hover {
    border-color: #ffffff;
}

.submit-btn-luxury:hover .btn-text {
    color: #050505;
}

.submit-btn-luxury:hover .btn-icon {
    color: #050505;
    transform: translateX(5px); /* Slide right */
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    
    .contact-studio-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .contact-section {
        padding: 6rem 0 5rem;
    }
}


.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 3rem;
    text-align: right;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 0.8;
}

.footer-about-text {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease, padding-right 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-right: 4px;
}

.footer-info-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .brand-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 90;
    }
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }
    .nav-links a {
        font-size: 1.1rem;
        font-weight: 300;
        letter-spacing: 3px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* About Page Specific Styles */
.about-page-section {
    padding: 5rem 0 1rem;
    background-color: var(--bg-color);
}

.about-page-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

.nav-links a.active {
    color: var(--text-primary) !important;
}

.nav-links a.active::after {
    transform: scaleX(1) !important;
}

/* Gallery Page Specific Styles */
.gallery-page-section {
    padding: 8rem 0 10rem;
    background-color: #050505;
    overflow: hidden;
}

.gallery-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.gallery-nav-controls {
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.gallery-nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-nav-btn:hover {
    background-color: var(--text-primary);
    color: #050505;
    border-color: var(--text-primary);
}

.gallery-page-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 5% 6rem; /* extra bottom padding for staggered child elements */
    scrollbar-width: none; /* Firefox */
}

.gallery-page-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.gallery-page-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    align-items: flex-start;
}

.gallery-page-item {
    position: relative;
    width: 280px; /* Solid base width for collapsed cards */
    height: 480px; /* Elegant tall vertical orientation */
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    transition: width 2.2s cubic-bezier(0.15, 1, 0.3, 1), transform 2.2s cubic-bezier(0.15, 1, 0.3, 1);
}

/* Maintain beautiful staggered luxury layout */
.gallery-page-item:nth-child(even) {
    transform: translateY(50px);
}

.gallery-page-item:hover {
    width: 480px; /* Smooth horizontal expansion */
}

.gallery-page-item:hover:nth-child(even) {
    transform: translateY(50px);
}

.gallery-page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Lenis Smooth Scroll Core Styles */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Elegant Gallery System */
.elegant-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.elegant-gallery-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.elegant-gallery-card:nth-child(even) {
    margin-top: 2rem;
}

.eg-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 2px;
}

.eg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), filter 1.6s ease;
    filter: brightness(0.9) grayscale(10%);
}

.elegant-gallery-card:hover .eg-image-wrapper img {
    transform: scale(1.04);
    filter: brightness(1.1) grayscale(0%);
}

.eg-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.eg-category {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.eg-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
}

.elegant-gallery-card:hover .eg-category {
    color: #fff;
}

@media (max-width: 900px) {
    .elegant-gallery-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-bottom: 0;
    }
    .elegant-gallery-card:nth-child(even) {
        margin-top: 0;
    }
    .eg-image-wrapper {
        aspect-ratio: 4 / 3;
    }
}

/* Elegant Articles List Design */
.elegant-article-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ea-item {
    display: grid;
    grid-template-columns: 40px 110px 1.4fr 2fr 40px;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.4s ease;
    cursor: pointer;
}

.ea-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ea-index {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.ea-image {
    width: 110px;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 2px;
    flex-shrink: 0;
}

.ea-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: all 0.6s ease;
}

.ea-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ea-title {
    font-size: 1.5rem;
    font-weight: 400;
}

.ea-kicker {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.ea-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ea-arrow {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    text-align: left;
    transition: transform 0.4s ease, color 0.4s ease;
}

.ea-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.ea-item:hover .ea-image img {
    filter: brightness(1);
    transform: scale(1.05);
}

.ea-item:hover .ea-arrow {
    transform: translateX(-10px);
    color: var(--text-primary);
}

@media (max-width: 1100px) {
    .split-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 5% 5rem;
    }
    .split-sidebar {
        display: none;
    }
    .group-nav {
        display: flex;
    }
}
@media (max-width: 768px) {
    .ea-item {
        grid-template-columns: 28px 80px 1fr;
        gap: 1.2rem;
        padding: 2rem 0;
    }
    .ea-text-col {
        display: none;
    }
    .ea-image {
        width: 80px;
    }
    .ea-title {
        font-size: 1.1rem;
    }
}
@media (max-width: 480px) {
    .ea-item {
        grid-template-columns: 24px 70px 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .ea-index {
        display: none;
    }
    .ea-item {
        grid-template-columns: 70px 1fr;
    }
}

/* ═══════════════════════════════════════
   Articles Page — Full Width Layout
═══════════════════════════════════════ */
.articles-main {
    padding-top: 110px;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.articles-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 4rem 5% 8rem;
}

/* Group navigation */
.group-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.group-nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    padding: 0.4rem 1.1rem;
    font-size: 0.72rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}
.group-nav-btn.active,
.group-nav-btn:hover {
    border-color: rgba(255,255,255,0.55);
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

/* Section: header above + full-width list */
.art-section {
    width: 100%;
}

.art-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    border-bottom: none;
}
.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.art-kicker {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.art-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.2;
}

.art-list {
    display: flex;
    flex-direction: column;
}

/* ea-item overrides for new layout */
.ea-text-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ea-read-more {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease;
}
.ea-item:hover .ea-read-more {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .art-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .art-title { font-size: 1.4rem; }
    .art-section-header { margin-bottom: 2rem; }
}
@media (max-width: 480px) {
    .group-nav-btn { padding: 0.4rem 0.9rem; font-size: 0.7rem; }
}


.figure-row {
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.4s ease;
}
.figure-row:first-child {
    padding-top: 0;
}
.figure-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.fr-image {
    width: 140px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.figure-row:hover .fr-image {
    width: 180px;
}
.fr-image::after {
    content: 'اقرأ الآن';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 2px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 400;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}
.figure-row:hover .fr-image::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
html[lang="en"] .fr-image::after {
    content: 'Read Now';
    letter-spacing: 0.5px;
}
.fr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: all 0.6s ease;
}
.figure-row:hover .fr-image img {
    filter: brightness(1);
}
.fr-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.fr-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.fr-name {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: color 0.4s ease;
}
.fr-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.fr-body p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.9;
    transition: color 0.4s ease;
}
.figure-row:hover .fr-name {
    color: #fff;
}
.figure-row:hover .fr-body p {
    color: #ddd;
}
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
        gap: 3rem;
        padding: 4rem 5%;
    }
    .split-header-col {
        position: static;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
    }
}
@media (max-width: 600px) {
    .figure-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2.5rem 0;
    }
    .fr-image {
        width: 100% !important;
        height: 250px;
    }
}

        /* override body for dark theme matching the rest of the site */
        body {
            background-color: #050505 !important;
            color: var(--text-primary) !important;
        }

        /* Museum Staggered Flex Grid (Perfect rectangle boundary with dynamic internal heights) */
        .museum-grid {
            display: flex;
            gap: 3.5rem;
            padding: 6rem 6% 12rem;
            background-color: #050505;
            max-width: 1600px;
            margin: 0 auto;
        }
        .museum-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5.5rem; /* Enforces equal vertical spacing inside all columns */
        }

        /* Museum Item Card */
        .museum-item {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 0.9rem;
            cursor: pointer;
            text-decoration: none;
            position: relative;
            opacity: 0; /* يمنع ظهور البطاقات فجأة قبل بدء الأنيميشن */
        }
        .museum-img-wrapper {
            width: 100%;
            overflow: hidden;
            border-radius: 1px;
            background-color: #111111;
            /* Ultra-smooth transition for the scale and shadow */
            transition: transform 2.5s cubic-bezier(0.15, 1, 0.3, 1),
                        box-shadow 2.5s cubic-bezier(0.15, 1, 0.3, 1);
            position: relative;
            z-index: 1;
        }

        /* Three distinct responsive aspect ratios that mathematically sum up to 3.55 * W per column */
        .museum-img-wrapper.tall {
            aspect-ratio: 2 / 3;
        }
        .museum-img-wrapper.medium {
            aspect-ratio: 4 / 5;
        }
        .museum-img-wrapper.short {
            aspect-ratio: 5 / 4;
        }

        /* The morphing hover animation: Grows to a perfect square aspect ratio (1 / 1) */
        .museum-item:hover .museum-img-wrapper {
            transform: scale(1.02); /* Expands/grows the size slightly and elegantly */
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6); /* Premium deep dark shadow on active item */
            z-index: 10;
        }

        .museum-img-wrapper img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            transition: transform 2.5s cubic-bezier(0.15, 1, 0.3, 1);
        }
        
        .museum-item:hover .museum-img-wrapper img {
            transform: scale(1.08); /* Slow majestic luxury cinematic zoom */
        }
        
        .museum-caption {
            font-size: 0.72rem;
            font-weight: 300;
            color: var(--text-secondary);
            text-align: right;
            letter-spacing: 0.5px;
            opacity: 0.85;
            font-family: 'IBM Plex Sans Arabic', sans-serif;
            transition: color 0.8s cubic-bezier(0.15, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.15, 1, 0.3, 1);
        }
        .museum-item:hover .museum-caption {
            color: var(--text-primary);
            opacity: 1;
        }

        /* Responsive Breakpoints */
        @media (max-width: 1200px) {
            .museum-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 2.5rem;
                padding: 4rem 5%;
            }
            .museum-column {
                gap: 2.5rem;
            }
            .museum-img-wrapper.tall, .museum-img-wrapper.medium, .museum-img-wrapper.short {
                aspect-ratio: 1 / 1; /* Standardize on smaller tablets for layout stability */
            }
        }
        @media (max-width: 768px) {
            .museum-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
                padding: 2.5rem 4%;
            }
            .museum-img-wrapper.tall {
                aspect-ratio: 2 / 3;
            }
            .museum-img-wrapper.medium {
                aspect-ratio: 4 / 5;
            }
            .museum-img-wrapper.short {
                aspect-ratio: 5 / 4;
            }
            /* Disable morph animation on mobile to prevent layout shifts */
            .museum-item:hover .museum-img-wrapper {
                aspect-ratio: inherit !important;
                transform: none;
                box-shadow: none;
            }
        }
        @media (max-width: 480px) {
            .museum-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
                padding: 2rem 3%;
            }
            .museum-column {
                gap: 1rem;
            }
            .museum-img-wrapper.tall {
                aspect-ratio: 2 / 3;
            }
            .museum-img-wrapper.medium {
                aspect-ratio: 4 / 5;
            }
            .museum-img-wrapper.short {
                aspect-ratio: 5 / 4;
            }
            .museum-caption {
                font-size: 0.65rem;
                letter-spacing: 0;
            }
        }
    


/* ==========================================================================
   Teardown Page Layout
   ========================================================================== */

.teardown-main {
    background-color: var(--bg-color);
    min-height: 100vh;
}

/* Hero Section */
.td-hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-bottom: 4rem;
}
.td-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.9) 100%);
}
.td-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 5%;
}
.td-hero-kicker {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
}
.td-hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.1;
}

/* Split Section (Text on Right, Info on Left) */
.td-split-section {
    padding: 4rem 0 8rem;
}
.td-split-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2fr for text (right), 1fr for info (left) */
    gap: 6rem;
    align-items: start;
}

/* Right Column: Paragraph */
.td-text-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.td-section-title {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.td-paragraph {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Left Column: Stacked Info */
.td-info-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
}
.td-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.td-info-item:first-child {
    padding-top: 0;
}
.td-info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.td-info-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.td-info-value {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 300;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
    .td-split-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}


/* ==========================================================================
   Teardown: Market Reality Section
   ========================================================================== */
.td-market-section {
    padding: 6rem 0 8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.td-market-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 5%;
}
.td-market-header {
    margin-bottom: 5rem;
}
.td-kicker {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}
.td-market-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.2;
}
.td-market-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}
.td-market-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.td-market-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.2rem;
}

@media (max-width: 900px) {
    .td-market-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* Teardown: Anatomy Section */
.td-anatomy-section {
    padding: 8rem 0;
    background-color: #030303;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.td-anatomy-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 5%;
}
.td-anatomy-header {
    margin-bottom: 5rem;
}
.td-anatomy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.td-anatomy-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 3rem 2.5rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease, border-color 0.5s ease;
}
.td-anatomy-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}
.td-anatomy-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
    font-family: 'Cormorant Garamond', serif;
}
.td-anatomy-card:hover .td-anatomy-number {
    color: rgba(255, 255, 255, 0.3);
}
.td-anatomy-title {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.td-anatomy-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .td-anatomy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .td-anatomy-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   Study Case Pages Styles
   ========================================================== */

.case-main {
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding-top: 0; /* Hero goes full top */
}

/* --- Hero Section --- */
.case-hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: brightness(0.6) grayscale(20%);
}

.case-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, rgba(5,5,5,1) 0%, rgba(5,5,5,0.4) 60%, rgba(5,5,5,0) 100%);
}

.case-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.case-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.case-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 5rem;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

/* --- Overview Section --- */
.case-overview {
    position: relative;
    z-index: 2;
    padding: 2.5rem 0 3.5rem 0;
    background-color: var(--bg-color);
}

.case-overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-text h2 {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.overview-text p {
    font-size: 1.25rem;
    line-height: 2.2;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.overview-meta {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 3rem;
}

[dir="ltr"] .overview-meta {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-left: 3rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overview-meta .meta-item {
    align-items: center !important;
    text-align: center !important;
}

.meta-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 300;
}

/* --- Gallery Section --- */
.case-gallery {
    position: relative;
    z-index: 2;
    padding: 0 0 8rem 0;
    background-color: var(--bg-color);
}

.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1450px;
    padding: 0 5%;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.next-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .next-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .next-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific Asymmetric Grid for Case Studies */
.study-case-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 260px 200px 240px;
    gap: 1.5rem;
    width: 100%;
    max-width: 1450px;
    padding: 0 5%;
    margin: 0 auto;
}

.study-case-grid .gallery-item {
    aspect-ratio: auto;
}

.study-case-grid .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.study-case-grid .gallery-item:nth-child(2) { grid-column: 3;     grid-row: 1 / 3; }
.study-case-grid .gallery-item:nth-child(3) { grid-column: 1;     grid-row: 2; }
.study-case-grid .gallery-item:nth-child(4) { grid-column: 2;     grid-row: 2; }
.study-case-grid .gallery-item:nth-child(5) { grid-column: 1;     grid-row: 3; }
.study-case-grid .gallery-item:nth-child(6) { grid-column: 2 / 4; grid-row: 3; }

/* Support for 7-item grids (e.g. Beam) */
.study-case-grid.grid-7 .gallery-item:nth-child(5),
.study-case-grid:has(.gallery-item:nth-child(7)) .gallery-item:nth-child(5) { grid-column: 1; grid-row: 3; }
.study-case-grid.grid-7 .gallery-item:nth-child(6),
.study-case-grid:has(.gallery-item:nth-child(7)) .gallery-item:nth-child(6) { grid-column: 2; grid-row: 3; }
.study-case-grid.grid-7 .gallery-item:nth-child(7),
.study-case-grid:has(.gallery-item:nth-child(7)) .gallery-item:nth-child(7) { grid-column: 3; grid-row: 3; }

.gallery-item.large {
    column-span: all;
    aspect-ratio: 21/9;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.03) translateZ(0);
}

.gallery-item .gallery-hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-item:hover .gallery-hover-video {
    opacity: 1;
    transform: scale(1.03) translateZ(0);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 0.4rem 0;
    transform: translateY(8px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay-title {
    transform: translateY(0);
}

.gallery-overlay-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin: 0;
    transform: translateY(8px);
    transition: transform 0.4s ease 0.05s;
}

.gallery-item:hover .gallery-overlay-desc {
    transform: translateY(0);
}

/* --- Navigation Section --- */
.case-navigation {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-color);
}

.reflection-cta-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.4s ease;
    border-radius: 4px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    letter-spacing: 0.5px;
}

.reflection-cta-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* ==========================================================================
   REFLECTIONS SECTION ("What I Say" / "ماذا أقول") SPACING
   - Original / Default state (stored for reference):
       padding: 7rem 0; (padding-top: 7rem / 112px; margin-top: 0;)
   - Pulled-up state (active across all projects):
       padding-top: 3.5rem !important; (56px) - reduces gap above section by 50%
   To revert back to original position (7rem) across all projects at any time:
       Change 3.5rem below back to 7rem (or comment out this rule).
   ========================================================================== */
.case-reflections,
.case-reflections.pulled-up {
    padding-top: 3.5rem !important;
}

/* Next Project Section */

.back-to-all {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-to-all:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .case-overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .overview-meta {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-top: 3rem;
        flex-direction: row;
        gap: 4rem;
    }
    .case-title {
        font-size: 3.5rem;
    }
    .gallery .container {
        padding-left: 3%;
        padding-right: 3%;
    }
    .case-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .gallery-item {
        aspect-ratio: 2/3;
    }
    .gallery-item.large {
        grid-column: span 2;
        aspect-ratio: 4/3;
    }
}

/* --- Video Modal --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(15px);
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.4s ease, opacity 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.video-modal-close:hover {
    transform: rotate(90deg);
    opacity: 1;
    border-color: rgba(255,255,255,0.3);
}

.video-modal-content {
    width: 85%;
    max-width: 1400px;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    position: relative;
}

.video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: none;
}
/* --- Workflow Section (About Page) --- */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
.workflow-step {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    transition: background 0.5s ease;
    cursor: default;
}
.workflow-step-1, .workflow-step-2 {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.workflow-step-1, .workflow-step-3 {
    border-left: 1px solid rgba(255,255,255,0.06);
}
.workflow-step-num {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-primary);
    opacity: 0.1;
    line-height: 1;
    display: block;
    letter-spacing: 2px;
}
.workflow-step-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.workflow-step-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}
.workflow-step-desc {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-secondary);
    opacity: 0.75;
    margin: 0;
    font-weight: 300;
}

/* --- Scattered Gallery (About Page) --- */
.scattered-images-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 2rem 4rem 6rem 4rem;
    flex-wrap: nowrap;
    overflow: hidden;
}
.img-1 { width: 190px; height: 280px; object-fit: cover; flex-shrink: 0; margin-top: 0; filter: grayscale(100%); }
.img-2 { width: 155px; height: 155px; object-fit: cover; flex-shrink: 0; margin-top: 110px; filter: grayscale(100%); }
.img-3 { width: 225px; height: 320px; object-fit: cover; flex-shrink: 0; margin-top: 40px; filter: grayscale(100%); }
.img-4 { width: 270px; height: 175px; object-fit: cover; flex-shrink: 0; margin-top: 140px; filter: grayscale(100%); }
.img-5 { width: 180px; height: 265px; object-fit: cover; flex-shrink: 0; margin-top: 25px; filter: grayscale(100%); }

@media (max-width: 900px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
    .workflow-step-1, .workflow-step-3 {
        border-left: none;
    }
    .workflow-step-3 {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .workflow-step {
        padding: 3rem 1.5rem;
    }
    
    .scattered-images-container {
        flex-wrap: wrap;
        padding: 1rem 1.5rem 3rem 1.5rem;
        gap: 1.5rem;
        align-items: center;
        overflow: visible;
    }
    .img-1, .img-2, .img-4, .img-5 {
        width: calc(50% - 0.75rem);
        height: auto;
        aspect-ratio: 4/5;
        margin-top: 0;
        flex-shrink: 1;
    }
    .img-3 {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin-top: 0;
        flex-shrink: 1;
    }
}

/* --- Case Study Overrides --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.12);
}
.result-item {
    padding: 2.5rem 2rem;
}
.result-item:not(:first-child) {
    border-right: 1px solid rgba(255,255,255,0.12);
}

.breakdowns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 768px) {
    /* Make Results fit on mobile while staying 3 columns */
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .result-item {
        padding: 1rem 0.2rem !important;
    }
    .result-item h3 {
        font-size: 1.6rem !important;
        margin-bottom: 0.2rem !important;
    }
    .result-item p {
        font-size: 0.65rem !important;
        letter-spacing: 1px !important;
    }
    
    /* Make Breakdowns stack gracefully instead of crushing */
    .breakdowns-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    /* Restore Pre-production mosaic grid but fix the squished row heights */
    .study-case-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        grid-template-rows: 110px 85px 100px;
        gap: 0.5rem;
    }
    /* Let them use their original nth-child spans without overriding */
}

@media (max-width: 768px) {
    .about-hero {
        background-position: center -180px !important;
    }
}

/* LTR Direction Overrides */
[dir="ltr"] p, 
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4, [dir="ltr"] h5, [dir="ltr"] h6,
[dir="ltr"] .footer-about-text,
[dir="ltr"] .about-details p,
[dir="ltr"] .gallery-overlay-title,
[dir="ltr"] .gallery-overlay-desc,
[dir="ltr"] .inspired-card-desc,
[dir="ltr"] .contact-info p,
[dir="ltr"] .form-group label,
[dir="ltr"] .form-group input,
[dir="ltr"] .form-group textarea,
[dir="ltr"] .inspired-card-content,
[dir="ltr"] .footer-col,
[dir="ltr"] .section-title-medium,
[dir="ltr"] .section-kicker-small,
[dir="ltr"] .project-details-content {
    text-align: left !important;
}

[dir="ltr"] p.hero-subtitle {
    text-align: center !important;
}

[dir="ltr"] .project-info {
    border-right: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-right: 0 !important;
    padding-left: 3rem !important;
}

[dir="ltr"] .project-content {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-left: 0 !important;
    padding-right: 3rem !important;
}

/* LTR Overrides for newly added components */
[dir="ltr"] .about-container { text-align: left; }
[dir="ltr"] .about-brand { border-left: none; border-right: 1px solid rgba(255, 255, 255, 0.05); padding-left: 0; padding-right: 3rem; }
@media (max-width: 1024px) { [dir="ltr"] .about-brand { border-right: none; padding-right: 0; } }
[dir="ltr"] .about-stats h3 { text-align: end !important; }

[dir="ltr"] .monolithic-info { text-align: left; }
[dir="ltr"] .section-subtitle-small { text-align: left; }
[dir="ltr"] .studio-frame-content { text-align: left; }
[dir="ltr"] .contact-form-wrapper { text-align: left; }
[dir="ltr"] .align-start { text-align: left; }
[dir="ltr"] .form-input-luxury, [dir="ltr"] .form-textarea-luxury { text-align: left; }
[dir="ltr"] .form-label-luxury { right: auto; left: 0; transform-origin: top left; }
[dir="ltr"] .input-focus-line { right: auto; left: 0; }

[dir="ltr"] .footer-info-item { text-align: left; }

/* Keep Navbar Layout RTL */
[dir="ltr"] .navbar { direction: rtl; }

/* Adjust Button visual weight for English */
[dir="ltr"] .hero-cta-btn {
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 1px;
}

[dir="ltr"] .results-grid * {
    text-align: center !important;
}
[dir="ltr"] .result-item:not(:first-child) {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.12);
}

/* Coming Soon Overlay */
.coming-soon-wrapper {
    position: relative !important;
    cursor: default !important;
}

/* Hide texts initially */
.coming-soon-wrapper .gallery-overlay,
.coming-soon-wrapper .case-overlay {
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

/* Show texts on hover */
.coming-soon-wrapper:hover .gallery-overlay,
.coming-soon-wrapper:hover .case-overlay {
    opacity: 1 !important;
    visibility: visible;
}

/* Blur image */
.coming-soon-wrapper img,
.coming-soon-wrapper video {
    filter: blur(5px) brightness(0.25) !important;
    transform: scale(1.02);
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Coming soon text without background */
.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
    z-index: 20;
    white-space: nowrap;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    pointer-events: none;
    opacity: 1;
    transition: all 0.4s ease;
}

.coming-soon-wrapper:hover .coming-soon-badge {
    opacity: 0;
    transform: translate(-50%, -60%);
}

.inspired-card.coming-soon-wrapper:hover .coming-soon-badge {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.coming-soon-wrapper:hover img,
.coming-soon-wrapper:hover video {
    filter: blur(8px) brightness(0.15) !important;
}

/* Center badge in case studies image */
.inspired-card.coming-soon-wrapper .coming-soon-badge {
    top: 120px;
}

/* Hide long description in coming-soon cards on hover */
.coming-soon-wrapper .gallery-overlay-desc,
.coming-soon-wrapper .case-overlay-desc {
    display: none;
}

/* Show simple status text instead — starts hidden & shifted */
.coming-soon-wrapper .gallery-overlay::after,
.coming-soon-wrapper .case-overlay::after {
    content: 'يُعمل عليه الآن';
    display: block;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.6rem;
    opacity: 0;
    transform: translateY(8px);
    transition: transform 0.4s ease 0.05s, opacity 0.4s ease 0.05s;
}

html[lang="en"] .coming-soon-wrapper .gallery-overlay::after,
html[lang="en"] .coming-soon-wrapper .case-overlay::after {
    content: 'In Progress';
    font-family: 'IBM Plex Sans Arabic', -apple-system, sans-serif;
    letter-spacing: 2px;
}

/* Animate in on hover */
.coming-soon-wrapper:hover .gallery-overlay::after,
.coming-soon-wrapper:hover .case-overlay::after {
    opacity: 1;
    transform: translateY(0);
}

/* ─── CLIENT MANAGER STRIP SYSTEM (LocalStorage DB) ─── */
.doc-client-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
}

.doc-client-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 400;
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.doc-client-select option {
    background: #111111;
    color: #ffffff;
}
.client-manager-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.75rem 1.2rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
    direction: rtl;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.cm-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cm-title {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    white-space: nowrap;
}

.cm-select {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    min-width: 260px;
}

.cm-select option {
    background: #111111;
    color: #ffffff;
}

.cm-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cm-btn.save-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cm-btn.save-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.cm-btn.new-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.cm-btn.new-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.cm-notification-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

.cm-notification-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .client-manager-strip {
        flex-direction: column;
        align-items: stretch;
    }
    .cm-left {
        flex-direction: column;
        align-items: stretch;
    }
    .cm-select {
        min-width: 100%;
    }
    .cm-right {
        flex-wrap: wrap;
    }
}

@media print {
    .client-manager-strip, .cm-notification-toast {
        display: none !important;
    }
}

/* ==========================================================================
   UNIFIED DOCUMENT CONTROL TOOLBAR — YOUSSEF ALHUSINY BRAND IDENTITY
   ========================================================================== */
.unified-doc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 2.2rem;
    padding: 0.6rem 1rem;
    background: #070709;
    background: rgba(7, 7, 9, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Client Select Box — Brand Identity */
.client-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.25rem 0.7rem 0.25rem 0.4rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.client-select-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.035);
}

.client-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 300;
    letter-spacing: 1px;
    white-space: nowrap;
}

.unified-client-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 400;
    outline: none;
    cursor: pointer;
    padding: 0.2rem 0.2rem;
    max-width: 200px;
}

.unified-client-select option {
    background: #09090b;
    color: #ffffff;
}

/* Document Switcher Segmented Tabs */
.docs-group {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 2px;
    display: flex;
    gap: 2px;
}

.doc-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.doc-tab:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.035);
}

.doc-tab.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 400;
}

/* Toolbar Action Buttons */
.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 400;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    white-space: nowrap;
}

.toolbar-btn-subtle {
    color: rgba(255, 255, 255, 0.55);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toolbar-btn-subtle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.toolbar-btn-subtle.active-mode {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.toolbar-btn-primary {
    color: #050505;
    background: #ffffff;
    border: 1px solid #ffffff;
    font-weight: 500;
}

.toolbar-btn-primary:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.88);
}

/* Simple Back Link — Brand Style */
.toolbar-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.toolbar-btn-back:hover {
    color: #ffffff;
}

@media print {
    .unified-doc-toolbar {
        display: none !important;
    }
}




/* The cover and the pause overlay belong to separate playback states. */
.case-hero[data-player-mode="playback"] .case-hero-content { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.case-hero:not([data-player-mode="playback"]) [id$="pauseOverlayText"] { opacity: 0 !important; visibility: hidden !important; }
.case-hero .case-hero-content .case-title { font-size: clamp(40px, 4.5vw, 72px) !important; }
.case-hero .case-hero-content { gap: 2rem !important; }
.case-hero .case-hero-content > div:nth-child(2) { gap: 2.4rem !important; }
.case-hero .case-hero-content > div:nth-child(2) span { font-size: .85rem !important; }
.case-hero .case-hero-content [data-i18n="text_241"], .case-hero .case-hero-content [data-i18n="text_243"], .case-hero .case-hero-content [data-i18n="text_245"] { font-size: .68rem !important; }

/* Center pause messages independently of the reading direction. */
.case-hero [id$="pauseOverlayText"] {
    width: min(1000px, calc(100% - 40px));
    text-align: center !important;
    transform: translate(-50%, -50%) !important;
}
.case-hero [id$="pauseOverlayText"] :is(h2,p) { text-align: center !important; margin-inline: auto; }
.case-hero [id$="pauseMessageTitle"] { font-size: clamp(26px, 4vw, 48px) !important; line-height: 1.25; }

.email-compose-options { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:12px; font-size:.75rem; animation:email-options-arrive .2s ease-out; }
.email-compose-options[hidden] { display:none; }
.email-compose-label { flex-basis:100%; color:#999; line-height:1.6; }
.email-compose-options a { border:1px solid #333; padding:6px 12px; color:#ddd; text-decoration:none; border-radius:3px; transition:background .2s,border-color .2s; }
.email-compose-options a:hover,.email-compose-options a:focus-visible { background:#1c1c1c; border-color:#777; }
@keyframes email-options-arrive { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .email-compose-options { animation:none; } }

/* Touch taps follow gallery links immediately without emulated hover playback. */
.gallery-item { touch-action: manipulation; }
@media (hover: none) { .gallery-item .gallery-hover-video { display: none; } }
