:root {
    --bg-color: #050505;
    --text-color: #ffffff;
}

/* REGULAR 400 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('/fonts/HelveticaNeue-Roman.woff2') format('woff2'),
         url('/fonts/HelveticaNeue-Roman.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ITALIC 400 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('/fonts/HelveticaNeue-Italic.woff2') format('woff2'),
         url('/fonts/HelveticaNeue-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* BOLD 700 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('/fonts/HelveticaNeue-Bold.woff2') format('woff2'),
         url('/fonts/HelveticaNeue-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* HEAVY 900 */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('/fonts/HelveticaNeue-Heavy.woff2') format('woff2'),
         url('/fonts/HelveticaNeue-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    /* Replaced height: 100% with auto for Lenis compatibility */
    height: auto; 
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

/* --- LENIS SMOOTH SCROLL REQUIRED CSS --- */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
/* -------------------------------------- */

*, *:before, *:after {
    box-sizing: inherit;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 40px;
    left: 40px;
    pointer-events: auto;
    max-width: 300px;
    z-index: 50;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    white-space: nowrap; 
    line-height: 1;
}

h1 a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}
h1 a:hover { opacity: 0.7; }

h2 {
    font-size: 1rem;
    font-weight: 400;
    margin: 4px 0 0 0;
    opacity: 0.5;
}

/* --- ABOUT BUTTON --- */
.about-btn {
    position: fixed;
    top: 35px;
    right: 40px;
    z-index: 50;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-btn img {
    width: 18px;
    height: 18px;
    display: block;
    filter: invert(1); 
    transition: filter 0.3s ease;
    pointer-events: none;
}

.about-btn:hover {
    background: #fff;
    border-color: #fff;
}

.about-btn:hover img {
    filter: invert(0); 
}

/* ---------------------------------------------------------
   PROJECT PAGES STYLES
--------------------------------------------------------- */

.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SECTION BACKGROUNDS --- */
.section-relative {
    position: relative;
    z-index: 1; 
}

/* Used for wrapping multiple sections to share one bg */
.grouped-sections {
    padding-bottom: 1px; /* Prevents margin collapse issues */
    margin-bottom: 120px; /* Standard section margin */
}

/* Removes margin from the last child to prevent extra gap */
.grouped-sections .section:last-child {
    margin-bottom: 0;
}

.section-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Fit logic */
    width: 90%; 
    height: 90%;
    object-fit: contain; /* Ensures the whole image is seen, not cropped */
    
    /* Visuals */
    opacity: 0.1; /* Very subtle */
    z-index: -1; 
    pointer-events: none;
}

/* --- FULL BLEED IMAGES --- */
.full-bleed-container {
    width: 100vw;
    height: 100vh; /* Fills the screen height */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    overflow: hidden;
}

.full-bleed-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spacer-60 {
    width: 100%;
    height: 60px;
}

.section {
    margin-bottom: 120px;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

/* --- GRIDS --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.grid-large-image {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.full-width-text {
    width: 100%;
}
.full-width-text p {
    max-width: none; 
}

.flex-row {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: stretch;
}

.align-start {
    align-items: flex-start;
}

/* --- RATIOS --- */
.flex-portrait { flex: 0.66; aspect-ratio: 2/3; } 
.flex-landscape { flex: 1.5; aspect-ratio: 3/2; } 
.flex-square { flex: 1; aspect-ratio: 1/1; }    

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-landscape { aspect-ratio: 3 / 2; }
.aspect-portrait { aspect-ratio: 2 / 3; }
.aspect-wide { aspect-ratio: 16 / 9; }
.aspect-ultrawide { aspect-ratio: 2500 / 1036; }

/* --- IMAGE CONTAINERS --- */
.img-container {
    width: 100%;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Parallax Wrapper */
.parallax-wrapper img {
    height: 120%;
    top: -10%;
    position: absolute;
    will-change: transform;
}

/* --- FOOTER --- */
footer {
    width: 100%;
    padding: 80px 40px 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
    background-color: var(--bg-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.02em;
}

.footer-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1;
    text-transform: uppercase; 
}

.footer-role {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.5;
    margin: 0;
    text-transform: none; 
}

.footer-contact {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.footer-contact a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    
    header { 
        top: 20px; 
        left: 20px; 
        max-width: none; 
        width: calc(100% - 40px);
    }

    .about-btn {
        top: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
    
    /* Footer Mobile */
    footer { padding: 60px 20px 40px 20px; }
    .footer-contact { flex-direction: column; gap: 10px; }

    /* FIX FOR MOBILE PARALLAX/IMAGES */
    .parallax-wrapper img, 
    .img-container img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
        top: 0 !important;
        transform: scale(1.05) !important;
    }
    
    /* Ensure full bleed works well on mobile */
    .full-bleed-container {
        height: 100vh;
        width: 100vw;
    }

    /* Keep background image contained on mobile too */
    .section-bg-img {
        width: 100%;
    }
}