:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-secondary: #666666;
    --structural-line: #e5e5e5;
    --hover-red: #d90429;
    --spacing: 80px;
}

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

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* --- IMAGE RESET --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAV --- */
nav {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--structural-line);
}

.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.5px; }
.back-link { font-size: 0.9rem; color: var(--text-secondary); }
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-size: 0.9rem; color: var(--text-secondary); }

/* --- HERO (For Home Page) --- */
.hero-banner {
    width: 100vw;
    height: 60vh;
    background-color: #f4f4f4;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 80px;
    overflow: hidden;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    z-index: 2;
    pointer-events: none;
}
.highlight {
    background-color: #111;
    color: #fff;
    padding: 6px 12px;
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    box-shadow: 10px 0 0 #111, -10px 0 0 #111;
}
.hero-title {
    font-size: 3rem;
    line-height: 1.4;
    letter-spacing: -1px;
    margin-bottom: 15px;
    display: block;
}
.hero-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    display: block;
    margin-top: 20px;
    max-width: 600px;
}

/* --- PROJECT HEADER --- */
.project-header { padding: 80px 0; }
.header-content { width: 50%; }

h1 {
    font-size: 3.5rem;
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: 30px;
}

.project-intro { font-size: 1.25rem; color: var(--text-secondary); }
.content-section { padding-bottom: var(--spacing); }

/* --- IMAGE CONTAINERS & GRIDS --- */
.full-width-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
    margin-bottom: 60px;
    display: block;
    object-fit: cover;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f0f0f0;
    object-fit: cover;
    display: block;
}

.vertical-img { aspect-ratio: 3/4; }

.text-block {
    max-width: 600px;
    margin: 0 auto 60px auto;
    font-size: 1.1rem;
    color: #333;
}

.text-block p { margin-bottom: 20px; }

/* --- NEXT PROJECT LINK --- */
.next-project {
    padding: 100px 0;
    border-top: 1px solid var(--structural-line);
    text-align: center;
}

.next-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.next-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    transition: color 0.2s;
}

/* --- HOME GRID --- */
.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
section {
    padding: 40px 0 40px 0;
    border-top: 1px solid var(--structural-line);
}
.section-header h2 { font-size: 1.5rem; font-weight: 600; }
.section-header span { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}
.item-visual {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f4f4f4;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
    object-fit: cover;
}
.item:hover .item-visual { opacity: 0.7; }
.item { text-decoration: none !important; display: block; }
.item-info h3 { font-size: 1rem; font-weight: 500; transition: color 0.2s; }
.item-info p { font-size: 0.85rem; color: var(--text-secondary); margin-top: 5px; }

/* --- HOVER & FOOTER --- */
a:hover {
    color: var(--hover-red) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-decoration-color: var(--text-main) !important;
}

.next-project a:hover .next-title { color: var(--hover-red); }

footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid var(--structural-line);
}

@media (max-width: 768px) {
    .header-content { width: 100%; }
    h1 { font-size: 2.5rem; }
    .next-title { font-size: 2.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .hero-banner { height: 50vh; }
    nav { flex-direction: column; gap: 20px; padding: 20px 0; }
    .nav-links { flex-wrap: wrap; gap: 15px; }
}