/* =============================================
   Proxymedia Films — Main Stylesheet
   Fonts: Bebas Neue (display) + DM Sans (body)
   ============================================= */

/* --- CSS Variables --- */
:root {
    --home-bg:       #E8231A;
    --home-text:     #ffedde;
    --menu-overlay:  #7B68C8;
    --menu-text:     #ffedde;
    --accent:        #E8231A;
    --dark:          #0A0A0A;
    --white:         #ffedde;
    --cream:         #F0E8D0;
    --grey:          #888888;
    --card-bg:       #111111;
    --font-display:  'Poppins', sans-serif;
    --font-body:     'Poppins', sans-serif;
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:   cubic-bezier(0.45, 0, 0.55, 1);
    --radius:        4px;
    --header-h:      70px;
    --transition:    0.35s var(--ease-out);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    cursor: default;
}

/* Canvas grain — usunięty */
#grain-canvas { display: none; }

/* GRAIN — identyczny jak jenkrause.de */
/* Canvas grain — usunięty */
#grain-canvas { display: none; }
.grain { display: none; }

/* GRAIN — ::before na kontenerach tła (naturalnie pod zdjęciami i tekstem) */
.home-page::before,
.filmlist-page::before,
.page-showreel::before,
.page-photo::before,
.project-page::before,
.page-contact::before,
.menu-overlay::before {
    content: '';
    pointer-events: none;
    background-image: url('../img/grain.png');
    background-size: 256px 256px;
    width: calc(100% + 20rem);
    height: calc(100% + 20rem);
    animation: 1s steps(2, end) infinite grainNoise;
    position: absolute;
    top: -10rem;
    left: -10rem;
    opacity: 0.15;
    z-index: 0;
}

/* Treść nad ziarniem */
.home-page > *,
.filmlist-page > *,
.page-showreel > *,
.page-photo > *,
.project-page > *,
.page-contact > *,
.menu-overlay > * {
    position: relative;
    z-index: 1;
}

@keyframes grainNoise {
    0%  { transform: translateY(9rem); }
    10% { transform: translate(-1rem, -4rem); }
    20% { transform: translate(-8rem, 2rem); }
    30% { transform: translate(9rem, -9rem); }
    40% { transform: translate(-2rem, 7rem); }
    50% { transform: translate(-9rem, -4rem); }
    60% { transform: translate(2rem, 6rem); }
    70% { transform: translate(7rem, -8rem); }
    80% { transform: translate(-9rem, 1rem); }
    90% { transform: translate(6rem, -5rem); }
    100% { transform: translate(-7rem); }
}

.home-page, .filmlist-page, .page-showreel,
.page-photo, .project-page {
    position: relative;
    overflow: hidden;
}





    overflow: hidden;
}

.menu-overlay { z-index: 2000; }
img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* cursor: default na całej stronie */
body { cursor: default; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 44px 32px 0;
    mix-blend-mode: normal;
}
.site-logo {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    height: 54px;
}
.site-logo__img {
    height: 54px; width: auto;
    display: block;
    max-width: 300px;
    object-fit: contain;
}
.site-logo__text {
    font-family: var(--font-display);
    font-size: clamp(16px, 2.4vw, 26px);
    letter-spacing: 0.08em;
    color: var(--white);
    white-space: nowrap;
    text-align: center;
    line-height: 1.15;
    background: var(--dark);
    padding: 7px 16px 5px;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    display: block;
}
.header-right {
    display: flex; align-items: center; gap: 22px;
    margin-left: auto;
}
.header-contact {
    font-family: var(--font-display);
    font-size: 16px; letter-spacing: 0.12em;
    opacity: 0.9;
    transition: opacity var(--transition);
    text-decoration: none; color: inherit;
}
.header-contact:hover { opacity: 1; }
.menu-toggle {
    font-family: var(--font-display);
    font-size: 16px; letter-spacing: 0.18em;
    background: none; border: none;
    color: inherit; padding: 4px 0;
    transition: opacity var(--transition);
    cursor: pointer;
}
.menu-toggle:hover { opacity: 0.7; }

