#work-content {
    width: 90%;
    height: 75%;
    z-index: 1;
}

#content {
    scroll-behavior: smooth;
}

#work-heading {
    position: absolute;
    top: 7%;
    left: 0;
    width: 100%;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    color: #222;
    z-index: 1;
}

@keyframes pointer-on {
    0% {pointer-events: none;}
    100% {pointer-events: auto;}
}

#work-menu {
    display:table;
    position: fixed;
    top: 0;
    left: 0;
    height: 50px;
    width: 100%;
    margin: auto;
    animation: fade-in 0.5s;
    background-color: #fff;
    z-index: 10;
}

#work-menu p:hover {
    color: rgb(40, 50, 57);
}

.menu-item {
    margin-left: 5%;
    font-size: 15px;
    display: inline-block;
    cursor: pointer;
    color: rgb(168, 179, 186);
    text-decoration: none;
}

.menu-item.is-selected {
    color: #000;
}

.menu-item p {
    position: relative;
    display: inline-block;
}

.menu-item p::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item:hover p::after,
.menu-item.is-selected p::after,
.menu-item.is-preview p::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .menu-item p::after {
        transition: none;
    }

    .work-images,
    .work-headers {
        transition: none;
    }
}

#work-content a {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
}

#production-design, #art-direction, #commercials {
    cursor: pointer;
    position: absolute;
    right: 0;
    width: 100%;
    height: 30%;
}

#production-design {
    top: 0;
}
#art-direction {
    top: 35%;
}
#commercials {
    bottom: 0;
}

.work-images {
    position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    top: 0;
    transition: clip-path 1200ms cubic-bezier(0.16, 1, 0.3, 1), transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 2;
    clip-path: inset(0 0 0 0);
    pointer-events: none;
    will-change: clip-path;
    }
#art-direction .work-images {
    background-position: center 20%;
}
#commercials .work-images {
    background-position: center 20%;
}

#production-design:hover .work-images,
#art-direction:hover .work-images,
#commercials:hover .work-images {
    transition-duration: 1200ms;
    clip-path: inset(0 0 0 23%);
}

#production-design:focus-visible .work-images,
#art-direction:focus-visible .work-images,
#commercials:focus-visible .work-images {
    transition-duration: 1200ms;
    clip-path: inset(0 0 0 23%);
}

#production-design.category-preview .work-images,
#art-direction.category-preview .work-images,
#commercials.category-preview .work-images {
    transition-duration: 1200ms;
    clip-path: inset(0 0 0 23%);
}

.work-headers {
    font-size: 23px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    margin: 0;
    position: absolute;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 1;
    display: block;
    width: fit-content;
    max-width: calc(100% - 10%);
    left: 5%;
    padding: 0;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 450ms ease-out, color 450ms ease-out;
    cursor: pointer;
    pointer-events: none;
    visibility: visible;
    opacity: 0;
}

#production-design:hover .work-headers,
#art-direction:hover .work-headers,
#commercials:hover .work-headers,
#production-design:focus-visible .work-headers,
#art-direction:focus-visible .work-headers,
#commercials:focus-visible .work-headers,
#production-design.category-preview .work-headers,
#art-direction.category-preview .work-headers,
#commercials.category-preview .work-headers {
    color: #444;
    opacity: 1;
    transition-duration: 500ms;
    transition-timing-function: ease-out;
    transition-delay: 140ms;
}

@media (pointer: coarse) {
    #production-design .work-headers,
    #art-direction .work-headers,
    #commercials .work-headers {
        opacity: 1;
    }
}


/* -------- arrows */



.footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 0 auto;
    padding: 64px 0 38px;
    opacity: 1;
    transition: opacity 1s linear;
}

.footer.is-visible {
    opacity: 1;
}

.category-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #303030;
    font: 400 18px/1.25 Helvetica, Arial, sans-serif;
    cursor: pointer;
}

.category-indicator:hover {
    color: #666;
}

.category-indicator:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 8px;
}

.category-indicator__chevrons {
    width: 29px;
    height: 18px;
    overflow: visible;
}

.category-indicator__chevron {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.6;
    animation: category-cascade 4s ease-in-out infinite;
}

.category-indicator__chevron--bottom {
    animation-delay: 220ms;
}

@keyframes category-cascade {
    0%, 18%, 100% { transform: translateY(0); opacity: 0.6; }
    8% { transform: translateY(5px); opacity: 1; }
}

.arrow {position: absolute; margin-left:0px; width: 22px; height: 22px; background-size: contain;}
.segunda{margin-left: 8px;}
.next {
    outline: none;
    background-image: url(../images/logo/arrow.png);
}

@keyframes bounceAlpha {
  0% {opacity: 1; transform: translateX(0px) scale(1);}
  25%{opacity: 0; transform:translateX(10px) scale(0.9);}
  26%{opacity: 0; transform:translateX(-10px) scale(0.9);}
  55% {opacity: 1; transform: translateX(0px) scale(1);}
}

.bounceAlpha {
    animation-name: bounceAlpha;
    animation-duration:1.7s;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}

