/* === CSS Variables matching Cargo site === */
:root {
    --bg-primary: #5a6b4a;
    --bg-secondary: #4a5a3a;
    --text-primary: #f0f0e8;
    --text-muted: #c8c8b8;
    --accent: #8fbc8f;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --section-padding: 80px;
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
}

/* === Links === */
/* === Links === */
a {
    color: var(--text-primary);
    text-decoration: none;
    text-underline-offset: 3px;
    border-bottom: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

/* === Fixed Background Video === */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
     /* Fallback gradient that mimics the video's mood */
    background: linear-gradient(160deg, #2a3a1a 0%, #3a4a2a 40%, #1a2a0a 100%);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* 90% overlay = 10% visible, but let's use 15% for readability */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 90, 58, 0.75); /* Olive overlay at 75% */
    z-index: 1;
}

/* === Navigation === */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 24px;
    background: rgba(74, 90, 58, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.site-nav.visible {
    transform: translateY(0);
}

.menu-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-primary);
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 16px;
    cursor: pointer;
    display: none;
}

.menu-items {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-items a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    padding-bottom: 2px;
}

.menu-items a:hover {
    border-bottom-color: var(--text-primary);
}

.back-to-top {
    opacity: 0.6;
}

/* === Sections === */
section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section + section {
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    text-align: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
}

.hero-manifesto {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.8;
    text-align: right;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator .squiggle {
    font-size: 24px;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-indicator .chevron {
    font-size: 30px;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* === Bio Section === */
.bio-section {
    text-align: center;
    max-width: 900px;
}

.bio-text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
    align-items: right;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.category-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    text-transform: lowercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
    display: inline-block;
    transition: all 0.3s;
}

.category-links a:hover {
    border-bottom-color: var(--text-primary);
    padding-bottom: 6px;
}

/* === Projects Section === */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card img,
.project-card video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.project-card:hover img,
.project-card:hover video {
    transform: scale(1.03);
}

.project-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    pointer-events: none;
}

.project-description {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* === Image Grid === */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.image-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-grid-item:hover img {
    transform: scale(1.02);
}

/* Full-width item spans all 3 columns */
.image-grid-item.wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

/* Image grids are always visible — no fade-in hiding */
.image-grid.fade-in,
.js-enabled .image-grid.fade-in {
    opacity: 1;
    transform: none;
}

/* Responsive: 2 columns on tablet, 1 on mobile */
@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid-item.wide {
        aspect-ratio: 4 / 3;
    }
}

/* === Knowledge Sharing Section === */
.events-list {
    margin: 30px 0;
    padding-left: 0;
    list-style: none;
}

.events-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.resources-list {
    margin-top: 30px;
}

.resources-list a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
}

/* === Collective Section === */
.bio-card {
    margin-bottom: 40px;
    max-width: 800px;
}

.bio-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.bio-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 40px;
    padding: 12px 0;
}

/* === Scroll Fade Animation === */
.fade-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only hide elements if JS is working */
.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-manifesto {
        text-align: center;
    }
    
    .category-links {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .diaporama-item {
        flex: 0 0 85%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-items {
        display: none;
        flex-direction: column;
        gap: 16px;
        padding-top: 16px;
    }
    
    .menu-items.open {
        display: flex;
    }
    
    section {
        padding: 60px 20px;
        min-height: auto;
    }
}

/* === Under construction label === */
.under-construction {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* === Two-Column Bio Layout === */
.bio-row {
    display: grid;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 60px;
    max-width: 1000px;
}

.bio-row.individual {
    grid-template-columns: 1fr 3fr;
}

.bio-row.collective {
    grid-template-columns: 3fr 1fr;
}

.bio-row .bio-portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    align-self: start;  /* keeps image from stretching */
    overflow: hidden;
    border-radius: 4px;
    background: rgba(0,0,0,0.2);
}

.bio-row .bio-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bio-row .bio-text-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;  /* text sits at bottom */
}

@media (max-width: 768px) {
    .bio-row.individual,
    .bio-row.collective {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}