/* Language switcher — flag buttons */
.lang-switcher { display: flex; gap: 7px; align-items: center; }
.lang-btn {
    width: 30px; height: 21px;
    border-radius: 2px; border: none;
    cursor: pointer; padding: 0;
    opacity: 0.3;
    transition: opacity var(--transition), transform 0.15s;
    display: block; overflow: hidden; position: relative;
    flex-shrink: 0;
}
.lang-btn:hover { opacity: 0.85; transform: scale(1.08); }
.lang-btn.active { opacity: 1; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
/* Poland */
.lang-btn[data-lang="pl"] { background: #DC143C; }
.lang-btn[data-lang="pl"]::before { content:''; position:absolute; top:0; left:0; right:0; height:50%; background:#fff; }
/* UK */
.lang-btn[data-lang="en"] {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 32'%3E%3Crect width='60' height='32' fill='%23012169'/%3E%3Cline x1='0' y1='0' x2='60' y2='32' stroke='%23fff' stroke-width='6'/%3E%3Cline x1='60' y1='0' x2='0' y2='32' stroke='%23fff' stroke-width='6'/%3E%3Cline x1='0' y1='0' x2='60' y2='32' stroke='%23C8102E' stroke-width='3'/%3E%3Cline x1='60' y1='0' x2='0' y2='32' stroke='%23C8102E' stroke-width='3'/%3E%3Crect x='26' y='0' width='8' height='32' fill='%23fff'/%3E%3Crect x='0' y='12.5' width='60' height='7' fill='%23fff'/%3E%3Crect x='27.5' y='0' width='5' height='32' fill='%23C8102E'/%3E%3Crect x='0' y='14' width='60' height='4' fill='%23C8102E'/%3E%3C/svg%3E") center/cover no-repeat;
}
.lang-btn[data-lang="en"]::before { display: none; }
.lang-btn[data-lang="en"]::after  { display: none; }
/* Germany */
.lang-btn[data-lang="de"] { background: #FFCD00; }
.lang-btn[data-lang="de"]::before { content:''; position:absolute; top:0; left:0; right:0; height:33.3%; background:#000; }
.lang-btn[data-lang="de"]::after  { content:''; position:absolute; top:33.3%; left:0; right:0; height:33.3%; background:#DD0000; }

/* =============================================
   MENU OVERLAY
   ============================================= */
.menu-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--menu-overlay);
    display: flex; align-items: center;
    padding: 60px 72px;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1), visibility 0.55s;
    overflow: hidden;
}
.menu-overlay.is-open {
    visibility: visible;
    transform: translateY(0);
}
.menu-close {
    position: absolute; top: 30px; right: 40px;
    font-family: var(--font-display);
    font-size: 14px; letter-spacing: 0.2em;
    background: none; border: none;
    color: var(--menu-text); opacity: 0.7;
    transition: opacity var(--transition);
    
}
.menu-close:hover { opacity: 1; }
.menu-nav {
    display: flex; flex-direction: column;
    gap: 0; margin-top: 0;
    position: relative; z-index: 10;
    justify-content: center;
    align-self: center;
    padding-left: 62px; /* same offset as homepage nav */
}
.menu-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(38px, 5.6vw, 82px);
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--menu-text);
    text-decoration: none;
    display: block;
    width: fit-content;
    -webkit-text-stroke: 0px transparent;
    transition: color 0.2s ease, -webkit-text-stroke 0.2s ease;
}
.menu-link:hover {
    color: transparent;
    -webkit-text-stroke: 2px var(--menu-text);
}

/* Stagger entrance */
.menu-overlay.is-open .menu-link {
    animation: menuItemIn 0.5s var(--ease-out) both;
}
.menu-overlay.is-open .menu-link:nth-child(1) { animation-delay: 0.03s; }
.menu-overlay.is-open .menu-link:nth-child(2) { animation-delay: 0.08s; }
.menu-overlay.is-open .menu-link:nth-child(3) { animation-delay: 0.13s; }
.menu-overlay.is-open .menu-link:nth-child(4) { animation-delay: 0.18s; }
.menu-overlay.is-open .menu-link:nth-child(5) { animation-delay: 0.23s; }
.menu-overlay.is-open .menu-link:nth-child(6) { animation-delay: 0.28s; }
.menu-overlay.is-open .menu-link:nth-child(7) { animation-delay: 0.33s; }

@keyframes menuItemIn {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Floating menu images */
.menu-images-container {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none; overflow: hidden;
}
.menu-float-img {
    position: absolute;
    display: block;
    pointer-events: none;
    will-change: transform, opacity;
    /* width ustawiane przez JS z CMS, height auto = naturalne proporcje */
    height: auto;
}
.menu-float-img.placeholder-float {
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 18px; color: rgba(255,255,255,0.4);
}

/* Slide-in from edges */
@keyframes slideFromBottom { from { opacity:0; transform: translateY(120vh); } to { opacity:1; transform: translateY(0); } }

/* Clock */
.menu-clock { display: none; }

/* =============================================
   HOMEPAGE
   ============================================= */
.home-page {
    min-height: 100vh;
    height: 100vh;
    background: var(--home-bg);
    color: var(--home-text);
    position: relative;
    overflow: hidden;
    padding-top: var(--header-h);
    padding-bottom: 48px;
    transition: background-color 0.45s cubic-bezier(0.4,0,0.2,1);
}

/* Left nav — ZAWSZE na wierzchu (z-index 50) */
.home-nav {
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 0 16px 0 62px; /* +10% w prawo: było 52px */
    position: absolute;
    top: var(--header-h); left: 0; bottom: 48px;
    z-index: 50;
}
.home-nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(38px, 5.6vw, 82px);
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--home-text);
    cursor: pointer;
    display: block;
    padding: 1px 0;
    width: fit-content;
    text-decoration: none;
    -webkit-text-stroke: 0px transparent;
    transition: color 0.2s ease, -webkit-text-stroke 0.2s ease;
    will-change: transform;
}
.home-nav-link:hover {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,.95);
}

