:root {
    --navy: #1a1a1a;
    --coral: #e8967a;
    --cream: #faf8f5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Familjen Grotesk', sans-serif;
    background: var(--navy);
    color: var(--cream);
}

/* Nav */
.project-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    z-index: 100;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--coral);
    text-decoration: none;
}

.project-nav-back {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.project-nav-back:hover {
    opacity: 1;
}

/* Hero */
.project-hero {
    min-height: 60vh;
    padding: 10rem 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
}

.project-hero-category {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1.5px solid currentColor;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    opacity: 0.65;
    width: fit-content;
}

.project-hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1;
    opacity: 0.9;
}

.project-hero-title {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    max-width: 780px;
}

/* Body */
.project-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 3rem;
}

/* Two-column layout: text left, PDF right */
.project-layout {
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}

.project-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    min-width: 0;
}

.project-right {
    flex: 1;
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    min-width: 0;
}

/* Hide scrollbar on right column */
.project-right::-webkit-scrollbar { display: none; }
.project-right { scrollbar-width: none; }

/* Full-width image slot — fill in src="" to activate */
.project-img {
    width: 100%;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

/* Placeholder appearance while src is empty */
.project-img:not([src]), .project-img[src=""] {
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.project-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 2rem;
    font-weight: 400;
    color: var(--coral);
    margin-bottom: 1.5rem;
}

.project-section p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(250, 248, 245, 0.8);
    margin-bottom: 1.2rem;
}

.project-section p:last-child {
    margin-bottom: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(250, 248, 245, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    color: rgba(250, 248, 245, 0.5);
}

/* Cover Image */
.project-cover {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cover-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.cover-change-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s;
}

.project-cover:hover .cover-change-btn { opacity: 1; }

.cover-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.cover-add-label {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral);
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cover-add-label:hover { opacity: 1; }
.cover-add-label input { display: none; }

.cover-or {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.68rem;
    opacity: 0.25;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cover-url-row {
    display: flex;
    gap: 0.5rem;
}

.cover-url-input {
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--cream);
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.8rem;
    width: 260px;
}

.cover-url-input:focus {
    outline: none;
    border-color: var(--coral);
}

.cover-url-input::placeholder { opacity: 0.35; }

.cover-url-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: var(--cream);
    cursor: pointer;
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.cover-url-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* Pitch Deck */
/* ---- PDF viewer ---- */
.pdf-viewer {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.pdf-page {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

.pdf-loading,
.pdf-error {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: rgba(250, 248, 245, 0.3);
    padding: 3rem 0;
    text-align: center;
}

/* ---- Doc link card ---- */
.doc-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--cream);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.doc-card-thumb {
    flex: 0 0 200px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
    overflow: hidden;
}

.doc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.doc-card:hover .doc-card-thumb img { opacity: 1; }

.doc-card-body {
    flex: 1;
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.doc-card-type {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--coral);
    opacity: 0.8;
}

.doc-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.35;
    opacity: 0.88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-card-arrow {
    flex: 0 0 auto;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.doc-card:hover .doc-card-arrow {
    opacity: 0.75;
    transform: translate(2px, -2px);
}

/* Footer nav */
.project-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem;
    display: flex;
    justify-content: center;
}

.project-footer-back {
    font-family: 'Familjen Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.project-footer-back:hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .project-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .project-right {
        position: static;
        max-height: none;
        overflow-y: visible;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 8rem 2rem 4rem;
    }

    .project-nav {
        padding: 1rem 1.5rem;
    }

    .project-body {
        padding: 4rem 1.5rem;
    }
}
