/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --black: #0b0b0b;
    --white: #f5f4ef;
    --muted: #8e8e8a;
    --line: rgba(255,255,255,.12);

    --lime: #f09f13;
    --orange: #d7ff3f;

    --ease: cubic-bezier(.22,1,.36,1);

}


html {
    scroll-behavior: smooth;
}


body {

    background: var(--black);

    color: var(--white);

    font-family:
        "DM Sans",
        sans-serif;

    overflow-x: hidden;

}


body.modal-open {
    overflow: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font-family: inherit;
}



/* =====================================================
   NAV
===================================================== */

.nav {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    padding:
        26px
        clamp(24px, 5vw, 80px);

    display: flex;

    align-items: center;
    justify-content: space-between;

    z-index: 20;

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    font-weight: 700;

}


.brand-mark {

    width: 34px;
    height: 34px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--lime);

    color: var(--black);

    font-size: 14px;

}


.brand-name {

    letter-spacing: -.5px;

}


.brand-name span {

    color: #777;

    font-weight: 400;

}


.nav-links {

    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 38px;

    font-size: 13px;

    color: rgba(255,255,255,.65);

}


.nav-links a {

    transition: color .25s ease;

}


.nav-links a:hover {

    color: white;

}


.nav-cta {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 16px;

    border: 1px solid rgba(255,255,255,.2);

    border-radius: 100px;

    font-size: 12px;

    transition:
        background .25s ease,
        color .25s ease;

}


.nav-cta:hover {

    background: white;

    color: black;

}



/* =====================================================
   HERO
===================================================== */

.hero {

    min-height: 100vh;

    position: relative;

    display: flex;

    align-items: flex-end;

    overflow: hidden;

}


.hero-image {

    position: absolute;

    inset: 0;

    background-image:
        url("/assets/images/student_showcase/IMG_0060.JPG");

    background-size: cover;

    background-position: center;

    transform: scale(1.03);

    opacity: 1;

    transition:
        opacity 1s ease-in-out,
        background-image 0s;

    animation:
        heroZoom 12s ease-out forwards;

}


/* =====================================================
   HERO CAROUSEL OVERLAY
===================================================== */

.hero-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .48);

    pointer-events: none;

}


@keyframes heroZoom {

    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }

}


.hero-gradient {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            180deg,
            rgba(0,0,0,.65) 0%,
            rgba(0,0,0,.15) 35%,
            rgba(0,0,0,.88) 100%
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    padding:
        0
        clamp(24px, 6vw, 100px)
        clamp(70px, 10vh, 110px);

}


.hero-kicker {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 28px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: rgba(255,255,255,.7);

}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 18px var(--lime);

}


.hero h1 {

    max-width: 1100px;

    font-family:
        "Manrope",
        sans-serif;

    font-size:
        clamp(80px, 15vw, 220px);

    font-weight: 700;

    line-height: .78;

    letter-spacing: -.085em;

}


.hero h1 span {

    display: block;

    margin-left: 12vw;

    color: var(--lime);

}


.hero-bottom {

    margin-top: 55px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

}


.hero-description {

    max-width: 380px;

    color: rgba(255,255,255,.65);

    font-size: 15px;

    line-height: 1.7;

}


.scroll-link {

    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

}


.scroll-arrow {

    width: 40px;
    height: 40px;

    border: 1px solid rgba(255,255,255,.3);

    border-radius: 50%;

    display: grid;
    place-items: center;

    transition:
        background .3s ease,
        color .3s ease;

}


.scroll-link:hover .scroll-arrow {

    background: var(--lime);

    color: black;

}


.hero-number {

    position: absolute;

    z-index: 3;

    right: clamp(24px, 5vw, 80px);

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    gap: 8px;

    font-size: 11px;

    color: rgba(255,255,255,.5);

    writing-mode: vertical-rl;

}



/* =====================================================
   INTRO
===================================================== */

