/* assets/client-carousel.css */
.client-logos {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    gap: 0.55rem !important;
    overflow: hidden !important;
    padding: 0.35rem 0 !important;
    isolation: isolate;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent) !important;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent) !important;
}

.client-logo-row {
    display: flex !important;
    width: max-content !important;
    min-width: max-content !important;
    align-items: stretch !important;
    gap: 0 !important;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    cursor: grab;
}

.client-logos.has-js-marquee.is-dragging {
    cursor: grabbing;
}

.client-logos.has-js-marquee.is-dragging .client-logo-row {
    cursor: grabbing;
}

.client-logo-row:first-child {
    animation: clients-marquee-right 78s linear infinite;
}

.client-logo-row:nth-child(2) {
    animation: clients-marquee-left 86s linear infinite;
}

.client-logo-row--reverse {
    animation: clients-marquee-left 84s linear infinite !important;
}

.client-logos.has-js-marquee .client-logo-row {
    animation: none !important;
}

.client-logo-row:hover {
    animation-play-state: paused;
}

.client-logo-row .client-logo {
    box-sizing: border-box !important;
    flex: 0 0 180px !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    text-decoration: none !important;
}

.client-logo-row .client-logo--compact {
    flex-basis: 145px !important;
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
}

.client-logo-name {
    display: -webkit-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.4em;
    overflow: hidden !important;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-align: center !important;
    text-decoration: none !important;
}

