* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent: #e8d5b5;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Archivo', sans-serif;
    background: var(--primary-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 213, 181, 0.1);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-light);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.back-link::before {
    content: '←';
    font-size: 1.2rem;
}

/* ══════════════════════════════════════
   PROJECT HERO
   ══════════════════════════════════════ */

.project-hero {
    padding: 150px 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-hero-video {
    width: 100%;
    height: 600px;
    background: var(--secondary-bg);
    border: 1px solid rgba(232, 213, 181, 0.1);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.project-hero-video::before {
    content: '▶';
    font-size: 8rem;
    opacity: 0.2;
    position: absolute;
}

.project-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(232, 213, 181, 0.1);
    border-bottom: 1px solid rgba(232, 213, 181, 0.1);
}

.meta-item h4 {
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.meta-item p {
    color: var(--text-light);
    font-size: 1.2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(232, 213, 181, 0.1);
    border: 1px solid rgba(232, 213, 181, 0.2);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ══════════════════════════════════════
   PROJECT CONTENT
   ══════════════════════════════════════ */

.project-content {
    padding: 4rem 4rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 5rem;
}

.content-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.content-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--text-light);
    margin: 2.5rem 0 1.5rem;
}

.content-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.content-section ul {
    list-style: none;
    margin: 2rem 0;
}

.content-section li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.2rem;
}

.content-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
}

