/* Reset & Base Styles */
:root {
    --bg-color: #ffffff; /* Changed to white */
    --text-color: #1a1a1a;
    --text-secondary: #888;
    --font-stack: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --spacing-unit: 20px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-color: #080808;
    --text-color: #e5e5e5;
    --text-secondary: #888888;
}

body {
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-unit);
    box-sizing: border-box;
    background-color: var(--bg-color); /* Match bg to blend in */
    z-index: 100;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none; /* Prevent clicking when hidden */
    transform: translateY(-100%);
}

.sticky-header.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-content .logo {
    font-size: 20px;
    font-weight: 500;
}

.header-content .contact-link {
    font-size: 14px;
    font-weight: 400;
}

/* Welcome Section */
.welcome-section {
    padding: 120px var(--spacing-unit) 80px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif; /* Apply Inter font */
}

.brand-name {
    font-size: clamp(40px, 5.3333vw, 64px);
    font-weight: 500; /* Medium */
    margin-bottom: 0; /* Adjust spacing if needed, usually tight with line-height */
    color: var(--text-color);
    letter-spacing: -0.02em; /* Slight tracking adjustment for Inter */
    line-height: clamp(57.5px, 7.6667vw, 92px);
}

.manifesto {
    font-size: clamp(40px, 5.3333vw, 64px);
    color: #b0b0b0;
    font-weight: 500; /* Medium */
    line-height: clamp(57.5px, 7.6667vw, 92px);
    letter-spacing: -0.02em;
}

.manifesto p {
    margin: 0;
    color: inherit; /* Uniform color for all lines */
    will-change: opacity;
}
.manifesto p:first-child {
    color: inherit;
}

/* Project List */
.project-list {
    display: grid;
    grid-template-columns: 1fr; /* Always single column */
    gap: var(--spacing-unit);
    padding: 0 var(--spacing-unit) 120px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Removed multi-column media query to keep one project per line */

.project-item {
    display: block;
    position: relative;
    background-color: transparent;
    width: 100%; /* Ensure it takes full width */
    overflow: hidden;
    cursor: pointer;
}

[data-theme="dark"] .project-item {
    background-color: transparent;
}

.project-media {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0; /* Start hidden for fade-in */
    transition: opacity 0.5s ease-in-out; /* Smooth fade-in transition */
}

.project-media.loaded {
    opacity: 1; /* Fade in when loaded */
}

.project-info {
    display: none; /* Hide project info overlay */
}

.project-title {
    font-size: 1.5rem;
    font-weight: 500;
}

footer {
    padding: var(--spacing-unit);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Project Page Styles */
.site-header {
    width: 100%;
    padding: var(--spacing-unit);
    box-sizing: border-box;
    background-color: var(--bg-color);
}

.project-hero {
    width: 100%;
    background-color: transparent; /* Placeholder grey */
    display: block;
    line-height: 0; /* Remove potential gap below image */
}

.project-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split layout */
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px var(--spacing-unit) 120px;
    align-items: start;
}

.project-title-col h1 {
    font-size: 48px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.project-info-col {
    font-size: 20px; /* Slightly larger for readability */
    line-height: 1.5;
}

.project-intro p {
    margin-top: 0;
    margin-bottom: 40px;
}

.project-links {
    display: flex;
    gap: 40px;
    font-size: 14px;
    font-weight: 500;
}

.project-links a {
    text-decoration: none;
    color: var(--text-color);
}

.project-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .project-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-title-col h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }
}