.client-list-toggle {
    display: grid !important;
    width: 2.5rem;
    height: 2.5rem;
    margin: 1rem auto 0 !important;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(247, 244, 236, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
    color: var(--accent);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.client-list-toggle:hover,
.client-list-toggle:focus-visible {
    border-color: rgba(215, 177, 85, 0.72);
    background: rgba(215, 177, 85, 0.08);
}

.client-list-toggle svg {
    width: 1.08rem;
    height: 1.08rem;
    transition: transform 250ms ease;
}

.client-list-toggle.is-open svg {
    transform: rotate(180deg);
}

.client-full-list {
    display: none !important;
    width: min(100%, 1040px) !important;
    margin: 1rem auto 0 !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch;
    gap: 0.55rem 0.35rem !important;
}

.client-full-list.is-open {
    display: flex !important;
}

.client-full-list .client-logo,
.client-full-list .client-logo--compact {
    box-sizing: border-box !important;
    flex: 1 1 145px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 160px !important;
    min-height: 112px;
}

@media (min-width: 681px) {
    .client-full-list.is-open .client-logo {
        opacity: 0;
        animation: client-company-card-in 440ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards !important;
        animation-delay: calc(var(--client-order, 0) * 36ms) !important;
    }
}

@media (max-width: 680px) {
    .client-logos {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent) !important;
        mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent) !important;
    }

    .client-logo-row .client-logo {
        flex-basis: 148px !important;
        width: 148px !important;
        min-width: 148px !important;
        max-width: 148px !important;
    }

    .client-logo-row .client-logo--compact {
        flex-basis: 124px !important;
        width: 124px !important;
        min-width: 124px !important;
        max-width: 124px !important;
    }

    .client-full-list .client-logo,
    .client-full-list .client-logo--compact {
        flex: 0 1 calc(50% - 0.35rem) !important;
        width: calc(50% - 0.35rem) !important;
        max-width: 170px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-logo-row,
    .client-full-list.is-open .client-logo {
        animation: none !important;
        opacity: 1 !important;
    }
}

@keyframes clients-marquee-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes clients-marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes client-company-card-in {
    from {
        opacity: 0;
        transform: translate3d(-16px, 8px, 0) scale(0.985);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

html[lang="cs"] .language-menu summary::before,
.language-option[lang="cs"]::before {
    background-image: url("icons/flags/cs.svg") !important;
}

html[lang="fr"] .language-menu summary::before,
.language-option[lang="fr"]::before {
    background-image: url("icons/flags/fr.svg") !important;
}

/* assets/site-overrides.css */
.programs-grid img.tool-icon[src*="handbrake.fr"] {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain;
    transition: transform 220ms ease, filter 220ms ease;
}

.programs-grid .tool-item:hover img.tool-icon[src*="handbrake.fr"],
.programs-grid .tool-item:focus-within img.tool-icon[src*="handbrake.fr"] {
    transform: translateY(-2px) scale(1.06);
    filter: brightness(1.08);
}

@media (max-width: 560px) {
    .programs-grid img.tool-icon[src*="handbrake.fr"] {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Szerszy i czytelniejszy przycisk prowadzący do sekcji narzędzi AI. */
@media (min-width: 681px) {
    .hero-ai-note {
        width: min(100%, 330px) !important;
        min-height: 68px;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        column-gap: 0.9rem !important;
        padding: 0.68rem 1rem 0.68rem 0.7rem !important;
        border-radius: 22px !important;
    }

    .hero-ai-icon {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    .hero-ai-content {
        display: flex !important;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.22rem !important;
    }

    .hero-ai-description,
    .hero-ai-cta {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
        text-align: left !important;
    }

    .hero-ai-description {
        font-size: 0.86rem !important;
    }

    .hero-ai-cta {
        font-size: 0.74rem !important;
    }
}

/* Logo marki w gornym pasku nawigacji. */
.site-nav .brand {
    display: flex !important;
    align-items: center;
    gap: 0.62rem !important;
}

.site-nav .brand-logo-wrap {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
}

.site-nav .brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav .brand-logo-wrap::after {
    content: "";
    position: absolute;
    top: 15%;
    left: -120%;
    width: 72%;
    height: 240%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.025) 16%,
        rgba(255, 255, 255, 0.12) 31%,
        rgba(255, 250, 224, 0.48) 46%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 250, 224, 0.48) 54%,
        rgba(255, 255, 255, 0.12) 69%,
        rgba(255, 255, 255, 0.025) 84%,
        transparent 100%
    );
    filter: blur(1.15px);
    transform: rotate(32deg);
    will-change: left, top, opacity;
}

.site-nav .brand-logo-wrap:hover::after {
    animation: brand-logo-light-sweep 1700ms cubic-bezier(0.22, 0.62, 0.22, 1) both;
}

/* Video cards preview silently on desktop hover; only the return to the poster fades. */
.video-card .work-video,
.video-card .hover-preview-video {
    transition: opacity 0s linear;
}
.video-card .hover-preview-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}
.video-card.is-hover-preview .work-video {
    opacity: 1 !important;
}
.video-card.is-hover-preview .hover-preview-video {
    opacity: 0;
}
.video-card.is-hover-preview .work-video,
.video-card.is-hover-preview .hover-preview-video {
    transition: none !important;
}
.video-card.is-hover-preview.is-preview-ready .work-video {
    opacity: 0 !important;
}
.video-card.is-hover-preview.is-preview-ready .hover-preview-video {
    opacity: 1;
}
.video-card:not(.is-hover-preview) .work-video,
.video-card:not(.is-hover-preview) .hover-preview-video {
    transition: opacity 950ms cubic-bezier(.22, .61, .36, 1);
}
.video-card.is-hover-preview .player-overlay {
    pointer-events: none !important;
}
.video-card.is-hover-preview.is-playing .control-bar,
.video-card.is-hover-preview .control-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
}
.video-card.is-hover-preview.is-playing .play-center {
    opacity: 0 !important;
    pointer-events: none !important;
}
.video-card.is-hover-preview:not(.is-playing) .play-center {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1;
}

/* External music cards use the supplied local clip only as a silent hover preview. */
.external-preview > img {
    position: relative;
    z-index: 0;
    transition: opacity 0s linear;
}
.external-card .external-hover-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0s linear;
}
.external-card.is-external-preview-ready .external-hover-preview {
    opacity: 1;
}
.external-card.is-external-preview-ready .external-preview > img {
    opacity: 0;
}
.external-card:not(.is-external-hover-preview) .external-preview > img,
.external-card:not(.is-external-hover-preview) .external-hover-preview {
    transition: opacity 950ms cubic-bezier(.22, .61, .36, 1);
}
.external-card .external-play {
    z-index: 3;
}

