/* Public talent profile */

.page-shell {
    width: var(--shell-width);
    max-width: var(--shell-width);
    margin-inline: auto;
    padding: 1.5rem 0 3rem;
}

.profile-shell { padding-top: 1.1rem; }

.profile-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    color: var(--ink-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
}
.profile-back svg { transform: scaleX(-1); }
.profile-back:hover { color: var(--brand); }

.profile-hero {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 1.45rem 1.55rem;
    margin-bottom: 1.15rem;
    border-radius: 1.5rem;
}

.profile-hero-glow {
    position: absolute;
    inset: -20% auto auto -10%;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 99, 179, 0.22), transparent 68%);
    pointer-events: none;
}

.profile-hero-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.4rem;
    align-items: center;
}

.profile-avatar-wrap {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
}

.profile-avatar {
    width: 8.25rem;
    height: 8.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #1578e3, #3d8fef);
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(21, 120, 227, 0.2);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-stars {
    display: inline-flex;
    gap: 0.15rem;
    color: #f5b301;
}
.profile-stars svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: currentColor;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
}

.badge-featured,
.badge-available,
.badge-busy,
.badge-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
}

.badge-available {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge-busy {
    background: rgba(176, 183, 195, 0.12);
    color: var(--ink-muted);
    border: 1px solid var(--card-border);
}

.badge-level.is-bronze { background: #f3e4cf; color: #7a4e22; }
.badge-level.is-silver { background: #e7edf2; color: #4d5b68; }
.badge-level.is-gold { background: #fff3cc; color: #8a6508; }

.profile-name {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    color: #112847;
    line-height: 1.35;
}

.profile-role,
.profile-city {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}
.profile-role { color: var(--brand); }
.profile-city { color: var(--ink-muted); }
.profile-role svg,
.profile-city svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    margin-top: 0.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.profile-headline {
    margin: 0.55rem 0 0.95rem;
    max-width: 40rem;
    color: var(--ink-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.profile-stat {
    display: grid;
    gap: 0.1rem;
    min-width: 5.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.95rem;
    background: rgba(28, 99, 179, 0.07);
    border: 1px solid rgba(28, 99, 179, 0.1);
}
.profile-stat.is-wide { min-width: 9rem; }
.profile-stat strong {
    color: var(--brand);
    font-size: 0.95rem;
    font-weight: 800;
}
.profile-stat span {
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 1.15rem;
    align-items: start;
}

.profile-block {
    padding: 1.25rem 1.2rem 1.3rem;
    border-radius: 1.3rem;
    margin-bottom: 1rem;
}

.profile-block-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-accent {
    position: relative;
    width: 0.28rem;
    height: 2.35rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #1578e3, rgba(21, 120, 227, 0.15));
}
.profile-accent::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #1578e3;
    box-shadow: 0 0 0 4px rgba(21, 120, 227, 0.15);
    transform: translate(50%, -25%);
}

.profile-block h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #112847;
}

.profile-block-lead {
    margin: 0.2rem 0 0;
    color: var(--ink-muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.6;
}

.profile-bio {
    margin: 0;
    color: #3d5168;
    line-height: 1.9;
    font-size: 0.95rem;
    white-space: pre-wrap;
}

/* Portfolio carousels */
.folio-carousel {
    position: relative;
    min-width: 0;
}

.folio-carousel-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem 2.6rem 0.4rem;
    min-width: 0;
}
.folio-carousel-track::-webkit-scrollbar { display: none; width: 0; height: 0; }

.folio-carousel-card {
    position: relative;
    flex: 0 0 15.5rem;
    width: 15.5rem;
    height: 12.5rem;
    border: 0;
    padding: 0;
    border-radius: 1.05rem;
    overflow: hidden;
    background: #0b1524;
    scroll-snap-align: start;
    box-shadow: 0 10px 22px rgba(17, 40, 71, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.folio-carousel.is-video .folio-carousel-card {
    flex: 0 0 18.5rem;
    width: 18.5rem;
    height: 13.5rem;
}
.folio-carousel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(28, 99, 179, 0.16);
}

.folio-carousel-media,
.folio-carousel-shade {
    position: absolute;
    inset: 0;
}
.folio-carousel-media img,
.folio-carousel-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0b1524;
}
.folio-carousel-media video {
    object-fit: contain;
    background: #000;
}
.folio-carousel-shade {
    background: linear-gradient(180deg, transparent 45%, rgba(11, 21, 36, 0.78));
    pointer-events: none;
    z-index: 1;
}

.folio-carousel-caption {
    position: absolute;
    inset-inline: 0.75rem;
    bottom: 0.7rem;
    z-index: 2;
    display: grid;
    gap: 0.15rem;
    text-align: start;
    color: #fff;
    pointer-events: none;
}
.folio-carousel-caption strong {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.35;
}
.folio-carousel-caption small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.55rem;
    opacity: 0.88;
    font-size: 0.72rem;
    font-weight: 700;
}

.folio-carousel-open {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.folio-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(28, 99, 179, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(17, 40, 71, 0.12);
    transition: opacity 0.18s ease, background 0.18s ease;
}
.folio-carousel-nav.is-prev { inset-inline-start: 0.15rem; }
.folio-carousel-nav.is-next { inset-inline-end: 0.15rem; }
.folio-carousel-nav.is-disabled,
.folio-carousel-nav:disabled {
    opacity: 0;
    pointer-events: none;
}
.folio-carousel-nav:hover:not(:disabled) { background: #e4f1ff; }

.folio-tile-type {
    position: absolute;
    top: 0.65rem;
    inset-inline-start: 0.65rem;
    z-index: 2;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 800;
    pointer-events: none;
}

.folio-tile-play {
    display: none;
}

.profession-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.profession-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(28, 99, 179, 0.16);
    background: rgba(28, 99, 179, 0.08);
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 800;
}

.folio-empty {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 2rem 1rem;
    border-radius: 1.1rem;
    border: 1px dashed rgba(28, 99, 179, 0.22);
    background: rgba(28, 99, 179, 0.04);
    color: var(--ink-muted);
    text-align: center;
}
.folio-empty-mark {
    font-size: 1.4rem;
    color: var(--brand);
    opacity: 0.55;
}
.folio-empty p {
    margin: 0;
    font-weight: 800;
    font-size: 0.92rem;
}

.profile-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}
.profile-side .profile-block { margin-bottom: 0; }

.profile-cta-card {
    padding: 1.2rem 1.15rem 1.25rem;
    border-radius: 1.3rem;
}
.profile-cta-kicker {
    margin: 0 0 0.25rem;
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 800;
}
.profile-cta-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
}
.profile-cta-card p {
    margin: 0 0 1rem;
    color: var(--ink-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.request-form {
    display: grid;
    gap: 0.65rem;
}

.request-form label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-muted);
}

.request-form input,
.request-form textarea {
    width: 100%;
    border: 1px solid rgba(28, 99, 179, 0.16);
    border-radius: 0.75rem;
    background: var(--input-bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.65rem 0.75rem;
    outline: none;
}

.request-form textarea { min-height: 6.5rem; line-height: 1.7; resize: vertical; }

.request-form input:focus,
.request-form textarea:focus {
    border-color: rgba(28, 99, 179, 0.45);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.request-form em {
    color: #b42318;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.muted { color: var(--ink-muted); font-size: 0.9rem; margin: 0; }

.fa-num { font-variant-numeric: tabular-nums; }

/* Lightbox */
.folio-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.folio-modal[hidden] { display: none; }
.folio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 21, 36, 0.68);
    backdrop-filter: blur(4px);
}
[data-theme="dark"] .folio-modal-backdrop {
    background: rgba(0, 0, 0, 0.88);
}
.folio-modal-card {
    position: relative;
    z-index: 1;
    width: min(56rem, 100%);
    max-height: min(92vh, 46rem);
    overflow: auto;
    padding: 1rem 1rem 1.15rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}
.folio-modal-close {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    z-index: 2;
    width: 2.3rem;
    height: 2.3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 40, 71, 0.08);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.folio-modal-media {
    border-radius: 1rem;
    overflow: hidden;
    background: #0b1524;
    min-height: 14rem;
}
.folio-modal-media img,
.folio-modal-media video {
    width: 100%;
    max-height: min(68vh, 34rem);
    object-fit: contain;
    display: block;
    margin-inline: auto;
}
.folio-modal-copy {
    padding: 0.95rem 0.35rem 0.15rem;
    text-align: center;
}
.folio-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}
.folio-modal-meta {
    margin: 0.4rem 0 0;
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 800;
}
.folio-modal-desc {
    margin: 0.55rem 0 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}
.folio-modal-meta:empty,
.folio-modal-desc:empty { display: none; }
body.folio-open { overflow: hidden; }

[data-theme="dark"] .profile-name,
[data-theme="dark"] .profile-block h2,
[data-theme="dark"] .profile-cta-card h2 { color: #eef4fb; }
[data-theme="dark"] .profile-bio { color: #d5e4f2; }
[data-theme="dark"] .profile-avatar {
    box-shadow: 0 0 0 4px #112033, 0 0 0 6px rgba(90, 162, 240, 0.28);
}
[data-theme="dark"] .profile-stat {
    background: rgba(90, 162, 240, 0.08);
    border-color: rgba(140, 192, 247, 0.14);
}
[data-theme="dark"] .badge-available {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
}
[data-theme="dark"] .badge-level.is-bronze { background: #3a2c1c; color: #f0c48a; }
[data-theme="dark"] .badge-level.is-silver { background: #24303a; color: #d5dee6; }
[data-theme="dark"] .badge-level.is-gold { background: #3a3114; color: #f6d56a; }
[data-theme="dark"] .folio-empty {
    background: rgba(90, 162, 240, 0.06);
    border-color: rgba(140, 192, 247, 0.18);
}
[data-theme="dark"] .folio-modal-card { background: #112033; }
[data-theme="dark"] .folio-modal-close { background: #1a3050; color: #eef4fb; }
[data-theme="dark"] .folio-tile-type {
    background: rgba(17, 32, 51, 0.92);
    color: #8cc0f7;
}
[data-theme="dark"] .folio-carousel-nav {
    background: #1a3050;
    border-color: rgba(140, 192, 247, 0.22);
    color: #8cc0f7;
}
[data-theme="dark"] .folio-carousel-nav:hover { background: #243b5c; }
[data-theme="dark"] .profession-chip {
    background: rgba(90, 162, 240, 0.12);
    border-color: rgba(140, 192, 247, 0.22);
    color: #8cc0f7;
}

@media (max-width: 991.98px) {
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .profile-back { display: none; }
    .profile-hero { padding: 1.15rem 1rem 1.25rem; }
    .profile-hero-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1rem;
    }
    .profile-hero-body { width: 100%; }
    .profile-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.5rem;
    }
    .profile-badges {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
    }
    .profile-badges .badge-featured,
    .profile-badges .badge-available,
    .profile-badges .badge-busy,
    .profile-badges .badge-level {
        flex: 1 1 0;
        min-width: 0;
        min-height: 2.15rem;
        padding: 0.45rem 0.3rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    .profile-city {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 0.15rem;
    }
    .profile-stat,
    .profile-stat.is-wide {
        min-width: 0;
        justify-items: center;
        text-align: center;
        padding: 0.7rem 0.45rem;
    }
    .profile-role,
    .profile-city { justify-content: center; }
    .profile-headline { margin-inline: auto; }
    .profile-avatar {
        width: 7rem;
        height: 7rem;
        font-size: 1.85rem;
    }
    .folio-carousel-track {
        padding-inline: 0.15rem;
    }
    .folio-carousel-nav {
        display: none;
    }
    .folio-carousel-card {
        flex: 0 0 min(14.5rem, 78vw);
        width: min(14.5rem, 78vw);
        height: 11.5rem;
    }
    .folio-carousel.is-video .folio-carousel-card {
        flex: 0 0 min(17rem, 86vw);
        width: min(17rem, 86vw);
        height: 12.25rem;
    }
}
