
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --pink: #fccaca;
    --black: #111111;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--pink);
    color: var(--black);
    font-family: 'Space Grotesk', Arial, sans-serif;
}

a {
    color: inherit;
}

/* HEADER */

.site-header {
    position: relative;
    z-index: 1001;
    width: 100%;
    padding: 28px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    text-decoration: none;
    font-size: clamp(18px, 2.2vw, 29px);
    font-weight: 700;
    letter-spacing: -0.08em;
}

.site-logo span {
    margin-left: 5px;
    font-weight: 400;
}

.site-logo sup {
    font-size: 10px;
    vertical-align: top;
    margin-left: 4px;
}

/* HAMBURGER */

.menu-toggle {
    position: relative;
    z-index: 1002;
    width: 45px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--black);
    transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* FULLSCREEN MENU */

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--pink);

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

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.site-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-menu a {
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(28px, 6vw, 76px);
    letter-spacing: -0.06em;
    transition: transform .25s ease;
}

.site-menu a:hover {
    transform: translateX(12px);
}

/* INTRO */

.home-intro {
    text-align: right;
    padding: 90px 5% 35px;
}

.home-intro .intro-description {
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 700px) {
    .home-intro {
        text-align: center;
        padding: 70px 20px 35px;
    }

    .home-intro .intro-description {
        margin-left: auto;
        margin-right: auto;
    }
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.home-intro h1 {
    font-size: clamp(65px, 11vw, 180px);
    line-height: .82;
    letter-spacing: -.09em;
    margin: 35px 0;
}

.home-intro h1 span {
    color: #ff6938;
}

.intro-description {
    max-width: 450px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
}

/* CONVEYOR SECTION */

.conveyor-section {
    width: 100%;
    padding: 40px 0 100px;
    overflow: hidden;
}

.conveyor-viewport {
    width: min(800px, 90vw);
    margin: 0 auto;
    position: relative;
}

.conveyor-machine {
    position: relative;
    width: 100%;
    aspect-ratio: 1400 / 1200;
}

.machine-part {
    position: absolute;
    display: block;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* LOWER CONVEYOR */

/* MAIN CONVEYOR BODY */
.mainpart {
    width: 94%;
    left: 3%;
    bottom: 3%;
    z-index: 5;
}

.belt {
    width: 75%;
    left: 12%;
    bottom: 21.7%;
    z-index: 6;
}


.control-arm {
    width: 5%;
    left: 11%;
    bottom: 25%;
    z-index: 8;
}

.machine-lights {
    width: 14%;
    right: 12.5%;
    bottom: 10.3%;
    z-index: 8;
}


/* ROBOTIC ARM ASSEMBLY */
.robot-assembly {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    transform: translateY(3%);
}

/* UPPER HORIZONTAL ARM */

.robot-top {
    width: 59%;
    left: 20.5%;
    top: 3%;

    transform-origin: 100% 50%;
    animation: none;
}




@keyframes topArmPivot {
    0%, 15%, 85%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    35%, 60% {
        transform: translateX(-19%) translateY(3%) rotate(-18deg);
    }
}




/* RIGHT VERTICAL SUPPORT */

.robot-side {
    height: 65%;
    width: auto;
    right: 11%;
    top: 9%;

    transform-origin: 50% 100%;
}


@keyframes sideArmPivot {
    0%, 15%, 85%, 100% {
        transform: rotate(0deg);
    }

    35%, 60% {
        transform: rotate(-12deg);
    }
}


/* RIGHT JOINT */

.robot-connector-one {
    width: 9%;
    right: 17%;
    top: 8%;

    transform-origin: 50% 50%;
}




@keyframes connectorOneFollow {
    0%, 15%, 85%, 100% {
        transform: translate(0, 0);
    }

    35%, 60% {
        transform: translate(-135%, 35%);
    }
}




/* HANGING CONNECTOR */

/* ROBOTIC GRABBER ASSEMBLY */


.robot-grabber {
    position: absolute;
    inset: 0;
    pointer-events: none;

    transform-origin: 79.5% 7%;
}


.robot-connector-two {
    width: 5%;
    left: 23%;
    top: 7%;
}

.grabber-left {
    width: 4%;
    left: 23%;
    top: 14%;
    transform-origin: 75% 15%;
    animation: clawLeft 6s ease-in-out infinite;
}

.grabber-right {
    width: 4%;
    left: 26%;
    top: 14%;
    transform-origin: 25% 15%;
    animation: clawRight 6s ease-in-out infinite;
}


/* LOWER AND RAISE GRABBER */




@keyframes grabberFollowArm {
    0%, 15%, 85%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    35%, 60% {
        transform: translateX(-12%) translateY(3%) rotate(-18deg);
    }
}





/* LEFT CLAW CLOSES INWARD */


@keyframes clawLeft {
    0%, 25%, 75%, 100% {
        transform: rotate(0deg);
    }

    40%, 60% {
        transform: rotate(-20deg);
    }
}


/* RIGHT CLAW CLOSES INWARD */


@keyframes clawRight {
    0%, 25%, 75%, 100% {
        transform: rotate(0deg);
    }

    40%, 60% {
        transform: rotate(20deg);
    }
}




@media (prefers-reduced-motion: reduce) {
    .robot-grabber,
    .grabber-left,
    .grabber-right {
        animation: none;
    }
}


/* PRODUCT LAYER */


.products-track {
    position: absolute;
    left: 19%;
    right: 12%;
    bottom: 24%;
    height: 25%;
    z-index: 8;
    overflow: visible;
}

.cover-left {
    width: 15%;
    left: 3%;
    bottom: 12%;
    z-index: 6;
}

.cover-right {
    width: 15%;
    right: 3%;
    bottom: 12%;
    z-index: 6;
}



.moving-product {
    position: absolute;
    bottom: 0;
    left: 0;

    height: 65%;
    width: auto;

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

    text-decoration: none;
    cursor: pointer;
    z-index: 1;
}


.moving-product img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
}

.moving-product span {
    position: absolute;
    bottom: 105%;
    padding: 8px 12px;
    background: var(--black);
    color: white;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s ease;
}

.moving-product:hover span,
.moving-product:focus-visible span {
    opacity: 1;
}

.conveyor-instructions {
    text-align: center;
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 700;
    margin-top: 25px;
}

.conveyor-instructions span {
    padding: 0 10px;
}

/* CONTACT */

.home-contact {
    text-align: center;
    padding: 110px 20px 150px;
}

.home-contact h2 {
    font-size: clamp(65px, 10vw, 145px);
    letter-spacing: -.09em;
    line-height: .85;
    margin: 35px 0;
}

.home-contact > p:not(.eyebrow) {
    max-width: 460px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.contact-link {
    display: inline-block;
    border: 1px solid var(--black);
    padding: 18px 28px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}

.contact-link:hover {
    background: var(--black);
    color: var(--pink);
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--black);
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 11px;
    font-weight: 700;
}

.site-footer a {
    text-decoration: none;
}

/* MOBILE */

@media (max-width: 700px) {
    .site-header {
        padding: 22px 5%;
    }

    .home-intro {
        padding-top: 70px;
    }

    .conveyor-section {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .conveyor-viewport {
        width: 100%;
    }

    .conveyor-instructions {
        padding: 0 15px;
        line-height: 1.7;
    }

    .home-contact {
        padding: 80px 20px 100px;
    }

    .site-footer {
        flex-wrap: wrap;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* MOVING PRODUCTS */


/* PRODUCT CONVEYOR ANIMATION */

.moving-product {
    left: 0;
    animation: conveyorMove 14s linear infinite;
    will-change: transform;
}


/* STAGGER PRODUCTS EVENLY */

.moving-product:nth-child(1) { animation-delay: 0s; }
.moving-product:nth-child(2) { animation-delay: -1.75s; }
.moving-product:nth-child(3) { animation-delay: -3.5s; }
.moving-product:nth-child(4) { animation-delay: -5.25s; }
.moving-product:nth-child(5) { animation-delay: -7s; }
.moving-product:nth-child(6) { animation-delay: -8.75s; }
.moving-product:nth-child(7) { animation-delay: -10.5s; }
.moving-product:nth-child(8) { animation-delay: -12.25s; }




@keyframes conveyorMove {
    0% {
        left: -15%;
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    70% {
        left: 90%;
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    76% {
        left: 88%;
        transform: translateY(0) rotate(28deg);
        opacity: 1;
    }

    82% {
        left: 96%;
        transform: translateY(15%) rotate(50deg);
        opacity: 1;
    }

    95% {
        left: 110%;
        transform: translateY(180%) rotate(85deg);
        opacity: 0;
    }

    100% {
        left: -15%;
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
}



/* PAUSE WHEN INTERACTING */


@media (prefers-reduced-motion: reduce) {
    .moving-product {
        animation: none;
    }

    .moving-product:nth-child(1) {
        left: 10%;
    }

    .moving-product:nth-child(2) {
        left: 40%;
    }

    .moving-product:nth-child(3) {
        left: 70%;
    }
}


/* ANIMATED CONVEYOR BELT SURFACE */

.belt-motion {
    position: absolute;

    /* Align with the visible black belt */
    left: 15%;
    width: 69%;
    bottom: 22.1%;
    height: 5.2%;

    z-index: 7;
    pointer-events: none;
    overflow: hidden;

    /* Subtle diagonal tread marks */
    background: repeating-linear-gradient(
        105deg,
        transparent 0px,
        transparent 26px,
        rgba(255, 255, 255, 0.075) 27px,
        rgba(255, 255, 255, 0.075) 29px,
        transparent 30px,
        transparent 56px
    );

    background-size: 56px 100%;
    animation: beltScroll 1.2s linear infinite;
}

@keyframes beltScroll {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: 56px;
    }
}


/* Pause belt alongside products */


@media (prefers-reduced-motion: reduce) {
    .belt-motion {
        animation: none;
    }
}


/* CONTROL LEVER ANIMATION */

.control-arm {
    transform-origin: 50% 90%;
    animation: leverMove 5s ease-in-out infinite;
}

@keyframes leverMove {
    0%, 15%, 85%, 100% {
        transform: rotate(0deg);
    }

    35%, 65% {
        transform: rotate(14deg);
    }
}


/* INDICATOR LIGHT ANIMATION */

.machine-lights {
    animation: lightsPulse 2.4s ease-in-out infinite;
}

@keyframes lightsPulse {
    0%, 100% {
        filter: brightness(1);
    }

    25% {
        filter: brightness(1.8) drop-shadow(0 0 4px #ff6938);
    }

    50% {
        filter: brightness(0.75);
    }

    75% {
        filter: brightness(1.5) drop-shadow(0 0 3px #ff6938);
    }
}

.moving-product {
    transform-origin: 65% 90%;
}


/* INDIVIDUAL PRODUCT SIZES */


/* INDIVIDUAL PRODUCT SIZES */

/* Protein tub — largest */
.moving-product:nth-child(1) {
    height: 85%;
}

/* Cans — medium */
.moving-product:nth-child(2),
.moving-product:nth-child(4),
.moving-product:nth-child(6) {
    height: 58%;
}

/* Small bottles — smallest */
.moving-product:nth-child(3),
.moving-product:nth-child(5) {
    height: 45%;
}

/* Water bottles — slightly larger than cans */
.moving-product:nth-child(7),
.moving-product:nth-child(8) {
    height: 65%;
}


/* CONNECTED ROBOT FRAME */

.robot-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
}



/* JS-CONTROLLED ROBOT MOVEMENT */

.robot-top,
.robot-side,
.robot-connector-one,
.robot-grabber {
    will-change: transform;
}

/* Claws are now controlled by JavaScript */

.grabber-left,
.grabber-right {
    animation: none;
}

/* INTERACTIVE MACHINE LEVER */

.machine-control {
    position: absolute;
    left: 11%;
    bottom: 25%;
    width: 5%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 9;
}

.machine-control .control-arm {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    animation: none;
    transform-origin: 50% 90%;
    transition: transform 0.3s ease;
}

.machine-control:focus-visible {
    outline: 2px solid #111;
    outline-offset: 5px;
}

/* STOPPED MACHINE */

.conveyor-machine.is-stopped .control-arm {
    transform: rotate(14deg);
}

.conveyor-machine.is-stopped .moving-product,
.conveyor-machine.is-stopped .belt-motion {
    animation-play-state: paused;
}

.conveyor-machine.is-stopped .machine-lights {
    animation: none;
    filter: brightness(0.55);
}

/* ROBOT PRODUCT PICKUP */

.robot-carried-product {
    position: absolute;
    z-index: 9;
    display: block;
    max-width: none;
    pointer-events: none;
    user-select: none;
}

.conveyor-machine.robot-picking .moving-product,
.conveyor-machine.robot-picking .belt-motion {
    animation-play-state: paused !important;
}


/* PRODUCT DETAIL POPUP */

.product-modal {
    position: fixed;
    width: min(950px, 92vw);
    max-width: 950px;
    max-height: 90vh;
    padding: 0;
    border: 2px solid #111;
    background: #fccaca;
    color: #111;
    overflow: auto;
}

.product-modal[open] {
    animation: modalAppear 0.35s ease both;
}

.product-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.product-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.product-modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2b7b7;
    padding: 50px;
    min-width: 0;
}

.product-modal-image img {
    display: block;
    width: 100%;
    max-width: 300px;
    max-height: 390px;
    object-fit: contain;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 65px 45px 45px;
}

.product-modal-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 25px;
}

.product-modal-info h2 {
    font-size: clamp(35px, 5vw, 65px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    margin: 0 0 25px;
    text-transform: uppercase;
}

.product-modal-info > p:not(.product-modal-category) {
    font-size: 15px;
    line-height: 1.7;
    max-width: 350px;
}

.product-modal-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: 30px;
    border-bottom: 2px solid #111;
    padding-bottom: 7px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.product-modal-link:hover {
    opacity: 0.55;
}

.product-modal-number {
    display: block;
    margin-top: 45px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 22px;
    z-index: 10;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.product-modal-close:focus-visible,
.product-modal-link:focus-visible {
    outline: 2px solid #111;
    outline-offset: 5px;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* PAUSE CONVEYOR WHILE POPUP IS OPEN */

.conveyor-machine.product-modal-open .moving-product,
.conveyor-machine.product-modal-open .belt-motion {
    animation-play-state: paused !important;
}

/* MOBILE */

@media (max-width: 700px) {
    .product-modal {
        width: 94vw;
        max-height: 88vh;
    }

    .product-modal-content {
        grid-template-columns: 1fr;
    }

    .product-modal-image {
        padding: 35px;
        min-height: 260px;
    }

    .product-modal-image img {
        max-height: 230px;
    }

    .product-modal-info {
        padding: 35px 30px 40px;
    }

    .product-modal-info h2 {
        font-size: 42px;
    }

    .product-modal-number {
        margin-top: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-modal[open] {
        animation: none;
    }
}

/* PRODUCT IMAGE MAGNIFIER */

.product-modal-image {
    overflow: hidden;
    cursor: zoom-in;
}

.product-modal-image img {
    transition: transform 0.2s ease-out;
    transform-origin: center center;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .product-modal-image:hover img {
        transform: scale(2.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-modal-image img {
        transition: none;
    }
}


/* MAGAZINE GALLERY */

.magazine-section {
    padding: 100px 5% 130px;
    overflow: hidden;
}

.magazine-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.magazine-heading h2 {
    font-size: clamp(65px, 10vw, 145px);
    line-height: .85;
    letter-spacing: -.09em;
    margin: 30px 0 0;
}

.magazine-heading h2 span {
    color: #ff6938;
}

.magazine-navigation {
    display: flex;
    gap: 12px;
}

.magazine-navigation button {
    width: 52px;
    height: 52px;
    border: 1px solid #111;
    border-radius: 50%;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.magazine-navigation button:hover {
    background: #111;
    color: #fccaca;
}

.magazine-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

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

.magazine-card {
    flex: 0 0 clamp(240px, 29vw, 390px);
    scroll-snap-align: start;
    cursor: pointer;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: left;
}

.magazine-cover {
    aspect-ratio: 3 / 4;
    background: #e9b0b0;
    overflow: hidden;
    border: 1px solid #111;
}

.magazine-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.magazine-card:hover .magazine-cover img {
    transform: scale(1.04);
}

.magazine-card h3 {
    font-size: 20px;
    letter-spacing: -.04em;
    margin: 18px 0 5px;
}

.magazine-card p {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 0;
}

.magazine-instructions {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-top: 35px;
}

/* MAGAZINE READER */

.magazine-reader {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    padding: 0;
    border: 0;
    background: #111;
    color: #fff;
    overflow: hidden;
}

.magazine-reader::backdrop {
    background: rgba(0, 0, 0, .9);
}

.magazine-reader[open] {
    display: flex;
    flex-direction: column;
}

.magazine-reader-header,
.magazine-reader-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 5%;
    gap: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}

.magazine-reader button {
    background: transparent;
    color: white;
    border: 0;
    cursor: pointer;
    font: inherit;
}

#readerClose {
    font-size: 26px;
}

.magazine-book-area {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
}

#magazineBook {
    margin: auto;
}

.magazine-page {
    background: white;
    overflow: hidden;
}

.magazine-page img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

@media (max-width: 700px) {
    .magazine-section {
        padding: 70px 5% 90px;
    }

    .magazine-heading {
        align-items: flex-end;
    }

    .magazine-heading h2 {
        font-size: 60px;
    }

    .magazine-navigation button {
        width: 42px;
        height: 42px;
    }

    .magazine-card {
        flex-basis: 75vw;
    }

    .magazine-reader-header,
    .magazine-reader-footer {
        padding: 18px 5%;
        font-size: 10px;
    }
}


/* BROWSER ARCADE */

.arcade-section {
    padding: 80px 5% 120px;
}

.arcade-heading h2 {
    font-size: clamp(65px, 10vw, 145px);
    line-height: .85;
    letter-spacing: -.09em;
    margin: 30px 0;
}

.arcade-heading h2 span {
    color: #ff6938;
}

.arcade-heading > p:last-child {
    max-width: 450px;
    line-height: 1.6;
}

.arcade-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border: 2px solid #111;
    border-bottom: 0;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.arcade-toolbar button {
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.arcade-desktop {
    position: relative;
    height: 740px;
    border: 2px solid #111;
    background-color: #efb9b9;
    background-image: radial-gradient(#1113 1px, transparent 1px);
    background-size: 22px 22px;
    overflow: hidden;
    isolation: isolate;
}

/* Individual browser windows */

.arcade-window {
    position: absolute;
    width: 29%;
    min-width: 220px;
    background: #fff;
    border: 2px solid #111;
    box-shadow: 7px 7px 0 #111;
    transform: rotate(var(--rotation, 0deg));
    transform-origin: center;
    user-select: none;
    touch-action: none;
}

.arcade-window.is-dragging {
    transform: rotate(0deg);
    box-shadow: 14px 14px 0 #1115;
}

.arcade-window-bar {
    height: 34px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
    cursor: grab;
    touch-action: none;
}

.arcade-window.is-dragging .arcade-window-bar {
    cursor: grabbing;
}

.arcade-window-title {
    font-size: 10px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.arcade-window-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.arcade-window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fccaca;
}

.arcade-window-preview {
    display: block;
    width: 100%;
    height: 170px;
    border: 0;
    padding: 0;
    background: #f7e9e9;
    cursor: pointer;
    overflow: hidden;
}

.arcade-window-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .3s ease;
    pointer-events: none;
}

.arcade-window-preview:hover img {
    transform: scale(1.06);
}

.arcade-window-footer {
    display: flex;
    justify-content: space-between;
    padding: 9px 11px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
}

.arcade-instructions {
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* Project detail popup */

.arcade-modal {
    width: min(1000px, 94vw);
    max-width: 1000px;
    max-height: 90dvh;
    padding: 0;
    border: 2px solid #111;
    background: #fccaca;
    color: #111;
    overflow: auto;
}

.arcade-modal::backdrop {
    background: #000b;
    backdrop-filter: blur(5px);
}

.arcade-modal-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 480px;
}

.arcade-modal-preview {
    background: #efb9b9;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.arcade-modal-preview img {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    box-shadow: 8px 8px 0 #111;
    border: 2px solid #111;
}

.arcade-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 65px 45px;
}

.arcade-modal-info h2 {
    font-size: clamp(36px, 5vw, 65px);
    line-height: .95;
    letter-spacing: -.07em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    margin: 20px 0;
}

.arcade-modal-info > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.7;
}

#arcadeModalLink {
    align-self: flex-start;
    margin-top: 30px;
    padding-bottom: 7px;
    border-bottom: 2px solid #111;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

#arcadeModalNumber {
    margin-top: 45px;
    font-size: 11px;
    font-weight: 700;
}

.arcade-modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 10;
    border: 0;
    background: transparent;
    font-size: 36px;
    cursor: pointer;
}

/* Mobile: horizontal swipeable browser gallery */

@media (max-width: 700px) {
    .arcade-section {
        padding: 60px 5% 90px;
    }

    .arcade-heading h2 {
        font-size: clamp(52px, 12vw, 80px);
    }

    .arcade-desktop {
        height: 380px;
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 25px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .arcade-window {
        position: relative;
        left: auto !important;
        top: auto !important;
        flex: 0 0 78%;
        min-width: 0;
        transform: none !important;
        scroll-snap-align: center;
    }

    .arcade-window-bar {
        cursor: default;
    }

    .arcade-window-preview {
        height: 200px;
    }

    .arcade-toolbar {
        font-size: 9px;
    }

    .arcade-modal-layout {
        grid-template-columns: 1fr;
    }

    .arcade-modal-preview {
        padding: 30px;
    }

    .arcade-modal-preview img {
        max-height: 260px;
    }

    .arcade-modal-info {
        padding: 30px;
    }

    .arcade-modal-info h2 {
        font-size: 42px;
    }

    .arcade-instructions {
        font-size: 10px;
        line-height: 1.7;
    }
}

/* CENTER HOMEPAGE INTRO */

.home-intro {
    text-align: center;
}

.home-intro .intro-description {
    margin-left: auto;
    margin-right: auto;
}


/* RIGHT ALIGN BROWSER ARCADE HEADING */

.arcade-heading {
    text-align: right;
}

.arcade-heading > p:last-child {
    margin-left: auto;
    margin-right: 0;
}


/* BORDERLESS BROWSER ARCADE */

.arcade-desktop {
    border: none;
    background: transparent;
    background-image: none;
}

.arcade-toolbar {
    border: none;
    padding-left: 0;
    padding-right: 0;
}


/* DRAGGABLE CONVEYOR PRODUCTS */

.moving-product {
    cursor: grab;
    touch-action: none;
    -webkit-user-drag: none;
}

.moving-product img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.moving-product.is-user-dragging {
    visibility: hidden !important;
}

.user-drag-product {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    user-select: none;
    object-fit: contain;
    transform-origin: center bottom;
    filter: drop-shadow(8px 12px 7px rgba(0,0,0,.25));
    will-change: left, top, transform, opacity;
}

.user-drag-product.is-falling {
    transition:
        left .45s ease-in,
        top .45s cubic-bezier(.3, 0, 1, 1),
        transform .45s ease-in,
        opacity .45s ease-in;
}

.moving-product.is-restarting {
    animation: none !important;
    opacity: 0 !important;
}

/* BROWSER ARCADE HOVER VIDEOS */

/* BROWSER ARCADE HOVER VIDEOS */

.arcade-window-preview {
    position: relative;
    overflow: hidden;
}

.arcade-window-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.arcade-window-preview .arcade-preview-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

@media (hover: hover) {
    .arcade-window-preview:hover .arcade-preview-video {
        opacity: 1;
    }

    .arcade-window-preview:hover img {
        transform: none;
    }
}

@media (hover: none) {
    .arcade-preview-video {
        display: none;
    }
}