@keyframes brand-logo-light-sweep {
    0% {
        opacity: 0;
        left: -120%;
        top: 15%;
    }
    16% {
        opacity: 0.82;
    }
    76% {
        opacity: 0.82;
    }
    100% {
        opacity: 0;
        left: 165%;
        top: -125%;
    }
}

.site-nav .brand-copy {
    display: grid;
    gap: 0.08rem;
    color: var(--text) !important;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.site-nav .brand-copy > span {
    color: var(--quiet) !important;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
}

@media (max-width: 680px) {
    .site-nav .brand {
        gap: 0.48rem !important;
    }

    .site-nav .brand-logo-wrap {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 8px;
    }

    .site-nav .brand-copy > span {
        display: none;
    }
}

/* Rozwinięta lista Reels musi pomieścić wszystkie materiały także na telefonie. */
.reels-more.is-open {
    max-height: 10000px;
}

/* Po dodaniu dwóch rolek zwykła siatka ma pełne trzy rzędy po trzy karty. */
@media (min-width: 801px) {
    .work-grid.reels-grid .video-card:last-child {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }
}

/* Ten sam miekki light sweep na oznaczeniach AI/KI/IA. */
.hero-ai-icon::before,
.ai-section-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        112deg,
        transparent 0%,
        rgba(255, 255, 255, 0.025) 16%,
        rgba(255, 255, 255, 0.12) 31%,
        rgba(255, 250, 224, 0.48) 46%,
        rgba(255, 255, 255, 0.72) 50%,
        rgba(255, 250, 224, 0.48) 54%,
        rgba(255, 255, 255, 0.12) 69%,
        rgba(255, 255, 255, 0.025) 84%,
        transparent 100%
    );
    background-position: 100% 50%;
    background-size: 250% 100%;
    background-repeat: no-repeat;
    filter: blur(0.7px);
}

.hero-ai-note:hover .hero-ai-icon::before,
.ai-section-mark:hover::before {
    animation: ai-mark-light-sweep 1700ms cubic-bezier(0.22, 0.62, 0.22, 1) both;
}

@keyframes ai-mark-light-sweep {
    0% {
        opacity: 0;
        background-position: 100% 50%;
    }
    16% {
        opacity: 0.82;
    }
    76% {
        opacity: 0.82;
    }
    100% {
        opacity: 0;
        background-position: 0% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ai-note:hover .hero-ai-icon::before,
    .ai-section-mark:hover::before {
        animation: none !important;
    }
}

/* Naglowek sekcji AI bez dekoracyjnej kreski po lewej. */
#ai-tools .ai-tools-heading h3::before {
    content: none !important;
    display: none !important;
    animation: none !important;
}

/* Jedna, czytelna ikona aplikacji przy naglowku programow. */
#programs-title {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 0.72rem;
}

#programs-title::before {
    content: "";
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.75' y='3.75' width='18.5' height='16.5' rx='3'/%3E%3Cpath d='M2.75 9h18.5M7 13h5M7 16.5h10'/%3E%3Ccircle cx='6.5' cy='6.4' r='.7' fill='%23e5c46f' stroke='none'/%3E%3Ccircle cx='9.2' cy='6.4' r='.7' fill='%23e5c46f' stroke='none'/%3E%3C/svg%3E");
    filter: drop-shadow(0 5px 13px rgba(229, 196, 111, 0.16));
}

@media (max-width: 680px) {
    #programs-title {
        gap: 0.58rem;
    }

    #programs-title::before {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

/* Ikony uslug przechodza z neutralnych w zlote na aktywnym kafelku. */
#services .service-icon {
    color: rgba(247, 244, 236, 0.64) !important;
    transition: color 280ms var(--ease);
}

