/* Shared team card UI (About + Portfolio) */
.team-section {
    margin-bottom: 100px;
}

.team-section--cards-only {
    margin-bottom: 0;
}

.team-section__heading {
    margin: 0 0 20px;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.25;
    font-weight: 700;
    max-width: 500px;
}

.team-section__intro {
    margin-bottom: 50px;
    padding-bottom: 50px;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--theme-palette-color-3, #d2d7dc);
    border-bottom: 1px solid #ffffff21;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
}

.team-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    outline: none;
}

.team-card-link:focus-visible .team-card {
    box-shadow: 0 0 0 2px var(--theme-palette-color-1, #39a751);
}

.team-card-link:hover .team-card__media {
    transform: scale(1.02);
}

.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 450px;
    padding: 20px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 -1px 0 0 #52ff7d29, 0 0 0 1px #ffffff1f;
    background-image: linear-gradient(180deg, rgba(10, 43, 18, 0.42) 0%, #0c0c0c 64%);
    isolation: isolate;
    transition: transform 0.2s ease;
}

.team-card-link:hover .team-card {
    transform: translateY(-3px);
}

.team-card__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    transition: transform 0.35s ease;
}

.team-card__info {
    position: relative;
    padding: 15px;
    border-top: 1px solid #ffffff30;
    border-radius: 10px;
    background-image: linear-gradient(180deg, rgba(5, 31, 6, 0.24) 0%, rgba(1, 8, 1, 0.55) 100%);
    backdrop-filter: blur(7px);
}

.team-card__name {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    color: var(--theme-palette-color-4, #ffffff);
}

.team-card__role {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: var(--theme-palette-color-3, #d2d7dc);
}

@media (max-width: 999.98px) {
    .team-section__heading,
    .team-section__intro {
        max-width: 100%;
        text-align: center;
    }

    .team-section__intro {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 689.98px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card {
        min-height: 380px;
    }
}

/* Portfolio listing hero */
.portfolio-hero {
    margin-bottom: 80px;
    padding-top: 240px;
    padding-bottom: 60px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-image: url('/assets/bf49ffccc78266c7293f3fddd0ea927f9b1916400416fd40ef4abd791d74a4a5.jpeg');
    border-bottom: 1px solid #ffffff1c;
}

.portfolio-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(30px, 5vw, 60px);
    line-height: 1.25;
    font-weight: 700;
}

.portfolio-hero p {
    margin: 0;
    max-width: 640px;
    font-size: 20px;
    line-height: 1.65;
    color: var(--theme-palette-color-3, #d2d7dc);
}

@media (max-width: 999.98px) {
    .portfolio-hero {
        padding-top: 150px;
        margin-bottom: 60px;
    }

    .portfolio-hero p {
        font-size: 18px;
    }
}

@media (max-width: 689.98px) {
    .portfolio-hero {
        padding-top: 120px;
        margin-bottom: 50px;
    }

    .portfolio-hero p {
        font-size: 16px;
    }
}

/* Individual portfolio profile */
.portfolio-profile-hero {
    position: relative;
    margin-bottom: 80px;
    padding-top: 140px;
    border-bottom: 1px solid #ffffff1c;
}

.portfolio-profile-hero__banner {
    position: absolute;
    inset: 0;
    min-height: 320px;
    overflow: hidden;
    border-bottom: 1px solid #ffffff14;
}

.portfolio-profile-hero__banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/bf49ffccc78266c7293f3fddd0ea927f9b1916400416fd40ef4abd791d74a4a5.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 100%;
}

.portfolio-profile-hero__banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 8, 0.35) 0%, rgba(8, 12, 8, 0.72) 55%, rgba(12, 12, 12, 0.92) 100%),
        linear-gradient(180deg, rgba(10, 43, 18, 0.28) 0%, rgba(12, 12, 12, 0.55) 100%);
    backdrop-filter: blur(2px);
}

.portfolio-profile-hero__shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 36px;
    max-width: var(--theme-normal-container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 24px 48px;
    min-height: 280px;
}

.portfolio-profile-hero__profile {
    flex-shrink: 0;
}

.portfolio-profile-hero__photo-wrap {
    position: relative;
    width: 220px;
    height: 280px;
    padding: 8px;
    border-radius: 16px;
    box-shadow:
        0 -1px 0 0 #52ff7d35,
        0 0 0 1px #ffffff25,
        0 20px 50px rgba(0, 0, 0, 0.45);
    background: linear-gradient(180deg, rgba(10, 43, 18, 0.55) 0%, rgba(12, 12, 12, 0.88) 100%);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.portfolio-profile-hero__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.portfolio-profile-hero__meta {
    flex: 1;
    min-width: 0;
    padding-bottom: 8px;
}

.portfolio-profile-hero__badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--theme-palette-color-1, #39a751);
    border: 1px solid #52ff7d45;
    border-radius: 999px;
    background: rgba(10, 43, 18, 0.55);
    backdrop-filter: blur(6px);
}

.portfolio-profile-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 700;
}

.portfolio-profile-hero__role {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-palette-color-1, #39a751);
}

.portfolio-profile-body {
    max-width: var(--theme-normal-container-max-width, 1200px);
    margin: 0 auto 100px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.portfolio-profile-panel {
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 -1px 0 0 #52ff7d29, 0 0 0 1px #ffffff1f;
    background-image: linear-gradient(180deg, rgba(10, 43, 18, 0.42) 0%, #0c0c0c 72%);
}

.portfolio-profile-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
}

.portfolio-profile-panel p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--theme-palette-color-3, #d2d7dc);
}

.portfolio-profile-panel ul {
    margin: 0;
    padding-left: 1.2em;
}

.portfolio-profile-panel li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--theme-palette-color-3, #d2d7dc);
}

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

.portfolio-skill {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #ffffff20;
    background: rgba(0, 0, 0, 0.25);
    color: var(--theme-palette-color-4, #ffffff);
}

@media (max-width: 999.98px) {
    .portfolio-profile-body {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 70px;
    }

    .portfolio-profile-hero {
        padding-top: 120px;
        margin-bottom: 60px;
    }

    .portfolio-profile-hero__shell {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .portfolio-profile-hero__meta {
        padding-bottom: 0;
    }
}

@media (max-width: 689.98px) {
    .portfolio-profile-hero {
        padding-top: 110px;
    }

    .portfolio-profile-hero__photo-wrap {
        width: 180px;
        height: 230px;
    }

    .portfolio-profile-panel {
        padding: 24px;
    }
}
