/* Project Page Styles */
.project-hero {
    padding: 120px 0 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.project-hero .container {
    max-width: 900px;
}

.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.project-breadcrumb a {
    color: var(--text-tertiary);
    transition: color var(--transition);
}

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

.project-breadcrumb .sep {
    color: var(--text-muted);
}

.project-hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.project-meta-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.project-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-hero-tags span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* Project Content */
.project-content {
    padding: 64px 0;
}

.project-content .container {
    max-width: 900px;
}

.project-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.project-description p {
    margin-bottom: 16px;
}

.project-description strong {
    color: var(--text-primary);
}

/* Project Details Grid */
.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.project-detail h4 {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-detail ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-detail li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 14px;
    position: relative;
}

.project-detail li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

/* Project Gallery */
.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
}

.project-gallery img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

/* Project Navigation */
.project-nav {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.project-nav .container {
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.project-nav-link svg {
    width: 18px;
    height: 18px;
}

/* Live link button */
.project-live-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
    margin-bottom: 48px;
}

.project-live-link:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* ===========================================
   Rich case-study sections
   =========================================== */

/* Lead paragraph — larger intro */
.project-lead {
    font-size: 22px;
    line-height: 1.55;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Stats bar */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 64px;
}

.project-stat {
    background: var(--bg-card);
    padding: 28px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-value {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #71717a);
}

/* Generic section wrapper */
.project-section {
    margin-bottom: 64px;
}

.project-section > h2 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.project-section > h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--accent);
    border-radius: 4px;
}

.project-section > p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.project-section > p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Numbered approach steps */
.project-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 16px;
    padding: 0;
}

.project-steps li {
    counter-increment: step;
    position: relative;
    padding: 24px 24px 24px 72px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), transform var(--transition);
}

.project-steps li:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.project-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 24px;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.project-steps li strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.project-steps li span {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* Results checklist */
.result-list {
    list-style: none;
    display: grid;
    gap: 14px;
    padding: 0;
}

.result-list li {
    position: relative;
    padding: 16px 20px 16px 52px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.result-list li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 18px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}

.result-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Pullquote */
.project-pullquote {
    margin: 48px 0;
    padding: 32px 36px;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 22px;
    line-height: 1.5;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-style: italic;
}

.project-pullquote cite {
    display: block;
    margin-top: 14px;
    font-family: var(--font-secondary, 'Inter');
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted, #71717a);
    font-style: normal;
}

/* Two-column text block */
.project-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.project-two-col > div {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.project-two-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-two-col p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Split gallery (2 images side by side) */
.project-gallery-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.project-gallery-split img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

/* Caption */
.project-caption {
    display: block;
    font-size: 13px;
    color: var(--text-muted, #71717a);
    text-align: center;
    margin-top: -16px;
    margin-bottom: 32px;
    font-style: italic;
}

@media (max-width: 768px) {
    .project-meta {
        flex-direction: column;
        gap: 16px;
    }

    .project-details {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .project-nav .container {
        flex-direction: column;
        gap: 16px;
    }

    .project-lead {
        font-size: 18px;
    }

    .project-section > h2 {
        font-size: 22px;
    }

    .stat-value {
        font-size: 28px;
    }

    .project-pullquote {
        font-size: 18px;
        padding: 24px;
    }

    .project-two-col,
    .project-gallery-split {
        grid-template-columns: 1fr;
    }

    .project-steps li {
        padding: 20px 20px 20px 60px;
    }

    .project-steps li::before {
        left: 20px;
        top: 20px;
        font-size: 18px;
    }
}
