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

:root {
    --red: #e50914;
    --dark: #141414;
    --surface: #1f1f1f;
    --border: #2a2a2a;
    --text: #e5e5e5;
    --muted: #808080;
}

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── Header ── */

.proj-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: linear-gradient(to bottom, rgba(20,20,20,0.9) 0%, transparent 100%);
}

.proj-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.proj-brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.proj-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.proj-nav a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.proj-nav a:hover { color: #fff; }

/* ── Hero Banner ── */

.proj-hero {
    position: relative;
    width: 100%;
    height: 72vh;
    min-height: 500px;
    max-height: 720px;
    overflow: hidden;
    background: #0a0a0a;
}

.proj-hero-slides {
    position: absolute;
    inset: 0;
}

.proj-hero-slide {
    position: absolute;
    top: 80px;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    object-fit: contain;
    object-position: top center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 28px 80px rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 1.2s ease;
    image-rendering: crisp-edges;
    filter: contrast(1.05) saturate(1.1);
}

.proj-hero-slide.active {
    opacity: 1;
}

.proj-hero--cc {
    background: linear-gradient(145deg, #0f0720, #1a103a, #2e1065);
}

.proj-hero--df {
    background: var(--dark);
}

.proj-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20,20,20,0.05) 0%,
        rgba(20,20,20,0.1) 35%,
        rgba(20,20,20,0.75) 70%,
        rgba(20,20,20,1) 100%
    );
}

.proj-hero-dots {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 10;
}

.proj-hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.proj-hero-dot.active {
    background: rgba(255,255,255,0.85);
    transform: scale(1.25);
}

.proj-hero-dot:hover {
    background: rgba(255,255,255,0.6);
}

.proj-hero-overlay--subtle {
    background: linear-gradient(
        to bottom,
        rgba(20,20,20,0) 0%,
        rgba(20,20,20,0) 50%,
        rgba(20,20,20,0.35) 75%,
        rgba(20,20,20,0.7) 100%
    );
}

.proj-hero-identity {
    position: absolute;
    bottom: 2.75rem;
    left: 5%;
}

.proj-logo-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.proj-icon {
    height: 34px;
    width: auto;
}

.proj-wordmark {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1;
}

.proj-wordmark-df {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.12em;
    line-height: 1;
}

.proj-wordmark-accent {
    color: #3b82f6;
}

.proj-df-icon {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.proj-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.proj-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    background: #fff;
    color: #141414;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.proj-live-btn:hover { opacity: 0.82; }

.proj-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.proj-pill {
    display: inline-block;
    padding: 0.32rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.02em;
}

/* ── Intro bar (datafuse layout) ── */

.proj-intro {
    width: 70%;
    margin: 0 auto;
    padding: 2rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Body ── */

.proj-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 3.5rem 5% 6rem;
}

.proj-body--split {
    max-width: none;
    width: 70%;
    padding: 2.5rem 0 6rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0 3.5rem;
    align-items: start;
}

.proj-sidebar .proj-stack {
    grid-template-columns: 1fr;
}

.proj-sidebar .proj-roles {
    grid-template-columns: 1fr;
}

/* ── Sections ── */

.proj-section {
    margin-bottom: 3rem;
}

.proj-section-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.75rem;
}

/* ── Description ── */

.proj-bio p {
    font-size: 1.05rem;
    color: #d4d4d4;
    line-height: 1.9;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

/* ── Stack ── */

.proj-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.proj-stack-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 1rem 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
}

.proj-stack-label {
    font-weight: 600;
    color: var(--text);
}

.proj-stack-value {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ── Roles ── */

.proj-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
}

.proj-role-item {
    padding: 1rem 1rem 1rem 0;
    border-bottom: 1px solid var(--border);
}

.proj-role-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.proj-role-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ── Feature groups ── */

.proj-features {
    border-top: 1px solid var(--border);
}

.proj-feature-group {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.proj-feature-group-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.proj-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.proj-feature-list li {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.55;
    padding-left: 1rem;
    position: relative;
}

.proj-feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--border);
}

/* ── Footer ── */

.proj-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 5%;
    text-align: center;
}

.proj-footer p {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ── Scroll animations ── */

.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hamburger ── */

.ac-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.ac-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #e5e5e5;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ac-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ac-hamburger.open span:nth-child(2) { opacity: 0; }
.ac-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ── */

.ac-mobile-nav {
    position: fixed;
    inset: 0;
    background: #141414;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ac-mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.ac-mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.ac-mobile-nav a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #e5e5e5;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.ac-mobile-nav a:hover,
.ac-mobile-nav a.active { color: #e50914; }

.ac-mobile-close {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e5e5e5;
    line-height: 1;
    padding: 0.4rem;
}

/* ── Responsive ── */

@media (max-width: 720px) {
    .proj-header {
        position: fixed;
        background: rgba(20,20,20,0.95);
    }

    .proj-hero {
        margin-top: 68px;
        height: 72vw;
        min-height: 300px;
        max-height: 420px;
    }

    .proj-hero-slide {
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        object-fit: cover;
        object-position: top center;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .proj-hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(20,20,20,0) 0%,
            rgba(20,20,20,0) 22%,
            rgba(20,20,20,0.88) 48%,
            rgba(20,20,20,1) 72%
        );
    }

    .proj-hero-identity {
        bottom: 2rem;
        left: 5%;
        right: 5%;
    }

    .proj-hero-dots { display: none; }

    .proj-logo-row { margin-bottom: 0.6rem; }
    .proj-icon { height: 28px; }

    .proj-wordmark,
    .proj-wordmark-df {
        font-size: 1.6rem;
    }

    .proj-stack,
    .proj-roles {
        grid-template-columns: 1fr;
    }

    .proj-body {
        padding: 2.5rem 5% 4rem;
    }

    .proj-body--split {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .proj-nav { display: none; }
    .ac-hamburger { display: flex; }
    .proj-brand-logo { height: 32px; }
    .proj-meta { flex-wrap: wrap; gap: 0.6rem; }
}
