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

body    {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0E07D1;
    color: #FFFF2E;
}

header  {
    display: flex;
    padding: 24px 70px 24px;
    justify-content: space-between;
    align-items: center;
    background: #0E07D1;
}

h1  {
    font-weight: 600;
    font-size: 2.2rem;
    color: #FFFF2E;
}

nav {
    display: flex;
    gap: 1.8rem;
}

nav a   {
    color: #FFFF2E;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

.marqueeframe   {
    overflow: hidden;
    background: #FE0002;
    white-space: nowrap;
    padding: 0.25rem;
}

.marquee    {
    animation: scroll 10s linear infinite;
    display: flex;
}

.marqueetext    {
    display: flex;
    flex-shrink: 0;
}

.marqueeframe span  {
    font-family: 'Bitcount Prop Single Ink', monospace;
    color: #FFFF2E;
    font-weight: regular;
    font-size: 5rem;
    padding: 0 4rem;      /* 0 vertical, 1.8rem horizontal */
}

@keyframes scroll {
    0% {
    transform: translateX(0); /* Start at original position */
    }
    100% {
    transform: translateX(-50%); /* Move left by 50% (half of duplicated content) */
        }
}


.container_work   {
    display: flex;
    flex-direction: column;
    gap: 100px; /* Creates 100px space between each project instance */
}


.containeroyibo     {
    margin-top: 360px;
    height: 528px;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    
}

.imglayout_oyibo    {
    display: flex;
    align-items: center;
    width: 1540px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.imglayout_oyibo img {
    width: 422px;
    height: 528px;
    display: block;
    flex-shrink: 0;
    margin-left: -320px;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.imglayout_oyibo img:first-child    {
    margin-left: 0;
}

.containeroyibo:hover   .imglayout_oyibo img {
    margin-left: 0;
}


/* Infinite scroll after spread completes */
.containeroyibo:hover .imglayout_oyibo {
    animation: infiniteScroll 60s linear 0.4s infinite;
}

/* Stop animation when hover ends */
.containeroyibo:not(:hover) .imglayout_oyibo {
    animation: none;
}

/* Seamless infinite scroll animation */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-5908px); /* 14 images × 422px = 5908px */
    }
}



.prjcontent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    padding: 56px 0 90px 70px;
    align-items: start;
}

h2  {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 600;
}

.largetitle {
    width: 420px;
    height: 104px;
}

.prjparagraph {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 420px;
    height: 360px;
}

.prjparagraph p {
    font-size: 0.8rem;
    line-height: 180%;
    font-weight: 300;
}

.containerfwa   {
    height: 528px;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    /* margin-top: 100px; */
}

.imglayout_fwa  {
    display: flex;
    align-items: center;
    width: 1496px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.imglayout_fwa img  {
    width: 528px;
    height: 528px;
    display: block;
    flex-shrink: 0;
    margin-left: -400px;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.imglayout_fwa img:first-child {
    margin-left: 0;
}

.containerfwa:hover  .imglayout_fwa img {
    margin-left: 0;
}


/* Infinite scroll after spread completes */
.containerfwa:hover .imglayout_fwa {
    animation: infiniteScroll 60s linear 0.4s infinite;
}

/* Stop animation when hover ends */
.containerfwa:not(:hover) .imglayout_fwa {
    animation: none;
}

/* Seamless infinite scroll animation */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-6336px); /* 12 images × 528px = 6336px */
    }
}

.collabtxt  {
    padding-top: 90px;
}

.containerhmhp  {
    height: 528px;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin-top: 200px;
}

.imglayout_hmhp     {
    display: flex;
    align-items: center;
    width: 3026px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.imglayout_hmhp img  {
    height: 528px;
    display: block;
    flex-shrink: 0;
    margin-left: -400px;
    max-width: 100%;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.imglayout_hmhp img:first-child {
    margin-left: 0;
}

.containerhmhp:hover .imglayout_hmhp img {
    margin-left: 0;
}


/* Infinite scroll after spread completes */
.containerhmhp:hover .imglayout_hmhp {
    animation: infiniteScroll 60s linear 0.4s infinite;
}

/* Stop animation when hover ends */
.containerhmhp:not(:hover) .imglayout_hmhp {
    animation: none;
}

/* Seamless infinite scroll animation */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-7920px); /* 15 images × 528px = 7920 */
    }
}


footer  {
    background-color: #0E07D1;
    color: #0e07d1;
    height: 1000px;
    margin: 600px auto 0px auto;
    /* max-width: 1440px; */
}