#services .service-icon svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.06)) !important;
    transition: transform 240ms var(--ease), filter 280ms var(--ease) !important;
}

#services .service-card:hover .service-icon,
#services .service-card:focus-within .service-icon,
#services .service-card:focus-visible .service-icon {
    color: var(--accent) !important;
}

#services .service-card:hover .service-icon svg,
#services .service-card:focus-within .service-icon svg,
#services .service-card:focus-visible .service-icon svg {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 0 13px rgba(215, 177, 85, 0.42)) !important;
}

/* Liniowe ikony poszczegolnych kategorii portfolio. */
#showreel .section-header .section-kicker::after,
#client-reels .category-top .section-kicker::after,
#long-form .category-top .section-kicker::after,
#music-videos .category-top .section-kicker::after,
#ai-reels .category-top .section-kicker::after {
    content: "";
    display: block;
    order: -1;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 1.45rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 4px 11px rgba(229, 196, 111, 0.2));
}

/* Glowny znacznik Portfolio pozostaje prosty; ikony oznaczaja konkretne formaty. */
#showreel .section-header .section-kicker::after {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

#showreel .section-header .section-kicker::before,
#client-reels .category-top .section-kicker::before,
#long-form .category-top .section-kicker::before,
#music-videos .category-top .section-kicker::before,
#ai-reels .category-top .section-kicker::before {
    content: none !important;
    display: none !important;
}

#showreel .section-header .section-kicker,
#client-reels .category-top .section-kicker,
#long-form .category-top .section-kicker,
#music-videos .category-top .section-kicker,
#ai-reels .category-top .section-kicker {
    gap: 0.62rem;
}

/* Social media / Reels. */
#client-reels .category-top .section-kicker::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='m10.5 9 4.5 3-4.5 3V9ZM10 18h4'/%3E%3C/svg%3E");
}

/* Format 16:9. */
#long-form .category-top .section-kicker::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='3'/%3E%3Cpath d='m10 9 5 3-5 3V9Z'/%3E%3C/svg%3E");
}

/* Music video. */
#music-videos .category-top .section-kicker::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V6l10-2v12M9 9l10-2'/%3E%3Cellipse cx='6.5' cy='18' rx='2.5' ry='2'/%3E%3Cellipse cx='16.5' cy='16' rx='2.5' ry='2'/%3E%3C/svg%3E");
}

/* AI video. */
#ai-reels .category-top .section-kicker::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5c46f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 1.35 4.65L18 8l-4.65 1.35L12 14l-1.35-4.65L6 8l4.65-1.35L12 2ZM18.5 14l.8 2.7 2.7.8-2.7.8-.8 2.7-.8-2.7-2.7-.8 2.7-.8.8-2.7ZM5 13l.65 2.35L8 16l-2.35.65L5 19l-.65-2.35L2 16l2.35-.65L5 13Z'/%3E%3C/svg%3E");
}

/* Pięć modeli wideo w jednym rzędzie; kolejność wynika bezpośrednio z HTML. */
.ai-subgroup[aria-labelledby="ai-video-models-title"] .ai-subgroup-grid .tool-item {
    order: initial !important;
    grid-column: auto !important;
}

