.agent-profile-page {
    --agent-ink: #20252b;
    --agent-muted: #6d7379;
    --agent-soft: #f7f7f5;
    --agent-line: #e6e6e3;
    --agent-red: #b72619;
    color: var(--agent-ink);
}

.agent-profile-kicker {
    margin-bottom: .62rem;
    color: var(--agent-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.agent-profile-hero {
    padding: 1.5rem 0 4rem;
}

.agent-profile-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.25rem;
    color: var(--agent-muted);
    font-size: .8rem;
}

.agent-profile-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.agent-profile-breadcrumb a:hover {
    color: var(--agent-red);
}

.agent-profile-hero__grid {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--agent-line);
    border-radius: 16px;
    background: #fff;
}

.agent-profile-hero__media {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 520px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(115% 96% at 12% 112%, transparent 0 44%, rgba(215, 216, 214, .70) 44.5% 52%, transparent 52.5% 61%, rgba(227, 228, 226, .72) 61.5% 68.5%, transparent 69%),
        radial-gradient(105% 82% at 102% 9%, transparent 0 50%, rgba(226, 227, 225, .62) 50.5% 58%, transparent 58.5%),
        linear-gradient(135deg, #fbfbfa 0%, #f5f5f3 52%, #ffffff 100%);
}

.agent-profile-hero__media::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: -29%;
    bottom: -46%;
    width: 112%;
    aspect-ratio: 1.15;
    border: clamp(34px, 4.1vw, 62px) solid rgba(207, 209, 206, .40);
    border-radius: 48% 52% 52% 48% / 55% 48% 52% 45%;
    transform: rotate(-16deg);
    pointer-events: none;
}

.agent-profile-hero__media::after {
    content: '';
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: 0;
    width: 38%;
    height: 43%;
    background:
        linear-gradient(66deg, rgba(142, 31, 24, .96) 0 20%, transparent 20.4%),
        linear-gradient(59deg, rgba(188, 42, 31, .98) 0 31%, transparent 31.4%);
    clip-path: polygon(0 100%, 0 12%, 19% 52%, 34% 18%, 67% 100%);
    opacity: .98;
    pointer-events: none;
}

.agent-profile-hero__media img {
    position: relative;
    z-index: 2;
    display: block;
    width: min(92%, 560px);
    height: 96%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 14px 22px rgba(28, 31, 33, .06));
}

.agent-profile-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.75rem);
}

.agent-profile-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.2rem, 3.5vw, 3.85rem);
    font-weight: 800;
    line-height: 1.01;
    letter-spacing: -.045em;
}

.agent-profile-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-top: 1rem;
    color: #4f555b;
    font-size: .92rem;
    font-weight: 700;
}

.agent-profile-hero__dot {
    color: #b7b7b3;
}

.agent-profile-hero__office-link {
    color: inherit;
    text-decoration: none;
}

.agent-profile-hero__office-link:hover {
    color: var(--agent-red);
}


.agent-profile-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.8rem;
}

.agent-profile-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.35rem;
    margin-top: 1.35rem;
}

.agent-profile-text-link {
    color: var(--agent-ink);
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
}

.agent-profile-text-link::after {
    content: ' →';
    color: var(--agent-red);
}

.agent-profile-text-link:hover {
    color: var(--agent-red);
}

.agent-profile-about {
    padding: 4rem 0;
    background: var(--agent-soft);
}

.agent-profile-about__grid,
.agent-profile-section-head {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.agent-profile-about h2,
.agent-profile-section-head h2 {
    max-width: 660px;
    margin: 0;
    font-size: clamp(1.75rem, 2.4vw, 2.55rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.agent-profile-about__copy {
    max-width: 820px;
}

.agent-profile-about__copy p,
.agent-profile-section-head__aside p {
    margin: 0;
    color: var(--agent-muted);
    font-size: 1rem;
    line-height: 1.78;
}

.agent-profile-offers {
    padding: 4.25rem 0 5rem;
    background: #fff;
}

.agent-profile-section-head {
    margin-bottom: 2.25rem;
}

.agent-profile-section-head__aside {
    max-width: 720px;
}

.agent-profile-section-head__aside strong {
    display: inline-block;
    margin-top: .85rem;
    color: var(--agent-ink);
    font-size: .9rem;
}

.agent-profile-filters {
    padding: 1.1rem 0;
    border-top: 1px solid var(--agent-line);
    border-bottom: 1px solid var(--agent-line);
    background: var(--agent-soft);
}

.agent-profile-results {
    padding-top: 1.5rem;
}

.agent-profile-results__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    align-items: center;
    color: var(--agent-muted);
    font-size: .88rem;
}

.agent-profile-results__toolbar select {
    margin-left: .25rem;
    padding: .35rem .45rem;
    color: var(--agent-ink);
}

.agent-profile-results__list {
    margin-top: 1.5rem;
}

.agent-profile-empty {
    padding: 4rem 1rem;
    text-align: center;
}

.agent-profile-empty h3 {
    margin-bottom: .6rem;
    color: var(--agent-ink);
    font-size: 1.45rem;
    font-weight: 800;
}

.agent-profile-empty p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--agent-muted);
    line-height: 1.7;
}

@media (max-width: 1199.98px) {
    .agent-profile-hero__grid {
        grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
    }
}

@media (max-width: 991.98px) {
    .agent-profile-hero__grid,
    .agent-profile-about__grid,
    .agent-profile-section-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .agent-profile-hero__grid {
        min-height: 0;
    }

    .agent-profile-hero__media {
        min-height: 520px;
    }

    .agent-profile-about__grid,
    .agent-profile-section-head {
        gap: 1.35rem;
    }
}

@media (max-width: 767.98px) {
    .agent-profile-hero {
        padding-top: .75rem;
        padding-bottom: 3rem;
    }

    .agent-profile-hero__grid {
        border-radius: 13px;
    }

    .agent-profile-hero__media {
        min-height: 410px;
    }

    .agent-profile-hero__media img {
        width: min(92%, 430px);
        height: 95%;
    }

    .agent-profile-hero__media::after {
        width: 42%;
        height: 38%;
    }

    .agent-profile-hero__content {
        padding: 1.5rem;
    }

    .agent-profile-hero h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
        letter-spacing: -.035em;
    }

    .agent-profile-hero__actions .btn {
        width: 100%;
    }

    .agent-profile-hero__links {
        gap: .8rem 1.1rem;
    }

    .agent-profile-about {
        padding: 3rem 0;
    }

    .agent-profile-offers {
        padding: 3rem 0 4rem;
    }

    .agent-profile-results__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