.arrow.primera.bounceAlpha {
    animation-name: bounceAlpha;
    animation-duration:2s;
    animation-delay:0.2s;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}

.arrow{
    animation-name: bounceAlpha;
    animation-duration:2s;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}
.arrow.primera{
    animation-name: bounceAlpha;
    animation-duration:2s;
    animation-delay:0.2s;
    animation-iteration-count:infinite;
    animation-timing-function:linear;
}

@keyframes freeze {
    0% {pointer-events: none;}
    100% {pointer-events: auto;}
}


.centered {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}


.latest_selected_works {
    font-family: Helvetica, Arial, sans-serif;
    display: block;
    text-align: center;
    position: relative;
    margin: 40px 0;
}


#hidden-work-content {
    display: block;
    position: relative;
    top: 100%;
    width:100%;
    background-color: #fff;
}
#all-works {
    width: 90%;
    position: relative;
    top: 0;
    margin: 0 auto;
    padding-top: 0;
    border-top: 0;
}
#all-works.works-hidden {
    display: none;
}
#all-works.works-visible {
    display: block !important;
}

#all-works a {
    cursor: pointer;
}

/*  second update------- */

.works {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 30%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    text-decoration: none;
    color: white;
    background: none;
}

.even-col {
    margin-right: 5%;
    margin-left: 5%;
}



/*  second update------- */




/*  ------- */


.work-image,
.work-overlay {
    position: absolute;
    inset: 0;
}

.works::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 15%,
        rgba(0, 0, 0, 0.22) 55%,
        transparent 100%
    );
}

.work-image {
    background-size: cover;
    background-position: center center;
    transform: scale(1);
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-overlay {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 24px;
    background: rgba(0, 0, 0, 0.14);
    transition: background-color 350ms cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    z-index: 2;
}

.work-overlay p {
    display: block;
    text-align: center;
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 3;
    max-width: 84%;
    margin-inline: auto;
}

.work-number {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.work-title {
    display: block;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 500;
}

.work-role {
    display: inline-block;
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.35;
    color: #f2f2f2;
}

.work-type {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
    color: #ddd;
}

.work-year {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: #ccc;
}

.works:focus-visible .work-image {
    transform: scale(1.02);
}

.works:focus-visible .work-overlay {
    background: rgba(0, 0, 0, 0.28);
}

@media (hover: hover) {
    .works:hover .work-image {
        transform: scale(1.02);
    }
    .works:hover .work-overlay {
        background: rgba(0, 0, 0, 0.28);
    }
}





/*  ------- */
.inactive {
    display:none;
}

.active-content {
    display:block;
    visibility:visible;
    animation: fade-in 1.2s ease-out;
    will-change: opacity;
}

@keyframes fade-in {
    0% {opacity: 0;}
    65% {opacity: 0.65;}
    100% {opacity: 1;}
}

#display-commercial {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center; /* align vertical */
    flex-direction: column;
    background-color: rgba(20, 20, 20, 0.9);
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.end-target {
    width: 100%;
    height: 100px;
    opacity: 0;
}
.back-button {
    border: 0;
    background: transparent;
    font-family: inherit;
    margin-top: auto;
    font-size: 15px;
    padding: 20px 35px;
    color: #999;;
    cursor: pointer;
    transition: color 0.5s linear;
    
}

.back-button:hover {
    color: #fff;
}

.back-button:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
}

#embed-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    height: 70%;
    width: 90%;
}

@media (max-width: 1400px){
    .works {
        width: 45%;
        margin-left: 5%;
        margin-right: 0;
    }
    .left-side {
        margin-left: 0;
        margin-right: 5%;
    }
}

@media (max-width: 600px){
    #work-heading {
        top: 8%;
        font-size: 15px;
    }

    .works {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .work-headers {
        font-size: 22px;
        max-width: calc(100% - 10%);
    }
    
    .work-overlay {
        padding: 20px;
    }
    .work-number {
        top: 14px;
        left: 14px;
        font-size: 11px;
    }
    .work-title {
        font-size: 19px;
        line-height: 1.25;
    }
    .work-role {
        font-size: 12px;
    }
    .work-type {
        font-size: 11px;
    }
    .work-year {
        font-size: 11px;
    }
    
    #work-menu {
        position: absolute;
        top: 64px;
        left: 0;
        display: flex;
        align-items: flex-start;
        gap: 26px;
        width: 100%;
        height: 44px;
        padding: 0 20px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        background-color: #fff;
    }
    #work-menu::-webkit-scrollbar {
        display: none;
    }
    #work-content {
        top: 120px;
        height: calc(75% - 120px);
    }
    .menu-item {
        font-size: 15px;
        display: block;
        flex: 0 0 auto;
        min-height: 44px;
        margin: 0;
        line-height: 1.3;
    }
    .menu-item p {
        width: auto;
        margin: 0;
        padding: 0 0 6px;
    }
    
    #all-works {
        top: 120px;
    }
    
    #embed-link {
        width: 100%;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    #work-menu {
        position: absolute;
        top: 64px;
        left: 0;
        display: flex;
        align-items: flex-start;
        gap: 26px;
        width: 100%;
        height: 44px;
        padding: 0 24px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        background-color: #fff;
    }
    #work-menu::-webkit-scrollbar { display: none; }
    #work-content {
        top: 120px;
        height: calc(75% - 120px);
    }
    .menu-item {
        flex: 0 0 auto;
        min-height: 44px;
        margin: 0;
        font-size: 14px;
        line-height: 1.3;
    }
    .menu-item p {
        width: auto;
        margin: 0;
        padding: 0 0 6px;
    }
}

