.opensource-theme {
    --obsidian-mid: #1a1a25;
    --sandstone-muted: #a08b65;
}

.os-hero {
    position: relative;
    min-height: clamp(420px, 58vh, 600px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(80px, 12vh, 140px) clamp(20px, 4vw, 40px) clamp(40px, 6vh, 80px);
    overflow: hidden;
    z-index: 2;
}

.os-hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.os-hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.os-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.os-hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    margin-bottom: clamp(20px, 3vw, 28px);
}

.os-hero-eyebrow-line {
    width: clamp(40px, 8vw, 100px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.os-hero-eyebrow-diamond {
    color: var(--gold);
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    opacity: 0.6;
}

.os-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: clamp(10px, 1.5vw, 16px);
    letter-spacing: 2px;
    line-height: 1.15;
}

.os-hero-sub {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: var(--sandstone);
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 500px;
    line-height: 1.5;
    margin: 0 auto;
}

.os-philosophy {
    padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px);
    position: relative;
    z-index: 2;
}

.os-philosophy-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(197, 165, 114, 0.1);
    border-radius: 12px;
    padding: clamp(24px, 3vw, 40px);
    background: rgba(197, 165, 114, 0.03);
}

.os-philosophy-text {
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.7;
}

.os-divider {
    width: 100%;
    max-width: 120px;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(197, 165, 114, 0.2), transparent);
    border: none;
}

.os-projects {
    padding: clamp(36px, 6vw, 72px) clamp(16px, 3vw, 32px);
    max-width: var(--content-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.os-projects-header {
    text-align: center;
    margin-bottom: clamp(28px, 3.5vw, 44px);
}

.os-projects-heading {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.os-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.5vw, 28px);
}

.os-project-card {
    background: rgba(16, 16, 22, 0.95);
    border: 1px solid rgba(197, 165, 114, 0.15);
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.os-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.os-project-card:hover {
    border-color: rgba(197, 165, 114, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(218, 165, 32, 0.06);
    transform: translateY(-4px);
}

.os-project-card:hover::before {
    opacity: 1;
}

.os-project-featured {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.os-project-featured:hover {
    text-decoration: none;
    color: inherit;
}

.os-project-visual {
    position: relative;
    height: clamp(160px, 20vw, 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 8, 14, 0.95), rgba(6, 6, 10, 0.98));
    border-bottom: 1px solid rgba(218, 165, 32, 0.08);
}

.os-project-icon-large {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold);
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.os-project-featured:hover .os-project-icon-large {
    transform: scale(1.1);
}

.os-project-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.2), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.os-project-icon-dim {
    opacity: 0.25;
}

.os-project-body {
    padding: clamp(20px, 2.5vw, 28px) clamp(20px, 2.5vw, 28px);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.os-project-label {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.68rem, 0.85vw, 0.75rem);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    opacity: 0.7;
    font-weight: 600;
}

.os-project-label-dim {
    color: var(--text-secondary);
    opacity: 0.4;
}

.os-project-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.os-project-desc {
    color: var(--text-secondary);
    font-size: clamp(0.88rem, 1vw, 0.95rem);
    line-height: 1.65;
    margin-bottom: clamp(14px, 2vw, 20px);
    flex: 1;
}

.os-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(16px, 2vw, 22px);
}

.os-tag {
    font-size: clamp(0.62rem, 0.75vw, 0.7rem);
    padding: 4px 12px;
    background: rgba(218, 165, 32, 0.08);
    border: 1px solid rgba(218, 165, 32, 0.15);
    border-radius: 20px;
    color: var(--sandstone);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.os-project-link-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.os-project-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--obsidian);
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(0.78rem, 0.9vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.os-project-cta:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.3);
}

.os-project-cta-ghost {
    background: transparent;
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: var(--gold);
    border-radius: 8px;
}

.os-project-cta-ghost:hover {
    background: rgba(218, 165, 32, 0.08);
    border-color: var(--gold);
}

.os-cta-section {
    padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(197, 165, 114, 0.1);
}

.os-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 48px);
    flex-wrap: wrap;
}

.os-cta-text h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.os-cta-text p {
    color: var(--text-secondary);
    font-size: clamp(0.88rem, 1vw, 0.95rem);
    line-height: 1.6;
    max-width: 380px;
}

.os-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.os-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.os-cta-btn.primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--obsidian);
}

.os-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.os-cta-btn.secondary {
    background: transparent;
    border: 1px solid rgba(197, 165, 114, 0.3);
    color: var(--sandstone);
}

.os-cta-btn.secondary:hover {
    border-color: var(--sandstone);
    background: rgba(197, 165, 114, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .os-projects-grid {
        grid-template-columns: 1fr;
    }

    .os-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .os-cta-text p {
        max-width: none;
    }

    .os-cta-actions {
        justify-content: center;
    }

    .os-project-link-row {
        justify-content: center;
    }

    .os-hero-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
}