/* Collage — pokrywa cały ekran, zdjęcia mogą zachodzić na nav */
.home-collage {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.collage-item {
    position: absolute;
    overflow: hidden;
    border-radius: 0;
    display: block;
    will-change: transform;
    pointer-events: all;
}
.collage-item:hover { }
.collage-play-btn {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.25s ease;
}
.collage-play-btn svg {
    width: clamp(32px, 5vw, 56px);
    height: clamp(32px, 5vw, 56px);
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
    background: rgba(0,0,0,.35);
    border-radius: 50%;
    padding: 14px 12px 14px 16px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background 0.2s ease;
}
.collage-play-btn:hover svg {
    transform: scale(1.1);
    background: rgba(0,0,0,.55);
}

.collage-item img, .collage-item .placeholder-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Collage positions are now set inline from PHP (homepage_photos table + layout presets) */

.collage-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 10px 8px;
    font-family: var(--font-display);
    font-size: 13px; letter-spacing: 0.1em;
    color: #FFD700; text-transform: uppercase;
}

/* =============================================
   PROJECTS GRID (Films, Photo, AI pages)
   ============================================= */
.projects-page {
    min-height: 100vh;
    background: var(--dark);
    padding-top: var(--header-h);
}
.projects-header {
    padding: 60px 48px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.projects-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 120px);
    line-height: 0.88;
    letter-spacing: -0.02em;
    color: var(--white);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
    padding: 2px;
}
.project-card {
    position: relative; overflow: hidden;
    background: var(--card-bg);
}
.project-card__link { display: block; }
.project-card__thumb {
    aspect-ratio: 16/10;
    overflow: hidden; position: relative;
}
.project-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card__thumb img { transform: scale(1.06); }
.project-card__play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: white;
    background: rgba(0,0,0,0.35);
    opacity: 0; transition: opacity var(--transition);
}
.project-card:hover .project-card__play { opacity: 1; }
.project-card__info {
    padding: 16px 20px 20px;
}
.project-card__client {
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent); font-weight: 600; display: block;
    margin-bottom: 4px;
}
.project-card__title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.5vw, 28px);
    letter-spacing: 0.02em;
    color: var(--white); line-height: 1.1;
}
.project-card__desc {
    font-size: 13px; color: var(--grey);
    margin-top: 6px; line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.projects-empty {
    grid-column: 1/-1;
    padding: 80px 48px; text-align: center;
    color: var(--grey); font-size: 18px;
}

/* Photo masonry */
.photo-masonry {
    column-count: 3; column-gap: 2px;
    display: block; padding: 2px;
}
.photo-card { break-inside: avoid; margin-bottom: 2px; }
.photo-card .project-card__thumb { aspect-ratio: unset; }
.photo-card .project-card__thumb img { aspect-ratio: unset; height: auto; }

/* Showreel */
.showreel-list { padding: 24px 48px; }
.showreel-item {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 32px; align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    
    transition: opacity var(--transition);
}
.showreel-item:hover { opacity: 0.8; }
.showreel-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); }
.showreel-thumb img { width:100%;height:100%;object-fit:cover; }
.showreel-play {
    position:absolute;inset:0;
    display:flex;align-items:center;justify-content:center;
    font-size:36px;color:white;background:rgba(0,0,0,0.4);
    opacity:0;transition:opacity var(--transition);
}
.showreel-item:hover .showreel-play { opacity:1; }
.showreel-info h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 56px);
    line-height: 0.95;
}



/* =============================================
   CONTACT
   ============================================= */
