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

:root {
    --black: #0a0a0a;
    --off-white: #f0ece4;
    --warm-gray: #b0aa9e;
    --accent: #d4522a;
    --accent-light: #e8876a;
    --card-bg: #141414;
    --border: rgba(240,236,228,0.12);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html { 
    scroll-behavior: smooth; 
    overscroll-behavior: none;
}

body {
    background: var(--black);
    color: var(--off-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: var(--off-white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 1.0rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ── HERO BANNER ── */
.project-hero {
    position: relative;
    height: 70vh;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 0;
    padding-top: 72px; /* nav height */
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* TODO: Replace with your project's key art:
    background-image: url('project-hero.jpg');
    background-size: cover;
    background-position: center; */
    background: linear-gradient(145deg, #1c1c2e 0%, #2d1b4e 50%, #1a1228 100%);
    transform: scale(1.03);
    animation: heroZoom 10s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1.0); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.15) 60%);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 3rem 2.5rem;
    width: 100%;
    animation: fadeUp 0.8s 0.2s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--warm-gray);
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.2s;
}

.back-link:hover { color: var(--off-white); }
.back-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.project-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
    display: block;
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    color: var(--off-white);
    max-width: 800px;
}

/* ── MAIN LAYOUT ── */
.project-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 3rem 7rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 5rem;
    align-items: start;
}

/* ── SLIDESHOW ── */
.slideshow {
    width: 100%;
    margin-bottom: 3.5rem;
}

.slide-main {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
    position: relative;
}

.slide-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: opacity 0.4s ease;
}

/* Placeholder when no image */
.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.25em;
    color: rgba(240,236,228,0.2);
    background: #111;
}

.slide-controls {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 1px;
}

.slide-btn {
    background: #111;
    border: none;
    border-right: 1px solid var(--border);
    color: var(--warm-gray);
    width: 48px; height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.slide-btn:hover { background: var(--accent); color: var(--off-white); }
.slide-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.slide-counter {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--warm-gray);
    padding: 0 1rem;
    flex: 1;
    background: #111;
    height: 48px;
    display: flex;
    align-items: center;
}

.slide-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0 1rem;
    background: #111;
    height: 48px;
}

.dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(176,170,158,0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
}

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

/* Thumbnail strip */
.slide-thumbs {
    display: flex;
    gap: 1px;
    margin-top: 1px;
    overflow-x: auto;
    scrollbar-width: none;
}

.slide-thumbs::-webkit-scrollbar { display: none; }

.thumb {
    flex-shrink: 0;
    width: 100px; height: 60px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s;
    border: none;
    padding: 0;
    background: #181818;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: rgba(240,236,228,0.3);
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active, .thumb:hover { opacity: 1; }
.thumb.active { outline: 1px solid var(--accent); }

/* ── OVERVIEW + TASKS ── */
.content-section { margin-bottom: 3.5rem; }

.section-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 2.4rem;
    letter-spacing: 0.03em;
    color: var(--off-white);
    margin-bottom: 1.2rem;
}

.overview-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--warm-gray);
    line-height: 1.85;
    max-width: 680px;
}

.overview-text p + p { margin-top: 1rem; }

.overview-text strong {
    font-weight: 500;
    color: var(--off-white);
}

/* Task list */
.task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.task-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--warm-gray);
    line-height: 1.6;
    transition: color 0.2s;
}

.task-list li:first-child { border-top: 1px solid var(--border); }
.task-list li:hover { color: var(--off-white); }

.task-num {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent);
    min-width: 28px;
    margin-top: 1px;
}

/* ── VIDEO ── */
.video-section { margin-bottom: 3.5rem; }

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    overflow: hidden;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video placeholder (before URL is set) */
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--warm-gray);
    background: #111;
}

.video-placeholder svg { width: 48px; height: 48px; stroke: var(--accent); fill: none; stroke-width: 1.5; opacity: 0.7; }

.video-placeholder p {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ── SIDEBAR (METADATA) ── */
.sidebar {
    position: sticky;
    top: 100px;
    animation: fadeUp 0.8s 0.4s both;
}

.meta-card {
    background: #0f0f0f;
    border: 1px solid var(--border);
    padding: 2rem;
}

.meta-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    color: var(--off-white);
}

.meta-row {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-row:last-of-type { border-bottom: none; }

.meta-key {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
}

.meta-val {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--off-white);
    line-height: 1.5;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.tag {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 8px;
    border: 1px solid rgba(240,236,228,0.18);
    color: var(--warm-gray);
}

/* Links in sidebar */
.meta-links {
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--off-white);
    text-decoration: none;
    border: 1px solid rgba(240,236,228,0.25);
    padding: 0.75rem 1.2rem;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
    font-family: var(--font-body);
    cursor: pointer;
    background: none;
    width: 100%;
}

.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: #b8421f; border-color: #b8421f; }
.btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── NEXT PROJECT ── */
.next-project {
    border-top: 1px solid var(--border);
    padding: 0 3rem;
    max-width: 1280px;
    margin: 0 auto 0;
}

.next-project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
    text-decoration: none;
    color: inherit;
    gap: 2rem;
    transition: gap 0.3s ease;
}

.next-project-link:hover { gap: 1.5rem; }

.next-label {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 0.4rem;
}

.next-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.03em;
    color: var(--off-white);
    line-height: 1;
}

.next-arrow {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border: 1px solid rgba(240,236,228,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.next-project-link:hover .next-arrow {
    background: var(--accent);
    border-color: var(--accent);
}

.next-arrow svg { width: 20px; height: 20px; stroke: var(--off-white); fill: none; stroke-width: 2; }

/* ── FOOTER ── */
footer {
    background: #060606;
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(176,170,158,0.5);
    letter-spacing: 0.05em;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(176,170,158,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--off-white); }


.footer-socials {
    display: flex;
    gap: 1.2rem;
    width: 50%;
    justify-content: right;
}

.footer-socials a {
    width: 38px; height: 38px;
    border: 1px solid rgba(240,236,228,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    color: var(--warm-gray);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-socials a:hover {
    border-color: var(--accent);
    color: var(--off-white);
    background: rgba(212,82,42,0.15);
}

.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .project-body {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.5rem 2rem 5rem;
    }
    .sidebar { position: static; }
    .meta-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
    .meta-title { grid-column: span 2; }
    .meta-links { grid-column: span 2; flex-direction: row; }
    .btn { width: auto; }
}

@media (max-width: 768px) {
    nav { padding: 1.2rem 1.5rem; }
    .nav-links { display: none; }
    .project-hero-content { padding: 0 1.5rem 2.5rem; }
    .project-body { padding: 2.5rem 1.5rem 4rem; }
    .meta-card { display: block; }
    .meta-links { flex-direction: column; }
    .btn { width: 100%; }
    .next-project { padding: 0 1.5rem; }
    footer { padding: 1.5rem; }

    
    main { overflow-x: hidden; max-width: 100%; }

    .slideshow { width: 100%; max-width: 100%; overflow: hidden; }
    .slide-main { width: 100%; max-width: 100%; }
    .slide-main img { width: 100%; height: 100%; max-width: 100%; }
    .slide-thumbs { max-width: 100%; }
    .slide-controls { max-width: 100%; }
}