@media (min-width: 1021px) {
    .ai-subgroup[aria-labelledby="ai-video-models-title"] .ai-subgroup-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Elastyczna siatka centruje także niepełny ostatni rząd materiałów AI. */
@media (min-width: 521px) {
    .work-grid.ai-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .work-grid.ai-grid .video-card {
        flex: 0 1 min(260px, calc((100% - 1rem) / 2));
        min-width: 0;
    }
}

/* Na szerokich ekranach cztery materiały AI mieszczą się w jednym rzędzie. */
@media (min-width: 1021px) {
    .work-grid.ai-grid .video-card {
        flex-basis: calc((100% - 3rem) / 4);
    }
}

/* Na małych telefonach filmy AI mają pełną, wygodną szerokość i czytelne kontrolki. */
@media (max-width: 520px) {
    .work-grid.ai-grid {
        grid-template-columns: minmax(0, 280px);
        justify-content: center;
        gap: 1rem;
    }

    .work-grid.ai-grid .video-card {
        width: 100%;
        min-width: 0;
    }
}

/* Opis kampanii pojawia się pod wskazanymi materiałami bez nachodzenia na player. */
.video-card.has-caption {
    overflow: visible;
    margin-bottom: 6rem;
}

.video-card.has-caption .video-caption {
    position: absolute;
    top: calc(100% + 0.72rem);
    right: 0.25rem;
    left: 0.25rem;
    z-index: 4;
    box-sizing: border-box;
    padding: 0.78rem 0.9rem 0.82rem;
    border: 1px solid rgba(229, 196, 111, 0.3);
    border-left: 3px solid var(--accent);
    border-radius: 0 13px 13px 13px;
    background: linear-gradient(135deg, rgba(229, 196, 111, 0.13), rgba(255, 255, 255, 0.045));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    color: var(--text);
    margin: 0;
    min-height: 0;
    display: block;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
}

.video-card.has-caption .caption-link {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(229, 196, 111, 0.58);
    text-underline-offset: 0.12em;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.video-card.has-caption .caption-link:hover,
.video-card.has-caption .caption-link:focus-visible {
    color: #fff4c7;
    text-decoration-color: currentColor;
}

/* Rok produkcji jest widoczny bezpośrednio na playerze. */
.year-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.15rem;
    padding: 0.32rem 0.58rem;
    border: 1px solid rgba(229, 196, 111, 0.52);
    border-radius: 999px;
    background: rgba(7, 7, 7, 0.78);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 680px) {
    .year-badge {
        top: 0.52rem;
        left: 0.52rem;
    }
}

@media (max-width: 680px) {
    .video-card.has-caption {
        margin-bottom: 6.8rem;
    }

    .video-card.has-caption .video-caption {
        top: calc(100% + 0.65rem);
        right: 0.18rem;
        left: 0.18rem;
        padding: 0.72rem 0.78rem 0.76rem;
        min-height: 0;
        font-size: 0.74rem;
    }
}

/* Pionowe materiały zachowują proporcje 9:16 także w pełnym ekranie. */
.video-card.is-vertical:fullscreen,
.video-card.is-vertical:-webkit-full-screen,
.video-card.is-vertical:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    display: grid;
    place-items: center;
    isolation: isolate;
    background: #080808;
}

.video-card.is-vertical.is-fullscreen {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    display: grid;
    place-items: center;
    isolation: isolate;
    background: #080808;
}

.video-card.is-vertical:fullscreen::before,
.video-card.is-vertical:-webkit-full-screen::before,
.video-card.is-vertical:-ms-fullscreen::before {
    content: "";
    position: absolute;
    inset: -8%;
    z-index: 0;
    background-image: var(--video-poster);
    background-position: center;
    background-size: cover;
    filter: blur(28px);
    opacity: 0.34;
    transform: scale(1.08);
}

.video-card.is-vertical.is-fullscreen::before {
    content: "";
    position: absolute;
    inset: -8%;
    z-index: 0;
    background-image: var(--video-poster);
    background-position: center;
    background-size: cover;
    filter: blur(28px);
    opacity: 0.34;
    transform: scale(1.08);
}

.video-card.is-vertical:fullscreen video,
.video-card.is-vertical:-webkit-full-screen video,
.video-card.is-vertical:-ms-fullscreen video {
    position: relative;
    z-index: 0;
    width: min(100vw, 56.25vh) !important;
    height: min(100vh, 177.7778vw) !important;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain !important;
    object-position: center;
    margin: auto;
    background: #000;
}

.video-card.is-vertical.is-fullscreen video {
    position: relative;
    z-index: 0;
    width: min(100vw, 56.25vh) !important;
    height: min(100vh, 177.7778vw) !important;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain !important;
    object-position: center;
    margin: auto;
    background: #000;
}

