.researcher-profile-page {
    background:
        radial-gradient(circle at 8% 35%, rgba(196, 154, 83, 0.08), transparent 26rem),
        var(--paper, #f7f4ef);
    color: var(--text-color, #231f20);
    min-height: 70vh;
}

.profile-identity-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(118deg, #641c22 0%, #4d1319 58%, #300a0f 100%);
    border-bottom: 3px solid var(--gold, #c49a53);
    color: #fff;
}

.profile-identity-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
}

.profile-hero-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(196, 154, 83, 0.24);
    border-radius: 50%;
    pointer-events: none;
}

.profile-hero-orbit-one {
    top: -14rem;
    right: -7rem;
    width: 31rem;
    height: 31rem;
}

.profile-hero-orbit-two {
    right: 6rem;
    bottom: -13rem;
    width: 24rem;
    height: 24rem;
}

.profile-hero-container {
    position: relative;
    padding-top: clamp(1.25rem, 3vw, 2.2rem);
    padding-bottom: clamp(4.5rem, 8vw, 6.4rem);
}

.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.profile-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.profile-breadcrumb a:hover,
.profile-breadcrumb a:focus-visible {
    color: #f0cf8c;
    transform: translateX(-2px);
}

.profile-breadcrumb-separator {
    color: var(--gold, #c49a53);
    font-size: 0.62rem;
}

.profile-identity-grid {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    max-width: 1040px;
    margin-inline: auto;
}

.profile-portrait-column {
    display: flex;
    justify-content: center;
}

.profile-portrait-frame {
    position: relative;
    width: 168px;
    height: 168px;
    padding: 6px;
    overflow: hidden;
    border: 2px solid #f1ca78;
    border-radius: 50%;
    background: var(--gold, #c49a53);
    box-shadow:
        0 18px 38px rgba(17, 2, 5, 0.34),
        0 0 0 8px rgba(255, 255, 255, 0.08);
}

.profile-portrait-image,
.profile-portrait-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: 50%;
    background: #f4eee6;
}

.profile-portrait-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 103%;
    height: 103%;
    max-width: none;
    object-fit: cover;
    object-position: 52.54% 50%;
    transform: translate(-50%, -50%);
}

.profile-portrait-fallback {
    color: var(--primary-color, #641c22);
    font-size: 4rem;
}

.profile-eyebrow,
.profile-section-kicker,
.profile-side-kicker {
    display: block;
    color: #e1b75f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-identity-copy h1 {
    max-width: 900px;
    margin: 0.55rem 0 0.8rem;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4.5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.08;
    text-wrap: balance;
}

.profile-affiliation {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.55;
}

.profile-affiliation i {
    margin-top: 0.2rem;
    color: var(--gold, #c49a53);
}

.profile-recognition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.profile-recognition {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.77rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.profile-recognition i {
    color: #f0c567;
}

.profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.65rem;
}

.profile-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 46px;
    padding: 0.7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.profile-action:hover,
.profile-action:focus-visible {
    transform: translateY(-2px);
}

.profile-action-primary {
    background: #fff;
    color: var(--primary-color, #641c22);
    box-shadow: 0 10px 24px rgba(22, 2, 5, 0.18);
}

.profile-action-primary:hover,
.profile-action-primary:focus-visible {
    background: #f5e4bd;
    color: #4d1117;
}

.profile-action-secondary {
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}

.profile-action-secondary:hover,
.profile-action-secondary:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.profile-content-section {
    position: relative;
    z-index: 2;
    padding: 0 0 clamp(2.5rem, 6vw, 5rem);
}

.profile-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.78fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-top: -3.1rem;
}

.profile-biography-card,
.profile-side-card {
    border: 1px solid rgba(100, 28, 34, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(67, 38, 27, 0.08);
}

.profile-biography-card {
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 2.65rem);
}

.profile-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.7rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(100, 28, 34, 0.13);
}

.profile-section-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(196, 154, 83, 0.44);
    border-radius: 13px;
    background: #fbf5e8;
    color: var(--primary-color, #641c22);
    font-size: 1.05rem;
}

.profile-section-kicker,
.profile-side-kicker {
    color: var(--primary-color, #641c22);
}

.profile-section-heading h2,
.profile-side-card h2 {
    color: #251d1b;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.profile-section-heading h2 {
    margin: 0.2rem 0 0.28rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.profile-section-heading p {
    margin: 0;
    color: #786d69;
    font-size: 0.9rem;
}

.profile-biography-copy {
    width: 100%;
    max-width: none;
    color: #39312f;
    font-size: clamp(0.99rem, 1.4vw, 1.07rem);
    line-height: 1.85;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-align: justify;
    text-justify: inter-word;
}

.profile-biography-copy p,
.profile-biography-copy div {
    margin: 0 0 1rem;
}

.profile-biography-copy > :last-child {
    margin-bottom: 0;
}

.profile-biography-copy a {
    color: var(--primary-color, #641c22);
    font-weight: 700;
}

.profile-sidebar {
    display: grid;
    gap: 1rem;
}

.profile-side-card {
    padding: 1.45rem;
}

.profile-side-card h2 {
    margin: 0.25rem 0 1.2rem;
    font-size: 1.35rem;
}

.profile-facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-fact {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(100, 28, 34, 0.1);
}

.profile-fact:first-child {
    padding-top: 0;
    border-top: 0;
}

.profile-fact:last-child {
    padding-bottom: 0;
}

.profile-fact dt {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
    color: #756963;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.profile-fact dt i {
    width: 16px;
    color: var(--gold, #c49a53);
    text-align: center;
}

.profile-fact dd {
    margin: 0;
    color: #302825;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.profile-fact dd a {
    color: var(--primary-color, #641c22);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.profile-side-recognitions {
    display: grid;
    gap: 0.75rem;
}

.profile-side-recognition {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(196, 154, 83, 0.28);
    border-radius: 12px;
    background: #fbf7ef;
}

.profile-side-recognition > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary-color, #641c22);
    color: #f3ca73;
}

.profile-side-recognition strong,
.profile-side-recognition small {
    display: block;
}

.profile-side-recognition strong {
    color: #352a27;
    font-size: 0.88rem;
}

.profile-side-recognition small {
    margin-top: 0.08rem;
    color: #796d68;
    font-size: 0.72rem;
}

.profile-directory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    border-radius: 15px;
    background: var(--primary-color, #641c22);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(100, 28, 34, 0.16);
    transition: transform 160ms ease, background-color 160ms ease;
}

.profile-directory-link small {
    display: block;
    margin-bottom: 0.12rem;
    color: #deb463;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-directory-link:hover,
.profile-directory-link:focus-visible {
    background: #4c1117;
    color: #fff;
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    .profile-sidebar {
        position: sticky;
        top: 98px;
    }
}

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

    .profile-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-directory-link {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .profile-hero-container {
        padding-bottom: 5.3rem;
    }

    .profile-breadcrumb {
        margin-bottom: 1.8rem;
    }

    .profile-breadcrumb-separator,
    .profile-breadcrumb span {
        display: none;
    }

    .profile-identity-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .profile-portrait-frame {
        width: 132px;
        height: 132px;
    }

    .profile-affiliation,
    .profile-recognition-list,
    .profile-hero-actions {
        justify-content: center;
    }

    .profile-content-grid {
        margin-top: -2.5rem;
    }

    .profile-sidebar {
        grid-template-columns: 1fr;
    }

    .profile-directory-link {
        grid-column: auto;
    }
}

@media (max-width: 479.98px) {
    .profile-breadcrumb {
        font-size: 0.73rem;
    }

    .profile-hero-actions,
    .profile-action {
        width: 100%;
    }

    .profile-biography-card,
    .profile-side-card {
        border-radius: 14px;
    }

    .profile-section-heading {
        display: block;
    }

    .profile-section-icon {
        margin-bottom: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-action,
    .profile-breadcrumb a,
    .profile-directory-link {
        transition: none;
    }
}
