/* ========================================= */
/* SYSTEM GLOBAL DEFAULTS                    */
/* ========================================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior: smooth;
    background:#000000;
    color:#ffffff;
}

body {
    min-height: 100vh;
    font-family: 'Open Sans', system-ui, sans-serif;
    background:#000000;
    overflow-x: hidden;
}

/* ========================================= */
/* LOGO & NAVIGATION                         */
/* ========================================= */
.brand-logo {
    position: fixed;
    top: 24px;
    left: 28px;
    width: 135px;
    z-index: 1000;
    display: block;
    transition: opacity 0.3s ease;
}

.brand-logo:hover { opacity: 0.8; }
.brand-logo img { width: 100%; height: auto; display: block; }

nav {
    position:fixed;
    top:24px;
    right:28px;
    z-index:1000;
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    background:rgba(10, 10, 10, 0.3) !important;
    border:1px solid rgba(255,255,255,.1);
    border-radius:999px;
    padding:12px 20px; 
}

.nav-list{
    display:flex;
    gap:28px;
    list-style:none;
    position:relative;
}

.nav-item a{
    color:white;
    text-decoration:none;
    font-size:.85rem;
    font-weight:400;
    opacity:.64;
    transition: opacity .3s ease;
}

.nav-item.active a, .nav-item a:hover { opacity:1; }

.indicator{
    position:absolute;
    bottom:-6px;
    height:4px;
    width:40px;
    border-radius:999px;
    background:#f2f2f2;
    opacity: 0;
    transition:
        transform .5s cubic-bezier(.22,1,.36,1),
        width .5s cubic-bezier(.22,1,.36,1),
        opacity .3s ease;
}

/* ========================================= */
/* BOTTOM MENUS (SOCIAL & COOKIE)            */
/* ========================================= */
.bottom-menus {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 999;
    pointer-events: none;
}

.glass-panel {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner {
    padding: 12px 24px;
    gap: 16px;
    font-size: 0.85rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.social-menu-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: auto;
}

.menu-indicator-wrapper {
    padding: 10px 32px; 
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-indicator {
    height: 4px;
    width: 40px;
    border-radius: 999px;
    background: #f2f2f2;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-menu-container:hover .menu-indicator {
    background: #f2f2f2;
    width: 50px;
}

.social-menu {
    position: absolute;
    bottom: 100%; 
    margin-bottom: -5px; 
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
    border-radius: 128px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transform-origin: bottom center;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-menu-container:hover .social-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.social-icons { display: flex; gap: 20px; }
.social-icons a {
    color: white;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}
.social-icons a:hover { opacity: 1; transform: translateY(-2px); }

/* ========================================= */
/* GLOBAL LAYOUTS & TYPOGRAPHY               */
/* ========================================= */
.viewport{
    display: flex;
    flex-direction: column;
    width: 100%;
    background:#000000;
}

.section{
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    padding: 160px 60px 120px;
}

.content{
    max-width:750px;
    margin: 0 auto;
    width: 100%;
}

#home .content { max-width: 850px; }
#work .content { max-width: 100%; }
#blog .content, #assets .content { max-width: 950px; }

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: -0.01em;
}

#home h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 20px; }
#home p { font-size: 1rem; max-width: 680px; margin: 0 auto; line-height: 1.5; opacity: 0.9; font-weight: 300; }

h1{ font-size: 3.2rem; line-height: 1.15; margin-bottom: 24px; }
h2{ font-size: 2.4rem; line-height: 1.2; margin-bottom: 32px; text-align: center; width: 100%; }

#work h2, #contact h2 { margin-bottom: 12px; }
p{ margin-bottom:16px; opacity:0.9; color: #f4f4f5; line-height:1.7; font-size: 1rem; font-weight: 300; }

.content p a, 
.imprint-content a, 
.lightbox-article-view a, 
#work-desc a, 
.blog-full-content a {
    color: #bdd6ff;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.content p a:hover, 
.imprint-content a:hover, 
.lightbox-article-view a:hover, 
#work-desc a:hover, 
.blog-full-content a:hover { 
    opacity: 0.8; 
}

/* Generic System Button (Glass) */
.glass-btn {
    background: rgba(10, 10, 10, 0.3) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; 
}
.glass-btn:hover { background: rgba(255, 255, 255, 0.1) !important; border-color: rgba(255, 255, 255, 0.3); }

.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s, border-color 0.3s;
}

#modalScrollToTop {
    z-index: 2010; /* Ensures it sits above the open lightboxes */
}

.scroll-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ========================================= */
/* HOME BACKGROUND VIDEO                     */
/* ========================================= */
#home{
    justify-content: center; 
    align-items: center; 
    text-align: center;
    position: relative;
    overflow: hidden; 
}

.home-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.home-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.home-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

#home .content { position: relative; z-index: 2; }

/* ========================================= */
/* PAGINATION WRAPPER SYSTEM                 */
/* ========================================= */
.list-wrapper {
    position: relative;
    margin-top: 16px;
}

.pagination-controls {
    display: none;
}

/* Partial Expansion (Gradient Fade Overlay) */
.list-wrapper.has-more { padding-bottom: 0; }
.list-wrapper.has-more .pagination-controls {
    display: flex;
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 100%;
    height: 250px; 
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 85%);
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 12px;
    z-index: 10;
    pointer-events: none; 
}

