#cases {
    background-color: black;
    padding: 50px 0;
    position: relative;
    z-index: 5;
}
#cases .cases-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}
#cases .cases-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: white;
    margin: 0px;
}
#cases .cases-title a {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 300;
    color: white;
    text-decoration: none;
}
#cases .cases-title a i {
    color: white;
    font-size: 34px;
}
.cases-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.cases-cta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--yellow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 50px;
}
.cases-swiper .swiper-wrapper {
    align-items: stretch;
}

.case-slide {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    max-height: 400px;
    cursor: pointer;
}

/* Background video */
.case-slide__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Background image */
.case-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.case-slide:hover .case-slide__bg {
    transform: scale(1.04);
}

/* Black gradient — bottom to top, always visible */
.case-slide__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.case-slide:hover .case-slide__gradient {
    opacity: 0;
}

/* Yellow gradient — bottom to top, on hover */
.case-slide__hover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
	  to top,
	  rgba(254, 208, 7, 0.92) 0%,
	  rgba(254, 208, 7, 0.3) 45%,
	  rgba(254, 208, 7, 0) 70%
	);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.case-slide:hover .case-slide__hover-gradient {
    opacity: 1;
}

/* Diagonal ticker band */
.case-slide__ticker {
    position: absolute;
    left: -60%;
    right: -60%;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    background-color: var(--yellow);
    padding: 10px 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    overflow: hidden;
    white-space: nowrap;
}

.case-slide:hover .case-slide__ticker {
    opacity: 1;
}

/* Scrolling track — duplicate content scrolls seamlessly */
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.case-slide__ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll var(--ticker-duration, 14s) linear infinite;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Content: title + intro bottom left */
.case-slide__content {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.case-slide__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 600;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
}



.case-slide__intro {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cases-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--yellow);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.cases-nav--prev { left: 16px; }
.cases-nav--next { right: 16px; }

.cases-nav i {
    color: #000;
    font-size: 30px;
    line-height: 1;
    display: flex;
}

.cases-nav:hover {
    background-color: #e0b800;
    transform: translateY(-50%) scale(1.08);
}

.cases-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

#cases .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}
#cases .button {
    margin-top: 35px;
}

@media (min-width: 1024px) {
    #cases {
        padding: 100px 0;
    }
    .cases-cta h3 {
        font-size: 46px;
    }
}

/* Case content reveal */
.case-content-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.case-content-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Case content */
.case-content {
    padding: 40px 0 80px;
}

@media (min-width: 768px) {
    .case-content {
        padding: 80px 0;
    }
}

.case-content__grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.case-content__media {
    flex: 0 0 42%;
    position: sticky;
    top: 100px;
}

.case-content__media-inner {
    border: 1px solid var(--yellow);
    border-radius: 20px;
    overflow: hidden;
}

.case-content__media-inner img,
.case-content__media-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-content__text {
    flex: 1;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.case-content__text h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    color: #fff;
    line-height: 1.1;
}

.case-content__text h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    color: var(--yellow);
    line-height: 1.15;
}

.case-content__text h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2vw, 2rem);
    color: #fff;
    line-height: 1.2;
}

.case-content__text p,
.case-content__text li {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.8;
}
.case-content__text li {
    margin-bottom: 15px;
}
.case-content__text ol {
    padding-left: 1.4em;
}

.case-content__text ol li::marker {
    color: var(--yellow);
    font-weight: 700;
}

@media (max-width: 768px) {
    .case-slide__ticker-track {
        font-size: 0.55rem;
    }

    .case-content__grid {
        flex-direction: column;
        gap: 32px;
    }

    .case-content__media {
        position: static;
        order: 2;
    }

    .case-content__text {
        order: 1;
    }
}

@media (max-width: 1023px) {
    .case-slide.swiper-slide-active .case-slide__bg {
        transform: scale(1.04);
    }
    .case-slide.swiper-slide-active .case-slide__gradient {
        opacity: 0;
    }
    .case-slide.swiper-slide-active .case-slide__hover-gradient {
        opacity: 1;
    }
    .case-slide.swiper-slide-active .case-slide__ticker {
        opacity: 1;
    }
}

/* =============================================
   Cases Overview Page
   ============================================= */
.cases-overview {
    background-color: #000;
    padding: 130px 0 100px;
    min-height: 100vh;
}