.page-contact {
    min-height: 100vh;
    background: var(--dark);
    padding-top: var(--header-h);
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
}
.contact-inner {
    width: 100%; max-width: 1200px; margin: 0 auto;
    padding: 80px 48px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: start;
}
.contact-headline {
    font-family: var(--font-display);
    font-size: clamp(52px, 7vw, 100px);
    line-height: 0.88; margin-bottom: 16px;
}
.contact-subheadline { color: rgba(255,255,255,0.6); font-size: 18px; margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 10px; font-size: 16px; transition: color var(--transition); }
.contact-detail:hover { color: var(--accent); }
.contact-socials { display: flex; gap: 16px; align-items: center; }
.contact-socials a { opacity: 0.5; transition: opacity var(--transition); }
.contact-socials a:hover { opacity: 1; }
.contact-social__link { display: flex; align-items: center; justify-content: center; }
.contact-social__link svg { width: 18px; height: 18px; display: block; color: var(--white); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input, .form-group textarea {
    width: 100%; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    color: var(--white); font-family: var(--font-body);
    font-size: 15px; padding: 14px 18px;
    outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--grey); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    font-family: var(--font-display);
    font-size: 18px; letter-spacing: 0.12em;
    background: var(--accent); color: var(--white);
    border: none; padding: 16px 40px;
    border-radius: var(--radius);
    transition: transform 0.2s, background 0.3s;
    align-self: flex-start; 
}
.btn-submit:hover { background: #c0100a; transform: translateY(-2px); }
.form-success { color: #5dff8a; font-size: 18px; padding: 24px 0; }
.form-error { color: #ff5d5d; font-size: 14px; padding: 8px 0; }

/* =============================================
   LIGHTBOX
   ============================================= */
.video-lightbox, .photo-lightbox {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.video-lightbox.is-open, .photo-lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-close {
    position: absolute; top: 24px; right: 32px;
    font-size: 28px; background: none; border: none;
    color: white; opacity: 0.6; transition: opacity var(--transition);
    
}
.lightbox-close:hover { opacity: 1; }
.lightbox-inner { max-width: 90vw; max-height: 85vh; }
.lightbox-video-wrap { position: relative; padding-bottom: 56.25%; width: 70vw; max-width: 1100px; }
.lightbox-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.lightbox-inner img { max-height: 85vh; max-width: 90vw; object-fit: contain; }

/* =============================================
   TICKER
   ============================================= */
.ticker-wrap {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    overflow: hidden; height: clamp(34px, 5.1vw, 48px);
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex; align-items: center;
}
.ticker-track {
    display: flex; align-items: center;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}
.ticker-item--text {
    font-family: var(--font-display);
    font-size: clamp(9px, 1.3vw, 11px); letter-spacing: 0.15em;
    padding: 0 clamp(14px, 2.6vw, 27px); color: rgba(255,255,255,0.5);
}
.ticker-item--logo {
    display: inline-flex; align-items: center;
    padding: 0 clamp(10px, 2.1vw, 24px);
    height: clamp(34px, 5.1vw, 48px);
}
.ticker-logo-img {
    height: clamp(26px, 4.3vw, 39px); width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.65;
    transition: opacity 0.2s;
    object-fit: contain;
    max-width: clamp(51px, 10.2vw, 119px);
}
.ticker-item--logo:hover .ticker-logo-img { opacity: 1; }
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}

/* =============================================
   PLACEHOLDER IMAGES
   ============================================= */
.placeholder-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2);
    font-family: var(--font-display);
    font-size: 14px; letter-spacing: 0.1em;
    text-align: center; padding: 16px;
    min-height: 180px;
}
.placeholder-float {
    background: rgba(255,255,255,0.08) !important;
    border-radius: var(--radius);
    width: 100%; height: 100%;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* =============================================
   TEAM — About page
   ============================================= */


.about-intro {
    padding: 80px 60px 60px;
    max-width: 800px;
}
.about-headline {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 24px;
}
.about-description {
    font-size: clamp(15px, 1.5vw, 18px);
    color: rgba(255,255,255,.55);
    line-height: 1.8;
    max-width: 600px;
}

.team-section { padding: 0 0 60px; }

.team-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 60px 20px;
}
.team-label-txt {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
}
.team-counter {
    font-size: 10px;
    letter-spacing: .1em;
    color: rgba(255,255,255,.2);
}

.team-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 60px 0;
    scrollbar-width: none;
    cursor: grab;
    scroll-snap-type: x mandatory;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track.dragging { cursor: grabbing; }

.team-card {
    flex-shrink: 0;
    width: clamp(260px, 28vw, 340px);
    scroll-snap-align: start;
}
.team-card__img {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 3px;
    margin-bottom: 16px;
    background: #1a1a1a;
}
.team-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1);
    transition: filter .4s ease;
}
.team-card:hover .team-card__img img { filter: grayscale(0); }
.team-card__ph {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
}
.team-card__name {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 4px;
}
.team-card__role {
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    margin-bottom: 12px;
}
.team-card__bio {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    line-height: 1.7;
}

.team-dots {
    display: flex;
    gap: 8px;
    padding: 24px 60px 0;
}
.team-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.team-dot.active {
    background: rgba(255,255,255,.8);
    transform: scale(1.4);
}

.about-clients {
    padding: 60px 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.about-client-name {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.2);
}

@media (max-width: 900px) {
    .home-page { padding-bottom: 60px; }
    .home-nav { padding: 0 12px 0 16px; }
    .home-nav-link { font-size: clamp(28px, 8vw, 48px); }
    .collage-item--1 { left:20%;top:5%;width:35%;height:50%;z-index:3; }
    .collage-item--2 { left:52%;top:2%;width:50%;height:45%;z-index:2; }
    .collage-item--3 { left:18%;top:50%;width:42%;height:45%;z-index:4; }
    .collage-item--4,.collage-item--5 { display:none; }
    .menu-link { font-size: clamp(40px, 12vw, 72px); }
    .contact-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
    .photo-masonry { column-count: 2; }
    .projects-header { padding: 40px 24px 24px; }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .showreel-list { padding: 16px 24px; }
    .showreel-item { grid-template-columns: 1fr; }
    .site-header { padding: 0 20px; }
}
@media (max-width: 560px) {
    .photo-masonry { column-count: 1; }
    .menu-overlay { padding: 50px 28px; }
    .menu-nav { margin-top: 40px; }
    .about-inner { padding: 60px 24px; }
}

/* =============================================
   FILMLIST PAGE (films.php + photo.php)
   ============================================= */