/* Mobile category landing: keep navigation and image rows in document flow. */
@media (max-width: 768px) {
    body:has(#work-menu) #nav-button {
        top: 10px;
        right: 20px;
        gap: 9px;
        padding: 10px 0;
        font-size: 16px;
        background: transparent;
    }

    body:has(#work-menu) #nav-button .nav-button__icon,
    body:has(#work-menu) #nav-button .nav-button__icon::before,
    body:has(#work-menu) #nav-button .nav-button__icon::after {
        width: 22px;
    }

    #work-menu {
        display: none;
    }

    #work-menu .menu-item {
        display: flex;
        align-items: center;
        flex: none;
        min-height: 0;
        margin: 0;
        color: #a8b3ba;
        font-size: 23px;
        font-weight: 400;
        line-height: 1.3;
    }

    #work-menu .menu-item.is-selected {
        color: #202020;
    }

    #work-menu .menu-item p {
        width: auto;
        margin: 0;
        padding: 0;
    }

    #work-menu .menu-item p::after {
        display: none;
    }

    #work-content {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-height: 100svh;
        padding: 56px 20px 24px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 18px;
        transform: none;
    }

    #production-design,
    #art-direction,
    #commercials {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        flex: 0 0 auto;
    }

    #production-design .work-headers,
    #art-direction .work-headers,
    #commercials .work-headers {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        max-width: none;
        margin: 0 0 8px;
        padding: 0;
        opacity: 1;
        visibility: visible;
        color: #252525;
        font-family: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.25;
        letter-spacing: -0.01em;
        text-transform: none;
        text-align: left;
        transform: none;
        z-index: 3;
        pointer-events: none;
    }

    #production-design .work-images,
    #art-direction .work-images,
    #commercials .work-images {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 3.6 / 1;
        clip-path: inset(0);
        animation: none;
        transition: none;
        pointer-events: none;
    }

    #production-design:hover .work-images,
    #art-direction:hover .work-images,
    #commercials:hover .work-images,
    #production-design:focus-visible .work-images,
    #art-direction:focus-visible .work-images,
    #commercials:focus-visible .work-images,
    #production-design.category-preview .work-images,
    #art-direction.category-preview .work-images,
    #commercials.category-preview .work-images {
        clip-path: inset(0);
        transition: none;
        transform: none;
    }

    .category-indicator {
        align-items: flex-start;
        margin-left: 0;
        margin-right: auto;
        font-size: 21px;
        line-height: 1.25;
    }

    .category-indicator__chevrons {
        display: none;
    }

    #hidden-work-content {
        top: auto;
    }

    #all-works {
        top: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    #content {
        scroll-behavior: auto;
    }
    .work-image,
    .work-overlay {
        transition: none !important;
    }
    .work-images,
    .work-headers {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .category-indicator__chevron {
        animation: none;
        opacity: 1;
    }
}

/* Keep generated work cards aligned at every breakpoint. */
#all-works .active-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
    row-gap: 40px;
}

#all-works .works {
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 767px) {
    #all-works .active-content {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 32px;
    }
}

@media (max-width: 359px) {
    #production-design .work-headers,
    #art-direction .work-headers,
    #commercials .work-headers {
        font-size: 20px;
    }
}

@media (min-width: 1600px) {
    #all-works .active-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
#signature {
    position: fixed;
    right: 40px;
    bottom: 32px;
    z-index: 9;
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 1;
    transition: opacity 220ms ease, transform 200ms ease;
}

#signature.signature-hidden {
    opacity: 0;
    pointer-events: none;
}

#signature:hover,
#signature:focus-visible {
    transform: scale(1.03);
}

#signature #nav-logo {
    display: block;
    width: auto;
    width: 52px;
    height: auto;
}

#signature:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 30px;
    }
    .category-indicator {
        width: auto;
        font-family: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: 0;
    }
    .category-indicator__chevrons {
        width: 24px;
        height: 15px;
    }
    .work-overlay { padding: 20px; }
    .work-number {
        top: 16px;
        left: 16px;
        font-size: 11px;
    }
    .work-title {
        font-family: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.25;
    }
    .work-role {
        margin-top: 10px;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.35;
    }
    .work-type,
    .work-year {
        margin-top: 4px;
        font-weight: 400;
        line-height: 1.35;
    }
    .work-type { font-size: 12px; }
    .work-year { font-size: 11px; }
    #signature {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: auto;
        width: 100%;
        min-height: 44px;
        justify-content: flex-end;
        margin-top: 52px;
        padding: 0 0 28px;
    }
    #signature #nav-logo { height: 42px; }
    #signature.signature-hidden { opacity: 1; pointer-events: auto; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #signature { right: 32px; bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    #signature { transition: none; }
}

