:root {
    --bg: #FFFFFF;
    --text: #181818;
    --stage-bg: #F6F6F6;
    --border: #EEEEEE;
    --serif: 'Crimson Text', serif;
    --text-sm: 12px;
    --text-md: 14px;
    --text-lg: 1.5rem;
    --text-xl: 2rem;
    --header-height: 65px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth;scroll-behavior: smooth;}
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased;}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    flex-shrink: 0; /* Prevents the header from squishing */
}

.header-inner {
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px; /* Restored from original */
}

main {
    flex-grow: 1;
    margin-top: var(--header-height);
}


.ald-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 38px;
    width: auto;
    display: block;
}

.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { font-size: 0.7rem; text-decoration: none; color: black; opacity: 0.6; }
.nav-links a:hover {
    opacity: 1;
}

/* Hero - Added Margin Top */
.hero-section { min-height: 95vh; display: flex; flex-direction: column; justify-content: center; margin: 0px 40px; border-bottom: 1px solid var(--border); }
.massive-title { font-size: clamp(4rem, 18vw, 8rem); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; font-weight: 400; }
.hero-sub { font-size: 1rem; margin-top: 15px; letter-spacing: 0.2em; opacity: 0.4; }

/* Work */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.project-card { margin: 30px; cursor: pointer; }
.image-stage { background: var(--stage-bg); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; padding: 15px; }
.image-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-info h2 { font-family: var(--serif); font-size: var(--text-lg); font-weight: 400; margin-top: 20px; margin-bottom: 5px; }
.project-info p {  font-size: var(--text-sm);  text-transform: uppercase; opacity: 0.4; letter-spacing: 0.1em; }

/* Details */
.page-section { padding: 30px; border-bottom: 1px solid var(--border); }
.serif-title { font-family: var(--serif); font-size: var(--text-lg); margin-bottom: 20px; font-weight: 500; }
.bio-large { font-size: var(--text-md);  line-height: 1.3; max-width: 900px; margin-bottom: 50px; }
.details-grid { display: flex; gap: 100px; }

.detail-col h3 {
    letter-spacing: 0.1em; 
    margin-bottom: 15px;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    opacity: 0.4;
}

.detail-col ul { list-style: none; line-height: 2; font-size: var(--text-sm);  }
.clean-link { color: black; text-decoration: none; border-bottom: 1px solid black; padding-bottom: 2px; font-size: var(--text-sm); }

/* Overlay */
.gallery-img { width: 100%; height: auto; margin-bottom: 40px; background: var(--stage-bg); }

.overlay-title {
    font-family: var(--serif);
    font-size: var(--text-lg); 
    font-weight: 400;
}

.overlay-category {
    font-size: var(--text-sm); 
    text-transform: uppercase;
    opacity: 0.4;
    letter-spacing: 0.1em;
}

/* 1. The main overlay container now handles the scroll directly */
.project-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: white; 
    z-index: 2000; 
    display: none;
    overflow: auto; 
    -webkit-overflow-scrolling: touch;
}

.project-overlay.active { 
    display: block; /* Changed from flex to block for standard flow */
}

/* 2. Fix the sticky header */
.overlay-sticky-header {
    position: sticky; /* Sticky works better for natural flow than Fixed here */
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid var(--border);
    background: white;
    z-index: 100;
}

.overlay-body {
    padding-bottom: 60px;
}

body.no-scroll {
    overflow: hidden !important;
    height: 100%;
}

/* Remove horizontal padding here so images can be full width if desired, 
   or keep it for the description alignment */
.project-description {
    font-size: var(--text-md); 
    line-height: 1.6;
    max-width: 750px;
    margin: 30px; /* Matched to your site padding */
}

.learn-more-link {
    display: inline-block;
    border: solid 1px var(--border);
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #181818;
    font-size: 0.75rem;
    margin-top: 15px;
    transition: 0.3s ease;
    letter-spacing: 0.05em;
    background: white;
}

.social-link {
    display: inline-block;
    border: solid 1px var(--border);
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #181818;
    font-size: 0.75rem;
    margin-top: 10px;
    transition: 0.3s ease;
    letter-spacing: 0.05em;
    background: white;
    width: 105px;
    text-align: center;
}

  .close-project-btn {
    display: inline-block;
    border: solid 1px #181818;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #181818;
    font-size: 0.75rem;
    transition: 0.3s ease;
    letter-spacing: 0.05em;
    background: white;
}

.learn-more-link:hover, .close-project-btn:hover, .social-link:hover {
    background: #181818;
    color: #ffffff;
    cursor: pointer;
}

/* --- RESPONSIVE MOBILE STYLES --- */
@media (max-width: 900px) {
    /* Stack Project Grid */
    .project-grid { grid-template-columns: 1fr; }
    .project-card {
    margin: 20px; 
    }
     .page-section {
     padding: 20px;
     }
    .header-inner {
    padding: 0 20px; 
    }
    
    
    /* Adjust Hero Spacing */
    .hero-section { min-height: 90vh; margin: 0px 20px; }
    .massive-title { font-size: 4.5rem; }
    
    /* Stack About/Contact Grids */
    .details-grid { flex-direction: column; gap: 40px; }

    .hero-sub { font-size: 0.75rem; }
}

.massive-title span {
    display: block;
    overflow: hidden;
    line-height: 1.1;
}

.massive-title span i {
    display: block;
    font-style: normal;
    transform: translateY(100%);
    animation: revealText 1.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.massive-title span:nth-child(2) i {
    animation-delay: 0.3s;
}

@keyframes revealText {
    to {
        transform: translateY(0%);
    }
}

.hero-sub {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.2s;
}

@keyframes fadeUp {
    to {
        opacity: 0.4;
        transform: translateY(0);
    }
}

.video-stage {
    width: 95%;
    position: relative;
    overflow: hidden;
    margin: auto;
    aspect-ratio: 16/9;
}

.video-stage iframe {
    width: 100%;
    height: auto; 
    display: block;
}

.error {
    opacity: 0.3;
    color: var(--text);
    font-size: var(--text-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
}

.error span:nth-child(1) {
    font-size: 50px;
    letter-spacing: 10px;
    opacity: 0.3;
}