.intro {

    display: grid;

    grid-template-columns:
        minmax(150px, .5fr)
        2fr;

    gap: 40px;

    padding:
        100px
        clamp(24px, 8vw, 130px);

    background: var(--white);

    color: var(--black);

}


.intro-label {

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #777;

}


.intro-content {

    max-width: 850px;

}


.intro h2 {

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(48px, 7vw, 105px);

    line-height: .95;

    letter-spacing: -.065em;

    font-weight: 600;

}


.intro h2 em {

    font-style: normal;

    color: #999;

}


.intro p {

    max-width: 500px;

    margin-top: 35px;

    margin-left: 20%;

    color: #666;

    line-height: 1.8;

}



/* =====================================================
   PROJECT SECTION
===================================================== */

.projects-section {

    background: var(--white);

    color: var(--black);

    padding:
        100px
        clamp(24px, 6vw, 100px)
        100px;

}


.projects-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 45px;

}


.section-eyebrow {

    margin-bottom: 14px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: #999;

}


.projects-header h2 {

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(60px, 8vw, 120px);

    line-height: .8;

    letter-spacing: -.08em;

}


.project-total {

    display: flex;

    align-items: baseline;

    gap: 7px;

    color: #999;

}


.project-total strong {

    color: black;

    font-size: 20px;

}



/* =====================================================
   FILTERS
===================================================== */

.filters {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    padding-bottom: 35px;

    border-bottom: 1px solid #ddd;

    margin-bottom: 60px;

}


.filter {

    border: 1px solid #d5d5d2;

    background: transparent;

    color: #777;

    padding:
        9px
        16px;

    border-radius: 100px;

    cursor: pointer;

    font-size: 12px;

    transition:
        background .25s ease,
        color .25s ease,
        border .25s ease;

}


.filter:hover {

    color: black;

    border-color: #999;

}


.filter.active {

    background: black;

    color: white;

    border-color: black;

}



/* =====================================================
   PROJECT GRID
===================================================== */

.project-grid {

    display: grid;

    grid-template-columns:
        repeat(12, 1fr);

    column-gap: 24px;

    row-gap: 90px;

}


.project-card {

    grid-column:
        span 4;

}


.project-card:nth-child(2) {

    grid-column:
        span 4;

    margin-top: 90px;

}


.project-card:nth-child(3n) {

    grid-column:
        span 4;

}


.project-card:nth-child(4) {

    grid-column:
        2 / span 5;

}


.project-card:nth-child(5) {

    grid-column:
        7 / span 5;

    margin-top: 120px;

}



/* =====================================================
   PROJECT VISUAL
===================================================== */

.project-visual {

    position: relative;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #ddd;

    cursor: pointer;

}


.project-visual img,
.project-visual video {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .9s var(--ease),
        filter .6s ease;

}


.project-card:hover
.project-visual img,
.project-card:hover
.project-visual video {

    transform: scale(1.06);

    filter: brightness(.72);

}


.project-hover {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: white;

    font-size: 13px;

    opacity: 0;

    transform: translateY(10px);

    transition:
        opacity .4s ease,
        transform .5s var(--ease);

}


.project-card:hover .project-hover {

    opacity: 1;

    transform: translateY(0);

}


.hover-arrow {

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: var(--lime);

    color: black;

    display: grid;
    place-items: center;

    font-size: 18px;

}


.media-type {

    position: absolute;

    left: 18px;
    bottom: 18px;

    padding:
        7px
        10px;

    border-radius: 30px;

    background: rgba(0,0,0,.55);

    backdrop-filter: blur(10px);

    color: white;

    font-size: 9px;

    letter-spacing: 1.5px;

}


.youtube-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #111;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    transition:
        transform .9s cubic-bezier(.22,1,.36,1),
        filter .5s ease;
}

.project-card:hover .youtube-thumbnail img {
    transform: scale(1.06);
    filter: brightness(.65);
}

.youtube-play {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;
}

