/* The Astana portfolio deliberately mirrors Alteman's proven catalogue hierarchy. */
.astana-section--portfolio-source {
    padding: 0 0 80px;
    background: #f8f7f3;
    color: #4b4a46;
}

.astana-section--portfolio-source .astana-wrap {
    width: min(1480px, calc(100% - 64px));
}

.astana-portfolio-source-hero {
    position: relative;
    display: grid;
    min-height: 360px;
    padding: 72px 0 62px;
    border-bottom: 1px solid #d9d6cf;
    text-align: center;
}

.astana-portfolio-source-hero > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.astana-portfolio-source-hero__eyebrow {
    margin: 0 0 20px;
    color: var(--astana-orange);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.astana-portfolio-source-hero h2 {
    max-width: 900px;
    margin: 0 auto;
    color: #4b4a46;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(48px, 7vw, 106px);
    font-weight: 400;
    letter-spacing: -.065em;
    line-height: .91;
}

.astana-portfolio-source-hero__copy {
    position: absolute;
    right: 0;
    bottom: 62px;
    max-width: 360px;
    margin: 0;
    color: #77746e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
}

.astana-portfolio-source-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 28px 0;
    color: #77746e;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.astana-portfolio-source-intro p {
    margin: 0;
    font-size: 14px;
}

.astana-portfolio-source-intro strong {
    color: #4b4a46;
}

.astana-section--portfolio-source .astana-portfolio-catalog {
    padding-bottom: 0;
}

.astana-section--portfolio-source .astana-portfolio-category {
    border-color: #d9d6cf;
    background: #f8f7f3;
}

.astana-section--portfolio-source .astana-portfolio-category__info {
    border-left-color: #d9d6cf;
}

.astana-section--portfolio-source .astana-portfolio-category__link {
    border-top-color: #d9d6cf;
}

@media (max-width: 900px) {
    .astana-section--portfolio-source .astana-wrap {
        width: min(100% - 32px, 720px);
    }

    .astana-portfolio-source-hero {
        min-height: 0;
        gap: 24px;
        padding: 48px 0;
    }

    .astana-portfolio-source-hero__copy {
        position: static;
        align-self: center;
        justify-self: center;
        max-width: 520px;
    }

    .astana-section--portfolio-source .astana-portfolio-category__info {
        border-top-color: #d9d6cf;
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .astana-section--portfolio-source {
        padding-bottom: 48px;
    }

    .astana-portfolio-source-hero {
        padding: 38px 0;
    }

    .astana-portfolio-source-hero h2 {
        font-size: 54px;
    }

    .astana-portfolio-source-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 24px 0;
        text-align: left;
    }
}