.filmlist-page {
    min-height: 100vh;
    height: 100vh;
    background: var(--home-bg);
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Tytuły lista --- */
.filmlist-wrap {
    position: relative; z-index: 10;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    padding: 80px 40px 60px;
    width: 100%;
    gap: 0;
}

.filmlist-item {
    display: block;
    padding: 5px 0;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.filmlist-link { text-decoration: none; display: block; }

.filmlist-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 4.2vw, 64px);
    line-height: 0.92;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255,255,255,.9);
    -webkit-text-stroke: 0px transparent;
    transition: color .2s ease, -webkit-text-stroke .2s ease;
    display: block;
}

.filmlist-item:hover .filmlist-title {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,.9);
}

.filmlist-empty {
    color: rgba(255,255,255,.3);
    font-size: 18px;
    padding: 60px 0;
}

/* --- FILMS.PHP: tło z miniaturką/wideo --- */
.films-bg-stage {
    position: absolute; inset: 0; z-index: 0;
}
.films-bg-layer {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.films-bg-layer.active { opacity: 1; }
.films-bg-layer img,
.films-bg-layer video {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.films-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(0,0,0,.62);
    transition: background .5s ease;
}
.films-overlay.bright { background: rgba(0,0,0,.38); }

/* --- PHOTO.PHP: wylatujące zdjęcia --- */
.photos-stage {
    position: absolute; inset: 0; z-index: 2;
    pointer-events: none; overflow: hidden;
}

.photo-float-card {
    position: absolute;
    border-radius: 3px;
    overflow: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    box-shadow: 0 24px 64px rgba(0,0,0,.7);
}

.photo-float-ph {
    width: 100%; height: 100%;
    background: #1c1c1c;
}

@keyframes photoFromLeft   { from{transform:translateX(-110%) rotate(var(--pr,0deg));opacity:0} to{transform:rotate(var(--pr,0deg));opacity:1} }
@keyframes photoFromRight  { from{transform:translateX(110%) rotate(var(--pr,0deg));opacity:0}  to{transform:rotate(var(--pr,0deg));opacity:1} }
@keyframes photoFromTop    { from{transform:translateY(-110%) rotate(var(--pr,0deg));opacity:0} to{transform:rotate(var(--pr,0deg));opacity:1} }
@keyframes photoFromBottom { from{transform:translateY(110%) rotate(var(--pr,0deg));opacity:0}  to{transform:rotate(var(--pr,0deg));opacity:1} }
@keyframes photoOut        { from{opacity:1;transform:scale(1)} to{opacity:0;transform:scale(.93)} }

/* =============================================
   PROJECT PAGE (project.php)
   ============================================= */
.project-page {
    background: var(--home-bg);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Tytuł + powrót */
.project-page-title {
    text-align: center;
    padding: 24px 40px 16px;
    position: relative;
}
.project-page-back {
    font-family: var(--font-display);
    font-size: 13px; letter-spacing: .15em;
    color: rgba(255,255,255,.3);
    text-decoration: none;
    transition: color .2s;
    display: inline-block; margin-bottom: 10px;
}
.project-page-back:hover { color: rgba(255,255,255,.7); }
.project-page-heading {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    line-height: .88; letter-spacing: -.01em;
    color: var(--white);
}

/* HERO */
/* NEW HERO */
.proj-hero {
    width: 100%;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    padding: 80px 60px 40px;
    overflow: hidden;
    position: relative;
}
.proj-hero__media {
    max-width: 1100px;
    width: 100%;
    position: relative;
    will-change: transform;
}
.proj-hero__media video,
.proj-hero__media img,
.proj-hero__media iframe {
    width: 100%;
    display: block;
    object-fit: contain;
}
.proj-hero__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border: 2px solid rgba(255,255,255,.75); border-radius: 50%;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(4px);
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: transform .2s, border-color .2s, background .2s;
}
.proj-hero__play:hover { transform: translate(-50%,-50%) scale(1.1); border-color:#fff; background:rgba(0,0,0,.55); }

/* Keep old .project-hero for backward compat */
.project-hero {
    width: 100%;
    height: 100dvh;
    background: #000;
    overflow: hidden;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.project-hero__iframe { position:absolute;inset:0;width:100%;height:100%;border:none;pointer-events:none; }
.project-hero__thumb { width:100%;height:100%;object-fit:cover;display:block; }
.project-hero__placeholder { width:100%;height:100%;background:#0d1a2e; }
.project-hero__play {
    position:absolute;z-index:10;width:68px;height:68px;
    border:2px solid rgba(255,255,255,.75);border-radius:50%;
    background:none;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:transform .2s,border-color .2s,background .2s;
}
.project-hero__play:hover { transform:scale(1.1);border-color:#fff;background:rgba(255,255,255,.12); }
.project-hero__play-icon { display:block;border-left:22px solid #fff;border-top:13px solid transparent;border-bottom:13px solid transparent;margin-left:6px; }

/* PROJECT CANVAS */
.proj-canvas {
    position: relative;
    width: 100%;
    min-height: 400px;
    margin: 40px 0;
    overflow: visible;
    display: block;
}
.proj-canvas-el {
    position: absolute;
    will-change: transform;
    transform-origin: center center;
}
.proj-canvas-text {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(16px, 2.5vw, 36px);
    font-weight: 900;
    line-height: 1.3;
    padding: 4px;
}

/* SECTION LAYOUTS */
.psec { margin: 0 60px 60px; }
.psec--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.psec--split.psec--reverse { direction: rtl; }
.psec--split.psec--reverse > * { direction: ltr; }
.psec__media { will-change: transform; overflow: hidden; }
.psec__media img,
.psec__media video { width: 100%; display: block; object-fit: contain; }
.psec__text { will-change: transform; }
.psec--double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.psec--text {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    will-change: transform;
}
.psec--full { will-change: transform; }
.psec--full img,
.psec--full video { width: 100%; display: block; object-fit: contain; }

/* META BAR */
.project-meta-bar {

    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    padding: 16px 40px 14px;

}
.project-meta-item {}
.project-meta-label {
    font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.28); display: block; margin-bottom: 3px;
}
.project-meta-value {
    font-family: var(--font-display);
    font-size: 20px; letter-spacing: .04em;
    color: rgba(255,255,255,.85);
}

/* DESCRIPTION */
.project-description {
    max-width: 720px; margin: 24px auto;
    padding: 0 40px;
    font-size: 15px; line-height: 1.75;
    color: rgba(255,255,255,.5);
    text-align: center;
}

/* SECTIONS */
.project-sections { padding: 0; }
.project-section {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 220px;

}
.project-section--reverse {
    direction: rtl;
}
.project-section--reverse > * { direction: ltr; }

.project-section__img {
    overflow: hidden; background: #111;
    min-height: 220px;
}
.project-section__img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.project-section__img-ph {
    width: 100%; height: 100%;
    background: #151515; min-height: 220px;
}
.project-section__text {
    padding: 36px 44px;
    display: flex; flex-direction: column; justify-content: center;
}
.project-section__title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 26px);
    letter-spacing: .03em; color: var(--white);
    margin-bottom: 14px;
}
.project-section__body {
    font-size: 14px; line-height: 1.8;
    color: rgba(255,255,255,.5);
}

/* RELATED */
.project-related {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 36px 52px 40px;
    margin-top: 80px;
}
.project-related__label {
    font-size: 18px; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(255,255,255,.4); margin-bottom: 24px;
}
.project-related__label::after { display: none; }
.project-related__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 100%; box-sizing: border-box; }
.project-related__item { padding: 0 20%; }
.project-related__item {
    display: flex; flex-direction: column;
    background: transparent;
    overflow: hidden;
    text-decoration: none; color: inherit;
    transition: opacity .2s;
}
.project-related__item:last-child { border-bottom: none; }
.project-related__item:hover { opacity: 0.8; }
.project-related__item:hover .project-related__title { color: #fff; }
.project-related__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}
.project-related__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s ease;
}
.project-related__item:hover .project-related__thumb img { transform: scale(1.03); }
.project-related__title {
    font-family: var(--font-display);
    font-size: clamp(16px, 1.8vw, 24px);
    line-height: 1.1;
    color: rgba(255,255,255,.85);
    padding: 12px 14px 4px;
    transition: color .25s;
}
.project-related__arrow {
    font-size: 20px; color: rgba(255,255,255,.3);
    opacity: 0; transform: translateX(-6px);
    transition: opacity .25s, transform .3s cubic-bezier(.16,1,.3,1);
}

/* FULLSCREEN PLAYER */
.fullscreen-player {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,.97);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
}
.fullscreen-player.open { opacity: 1; visibility: visible; }
.fullscreen-player__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.fullscreen-player__title {
    font-family: var(--font-display);
    font-size: 16px; letter-spacing: .06em;
    color: rgba(255,255,255,.5);
}
.fullscreen-player__close {
    width: 38px; height: 38px;
    border: 1.5px solid rgba(255,255,255,.3); border-radius: 50%;
    background: none; color: #fff; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, background .2s;
}
.fullscreen-player__close:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.fullscreen-player__stage {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.fullscreen-player__iframe,
.fullscreen-player__video {
    width: 100%; max-width: 1200px;
    aspect-ratio: 16/9; border: none; border-radius: 4px;
}
.fullscreen-player__hint {
    text-align: center; padding: 10px;
    font-size: 11px; letter-spacing: .1em;
    color: rgba(255,255,255,.2);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .project-hero { width: 100%; border-radius: 0; }
    .project-section,
    .project-section--reverse { grid-template-columns: 1fr; direction: ltr; }
    .project-section__img { min-height: 200px; }
    .project-section__text { padding: 24px 24px; }
    .project-related { padding: 24px 24px 32px; }
    .project-meta-bar { gap: 24px; padding: 14px 24px; }
    .project-page-title { padding: 20px 24px 14px; }
}

/* =============================================
   PROJECT PAGE — project.php
   ============================================= */
.project-page { background: #0d0d0d; min-height: 100vh; }

/* Title */
.project-title-section { padding: 80px 40px 18px; text-align: center; }
.project-page-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 86px);
    letter-spacing: -.01em; line-height: .88; color: #fff;
}