.youtube-play span {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    padding-left: 3px;

    border-radius: 50%;

    background: rgba(255, 0, 51, .95);

    color: white;

    font-size: 19px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.3);

    transition:
        transform .35s cubic-bezier(.22,1,.36,1);
}

.project-card:hover .youtube-play span {
    transform: scale(1.12);
}



.youtube-noise {

    position: absolute;

    inset: 0;

    opacity: .15;

    background-image:

        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            white 5px,
            transparent 6px
        );

}


.youtube-play {

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

}


.youtube-play span {

    width: 70px;
    height: 70px;

    display: grid;

    place-items: center;

    padding-left: 4px;

    border-radius: 50%;

    background: #ff0033;

    color: white;

    font-size: 22px;

}



/* =====================================================
   PROJECT META
===================================================== */

.project-meta {

    padding-top: 20px;

}


.project-meta-top {

    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

}


.project-category {

    color: #888;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

}


.project-index {

    color: #aaa;

    font-size: 10px;

}


.project-meta h3 {

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(23px, 2.5vw, 34px);

    line-height: 1.05;

    letter-spacing: -.045em;

    font-weight: 600;

}


.project-author {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 15px;

    color: #777;

    font-size: 12px;

}


.author-line {

    width: 25px;

    height: 1px;

    background: #bbb;

}



/* =====================================================
   REVEAL ANIMATION
===================================================== */

.reveal {

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity .8s var(--ease),
        transform .8s var(--ease);

}


.reveal.visible {

    opacity: 1;

    transform: translateY(0);

}



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

footer {

    background: var(--black);

    color: white;

    padding:
        120px
        clamp(24px, 6vw, 100px)
        35px;

}


.footer-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    padding-bottom: 100px;

}


.footer-title {

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(65px, 12vw, 180px);

    font-weight: 700;

    letter-spacing: -.08em;

    line-height: .75;

}


.footer-title span {

    display: block;

}


.footer-title span:last-child {

    color: var(--lime);

}


.back-top {

    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.back-top span {

    width: 40px;
    height: 40px;

    border: 1px solid #444;

    border-radius: 50%;

    display: grid;
    place-items: center;

}


.footer-bottom {

    display: flex;

    justify-content: space-between;

    padding-top: 25px;

    border-top: 1px solid #292929;

    color: #666;

    font-size: 11px;

}



/* =====================================================
   MODAL
===================================================== */

.modal {

    position: fixed;

    inset: 0;

    z-index: 100;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;

    pointer-events: none;

    transition: opacity .35s ease;

}


.modal.active {

    opacity: 1;

    pointer-events: auto;

}


.modal-backdrop {

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.88);

    backdrop-filter: blur(15px);

}


.modal-window {

    position: relative;

    z-index: 2;

    width: min(1100px, 95vw);

    max-height: 92vh;

    overflow: auto;

    background: #171717;

    color: white;

    transform:
        translateY(30px)
        scale(.97);

    transition:
        transform .5s var(--ease);

}


.modal.active .modal-window {

    transform:
        translateY(0)
        scale(1);

}


.modal-media {

    width: 100%;

    background: black;

}


.modal-media img,
.modal-media video,
.modal-media iframe {

    display: block;

    width: 100%;

    height: min(65vh, 650px);

    object-fit: contain;

    border: 0;

}


.modal-info {

    padding: 35px 40px 45px;

}


.modal-label {

    margin-bottom: 10px;

    color: var(--lime);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 2px;

}


.modal-info h2 {

    font-family: "Manrope", sans-serif;

    font-size:
        clamp(35px, 5vw, 65px);

    line-height: .95;

    letter-spacing: -.06em;

}


.modal-student {

    margin-top: 18px;

    color: #999;

    font-size: 13px;

}


.modal-info p {

    max-width: 650px;

    margin-top: 25px;

    color: #aaa;

    font-size: 14px;

    line-height: 1.8;

}


