﻿/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    background-color: #F7F6F2;
    font-family: 'Cormorant Garamond', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    /* Landing page only */
    body:not(.project-page) {
        height: 100vh;
        overflow: hidden;
    }

/* Project page */
.project-page {
    overflow-y: auto;
}

/* Layout */
.layout {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* Sidebar (Top Left Identity) */
.sidebar {
    position: fixed;
    top: 60px;
    left: 80px;
    z-index: 100;
}

.name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.2px;
    margin-bottom: 42px;
}

    .name a {
        text-decoration: none;
        color: inherit;
    }
.name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0.2px;
    display: inline-block;
    transition: letter-spacing 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);


}

    .name:hover {
        letter-spacing: -3.2px; /* stronger collapse */
        transform: skewX(-18deg);
    }
/* Navigation */
.nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: normal;
}

    .nav a {
        text-decoration: none;
        color: rgba(0, 0, 0, 0.6);
        transition: opacity 0.12s ease;
    }

        .nav a:hover {
            opacity: 1;
        }

/* Work list (hidden by default) */
.work-list {
    display: flex;
    flex-direction: column;
    margin-left: 14px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}
/* Keep work list open on project pages */


    .work-list.open {
        max-height: 500px; /* big enough to fit items */
        opacity: 1;
    }

/* HERO — CLEAN CENTERING (No absolute inset) */
.hero-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero {
    height: 50vh;
    aspect-ratio: 16 / 9;
}

    .hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* PROJECT PAGE */
.project-wrapper {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.project-hero {
    height: 50vh;
    aspect-ratio: 16 / 9;
}

    .project-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Project content (hidden initially) */
.project-content {
    opacity: 0;
    max-width: 800px;
    margin-top: 40px;
    transition: opacity 0.4s ease;
}

    .project-content.visible {
        opacity: 1;
    }

/* Project layout override */
.project-layout {
    flex-direction: column;
}

.project-hero {
    height: 50vh;
    width: 1000px;
    max-width: 95vw;
    aspect-ratio: 16 / 9;
}

/* Article Layout */
.project-article {
    width: 100%;
    max-width: 900px;
    margin: 50px auto 0px auto;
    padding: 0 40px;
}

/* Title */
.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Meta line */
.project-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(0,0,0,0.6);
    margin-bottom: 40px;
}

.project-featured {
    display: block;
    margin-top: 6px;
}

/* Intro paragraph */
.project-intro {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 60px;
}

/* Standard paragraph */
.project-article p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 60px;
}

/* Two images side by side */
.image-pair {
    width: 1100px;
    max-width: 95vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 80px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 32px;
    align-items: start;
}

    .image-pair img {
        width: 100%;
        height: 460px;
        object-fit: cover;
    }

        .image-pair img:last-child {
            margin-top: 60px;
        }

/* Single large image */

.image-single {
    width: 1100px;
    max-width: 95vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 80px 0;
}

    .image-single img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* ============================= */
/* CV PAGE */
/* ============================= */

.cv {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 160px;
    padding-bottom: 120px;
}

.cv-inner {
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
}

/* Section spacing */
.cv-section {
    margin-bottom: 120px;
}

    /* Section titles */
    .cv-section h2 {
        font-family: 'Cormorant Garamond', serif;
        font-size: 32px;
        font-weight: 600;
        margin-bottom: 40px;
    }

/* Year labels */
.cv-year {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: rgba(0,0,0,0.7);
}

/* CV entries */
.cv-item {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: rgba(0,0,0,0.85);
}

/* Date emphasis */
.cv-date {
    font-weight: 700;
    margin-right: 12px;
}

/* ============================= */
/* ABOUT PAGE */
/* ============================= */

.about {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 160px; /* breathing room under fixed nav */
    padding-bottom: 120px;
}

.about-inner {
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
}

.about p {
    font-size: 20px;
    line-height: 1.75;
    margin-bottom: 60px;
}

.page-transition {
    position: fixed;
    inset: 0;
    background: #1a1a1a;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

/* When page is ready, reveal */
.page-loaded .page-transition {
    opacity: 0;
}

/* Images start slightly dark */
.hero img,
.image-pair img,
.image-single img {
    opacity: 0;
    transition: opacity 1s ease;
}

/* When page is ready */
.page-loaded .hero img,
.page-loaded .image-pair img,
.page-loaded .image-single img {
    opacity: 1;
  
}

.video-embed {
    width: 1200px;
    max-width: 95vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 100px 0;
}

/* 16:9 aspect ratio container */
.video-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}


    /* Placeholder + iframe fill container */
    .video-placeholder,
    .video-inner iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
     
    }

        .video-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    color: #ffffff;
    margin-top: 0px;
    letter-spacing: 0.5px;
    opacity: 0.85;
    transition: background 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-placeholder:hover .video-overlay {
    background: rgba(0, 0, 0, 0.96);
  
}