.project-hero-media {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; border: none;
    background: #000;
}
.project-hero-ph { background: #141414; }

.project-play-btn {
    position: absolute; z-index: 10;
    width: 68px; height: 68px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 50%; background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, background .2s, border-color .2s;
}
.project-play-btn::after {
    content: ''; border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}
.project-play-btn:hover { transform: scale(1.1); background: rgba(255,255,255,.12); border-color: #fff; }

.project-autoplay-badge {
    position: absolute; top: 14px; left: 14px; z-index: 10;
    background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px; padding: 4px 12px;
    font-size: 10px; letter-spacing: .1em;
    color: rgba(255,255,255,.55);
    display: flex; align-items: center; gap: 6px;
}
.project-autoplay-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    animation: projectDotBlink 1.5s ease infinite;
    flex-shrink: 0;
}
@keyframes projectDotBlink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* Meta bar */
.project-meta-bar {
    display: flex; justify-content: center; gap: 52px; flex-wrap: wrap;
    padding: 18px 40px 16px;

}
.project-meta-label {
    font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.28); display: block; margin-bottom: 4px;
}
.project-meta-value {
    font-family: var(--font-display);
    font-size: 20px; letter-spacing: .04em;
    color: rgba(255,255,255,.85);
}

/* Alternating sections */
.project-sections { }
.project-section {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 280px;

}
.project-section--reverse { direction: rtl; }
.project-section--reverse > * { direction: ltr; }

