/*  
   1. CORE VARIABLES & RESET
     */
:root {
    --color-bg: #fcfbfa;
    --color-text-main: #1c1b1a;
    --color-text-muted: #656360;
    --color-accent: #8c8275;
    --color-card-bg: #ffffff;
    --color-border: #e8e6e3;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-script: 'Ms Madi', cursive;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

/*  
   2. TYPOGRAPHY & HEADER
     */
.gallery-header {
    padding: 4rem 2rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    max-width: 1400px;
    margin: 0 auto;
}

.brand-signature {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.brand-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
    transition: var(--transition-smooth);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-text-main);
}

/*  
   3. LAYOUT CONTAINERS & INTRO
     */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem 2rem;
}

.collection-intro-block {
    max-width: 700px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.collection-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.collection-statement {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/*  
   4. EDITORIAL PORTFOLIO GRID
     */
.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.portfolio-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-text-main);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.span-2-columns {
    grid-column: span 2;
}

.card-image-box {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f5f4f0;
}

/* Maintain crisp scaling aspect ratios based on column span */
.portfolio-card .card-image-box {
    aspect-ratio: 4 / 3;
}

.span-2-columns .card-image-box {
    aspect-ratio: 16 / 9;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .card-image-box img {
    transform: scale(1.03);
}

.card-details-strip {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
}

.card-details-strip h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-text-main);
}

.action-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .action-tag {
    color: var(--color-text-main);
    border-bottom-color: var(--color-text-main);
}

/*  
   5. BIOGRAPHY PAGE LAYOUT (`about.html`)
     */
.about-profile-layout {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.profile-frame {
    border: 1px solid var(--color-border);
    padding: 1rem;
    background: #ffffff;
}

.profile-frame img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(15%);
}

.bio-greeting {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.bio-narrative-paragraph {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.studio-values-strip {
    margin-top: 3.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-node h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.value-node p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.5;
}

/*  
   6. MODAL LIGHTBOX ENGINE
     */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(252, 251, 250, 0.98);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.lightbox-close-trigger {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 2.5rem;
    font-weight: 200;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--color-text-muted);
}

.lightbox-close-trigger:hover {
    color: var(--color-text-main);
    transform: rotate(90deg);
}

.lightbox-content-shell {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3.5rem;
    align-items: center;
}

#lightbox-main-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--color-border);
    background: #ffffff;
}

.lightbox-caption-card h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

#lightbox-art-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 2rem;
}

/*  
   7. FOOTER & ANIMATIONS
     */
.gallery-footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--color-border);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.animate-fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/*  
   8. RESPONSIVE DESIGN (TABLETS & MOBILE)
     */
@media (max-width: 1024px) {
    .about-profile-layout { grid-template-columns: 1fr; gap: 3rem; }
    .lightbox-content-shell { grid-template-columns: 1fr; gap: 2rem; }
    #lightbox-main-img { max-height: 50vh; }
}

@media (max-width: 768px) {
    .portfolio-showcase-grid { grid-template-columns: 1fr; gap: 2rem; }
    .span-2-columns { grid-column: span 1; }
    .portfolio-card .card-image-box, .span-2-columns .card-image-box { aspect-ratio: 4 / 3; }
    .studio-values-strip { grid-template-columns: 1fr; gap: 1.5rem; }
}


/* --- Fine Art Outer Layout with Soft Edge Texture --- */
.gallery-header {
    position: relative;
    padding: 4.5rem 2rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    
    /* 1. Sets up a white shield in the middle that fades into transparency on the sides */
    /* 2. Tiles the artwork at its original scale so it NEVER stretches */
    background: 
        linear-gradient(to right, rgba(255,255,255,0) 0%, #ffffff 20%, #ffffff 80%, rgba(255,255,255,0) 100%),
        url('image_2d7645.jpg') repeat center top;
    background-size: auto 320px; /* Constrains the vertical height of the tile tile safely */
}

/* --- Clickable Clean Link Container --- */
.brand-link {
    text-decoration: none;
    display: inline-block;
    color: var(--color-text-main);
    transition: opacity 0.3s ease;
}

.brand-link:hover {
    opacity: 0.75;
}

/* --- Centered Social Row Layout --- */
.header-socials {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 1.5rem 0 2.5rem 0;
}

.social-link {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 400;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-text-main);
}

/* --- Responsive Protection: Fallback to crisp white on smaller viewports --- */
@media (max-width: 900px) {
    .gallery-header {
        background: #ffffff !important;
        padding-top: 3rem;
    }
    .header-socials {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}


/* Import the dramatic calligraphy script at the top of your CSS */
@import url('https://fonts.googleapis.com/css2?family=Ms+Madi&family=Inter:wght@200;300;400;500&display=swap');

/* --- Fine Art Outer Layout with Soft Edge Texture --- */
.gallery-header {
    position: relative;
    padding: 3.5rem 2rem 2rem 2rem; /* Adjusted slightly to accommodate vertical script loops */
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    background: 
        linear-gradient(to right, rgba(255,255,255,0) 0%, #ffffff 25%, #ffffff 75%, rgba(255,255,255,0) 100%),
        url('image_2d7645.jpg') repeat center top;
    background-size: auto 320px;
}

/* --- Clickable Title Configuration --- */
.brand-link {
    text-decoration: none;
    display: inline-block;
    color: var(--color-text-main);
    transition: opacity 0.3s ease;
}

.brand-link:hover {
    opacity: 0.75;
}

/* --- Ultra Swooshy Calligraphy Signature --- */
.brand-signature {
    font-family: 'Ms Madi', cursive;
    font-size: 5.5rem; /* Sweeping scripts need extra scale to showcase line dynamics */
    font-weight: 400;
    letter-spacing: 0; 
    line-height: 0.9;   /* Keeps the dramatic loops tight to the subtitle */
    margin-bottom: 0.75rem;
    display: block;
}

/* --- Sub-Navigation Elements --- */
.brand-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
}

.header-socials {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 1.5rem 0 2.5rem 0;
}

.social-link {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 400;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-text-main);
}

/* --- Mobile Interface Protection --- */
@media (max-width: 900px) {
    .gallery-header {
        background: #ffffff !important;
        padding-top: 2.5rem;
    }
    .brand-signature {
        font-size: 4.25rem;
    }
    .header-socials {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* 1. Force the link wrapper to completely inherit lookbook typography rules */
.brand-link {
    text-decoration: none;
    display: inline-block;
    color: var(--color-text-main);
    transition: opacity 0.3s ease;
}

/* 2. Target ALL structural link states to prevent fallback font shifting */
.brand-link:link, 
.brand-link:visited, 
.brand-link:hover, 
.brand-link:active {
    font-family: 'Ms Madi', serif !important; /* Forces a elegant serif fallback instead of cursive/comic sans */
    color: var(--color-text-main) !important;
    text-decoration: none !important;
}

/* 3. Keep your elegant hover transparency intact */
.brand-link:hover {
    opacity: 0.75;
}