/* Fully Expanded (No Gradient, Button below content) */
.list-wrapper.is-expanded { padding-bottom: 0; }
.list-wrapper.is-expanded .pagination-controls {
    display: flex;
    position: relative;
    height: auto;
    background: none;
    padding-top: 32px;
    padding-bottom: 12px;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

/* ========================================= */
/* WORK GALLERY GRID                         */
/* ========================================= */
#work { padding-left: 8px; padding-right: 8px; }
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.grid-item {
    aspect-ratio: 1 / 1; 
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #000000;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.grid-item.hidden { display: none; }
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover img { transform: scale(1.03); }
.grid-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .overlay { opacity: 1; }
.grid-item:hover { transform: translateY(-4px); }
.grid-item span { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 1.4rem; 
    font-weight: 400; 
    color: white; 
}

/* ========================================= */
/* BLOG & ASSETS LISTINGS                    */
/* ========================================= */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-card, .asset-card {
    display: flex;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card.hidden, .asset-card.hidden { display: none; }
.blog-card:hover, .asset-card:hover { transform: translateY(-2px); }

.blog-img-frame { width: 35%; min-width: 260px; aspect-ratio: 4 / 3; overflow: hidden; border-right: 1px solid rgba(255,255,255,0.06); }
.blog-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.blog-info-frame { width: 65%; padding: 32px; display: flex; flex-direction: column; justify-content: center; }

.blog-info-frame h3 { font-size: 1.6rem; margin-bottom: 12px; }
.blog-info-frame p {
    font-size: 0.95rem; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-align: left;
}

.blog-readmore { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; opacity: 0.4; transition: opacity 0.2s; }
.blog-card:hover .blog-readmore, .asset-card:hover .blog-readmore { opacity: 0.9; }

/* ========================================= */
/* ABOUT 50/50 SPLIT                         */
/* ========================================= */
#about{ padding:0; flex-direction: row; }
.about-visual { 
    width: 50%; 
    height: 100vh; 
    position: sticky; 
    top: 0; 
    padding: 80px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.about-visual img { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    border-radius: 6px;
}
.about-bio { width: 50%; padding: 120px 80px; display: flex; flex-direction: column; justify-content: center; }
.about-bio-inner p { text-align: justify; }
.about-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    margin-top: -20px;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 500;
}

/* ========================================= */
/* IMAGE CAPTIONS                            */
/* ========================================= */

/* Reset browser defaults for figures */
figure.blog-figure, 
figure.lightbox-figure {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Style the caption text */
.img-caption {
    font-size: 0.85rem;
    font-family: 'Open Sans', system-ui, sans-serif;
    color: #f4f4f5;
    opacity: 0.6;
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
    font-style: italic; /* Optional: remove if you prefer standard text */
}

/* Ensure the grid images inside figures stretch correctly */
.blog-figure img.blog-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px; /* Matches your existing design */
}

/* ========================================= */
/* CONTACT & FAQ                             */
/* ========================================= */
.contact-form { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 600px; margin: 0 auto; }
.form-row { display: flex; gap: 16px; width: 100%; }
.form-row .contact-input { flex: 1; }

.contact-input, .contact-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 16px;
    color: white;
    font-family: 'Open Sans', system-ui, sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.contact-input:focus, .contact-textarea:focus { border-color: rgba(255, 255, 255, 0.4); }
.contact-textarea { min-height: 160px; resize: vertical; }
.submit-button { align-self: center; margin-top: 12px; }

.faq-section { max-width: 600px; margin: 80px auto 0; width: 100%; }
.faq-section h3 { text-align: center; font-size: 1.8rem; margin-bottom: 24px; }
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 18px 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #f4f4f5;
}
.faq-item.open .faq-answer { padding: 0 20px 20px; max-height: 300px; }
.faq-icon { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ========================================= */
/* IMPRINT                                   */
/* ========================================= */
#imprint { padding-bottom: 120px; }
.imprint-content { text-align: left; font-size: 0.95rem; line-height: 1.8; }
.imprint-content h3 { font-size: 1.5rem; margin-top: 32px; margin-bottom: 12px; font-family: 'Cormorant Garamond', serif; color: #ffffff; }
.imprint-content h4 { font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px; font-weight: 600; font-family: 'Open Sans', system-ui, sans-serif; color: #ffffff; }
.imprint-content p { margin-bottom: 16px; opacity: 0.9; }
.imprint-content ul { margin-left: 24px; margin-bottom: 16px; color: #f4f4f5; opacity: 0.9; }

/* ========================================= */
/* MODAL / LIGHTBOX CONFIGURATIONS           */
/* ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-header { width: 100%; max-width: 900px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-shrink: 0; }
.lightbox-title { font-size: 1.8rem; margin-bottom: 4px; }
.lightbox-close { background: none; border: none; color: white; font-size: 2.2rem; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }

#work-lightbox, #blog-lightbox { overflow-y: auto; justify-content: flex-start; padding: 60px 20px; }
#work-lightbox::-webkit-scrollbar, #blog-lightbox::-webkit-scrollbar { width: 6px; }
#work-lightbox::-webkit-scrollbar-thumb, #blog-lightbox::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }

.lightbox-gallery-view { max-width: 900px; width: 100%; display: flex; flex-direction: column; gap: 16px; margin: 0 auto; }
#work-meta { font-size: 0.85rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
#work-desc { text-align: left; font-size: 0.95rem; opacity: 0.9; color: #f4f4f5; margin-bottom: 8px; line-height: 1.6; }
#work-tags { font-size: 0.85rem; color: #bdd6ff; font-weight: 600; margin-bottom: 24px; }

.lightbox-gallery-img { width: 100%; height: auto; object-fit: cover; background: #000; border-radius: 4px; border: none; }
.lightbox-article-view { max-width: 750px; width: 100%; margin: 0 auto; }
.lightbox-hero-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; margin-bottom: 24px; background: #000; }
.lightbox-hero-frame img { width: 100%; height: 100%; object-fit: cover; }

.blog-modal-meta { text-align: center; font-size: 0.85rem; opacity: 0.5; margin-bottom: 32px; text-transform: uppercase; letter-spacing: 0.1em; }
.lightbox-article-view h4 { font-size: 1.6rem; margin: 28px 0 12px; }
.lightbox-article-view p { font-size: 1rem; margin-bottom: 20px; opacity: 0.9; color: #f4f4f5; line-height: 1.8; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0; }
.blog-img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; border: none;}

/* ========================================= */
/* RESPONSIVE BREAKPOINTS                    */
/* ========================================= */
@media (min-width: 1200px) {
    nav { padding: 14px 24px; } 
    .nav-list { gap: 36px; } 
    .nav-item a { font-size: 0.9rem; } 
    .about-bio-inner { max-width: 85%; }
}

@media (max-width: 992px) {
    #about { flex-direction: column; }
    .about-visual { width: 100%; height: auto; position: relative; padding: 40px 24px 0; }
    .about-bio { width: 100%; padding: 60px 24px; }
    .blog-card, .asset-card { flex-direction: column; }
    .blog-img-frame { width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .blog-info-frame { width: 100%; padding: 24px; }
}

@media (max-width: 768px) {
    .work-grid { grid-template-columns: repeat(1, 1fr); }
    .section { padding: 140px 24px 80px; }
    #work { padding-left: 24px; padding-right: 24px; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    
    #home { padding: 0 24px; justify-content: center; }
    #home h1 { font-size: 2.0rem; font-weight: 400; line-height: 1.0; margin-bottom: 20px; }

    .blog-modal-meta { text-align: center; font-size: 0.64rem; opacity: 0.5; margin-bottom: 32px; text-transform: uppercase; letter-spacing: 0.1em; }
    
    .brand-logo { 
        position: absolute; 
        display: block; 
        left: 50%; 
        transform: translateX(-50%); 
        top: 24px; 
    }
    
    nav { 
        top: auto; 
        bottom: 21px; 
        left: 50%; 
        transform: translateX(-50%); 
        right: auto; 
        width: calc(100% - 32px); 
        max-width: 400px; 
        padding: 24px 20px;
    }
    
    .nav-list { justify-content: space-between; gap: 4px; font-size: 0.85rem; }
    .social-menu-container { display: none !important; }

.bottom-menus {
        bottom: 99px;
        left: 16px;
        right: 16px; /* Start full width to match the left side */
        transform: none;
        width: auto;
        align-items: stretch;
        /* This transition is the magic that makes it slide smoothly */
        transition: right 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    /* Add this new class right underneath it */
    .bottom-menus.shift-left {
        right: 75px;
    }

    .cookie-banner { padding: 10px 16px; justify-content: space-between; font-size: 0.75rem; }
    .scroll-to-top { bottom: 99px; right: 16px; }
    #modalScrollToTop { bottom: 24px; }
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 16px; }
}