/* =========================================================
   HOME / PROFILE
========================================================= */

.home-page {
    width: min(1180px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    padding: 24px 0 34px;
    display: flex;
    flex-direction: column;
}

.home-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
}

.home-topbar__label {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, .035);
    font-size: clamp(10px, calc(9.429px + 0.179vw), 12px);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-layout {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 24px 0 18px;
}

.profile-sidebar,
.profile-card {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(28px) saturate(120%);
    -webkit-backdrop-filter: blur(28px) saturate(120%);
    box-shadow: var(--shadow-soft);
}

.profile-sidebar {
    border-radius: 18px;
    padding: 12px;
}

.profile-avatar {
    position: relative;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: #202020;
}

.profile-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    pointer-events: none;
}

.profile-avatar span {
    position: relative;
    z-index: 1;
    font-size: clamp(44px, calc(36px + 2.5vw), 72px);
    font-weight: 700;
    letter-spacing: -.05em;
}

.profile-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 2px 12px;
    color: var(--muted);
    font-size: clamp(11px, calc(10.429px + 0.179vw), 13px);
    line-height: 1.4;
}

.profile-status__dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #6ccb5f;
    box-shadow: 0 0 0 3px rgba(108, 203, 95, .10);
}

.profile-card {
    min-height: 420px;
    border-radius: 20px;
    padding: clamp(28px, calc(var(--index) * 2.25), 54px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-card__eyebrow {
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-size: clamp(10px, calc(9.429px + 0.179vw), 12px);
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.profile-card__title {
    max-width: 760px;
    font-size: clamp(42px, calc(32.286px + 3.036vw), 76px);
    line-height: .98;
    font-weight: 650;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.profile-card__role {
    margin-top: 12px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(19px, calc(16.714px + 0.714vw), 27px);
    font-weight: 500;
}

.profile-card__description {
    max-width: 700px;
    margin-top: 20px;
    color: var(--muted);
    font-size: clamp(13px, calc(12.143px + 0.268vw), 16px);
    line-height: 1.65;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.profile-tag {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .72);
    font-size: clamp(10px, calc(9.429px + 0.179vw), 12px);
    font-weight: 500;
}

.profile-divider {
    height: 1px;
    margin: 28px 0 20px;
    background: var(--border);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-stat {
    min-width: 0;
}

.profile-stat strong {
    display: block;
    font-size: clamp(20px, calc(17.429px + 0.804vw), 29px);
    font-weight: 600;
    line-height: 1;
}

.profile-stat span {
    display: block;
    margin-top: 7px;
    color: var(--muted-2);
    font-size: clamp(10px, calc(9.429px + 0.179vw), 12px);
    line-height: 1.35;
}

@media (max-width: 900px) {
    .home-page { width: min(100% - 30px, 760px); }
    .profile-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }
    .profile-card { padding: 30px; }
    .profile-stats { grid-template-columns: 1fr; }
    .profile-divider { margin: 22px 0 18px; }
}

@media (max-width: 640px) {
    .home-page { width: calc(100% - 24px); padding-top: 12px; }
    .home-topbar__label { display: none; }
    .profile-layout { display: block; overflow-y: auto; padding: 16px 0 24px; scrollbar-width: none; }
    .profile-layout::-webkit-scrollbar { display: none; }
    .profile-sidebar { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; }
    .profile-avatar { grid-row: 1 / span 2; width: 100px; height: 100px; border-radius: 12px; }
    .profile-avatar span { font-size: clamp(34px, calc(31.714px + 0.714vw), 42px); }
    .profile-status { align-self: end; margin: 0; font-size: clamp(10px, calc(9.714px + 0.089vw), 11px); }
    .profile-sidebar .primary-button { min-height: 44px; align-self: start; }
    .profile-card { min-height: 0; margin-top: 10px; padding: 24px 18px; border-radius: 16px; }
    .profile-card__title { font-size: clamp(38px, calc(32.286px + 1.786vw), 58px); }
    .profile-card__description { font-size: clamp(12px, calc(11.429px + 0.179vw), 14px); }
    .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-stat span { font-size: clamp(9px, calc(8.714px + 0.089vw), 10px); }
}
