body.portfolio-page {
    min-height: 100vh;
    padding: 28px 0 56px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 26%),
        linear-gradient(180deg, #020617 0%, #0f172a 50%, #111827 100%);
    color: var(--white);
}

.portfolio-shell {
    width: min(calc(100% - 32px), 1180px);
    margin: 0 auto;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.portfolio-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-weight: 700;
    transition: 0.2s ease;
}

.portfolio-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-page-no {
    color: #94a3b8;
    font-size: 0.92rem;
}

.portfolio-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px;
    height: 440px;
}

.portfolio-hero-copy {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.portfolio-hero-top {
    display: flex;
    flex-direction: column;
}

.portfolio-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--point-soft);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #bae6fd;
    font-size: 0.84rem;
    font-weight: 700;
}

.portfolio-title {
    margin: 14px 0 14px;
    font-size: clamp(1.45rem, 2.35vw, 2.25rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.portfolio-summary {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
    max-width: 38rem;
}

.portfolio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 0.2s ease;
}

.portfolio-btn.primary {
    background: var(--point);
    color: #062033;
}

.portfolio-btn.primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.portfolio-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.portfolio-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-preview {
    align-self: start;
    height: 100%;
    padding: 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.portfolio-preview img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 18px;
    object-fit: contain;
    object-position: top center;
}

.portfolio-details {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portfolio-panel {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.portfolio-panel h2 {
    margin-bottom: 14px;
    font-size: 1.16rem !important;
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.portfolio-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portfolio-list li {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.portfolio-list strong {
    color: var(--white);
}

.portfolio-footer {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.portfolio-switches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-switches a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.portfolio-switches a:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 920px) {
    .portfolio-hero,
    .portfolio-details {
        grid-template-columns: 1fr;
    }

    .portfolio-hero {
        height: auto;
    }

    .portfolio-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    body.portfolio-page {
        padding-top: 18px;
    }

    .portfolio-hero,
    .portfolio-panel {
        padding: 20px;
    }

    .portfolio-title {
        font-size: 1.85rem;
    }
}