.archivewrapper {
    overflow: hidden;
    margin: 0px auto 75px auto;
}

.archivecontainer   {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollImages 60s linear infinite;
}

.archivecontainer:hover {
    animation-play-state: paused;
}

.archivegroup {
    display: flex;
    gap: 20px;
}

@keyframes scrollImages {
    0% {
    transform: translateX(0);
    }
    100% {
    transform: translateX(calc(-50% - 20px));
    }
}

.archiveitem {
    width: 420px;
    height: 525px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.archiveitem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.aboutsection   {
    max-width: 1440px;
    margin: 0 auto;
    background-color: #0E07D1;
    padding: 0 70px;
    /* padding: 0 4.3rem; */
}

.aboutcontent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    color: #FFFF2E;
    align-items: start;
}

.aboutleft, .aboutright  {
    font-size: 1.25rem;
    font-weight: lighter;
    line-height: 1.6;
    text-align: justify;
    width: 100%;
    height: auto;
    /* width: 640px; */
    /* height: 192px; */
}


.aboutleft p, .aboutright p {
    margin: 0;
}


.footercontent  {
    max-width: 1440px;
    /* margin-top: 4.6rem; */
    margin: 4.6rem auto 0;
    padding: 0 70px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footerlinks    {
    display: flex;
    gap: 40px;
}


.footerlinks a {
    color: #FFFF2E;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bolder;
    text-transform: uppercase;
}

.footercontact  {
    text-align: right;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.footercontact .label {
    font-size: 1rem;
    text-transform: uppercase;
    align-self: flex-start;
    color: #FFFF2E;
}

.footercontact .email {
    font-size: 2.25rem;
    font-weight: bolder;
    color: #FFFF2E;
}


/* =================
   RESPONSIVE MEDIA QUERIES
   ================= */

/* =================
   MOBILE - BELOW 768PX
   ================= */

@media (max-width: 768px) {
    /* HEADER */
    header {
        flex-direction: column;
        padding: 20px;
        gap: 1rem;
        text-align: center;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    /* MARQUEE */
    .marqueeframe span {
        font-size: 2.5rem;
        padding: 0 2rem;
    }
    
    /* OYIBO GALLERY - Swipeable */
    .containeroyibo {
        margin-top: 100px;
        height: 350px;
        overflow-x: auto; /* Enable horizontal scroll */
        overflow-y: hidden;
        scroll-snap-type: x mandatory; /* Snap to images */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        cursor: grab;
    }

    .containeroyibo:active {
        cursor: grabbing;
    }

    .imglayout_oyibo {
        animation: none; /* Remove autoscroll */
        gap: 1rem; /* Add gap between images */
    }
    
    .imglayout_oyibo img {
        width: 280px;
        height: 350px;
        margin-left: 0; /* No overlap */
        scroll-snap-align: start; /* Snap each image to start */
        flex-shrink: 0;
    }

    /* Remove hover/not-hover animations */
    .containeroyibo:not(:hover) .imglayout_oyibo {
        animation: none;
    }
    
    /* Hide scrollbar */
    .containeroyibo::-webkit-scrollbar {
        display: none;
    }
    
    .containeroyibo {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
   



    
    /* FWA GALLERY - Horizontal with auto-scroll */
    .containerfwa {
        height: 350px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }


    .containerfwa:active {
        cursor: grabbing;
    }
    
    .imglayout_fwa {
        animation: none;
        gap: 1rem;
    }
    
    .imglayout_fwa img {
        width: 350px;
        height: 350px;
        margin-left: 0;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    .containerfwa:not(:hover) .imglayout_fwa {
        animation: none;
    }
    
    .containerfwa::-webkit-scrollbar {
        display: none;
    }
    
    .containerfwa {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }


    
    /* HMHP GALLERY - Horizontal with auto-scroll */
    .containerhmhp {
        height: 350px;
        margin-top: 100px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }
    
    .imglayout_hmhp {
        animation: none;
        gap: 1rem;
    }
    
    .imglayout_hmhp img {
        height: 350px;
        margin-left: 0;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    .containerhmhp:not(:hover) .imglayout_hmhp {
        animation: none;
    }
    
    .containerhmhp::-webkit-scrollbar {
        display: none;
    }
    
    .containerhmhp {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    
    /* PROJECT CONTENT */
    .prjcontent {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .largetitle {
        width: 100%;
        height: auto;
    }
    
    .prjparagraph {
        width: 100%;
        height: auto;
    }
    
    .prjparagraph p {
        font-size: 0.9rem;
    }
    
    .collabtxt {
        padding-top: 40px;
    }
    
    /* CONTAINER SPACING */
    .container_work {
        gap: 60px;
    }
    
    /* FOOTER ARCHIVE - Horizontal scroll */
    .archiveitem {
        width: 250px;
        height: 312px;
    }
    
    .archivewrapper {
        margin: 0px auto 50px auto;
    }
    
    /* ABOUT SECTION */
    .aboutsection {
        padding: 0 2rem;
    }
    
    .aboutcontent {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .aboutleft, .aboutright {
        width: 100%;
        height: auto;
        font-size: 1rem;
        text-align: left;
    }
    
    /* FOOTER CONTENT */
    footer {
        height: auto;
        margin-top: 300px;
        padding-bottom: 3rem;
    }
    
    .footercontent {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 0 2rem;
        margin-top: 3rem;
    }
    
    .footerlinks {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footercontact {
        text-align: left;
        align-items: flex-start;
    }
    
    .footercontact .label {
        align-self: flex-start;
    }
    
    .footercontact .email {
        font-size: 1.5rem;
    }
}

/* =================
   EXTRA SMALL MOBILE - BELOW 480PX
   ================= */

@media (max-width: 480px) {
    /* MARQUEE */
    .marqueeframe span {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    /* OYIBO GALLERY */
    .containeroyibo {
        height: 280px;
    }
    
    .imglayout_oyibo img {
        width: 224px;
        height: 280px;
    }
    
    /* FWA GALLERY */
    .containerfwa {
        height: 280px;
    }
    
    .imglayout_fwa img {
        width: 280px;
        height: 280px;
    }
    
    /* HMHP GALLERY */
    .containerhmhp {
        height: 280px;
    }
    
    .imglayout_hmhp img {
        height: 280px;
    }
    
    /* ARCHIVE */
    .archiveitem {
        width: 200px;
        height: 250px;
    }
    
    /* PROJECT CONTENT */
    .prjcontent {
        padding: 2rem 1rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .prjparagraph p {
        font-size: 0.85rem;
    }
    
    /* ABOUT SECTION */
    .aboutsection {
        padding: 0 1.5rem;
    }
    
    .aboutleft, .aboutright {
        font-size: 0.9rem;
    }
    
    /* FOOTER */
    .footercontent {
        padding: 0 1.5rem;
    }
    
    .footercontact .email {
        font-size: 1.25rem;
    }
}

/* =================
   TABLET - 769PX TO 1023PX
   ================= */

@media (min-width: 769px) and (max-width: 1023px) {
    /* HEADER */
    header {
        padding: 24px 40px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    /* OYIBO GALLERY */
    .containeroyibo {
        height: 440px;
        margin-top: 300px;
    }
    
    .imglayout_oyibo img {
        width: 352px;
        height: 440px;
        margin-left: -260px;
    }
    
    /* FWA GALLERY */
    .containerfwa {
        height: 440px;
    }
    
    .imglayout_fwa img {
        width: 440px;
        height: 440px;
        margin-left: -320px;
    }
    
    /* HMHP GALLERY */
    .containerhmhp {
        height: 440px;
    }
    
    .imglayout_hmhp img {
        height: 440px;
        margin-left: -320px;
    }
    
    /* PROJECT CONTENT */
    .prjcontent {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 2rem;
    }
    
    .largetitle {
        width: 100%;
        height: auto;
    }
    
    .prjparagraph {
        width: 100%;
        height: auto;
    }
    
    /* ABOUT SECTION */
    .aboutsection {
        padding: 0 3rem;
    }
    
    .aboutcontent {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .aboutleft, .aboutright {
        width: 100%;
        height: auto;
        font-size: 1.1rem;
    }
    
    /* FOOTER */
    .footercontent {
        padding: 0 40px;
    }
    
    /* ARCHIVE */
    .archiveitem {
        width: 350px;
        height: 437px;
    }
}

/* =================
   LAPTOP - 1024PX TO 1439PX
   ================= */

@media (min-width: 1024px) and (max-width: 1439px) {
    header {
        padding: 24px 50px;
    }
    
    .prjcontent {
        padding: 56px 0 90px 50px;
    }
    
    .aboutsection {
        padding: 0 3rem;
    }
    
    .aboutcontent {
        column-gap: 2rem;
    }
    
    .aboutleft, .aboutright {
        width: 100%;
    }
    
    .footercontent {
        padding: 0 50px;
    }
}