@media (max-width: 680px) {
    #showreel .section-header .section-kicker::after,
    #client-reels .category-top .section-kicker::after,
    #long-form .category-top .section-kicker::after,
    #music-videos .category-top .section-kicker::after,
    #ai-reels .category-top .section-kicker::after {
        width: 1.3rem;
        height: 1.3rem;
        flex-basis: 1.3rem;
    }
}

#showreel .section-header {
    margin-bottom: 1.8rem;
}

#showreel .section-header .section-kicker {
    margin-bottom: 0.55rem;
}

#client-reels .category-top {
    margin-top: 0;
}

/* Wspolne rozmiary ikon procesu we wszystkich wersjach jezykowych. */
.process-icon {
    display: grid;
    width: 2.8rem !important;
    height: 2.4rem !important;
    margin-bottom: 0.85rem;
    flex: 0 0 auto;
    place-items: center start;
    color: var(--accent);
}

.process-icon svg {
    display: block;
    width: 1.75rem !important;
    height: 1.75rem !important;
    max-width: 1.75rem;
    max-height: 1.75rem;
}

@media (max-width: 680px) {
    .process-icon {
        width: 2rem !important;
        height: 1.8rem !important;
        margin-bottom: 0.55rem;
    }

    .process-icon svg {
        width: 1.45rem !important;
        height: 1.45rem !important;
        max-width: 1.45rem;
        max-height: 1.45rem;
    }
}

/* Ikony retencji i mechanizmow zasiegu staja sie zlote na aktywnym kafelku. */
#attention .process-icon,
#viral .process-icon {
    color: rgba(247, 244, 236, 0.64) !important;
    transition: color 280ms var(--ease);
}

#attention .process-icon svg,
#viral .process-icon svg {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.06)) !important;
    transition: transform 240ms var(--ease), filter 280ms var(--ease) !important;
}

#attention .process-card:hover .process-icon,
#attention .process-card:focus-within .process-icon,
#attention .process-card:focus-visible .process-icon,
#viral .process-card:hover .process-icon,
#viral .process-card:focus-within .process-icon,
#viral .process-card:focus-visible .process-icon {
    color: var(--accent) !important;
}

#attention .process-card:hover .process-icon svg,
#attention .process-card:focus-within .process-icon svg,
#attention .process-card:focus-visible .process-icon svg,
#viral .process-card:hover .process-icon svg,
#viral .process-card:focus-within .process-icon svg,
#viral .process-card:focus-visible .process-icon svg {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 0 13px rgba(215, 177, 85, 0.42)) !important;
}

/* Dyskretne oznaczenia modeli wykorzystanych przy filmach AI. */
.video-card .model-badges {
    position: absolute;
    top: 0.58rem;
    left: 0.58rem;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
    max-width: calc(100% - 1.16rem);
    pointer-events: none;
}

.video-card.has-quality-badge .model-badges {
    max-width: calc(100% - 4.7rem);
}

.video-card .model-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    min-height: 1.72rem;
    padding: 0.3rem 0.52rem;
    border: 1px solid rgba(229, 196, 111, 0.44);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.84);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.video-card .model-badge img {
    display: block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border-radius: 0.22rem;
    object-fit: contain;
}

.video-card:fullscreen .model-badges,
.video-card:-webkit-full-screen .model-badges,
.video-card:-ms-fullscreen .model-badges,
.video-card.is-fullscreen .model-badges {
    display: none;
}

@media (max-width: 680px) {
    .video-card .model-badges {
        top: 0.45rem;
        left: 0.45rem;
        gap: 0.25rem;
        max-width: calc(100% - 0.9rem);
    }

    .video-card.has-quality-badge .model-badges {
        max-width: calc(100% - 4.35rem);
    }

    .video-card .model-badge {
        min-height: 1.52rem;
        gap: 0.27rem;
        padding: 0.25rem 0.42rem;
        font-size: 0.61rem;
    }

    .video-card .model-badge img {
        width: 0.86rem;
        height: 0.86rem;
        flex-basis: 0.86rem;
    }
}