.cases-overview__inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* --- Sidebar --- */
.cases-overview__sidebar {
    width: 30%;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.cases-overview__title {
    color: var(--yellow);
    font-family: 'PincoyaBlack', sans-serif;
    text-transform: uppercase;
    font-size: clamp(42px, 4.5vw, 80px);
    line-height: 1;
    transform: skewX(-5deg) rotate(-3deg);
    margin: 0 0 44px;
    display: block;
}

.cases-filter-toggle {
    display: none;
}

.cases-overview__filters {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.cases-filter-btn {
    display: block;
    width: auto;
    text-align: left;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 400;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.22s ease;
}

.cases-filter-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.cases-filter-btn.is-active {
    color: var(--yellow);
    font-weight: 600;
}

.cases-filter-btn[data-filter="all"] {
    margin-bottom: 20px;
}

.cases-search {
    margin-top: 32px;
}

.cases-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 300;
    padding: 8px 0;
    outline: none;
    transition: border-color 0.22s ease;
    box-sizing: border-box;
}

.cases-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.cases-search-input:focus {
    border-bottom-color: var(--yellow);
}


/* --- Grid --- */
.cases-overview__grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

/* Override .case-slide defaults inside the grid */
.cases-overview__item.case-slide {
    display: block;
    text-decoration: none;
    max-height: none;
    aspect-ratio: 4 / 5;
}

.cases-overview__item.case-slide.is-full-width {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.cases-overview__item.is-hidden {
    display: none;
}

/* Filter animation */
.cases-overview__item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cases-overview__item.is-animating-out {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
    pointer-events: none;
}

.cases-overview__item.is-animating-in {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
    transition: none;
}

/* --- Mobile (≤ 1023px) --- */
@media (max-width: 1023px) {
    .cases-overview {
        padding: 110px 0 70px;
    }

    .cases-overview__inner {
        flex-direction: column;
        gap: 24px;
    }

    .cases-overview__sidebar {
        width: 100%;
        position: static;
    }

    .cases-overview__title {
        margin-bottom: 16px;
        font-size: clamp(44px, 12vw, 68px);
        text-align: center;
    }

    .cases-overview__filters {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 8px;
        padding-bottom: 4px;
    }

    .cases-overview__filters::-webkit-scrollbar {
        display: none;
    }

    .cases-filter-btn {
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.6);
        width: auto;
        flex-shrink: 0;
        font-size: 14px;
        padding: 9px 18px;
        transition: border-color 0.22s ease, color 0.22s ease, background-color 0.22s ease;
    }

    .cases-filter-btn:hover {
        border-color: var(--yellow);
        color: var(--yellow);
    }

    .cases-filter-btn.is-active {
        background-color: var(--yellow);
        border-color: var(--yellow);
        color: #000;
        font-weight: 600;
    }

    .cases-filter-btn[data-filter="all"] {
        border-color: var(--yellow);
        color: var(--yellow);
        margin-bottom: 0;
    }

    .cases-filter-btn[data-filter="all"].is-active {
        background-color: var(--yellow);
        color: #000;
    }

    .cases-overview__grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cases-overview__item.case-slide {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .cases-overview__item.case-slide.is-full-width {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }
}

/* =============================================
   Case Stats
   ============================================= */
#case-stats {
    padding: 60px 0;
}

#case-stats .stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 767px) {
    #case-stats .stats-row {
        gap: 24px 0;
    }
    .stat-col {
        width: 50%;
    }
}

.stat-sign {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(64px, 8vw, 100px);
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
}

.stat-titel {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-top: 8px;
}

.stat-subtitel {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

/* =============================================
   Mockups Grid (iPhone)
   ============================================= */
.mockups-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 60px;
}

.mockup-col {
    width: 100%;
}

@media (min-width: 1024px) {
    .mockup-col {
        width: calc(33.333% - 22px);
    }
}

.mockup-wrapper {
    position: relative;
    aspect-ratio: 727 / 1467;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 13%;
    overflow: hidden;
}

.mockup-content {
    position: absolute;
    top: 1%;
    left: 3%;
    right: 3%;
    bottom: 1%;
    width: 94%;
    height: 98%;
    object-fit: cover;
    border-radius: 10%;
    display: block;
}

.mockup-iphone {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}

.mockup-mute-btn {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mockup-mute-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateX(-50%) scale(1.1);
}

.mockup-mute-btn.is-unmuted {
    background: rgba(254, 208, 7, 0.9);
    color: #000;
}

.mockup-mute-btn.is-unmuted:hover {
    background: rgba(254, 208, 7, 1);
}

/* =============================================
   Case Results Slider
   ============================================= */
.case-results__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    color: #fff;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 35px;
}

.case-results-swiper {
    width: 100%;
    overflow: hidden;
}

.case-results-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.case-results-nav .cases-nav {
    position: static;
    transform: none;
}

.case-results-nav .cases-nav:hover {
    transform: scale(1.08);
}

.case-result-slide {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    user-select: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.case-result-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--yellow);
    border-radius: 16px;
    pointer-events: none;
    z-index: 4;
    transform: translateZ(0);
}

.case-result-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform;
}

.case-result-slide--clickable {
    cursor: pointer;
}

.case-result-slide--clickable:hover .case-result-slide__bg {
    transform: translateZ(0) scale(1.05);
}

.case-result-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);
}

.case-result-slide__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    transform: translateZ(0);
}

.case-result-slide__icon {
    font-size: 1.75rem;
    color: rgba(255,255,255,0.85);
    transition: transform 0.25s ease, color 0.25s ease;
    display: block;
}

.case-result-slide--clickable:hover .case-result-slide__icon {
    transform: scale(1.12);
    color: #fff;
}

.case-result-slide__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    display: block;
}

/* =============================================
   Lightbox (case results)
   ============================================= */
.cr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cr-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cr-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: pointer;
}

.cr-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cr-lightbox__close:hover {
    color: var(--yellow, #fed007);
}

.cr-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-lightbox__content img,
.cr-lightbox__content video {
    display: block;
    max-width: min(90vw, 1200px);
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}
