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

:root {
    --bg: #0d0d0d;
    --bg-card: #161616;
    --accent: #64ffda;
    --text: #e0e0e0;
    --text-muted: #888;
    --border: #2a2a2a;
    --font: 'Inter', system-ui, sans-serif;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.header-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ── DOT NAVIGATION ── */
.dot-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: 1px solid var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.dot.active,
.dot:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.4);
}

/* ── PROJECT SLIDES ── */
.projects-container {
    width: 100%;
}

.project-slide {
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.project-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.project-link:hover .project-cta {
    color: var(--accent);
    gap: 0.6rem;
}

.project-link:hover .media-placeholder {
    border-color: var(--accent);
}

/* ── MEDIA SIDE ── */
.project-media {
    flex: 0 0 60%;
    height: 100%;
    padding: 2rem 1.5rem 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-placeholder {
    width: 100%;
    height: 85%;
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: var(--bg-card);
    overflow: hidden;
    position: relative;
}

.media-placeholder img,
.media-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: 10px;
}

.placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.placeholder-label {
    opacity: 0.4;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ── INFO SIDE ── */
.project-info {
    flex: 0 0 40%;
    height: 100%;
    padding: 2rem 3rem 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.project-number {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.project-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 36ch;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.project-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

/* ── PROJECT PAGE ── */
.project-page {
    min-height: 100vh;
    padding-top: 70px;
}

.project-page-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

.project-page-header {
    margin-bottom: 2rem;
}

.project-page-number {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.project-page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.project-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── MAIN MEDIA ── */
.main-media {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    overflow: hidden;
    position: relative;
}

.main-media img,
.main-media video,
.main-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: 10px;
}

/* ── GALLERY ── */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.gallery-thumb {
    aspect-ratio: 4/3;
    border-radius: 8px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s;
    overflow: hidden;
    position: relative;
}

.gallery-thumb:hover {
    border-color: var(--accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* ── DESCRIPTION ── */
.project-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.project-description h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.project-description p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.sidebar-section .tag {
    margin-bottom: 0.4rem;
    display: inline-block;
}

/* ── PROJECT NAVIGATION ── */
.project-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.project-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.project-nav a:hover {
    color: var(--accent);
}

.project-nav a span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-nav a strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .project-link {
        flex-direction: column;
    }

    .project-media {
        flex: 0 0 55%;
        padding: 1.5rem 1.5rem 0.5rem;
    }

    .project-media .media-placeholder {
        height: 100%;
    }

    .project-info {
        flex: 0 0 45%;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.75rem;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-body {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-header {
        padding: 1rem 1.5rem;
    }

    .dot-nav {
        right: 0.75rem;
    }
}

@media (max-width: 600px) {
    .project-page-title {
        font-size: 1.8rem;
    }
}