/* ══════════════════════════════════════
   IMAGE GRIDS & MEDIA
   ══════════════════════════════════════ */

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.image-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.image-placeholder {
    aspect-ratio: 16/9;
    background: var(--secondary-bg);
    border: 1px solid rgba(232, 213, 181, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
}

  .image-label {
            font-size: 0.75rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 1.5rem;
            text-align: center;
        }

.image-placeholder img {
    width: fit-content;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder:hover {
    border-color: rgba(232, 213, 181, 0.3);
    transform: translateY(-5px);
}

.image-large {
    min-height: 600px;
}

.image-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.video-container {
            max-width: 1000px;
            margin: 0 auto;
            aspect-ratio: 16/9;
            background: var(--secondary-bg);
            border: 1px solid rgba(232, 213, 181, 0.1);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

.video-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            color: var(--accent);
            transition: all 0.4s var(--transition);
            cursor: pointer;
        }

.browser-mockup {
    background: #2a2a2a;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border: 1px solid rgba(232, 213, 181, 0.1);
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
}

.browser-mockup-version {
    background: #2a2a2a;
    border-radius: 8px 8px 8px 8px;
    overflow: hidden;
    border: 1px solid rgba(232, 213, 181, 0.1);
    width: 100%;
    max-width: 900px;
    height: 480px;
    margin: 0 auto;
}

.browser-header {
    background: #1a1a1a;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-figure {
    margin: 0;
}

.image-grid.two-col {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.image-grid.single {
    display: flex;
    justify-content: center;
}

.browser-mockup {
  background: #2a2a2a;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border: 1px solid rgba(232, 213, 181, 0.1);
  width: 100%;
  max-width: 900px;
  height: 600px;
  margin: 0 auto;
}

.browser-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prototype Button */
        .prototype-btn {
            display: inline-flex;
            align-items: center;
            gap: 1rem;
            padding: 1.2rem 2.5rem;
            background: var(--accent);
            color: var(--primary-bg);
            text-decoration: none;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            border-radius: 4px;
            transition: all 0.3s var(--transition);
            border: 2px solid var(--accent);
        }

        .prototype-btn:hover {
            background: transparent;
            color: var(--accent);
            transform: translateY(-3px);
           
        }

        .prototype-btn span:last-child {
            font-size: 1.3rem;
            transition: transform 0.3s var(--transition);
        }

        .prototype-btn:hover span:last-child {
            transform: translateX(5px);
        }


/* ══════════════════════════════════════
   STATS, TECH STACK & CODE
   ══════════════════════════════════════ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-bg);
    border: 1px solid rgba(232, 213, 181, 0.1);
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tech-item {
    padding: 1rem 1.5rem;
    background: var(--secondary-bg);
    border: 1px solid rgba(232, 213, 181, 0.2);
    font-size: 0.9rem;
    color: var(--accent);
}

.code-block {
    background: #1a1a1a;
    border: 1px solid rgba(232, 213, 181, 0.1);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-light);
    overflow-x: auto;
}

/* ══════════════════════════════════════
   PROJECT NAV & FOOTER
   ══════════════════════════════════════ */

.project-nav {
    display: flex;
    justify-content: space-between;
    padding: 4rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(232, 213, 181, 0.1);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(232, 213, 181, 0.3);
    background: transparent;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--accent);
    color: var(--primary-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nav-btn.prev::before {
    content: '←';
}

.nav-btn.next::after {
    content: '→';
}

footer {
    padding: 3rem 4rem;
    border-top: 1px solid rgba(232, 213, 181, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ══════════════════════════════════════
   UI ELEMENTS & DESIGN SYSTEM
   ══════════════════════════════════════ */

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 6rem 0 4rem;
}

.section-divider span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(232, 213, 181, 0.15);
}

/* Color System */
.color-system {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2.5rem 0;
}

.color-group-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.color-swatches {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.color-swatch {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s var(--transition);
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch .swatch-label {
    position: absolute;
    bottom: -1.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.color-usage-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    border-left: 2px solid rgba(232, 213, 181, 0.25);
}

/* Typography Specimen */
.type-specimen {
    margin: 2.5rem 0;
    padding: 3rem;
    background: #1a1a1a;
    border: 1px solid rgba(232, 213, 181, 0.08);
    overflow: hidden;
}

.type-specimen-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.type-meta {
    flex-shrink: 0;
}

.type-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-light);
}

.type-classification {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.type-css-note {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
}

/* Impact Display — Moore Site */
.type-display-showcase {
    position: relative;
    padding: 2rem 0;
}

.type-impact-word {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: 0.08em;
    color: #E8E4C0;
    text-shadow:
        3px 3px 0px rgba(0, 0, 0, 0.6),
        6px 6px 0px rgba(0, 0, 0, 0.3);
}

.type-impact-large {
    font-size: clamp(4rem, 8vw, 7rem);
}

.type-impact-medium {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.type-impact-ghost {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: 0.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(232, 228, 192, 0.15);
    font-size: clamp(4rem, 8vw, 7rem);
}

.type-rationale {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 213, 181, 0.08);
    max-width: 700px;
}

/* Navigation Pattern Demo */
.nav-pattern-demo {
    display: grid;
    grid-template-columns: 220px 1fr;
    margin: 2.5rem 0;
    background: #1a1a1a;
    border: 1px solid rgba(232, 213, 181, 0.08);
    min-height: 360px;
    overflow: hidden;
}

.nav-sidebar {
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-sidebar-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #E8E4C0;
    margin-bottom: 1.5rem;
}

.nav-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-sidebar-item {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: default;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-sidebar-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #E8E4C0;
    color: #E8E4C0;
}

.nav-content-area {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-content-heading {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #E8E4C0;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.5),
        4px 4px 0px rgba(0, 0, 0, 0.25);
    line-height: 1;
}

.nav-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nav-content-card {
    aspect-ratio: 16/10;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.02) 4px,
        rgba(255, 255, 255, 0.05) 4px,
        rgba(255, 255, 255, 0.05) 8px
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

/* Layout Properties Demo */
.layout-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.layout-prop-card {
    padding: 1.5rem;
    background: var(--secondary-bg);
    border: 1px solid rgba(232, 213, 181, 0.08);
}

.layout-prop-key {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.layout-prop-value {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
}

.layout-prop-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    line-height: 1.5;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
    nav,
    .project-hero,
    .project-content,
    .project-nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .project-hero-video {
        height: 300px;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .image-grid,
    .image-grid.two-col {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        justify-content: center;
    }

    /* Design System responsive */
    .color-system {
        grid-template-columns: 1fr;
    }

    .type-specimen-header {
        flex-direction: column;
        gap: 1rem;
    }

    .type-impact-word.type-impact-large {
        font-size: 3rem;
    }

    .type-impact-word.type-impact-medium {
        font-size: 2rem;
    }

    .type-impact-ghost {
        font-size: 3rem;
    }

    .nav-pattern-demo {
        grid-template-columns: 1fr;
    }

    .nav-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-sidebar-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-sidebar-item {
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .nav-sidebar-item.active {
        border-left: none;
        border-bottom-color: #E8E4C0;
    }

    .nav-content-grid {
        grid-template-columns: 1fr;
    }

    .layout-props {
        grid-template-columns: 1fr;
    }
}