.play-circle {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

 

    .play-circle::after {
        content: "";
        border-left: 18px solid white;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 4px;
        transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

/* Hover effect */
.video-placeholder:hover .play-circle::after {
    transform: scale(1.3);
}

.support {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.55);
    margin-top: 120px;
    letter-spacing: 0.3px;
}
p a {


    color: inherit;
    text-decoration: none;
    font-weight: 800;
    transition: opacity 0.3s ease;
}

p a:hover {
    opacity: 0.7;
}
/* ============================= */
/* LEGAL FOOTER */
/* ============================= */

.legal {
    width: 100%;
    margin: 120px 0 40px 0;
    padding-bottom:10px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3px;
    color: rgba(0, 0, 0, 0.5);
}

    .legal a {
        color: inherit;
        text-decoration: none;
        margin: 0 12px;
        transition: opacity 0.3s ease;
    }

        .legal a:hover {
            opacity: 0.8;
        }
body:not(.project-page) .legal {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
}

/* ============================= */
/* CURRENT PAGE */
/* ============================= */

.current {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 160px;
    padding-bottom: 120px;
}

.current-inner {
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
}

.current-section {
    margin-bottom: 120px;
}

    .current-section h2 {
        font-family: 'Cormorant Garamond', serif;
        font-size: 32px;
        font-weight: 600;
        margin-bottom: 40px;
    }

.current-item {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: rgba(0,0,0,0.85);
}

.current-date {
    font-weight: 700;
    margin-right: 12px;
}

/* ============================= */
/* LEGAL PAGES */
/* ============================= */

.legal-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding-top: 160px;
    padding-bottom: 120px;
}

.legal-inner {
    width: 100%;
    max-width: 900px;
    padding: 0 40px;
}

.legal-page h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    margin-bottom: 60px;
}

.legal-page h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 60px;
}

.legal-page p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}
/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {
    .current {
        padding-top: 120px;
    }

    .current-inner {
        padding: 0 20px;
    }

    .current-section {
        margin-bottom: 80px;
    }

        .current-section h2 {
            font-size: 26px;
        }
    .cv {
        padding-top: 120px;
    }

    .cv-inner {
        padding: 0 20px;
    }

    .cv-section {
        margin-bottom: 80px;
    }

        .cv-section h2 {
            font-size: 26px;
        }

    .about {
        padding-top: 120px;
    }

    .about-inner {
        padding: 0 20px;
    }

    .about p {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 40px;
    }
        .legal {
            padding: 0 20px;
            margin: 80px auto 30px auto;
            justify-content: flex-start;
        }
  
    /* Sidebar becomes hidden drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 240px;
        background: #F7F6F2;
        padding: 40px;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 200;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .sidebar {
        padding: 80px 30px 40px 30px;
    }

    .name {
        margin-bottom: 30px;
    }



    .video-overlay {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        text-align: center;
    }

    .play-circle {
        width: 56px;
        height: 56px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 18px; /* separate from text */
    }

    .video-overlay p {
        font-size: 11px;
        line-height: 1.4;
        max-width: 240px;
        margin: 0;
    }


        .play-circle::after {
            border-left: 12px solid white;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
            margin-left: 3px;
        }

    .video-overlay p {
        font-size: 11px;
        line-height: 1.4;
        max-width: 260px;
        margin-top: 14px;
    }
  
    /* Menu button visible */
    .menu-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        width: 30px;
        height: 22px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 300;
    }

        .menu-toggle span {
            height: 2px;
            width: 100%;
            background: #000;
            display: block;
        }

    /* Hide nav spacing */
    .nav {
        margin-top: 60px;
    }

    /* Hero full width */
    .hero {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Remove breakout effect */
    .image-pair,
    .image-single,
    .video-embed {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        margin: 60px 0;
    }

    /* Image pair stack vertically */
    .image-pair {
        grid-template-columns: 1fr;
    }

        .image-pair img:last-child {
            margin-top: 20px;
        }

    /* Text full width */
    .project-article {
        margin: 0;
        padding: 0 20px;
        max-width: 100%;
    }

    .hero-container {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero {
        height: 80vh;
        aspect-ratio: 9 / 16;
        width: auto;
        max-width: 90vw;
    }

        .hero img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
}