.profiles-page {
    min-height: 70vh;
    padding: 180px 0 100px;
}

.profiles-intro,
.template-note {
    max-width: 700px;
    margin-bottom: 48px;
    color: rgba(0, 0, 0, 0.7);
    line-height: 2;
}

.profile-listing {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    max-width: 760px;
    padding: 24px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.profile-listing:hover {
    opacity: 0.65;
}

.profile-listing-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(1);
}

.profile-listing-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-listing-role,
.profile-listing-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
}

.profile-listing-role {
    color: rgba(0, 0, 0, 0.55);
}

.profile-listing-name {
    margin: 8px 0 12px;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
}

.profile-listing-description {
    margin-bottom: 22px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.profile-listing-link {
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

.back-link {
    display: inline-block;
    margin-top: 50px;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
}

.person-profile {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 48px;
    max-width: 900px;
}

.person-photo {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.45);
}

.person-details section {
    margin-top: 42px;
}

.person-details h2 {
    margin-bottom: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.person-details p,
.person-links {
    line-height: 2;
    color: rgba(0, 0, 0, 0.75);
}

.person-role {
    margin: 0 0 8px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
}

.person-name {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.person-links {
    padding-left: 1.2em;
}

.person-links a {
    color: inherit;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    padding: clamp(24px, 5vw, 64px);
    background: #080808;
    color: #fff;
}

.profile-portrait {
    overflow: hidden;
    aspect-ratio: 1;
    background: #1b1b1b;
}

.profile-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.profile-portrait-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.profile-heading .person-role {
    color: rgba(255, 255, 255, 0.55);
}

.profile-heading .person-name {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.07em;
    line-height: 0.95;
}

.profile-lead {
    margin: 28px 0 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.9;
}

.profile-section {
    max-width: 760px;
    padding: 58px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.profile-section-label {
    margin: 0 0 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.24em;
}

.profile-section h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
}

.profile-section > p:last-child {
    margin: 0;
    color: rgba(0, 0, 0, 0.72);
    line-height: 2.1;
}

.profile-career {
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-career li {
    display: grid;
    grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.profile-career li:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.profile-career span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
}

.profile-career p {
    margin: 0;
    color: rgba(0, 0, 0, 0.72);
    line-height: 1.9;
}

.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-interests li {
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.75);
    font-size: 0.85rem;
}

.profile-section .profile-note {
    margin: 18px 0 0;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.8rem;
}

.profile-message {
    margin: 56px 0;
    padding: clamp(28px, 5vw, 56px);
    background: #080808;
    color: #fff;
}

.profile-message .profile-section-label {
    color: rgba(255, 255, 255, 0.55);
}

.profile-message blockquote {
    margin: 28px 0 0;
    font-size: clamp(1.7rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.6;
}

.profile-message + .profile-section {
    border-bottom: 0;
}

.profile-section .person-links {
    margin-bottom: 0;
}

.profile-section .person-links a {
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

@media (max-width: 767px) {
    .profiles-page {
        padding-top: 160px;
    }

    .person-profile {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .person-photo {
        width: min(100%, 220px);
    }

    .profile-listing {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 18px;
    }

    .profile-listing-description {
        font-size: 0.8rem;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .profile-portrait {
        width: min(100%, 260px);
    }

    .profile-career li {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
