.fd-person-profile,
.fd-person-profile * {
    box-sizing: border-box;
}

.fd-person-profile {
    --fd-gold: var(--brand-primary, #b28b42);
    --fd-dark: var(--brand-bg, #191919);
    --fd-card: var(--brand-card, #202020);
    --fd-fg: var(--brand-fg, #ffffff);
    --fd-muted: var(--brand-muted, #d7d7d7);
}

.fd-person-profile__topline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0 0 1.75rem;
}

.fd-person-profile__back {
    color: var(--fd-gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3;
}

.fd-person-profile__back:hover {
    color: color-mix(in srgb, var(--fd-gold) 82%, #fff);
}

.fd-person-profile__portrait {
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid color-mix(in srgb, var(--fd-gold) 18%, transparent);
    background: #111;
    width: 100%;
    min-width: 0;
    max-height: none;
    aspect-ratio: 4 / 5;
}

.fd-person-profile__portrait .fd-fresh__photo,
.fd-person-profile__portrait img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.fd-person-profile__role {
    margin: 0;
    color: var(--fd-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.35;
}

.fd-person-profile__gdc {
    margin: 0.35rem 0 0;
    color: color-mix(in srgb, var(--fd-fg) 68%, transparent);
    font-size: 0.9rem;
    line-height: 1.35;
}

/* Desktop: portrait + structured intro stack */
.fd-person-profile__hero.fd-fresh__split--portrait {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    column-gap: 2.5rem;
    row-gap: 1.5rem;
    align-items: start !important;
    justify-content: start;
}

.fd-person-profile__intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: start !important;
    gap: 0;
    min-width: 0;
    max-width: 28rem;
    padding-top: 0.35rem;
    text-align: left;
}

.fd-person-profile__intro .fd-fresh__heading {
    margin: 0.55rem 0 0;
    max-width: 11ch;
    font-family: var(--font-h3, var(--wise-font-heading, "Cormorant Garamond", Georgia, serif));
    font-size: clamp(2.4rem, 3.6vw, 3.35rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.fd-person-profile__intro .fd-fresh__qual {
    margin: 0.7rem 0 0;
    color: color-mix(in srgb, var(--fd-fg) 88%, transparent);
    font-size: 0.98rem;
    line-height: 1.45;
}

.fd-person-profile__divider {
    width: 100%;
    height: 1px;
    margin: 1.35rem 0 1.15rem;
    background: color-mix(in srgb, var(--fd-fg) 16%, transparent);
}

.fd-person-profile__cta-line {
    margin: 0 0 0.95rem;
    color: color-mix(in srgb, var(--fd-fg) 90%, transparent);
    font-size: 0.95rem;
    line-height: 1.4;
}

.fd-person-profile__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
}

.fd-person-profile__book {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.25rem;
    border-radius: 0.85rem;
    background: var(--fd-gold);
    color: #191919;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.fd-person-profile__book:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #191919;
}

.fd-person-profile__book-arrow {
    font-size: 1.05em;
    line-height: 1;
}

.fd-person-profile__ig {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.05rem;
    border-radius: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--fd-fg) 28%, transparent);
    background: transparent;
    color: var(--fd-fg);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.fd-person-profile__ig:hover {
    border-color: var(--fd-gold);
    color: var(--fd-gold);
}

.fd-person-profile__ig-icon {
    flex: 0 0 auto;
    display: block;
}

.fd-person-profile__bio {
    max-width: 46rem;
    margin: 2.5rem 0 0;
    color: color-mix(in srgb, var(--fd-fg) 86%, transparent);
    font-size: 1.05rem;
    line-height: 1.7;
}

.fd-person-profile__bio p {
    margin: 0 0 1rem;
}

.fd-person-profile__bio p:last-child {
    margin-bottom: 0;
}

.fd-person-social,
.fd-person-press {
    --fd-person-fade: var(--fd-dark, #191919);
    margin-top: 3rem;
}

.fd-person-social__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #111;
    margin: 0 0 0.15rem;
}

.fd-person-social__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fd-person-social__bar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.fd-person-social__bar .fd-fresh__sub {
    margin: 0;
}

.fd-person-social__nav {
    display: flex;
    gap: 0.45rem;
}

.fd-person-social__btn {
    appearance: none;
    position: relative;
    z-index: 1;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--fd-gold) 35%, transparent);
    background: transparent;
    color: var(--fd-fg);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.fd-person-social__btn:hover {
    background: var(--fd-gold);
    border-color: var(--fd-gold);
    color: #191919;
}

.fd-person-social__viewport {
    position: relative;
    overflow: hidden;
}

/* Match homepage THE TEAM carousel edge dissolves (charcoal → transparent). */
.fd-person-social__fade {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.fd-person-social__fade--left,
.fd-person-social__fade--right {
    top: 0;
    bottom: 0;
    width: clamp(2.5rem, 7%, 4.75rem);
}

.fd-person-social__fade--left {
    left: 0;
    background: linear-gradient(
        to right,
        var(--fd-person-fade) 0%,
        color-mix(in srgb, var(--fd-person-fade) 72%, transparent) 42%,
        transparent 100%
    );
}

.fd-person-social__fade--right {
    right: 0;
    background: linear-gradient(
        to left,
        var(--fd-person-fade) 0%,
        color-mix(in srgb, var(--fd-person-fade) 72%, transparent) 42%,
        transparent 100%
    );
}

.fd-person-social__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.15rem 0.1rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.fd-person-social__card {
    appearance: none;
    flex: 0 0 min(17.5rem, 78vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 10.5rem;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 1.15rem;
    border: 1px solid color-mix(in srgb, var(--fd-gold) 18%, transparent);
    background: var(--fd-card);
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.fd-person-social__card:hover {
    border-color: var(--fd-gold);
    transform: translateY(-2px);
}

.fd-person-social__kicker {
    color: var(--fd-gold);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fd-person-social__title {
    flex: 1;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.fd-person-social__cta {
    color: color-mix(in srgb, var(--fd-fg) 70%, transparent);
    font-size: 0.82rem;
    font-weight: 500;
}

.fd-person-social__card--media .fd-person-social__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

@media (max-width: 820px) {
    .fd-person-profile__topline {
        margin-bottom: 1.25rem;
    }

    .fd-person-profile__hero.fd-fresh__split--portrait {
        grid-template-columns: 1fr;
    }

    .fd-person-profile__portrait {
        max-width: 22rem;
        margin: 0 auto;
    }

    .fd-person-profile__intro {
        align-self: stretch;
        max-width: none;
        align-items: center;
        text-align: center;
        padding-top: 0;
    }

    .fd-person-profile__intro .fd-fresh__heading {
        max-width: none;
        text-align: center;
    }

    .fd-person-profile__actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        max-width: 18rem;
        margin-left: auto;
        margin-right: auto;
    }

    .fd-person-profile__book,
    .fd-person-profile__ig {
        justify-content: center;
        width: 100%;
    }

    /* Keep side fades on mobile (unlike team strip which hides them). */
    .fd-person-social__fade--left,
    .fd-person-social__fade--right {
        width: clamp(1.75rem, 10vw, 3.25rem);
    }
}