.project-section__img {
    overflow: hidden; background: #111;
    display: flex; align-items: center; justify-content: center;
}
.project-section__img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.project-section__ph { width: 100%; height: 100%; background: #151515; }

.project-section__text {
    padding: 40px 52px;
    display: flex; flex-direction: column; justify-content: center;
}
.project-section__title {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 28px);
    letter-spacing: .02em; color: #fff; margin-bottom: 14px;
    line-height: 1.1;
}
.project-section__body {
    font-size: 14px; line-height: 1.85;
    color: rgba(255,255,255,.5);
}

/* Related projects */
.project-related {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 36px 52px 40px;
    margin-top: 80px;
}
.project-related__label {
    font-size: 18px; letter-spacing: .18em;
    text-transform: uppercase; color: rgba(255,255,255,.4);
    margin-bottom: 24px;
}
.project-related__label::after { display: none; }
/* Fullscreen Player */
.fullscreen-player {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,.97);
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
}
.fullscreen-player.open { opacity: 1; visibility: visible; }
.fp-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.fp-title {
    font-family: var(--font-display);
    font-size: 18px; letter-spacing: .05em;
    color: rgba(255,255,255,.6);
}
.fp-close {
    width: 40px; height: 40px;
    border: 1.5px solid rgba(255,255,255,.3); border-radius: 50%;
    background: none; color: #fff; font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, background .2s;
}
.fp-close:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.fp-body {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.fp-body iframe, .fp-body video {
    width: 100%; max-width: 1200px;
    aspect-ratio: 16/9; height: auto;
    border: none; border-radius: 3px;
}
.fp-hint {
    text-align: center; padding: 10px;
    font-size: 11px; letter-spacing: .15em;
    color: rgba(255,255,255,.2); flex-shrink: 0;
}

@media (max-width: 900px) {
    .project-hero { width: 100%; border-radius: 0; }
    .project-section { grid-template-columns: 1fr; }
    .project-section--reverse { direction: ltr; }
    .project-section__text { padding: 24px; }
    .project-title-section { padding: 80px 24px 14px; }
    .project-meta-bar { gap: 24px; padding: 14px 24px; }
    .project-related { padding: 24px; }
}

/* Project description (when no sections) */
.project-desc-wrap {
    max-width: 760px; margin: 0 auto;
    padding: 32px 40px 24px;

}
.project-desc-text {
    font-size: 15px; line-height: 1.85;
    color: rgba(255,255,255,.55);
}

/* =============================================
   SOCIAL ICONS — header top left
   ============================================= */
.header-social {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
.header-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.header-social__link:hover { opacity: 1; }
.header-social__link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.project-bts-section {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 0 60px 60px;
    position: relative;
    z-index: 1;
}
.project-bts-media {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #111;
    flex-shrink: 0;
}
.project-bts-media img,
.project-bts-media video {
    width: 100%;
    height: auto;
    display: block;
}
.project-bts-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-bts-label {
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    margin-bottom: 16px;
}
.project-bts-text {
    font-size: clamp(14px, 1.4vw, 16px);
    color: rgba(255,255,255,.55);
    line-height: 1.85;
}
@media (max-width: 768px) {
    .project-bts-section {
        flex-direction: column;
        padding: 24px 20px 40px;
        gap: 16px;
    }
    .project-bts-media {
        width: 100% !important;
    }
    .project-bts-desc {
        width: 100%;
    }
}
/* =============================================
   ABOUT PAGE
   ============================================= */
.page-about { min-height: 100vh; position: relative; overflow: hidden; }
.page-about::before {
    content: '';
    pointer-events: none;
    position: absolute;
    top: -10rem; left: -10rem;
    width: calc(100% + 20rem);
    height: calc(100% + 20rem);
    background-image: url('../img/grain.png');
    background-size: 256px 256px;
    opacity: 0.15;
    animation: 1s steps(2, end) infinite grainNoise;
    z-index: 0;
}
.page-about > * { position: relative; z-index: 1; }

/* Karuzela */
.about-carousel {
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    height: clamp(330px, 45vw, 570px);
}
.about-carousel__track {
    display: flex;
    gap: 4px;
    height: 100%;
    will-change: transform;
    align-items: stretch;
}
.about-carousel__item {
    flex: 0 0 auto;
    height: 100%;
    overflow: hidden;
}
.about-carousel__item img {
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;
    max-width: none;
}

/* Tekst */
.about-body {
    padding: 52px 60px 60px;
}
.about-sitename {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 32px;
}
.about-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.about-col {
    font-size: clamp(13px, 1.2vw, 16px);
    color: rgba(255,255,255,.55);
    line-height: 1.85;
}

/* Team */
.team-section { padding: 0 0 60px; }
.team-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 60px 20px;
}
.team-label-txt {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
}
.team-counter { font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.2); }
.team-track {
    display: flex;
    gap: 16px;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 0 60px 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scroll-snap-type: x mandatory;
    user-select: none;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track.dragging { cursor: grabbing; }
.team-card {
    flex-shrink: 0;
    width: clamp(240px, 25vw, 320px);
    scroll-snap-align: start;
}
.team-card__img {
    width: 100%; aspect-ratio: 3/4; overflow: hidden;
    border-radius: 3px; margin-bottom: 16px; background: #1a1a1a;
}
.team-card__img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(1); transition: filter .4s ease;
}
.team-card:hover .team-card__img img { filter: grayscale(0); }
.team-card__ph { width: 100%; height: 100%; background: #1e1e1e; }
.team-card__name {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 24px); font-weight: 900;
    color: var(--white); line-height: 1.1; margin-bottom: 4px;
}
.team-card__role {
    font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
    color: rgba(255,255,255,.3); margin-bottom: 10px;
}
.team-card__bio { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.7; }
.team-dots { display: flex; gap: 8px; padding: 20px 60px 0; }
.team-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(255,255,255,.15); cursor: pointer;
    transition: background .2s, transform .2s;
}
.team-dot.active { background: rgba(255,255,255,.8); transform: scale(1.4); }