.modal-close {

    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 5;

    width: 45px;
    height: 45px;

    border: 0;

    border-radius: 50%;

    background: rgba(0,0,0,.7);

    cursor: pointer;

}


.modal-close span {

    position: absolute;

    width: 18px;
    height: 1px;

    background: white;

    left: 50%;
    top: 50%;

}


.modal-close span:first-child {

    transform:
        translate(-50%, -50%)
        rotate(45deg);

}


.modal-close span:last-child {

    transform:
        translate(-50%, -50%)
        rotate(-45deg);

}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {


    .nav-links {

        display: none;

    }


    .nav {

        padding: 20px;

    }


    .hero {

        min-height: 90vh;

    }


    .hero-content {

        padding:
            0
            20px
            60px;

    }


    .hero h1 {

        font-size:
            clamp(70px, 21vw, 130px);

    }


    .hero h1 span {

        margin-left: 8vw;

    }


    .hero-bottom {

        display: block;

        margin-top: 40px;

    }


    .scroll-link {

        margin-top: 30px;

    }


    .hero-number {

        display: none;

    }


    .intro {

        display: block;

        padding:
            90px
            20px;

    }


    .intro-label {

        margin-bottom: 30px;

    }


    .intro p {

        margin-left: 0;

    }


    .projects-section {

        padding:
            80px
            20px
            120px;

    }


    .projects-header {

        align-items: flex-start;

    }


    .projects-header h2 {

        font-size: 70px;

    }


    .project-grid {

        display: block;

    }


    .project-card,
    .project-card:nth-child(2),
    .project-card:nth-child(4),
    .project-card:nth-child(5) {

        margin-top: 0;

        margin-bottom: 65px;

    }


    .project-visual {

        aspect-ratio: 1 / 1.15;

    }


    .footer-top {

        display: block;

    }


    .back-top {

        margin-top: 50px;

    }


    .footer-title {

        font-size: 20vw;

    }


    .footer-bottom {

        gap: 20px;

    }


    .modal {

        padding: 0;

    }


    .modal-window {

        width: 100%;

        height: 100%;

        max-height: none;

    }


    .modal-media img,
    .modal-media video,
    .modal-media iframe {

        height: 55vh;

    }


    .modal-info {

        padding:
            25px
            20px
            40px;

    }

}


.hero-carousel {
    width: 100%;
    padding: 24px 0;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.media-wrapper {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 0 16px;
}

.media-card {
    position: relative;
    flex-shrink: 0;

    width: 60vw;
    aspect-ratio: 9 / 16;
    max-height: 70vh;

    background: #111827;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

    scroll-snap-align: start;
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
}

/* Overlay */

.media-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.5);

    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.media-overlay h2 {
    margin: 0;
    color: #ffffff;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;

    text-align: center;
}

.media-overlay p {
    margin: 8px 0 0;

    color: #ffffff;

    font-size: 18px;
    line-height: 1.5;

    text-align: center;
}

/* Tablet */

@media (min-width: 640px) {
    .media-card {
        width: 45vw;
    }
}

/* Desktop */

@media (min-width: 1024px) {
    .media-card {
        width: 25vw;
    }
}

/* Touch devices:
    show overlay when card is active */
@media (hover: none) {
    .media-card.active .media-overlay {
        opacity: 1;
    }
}


#shorts-carousel {
    background: var(--white);
    padding:100px;
    padding-top: 0px ;
}
/* Custom styles for YouTube Shorts Carousel */
#shorts-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#shorts-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for clean look */
}

.short-item {
    scroll-snap-align: start;
}

/* Aspect ratio utility for Shorts (9:16) */
.aspect-shorts {
    position: relative;
    padding-bottom: 177.77%; /* (16 / 9) * 100 */
    height: 0;
    overflow: hidden;
}

.aspect-shorts iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}


@media (max-width: 600px) {
    #shorts-carousel {
    padding:10%;
    padding-top: 0px ;
}
.projects-section {
    padding-bottom: 10px;
}
}