@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800&display=swap');

.graduates-page {
    --grad-ink: #10141c;
    --grad-navy: #161d2c;
    --grad-gold: #c9a24a;
    --grad-paper: #f1f5f9;
    --grad-muted: #5b6472;
    color: var(--grad-ink);
    background: var(--grad-paper);
    overflow: hidden;
}

.graduates-hero {
    position: relative;
    min-height: min(100svh, 920px);
    display: grid;
    align-items: end;
    color: #fff;
}

.graduates-hero__visual {
    position: absolute;
    inset: 0;
}

.graduates-hero__shot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    animation: graduatesKenBurns 18s ease-out both;
}

.graduates-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 20, 28, 0.18) 0%, rgba(16, 20, 28, 0.22) 38%, rgba(16, 20, 28, 0.88) 100%),
        linear-gradient(90deg, rgba(16, 20, 28, 0.28) 0%, transparent 28%, transparent 72%, rgba(16, 20, 28, 0.28) 100%);
    pointer-events: none;
}

.graduates-hero__copy {
    position: relative;
    z-index: 1;
    width: 60%;
    margin: 0 auto 4.5rem;
    text-align: center;
}

.graduates-hero__brand {
    margin: 0 0 0.7rem;
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-size: clamp(0.72rem, 1.4vw, 0.86rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--grad-gold);
}

.graduates-hero__title {
    margin: 0 0 0.85rem;
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-size: clamp(2.1rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.graduates-hero__lead {
    margin: 0 auto 1.6rem;
    max-width: 34rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.graduates-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.45rem;
    border-radius: 4px;
    background: var(--grad-gold);
    color: var(--grad-ink);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.25s ease, background 0.25s ease;
}

.graduates-hero__cta:hover {
    color: var(--grad-ink);
    background: #ddb85c;
    transform: translateY(-2px);
}

.graduates-main {
    width: 60%;
    margin: 2.5rem auto 3.25rem;
    padding: 0.5rem 2.25rem 1.25rem;
    background: #fff;
}

.graduate {
    display: grid;
    grid-template-columns: 11.2rem minmax(0, 1fr);
    gap: 1.5rem 1.75rem;
    align-items: start;
    min-height: 0;
    padding: 1.85rem 0;
    background: transparent;
    border-bottom: 1px solid rgba(16, 20, 28, 0.1);
}

.graduate:last-child {
    border-bottom: none;
}

.graduate__photo {
    width: 11.2rem;
    height: 11.2rem;
    min-height: 0;
    overflow: hidden;
}

.graduate__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    animation: graduatesReveal 1.1s ease both;
}

.graduate__photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1c2740 0%, #10141c 100%);
    color: var(--grad-gold);
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
}

.graduate__body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.15rem 0 0;
    overflow: hidden;
}

.graduate__score {
    position: absolute;
    right: 0;
    top: -0.35rem;
    margin: 0;
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.8;
    color: rgba(201, 162, 74, 0.14);
    pointer-events: none;
    animation: graduatesScore 1.2s 0.15s ease both;
}

.graduate__score--word {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    top: 0;
}

.graduate__kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grad-gold);
}

.graduate__name {
    margin: 0 0 0.65rem;
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.graduate__lead {
    margin: 0 0 0.7rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
}

.graduate__story {
    margin: 0 0 1rem;
    max-width: none;
    color: var(--grad-muted);
    line-height: 1.6;
}

.graduate__facts {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: none;
}

.graduate__facts li {
    padding: 0.45rem 0;
    border-top: 1px solid rgba(16, 20, 28, 0.1);
    font-size: 0.92rem;
    font-weight: 600;
}

.graduate__facts li:last-child {
    border-bottom: 1px solid rgba(16, 20, 28, 0.1);
}

.graduates-close {
    background: var(--grad-navy);
    color: #fff;
    padding: 4.5rem 0;
    text-align: center;
}

.graduates-close__inner {
    width: 60%;
    margin: 0 auto;
}

.graduates-close__title {
    margin: 0 0 0.85rem;
    font-family: 'Unbounded', 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.graduates-close__lead {
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.graduates-close__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    align-items: center;
}

.graduates-close__link {
    color: var(--grad-gold);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.graduates-close__link:hover {
    color: #ddb85c;
}

.graduates-close__note {
    margin: 2.4rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.48);
}

@keyframes graduatesKenBurns {
    from {
        transform: scale(1.08);
        filter: saturate(0.85);
    }
    to {
        transform: scale(1);
        filter: saturate(1);
    }
}

@keyframes graduatesReveal {
    from {
        transform: scale(1.06);
        opacity: 0.55;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes graduatesScore {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 899.98px) {
    .graduates-hero {
        min-height: 72svh;
        align-items: end;
    }

    .graduates-hero__copy,
    .graduates-main,
    .graduates-close__inner {
        width: min(92%, 40rem);
    }

    .graduates-hero__copy {
        margin-bottom: 3.2rem;
        text-align: left;
    }

    .graduates-main {
        padding: 0.25rem 1.15rem 0.75rem;
        margin-top: 1.5rem;
    }

    .graduate {
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: 1rem 1.1rem;
        padding: 1.35rem 0;
    }

    .graduate__photo {
        width: 6.5rem;
        height: 6.5rem;
        min-height: 0;
        aspect-ratio: auto;
    }

    .graduate__score {
        font-size: 3rem;
        top: -0.2rem;
    }
}

@media (max-width: 599.98px) {
    .graduate {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .graduate__photo {
        width: 6.5rem;
        height: 6.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .graduates-hero__shot,
    .graduate__photo img,
    .graduate__score {
        animation: none;
    }
}