@media (max-width: 768px) {
    .about-body { padding: 32px 20px 40px; }
    .about-cols { grid-template-columns: 1fr; gap: 24px; }
    .team-label, .team-track, .team-dots { padding-left: 20px; padding-right: 20px; }
}
/* =============================================
   MOBILE — zmiany ≤768px
   ============================================= */
@media (max-width: 768px) {

    /* Lista filmów/zdjęć — tytuł w jednej linii */
    .filmlist-title {
        font-size: clamp(18px, 6vw, 32px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .filmlist-item {
        padding: 12px 20px;
    }

    /* Header — ukryj social media */
    .header-social {
        display: none !important;
    }

    /* Lang switcher — ukryj wszystkie flagi, pokaż tylko dropdown */
    .lang-switcher {
        display: none;
    }
    .lang-switcher-mobile {
        display: flex;
    }

    /* Kontakt — pokaż social media */
    .contact-socials {
        display: flex !important;
    }
}

/* Desktop — ukryj mobile lang switcher */
@media (min-width: 769px) {
    .lang-switcher-mobile { display: none; }
    .contact-socials-mobile-only { display: none; }
}

/* Lang dropdown mobile */
.lang-switcher-mobile {
    display: none;
    align-items: center;
    position: relative;
}
.lang-flag-btn {
    width: 28px;
    height: 19px;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.lang-dropdown {
    position: absolute;
    top: 26px;
    left: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 6px;
    padding: 4px;
    z-index: 9999;
    min-width: 110px;
    display: none;
}
.lang-dropdown.open { display: block; }
.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: rgba(255,255,255,.8);
    font-size: 12px;
    letter-spacing: .05em;
}
.lang-dropdown-item:hover { background: rgba(255,255,255,.08); }
.lang-dropdown-item.active { color: #fff; }
.lang-dropdown-flag {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* =============================================
   POPRAWKI MOBILE — nadpisuje wcześniejsze reguły
   ============================================= */

/* Fix kaskady — base bez media query musi być PRZED media query */
.lang-switcher-mobile {
    display: none;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {

    /* Flaga języka — lewy górny róg na mobile */
    .lang-switcher-mobile {
        display: flex !important;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Header — mniejszy padding, logo wycentrowane pionowo */
    .site-header {
        padding: 0 16px;
        height: 56px;
    }

    /* Logo — wycentrowane pionowo w headerze */
    .site-logo {
        top: 75%;
        transform: translate(-50%, -50%);
        height: 36px;
    }
    .site-logo__img {
        height: 36px;
    }
    .site-logo__text {
        font-size: 12px;
        padding: 4px 10px 3px;
    }

    /* Header right — mniejszy gap */
    .header-right {
        gap: 12px;
    }

    /* Ukryj KONTAKT na mobile — jest w menu */
    .header-contact {
        display: none;
    }
}
body[data-page="contact"] .ticker-wrap { display: none; }
