/* =========================================================
   PEOPLE PAGE — CRISS CROSS TEAM LAYOUT
   ========================================================= */

html,
body {
    width: 100%;
    height: 100%;
    background: var(--dark) !important;
    color: var(--cream);
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden;
    scrollbar-color: var(--dark) var(--dark) !important;
}

html::-webkit-scrollbar-track {
    background: var(--dark) !important;
}

body::before {
    opacity: 0 !important;
    display: none !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.detail-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 42px;
    background: transparent;
}

.logo {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    margin-top: -20px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--cream);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--orange);
}


/* =========================================================
   HERO ORBIT — FULL PAGE SPAN
   ========================================================= */

.people-hero-orbit {
    position: fixed;
    width: 140vmin;
    height: 140vmin;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.people-orbit-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border: 1px solid rgba(245, 240, 235, 0.8);
    border-radius: 50%;
}

.people-orbit-inner {
    position: absolute;
    width: 65%;
    height: 65%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(245, 240, 235, 0.8);
    border-radius: 50%;
}

.people-outer-track,
.people-inner-track {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 50%;
}

.people-outer-track {
    animation: peopleOuterRotate 14s linear infinite;
}

.people-inner-track {
    animation: peopleInnerRotate 10s linear infinite;
}

.people-dot-position {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 50%;
}

.people-orbit-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(245, 240, 235, 0.8);
}

.people-dot-1 {
    transform: rotate(0deg);
}

.people-dot-2 {
    transform: rotate(120deg);
}

.people-dot-3 {
    transform: rotate(240deg);
}

/* Center dot */
.orbit-center-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--orange);
    z-index: 2;
}

@keyframes peopleOuterRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes peopleInnerRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.people-page {
    position: relative;
    z-index: 5;
    height: calc(100vh - 75px);
    padding: 40px 7vw 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.people-page::-webkit-scrollbar {
    width: 4px;
}

.people-page::-webkit-scrollbar-track {
    background: transparent;
}

.people-page::-webkit-scrollbar-thumb {
    background: rgba(245, 240, 235, 0.2);
    border-radius: 2px;
}


/* =========================================================
   HEADER
   ========================================================= */

.people-header {
    position: absolute;
    top: 12vh;
    left: 7vw;
    z-index: 10;
}

.people-label {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.people-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    text-transform: uppercase;
}


/* =========================================================
   TEAM GRID — EACH MEMBER FULL VIEWPORT HEIGHT
   ========================================================= */

.people-grid {
    display: flex;
    flex-direction: column;
    padding-top: 28vh;
    padding-bottom: 60px;
}


/* =========================================================
   TEAM MEMBER — VERTICALLY CENTERED
   ========================================================= */

.people-member {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 500px;
    position: relative;
    padding: 20px 0 60px;
}

.people-left {
    flex-direction: row;
}

.people-right {
    flex-direction: row-reverse;
}


/* =========================================================
   IMAGE CONTAINER — CIRCULAR FRAME EFFECT
   ========================================================= */

.people-image-container {
    position: relative;
    flex-shrink: 0;
    width: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.people-image-bg {
    position: absolute;
    width: 410px;
    height: 410px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.15;
    border: 2px solid rgba(245, 240, 235, 0.12);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.people-image-container:hover .people-image-bg {
    opacity: 0.25;
    transform: scale(1.05);
}

.people-image {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.people-image.revealed {
    opacity: 1;
    transform: scale(1);
    animation: peopleFloat 5s ease-in-out infinite 0.6s;
}

@keyframes peopleFloat {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1) translateY(-8px);
    }
}

.people-image-container:hover .people-image {
    animation-play-state: paused;
    transform: scale(1.05);
}

/* Ring decoration */
.people-image-container::before {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 1px solid rgba(245, 240, 235, 0.08);
    transition: border-color 0.4s ease;
}

.people-image-container:hover::before {
    border-color: rgba(245, 240, 235, 0.18);
}


/* =========================================================
   MEMBER INFO — RIGHT NEXT TO IMAGE
   ========================================================= */

.people-info {
    flex: 0 1 auto;
    max-width: 480px;
}

.people-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1;
    white-space: nowrap;
}

.people-role {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.people-bio {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(245, 240, 235, 0.6);
}

.people-social {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.people-social a {
    color: rgba(245, 240, 235, 0.4);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.people-social a:hover {
    color: var(--orange);
}


/* =========================================================
   DECORATIVE ELEMENTS
   ========================================================= */

.people-member-number {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 120px;
    font-weight: 900;
    color: rgba(245, 240, 235, 0.03);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.people-left .people-member-number {
    top: -20px;
    right: 0;
}

.people-right .people-member-number {
    top: -20px;
    left: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.people-footer {
    position: fixed;
    left: 7vw;
    bottom: 20px;
    z-index: 10;
    background: none;
    border: none;
    box-shadow: none;
}

.people-footer .back {
    color: var(--cream);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.people-footer .back:hover {
    color: var(--orange);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .people-member {
        gap: 30px;
    }

    .people-image-container {
        width: 400px;
        height: 400px;
    }

    .people-image-bg {
        width: 330px;
        height: 330px;
    }

    .people-image {
        width: 300px;
        height: 300px;
    }

    .people-image-container::before {
        width: 360px;
        height: 360px;
    }

    .people-info {
        max-width: 280px;
    }
}

@media (max-width: 800px) {

    html,
    body {
        overflow: auto;
        height: auto;
    }

    .detail-nav {
        padding: 16px 20px;
    }

    .people-hero-orbit {
        width: 100vmin;
        height: 100vmin;
        opacity: 0.04;
    }

    .people-page {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px 60px;
    }

    .people-header {
        margin-bottom: 0;
    }

    .people-title {
        font-size: 12vw;
        letter-spacing: -2px;
    }

    .people-member {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
        min-height: auto;
        padding: 40px 0;
    }

    .people-image-container {
        width: 320px;
        height: 320px;
    }

    .people-image-bg {
        width: 270px;
        height: 270px;
    }

    .people-image {
        width: 250px;
        height: 250px;
    }

    .people-image-container::before {
        width: 290px;
        height: 290px;
    }

    .people-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .people-bio {
        text-align: center;
    }

    .people-social {
        justify-content: center;
    }

    .people-member-number {
        display: none;
    }

    .people-footer {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 40px;
        padding: 20px;
        justify-content: center;
        gap: 40px;
    }
}

@media (max-width: 500px) {
    .people-image-container {
        width: 250px;
        height: 250px;
    }

    .people-image-bg {
        width: 210px;
        height: 210px;
    }

    .people-image {
        width: 190px;
        height: 190px;
    }

    .people-image-container::before {
        width: 230px;
        height: 230px;
    }

    .people-name {
        font-size: 7vw;
    }

    .people-role {
        font-size: 10px;
    }

    .people-bio {
        font-size: 13px;
    }
}