/* ============================================
   ZÉ MARIA COLOR
   ============================================ */

/* --- Fonts --- */

@font-face {
    font-family: 'Futura';
    src: url('../assets/FuturaCyrillicLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    src: url('../assets/FuturaCyrillicBook.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    src: url('../assets/FuturaCyrillicMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    src: url('../assets/FuturaCyrillicHeavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Reset --- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:         #F7F6F3;
    --text:       #111111;
    --text-dim:   #777777;
    --text-faint: #AAAAAA;
    --accent:     #FFAA00;
    --border:     #E2E1DE;
    --nav-h:      180px;
    --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --z-dots:     10;
    --z-back-top: 20;
    --z-consent:  30;
    --z-nav:      40;
    --z-lightbox: 50;
    --z-lb-close: 51;
    --z-expand:   60;
    --z-expand-ui:61;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Futura', sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* Keyboard focus indicator */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Reveal --- */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--delay, 0s);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* --- Nav --- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 48px;
    transition: background 0.5s ease;
}

.nav.scrolled {
    background: rgba(247, 246, 243, 0.96);
    border-bottom: 1px solid var(--border);
}

.nav__logo {
    transition: opacity 0.3s ease;
}

.nav__logo img {
    height: 145px;
    width: auto;
    display: block;
    transition: opacity 0.4s ease;
}

/* White logo shown on hero (not scrolled), black logo hidden */
.nav__logo img.nav__logo--white { opacity: 0.95; }
.nav__logo img.nav__logo--black { display: none; opacity: 0; }

/* When scrolled: swap logos, burger & links go dark */
.nav.scrolled .nav__logo img.nav__logo--white { display: none; }
.nav.scrolled .nav__logo img.nav__logo--black { display: block; opacity: 0.95; }
.nav.scrolled .nav__burger span { background: var(--text); }
.nav.scrolled .nav__links li a  { color: var(--text-dim); }

/* Default (hero): burger & links white */
.nav__burger span { background: #fff; transition: background 0.4s ease, transform 0.25s ease; }
.nav__links li a  { color: rgba(255,255,255,0.85); }

/* Right side: links + burger */
.nav__right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Links hidden by default, expand left on hover */
.nav__links {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.45s var(--ease), opacity 0.3s ease;
}

.nav__right:hover .nav__links {
    max-width: 640px;
    opacity: 1;
}

.nav__links li a {
    display: block;
    padding: 4px 20px;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav__links li a:hover {
    color: var(--text);
}

/* Hamburger */
.nav__burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 1px;
    transition: background 0.4s ease, transform 0.25s ease;
}

.nav__right:hover .nav__burger span:first-child,
.nav--open .nav__burger span:first-child {
    transform: translateY(3.5px) rotate(45deg);
    transition: transform 0.25s ease;
}

.nav__right:hover .nav__burger span:last-child,
.nav--open .nav__burger span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
    transition: transform 0.25s ease;
}

.nav--open .nav__links {
    max-width: 640px;
    opacity: 1;
}

/* --- Hero --- */

.hero {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 48px 64px;
    position: relative;
    overflow: hidden;
}

.hero__slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: 0;
}

.hero__slideshow.fade-in {
    animation: slide-fade-zoom 0.8s ease-out forwards;
}

@keyframes slide-fade-zoom {
    from {
        opacity: 0.3;
        transform: scale(1.03);
    }
    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

.hero__grain {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 1;
    filter: url(#grain);
    opacity: 0.12;
    mix-blend-mode: multiply;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero__grain { display: none; }
}

/* --- Work --- */

.work {
    position: relative;
    padding: 0;
}

.work__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 48px 48px 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.work__title {
    position: absolute;
    top: 48px;
    left: 48px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.work__filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.work__search {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Futura', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    outline: none;
    width: 160px;
    transition: border-color 0.2s;
}
.work__search::placeholder { color: var(--text-faint); }
.work__search:focus { border-color: var(--text-faint); }

.filter {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-faint);
    font-family: 'Futura', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 7px 16px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter:hover {
    color: var(--text);
    border-color: var(--text-faint);
}

.filter.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--bg);
}

.project {
    position: relative;
    overflow: hidden;
}

.project__inner {
    display: block;
    position: relative;
    height: 100%;
}

.project__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #111;
    height: 100%;
}

.project.hidden {
    display: none;
}

.project.shuffle-out {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.project.shuffle-in {
    opacity: 0;
    transform: translateX(40px);
}

.project.shuffle-in.is-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
    transition-delay: calc(var(--i, 0) * 30ms);
}

.project__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease), opacity 0.4s ease;
}

.project__inner:hover .project__img {
    transform: scale(1.03);
}

.project__info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project__inner:hover .project__info {
    opacity: 1;
}

.project__name {
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.project__inner:hover .project__name {
    color: var(--accent);
}

.project__meta {
    font-size: 0.91rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Scroll dots --- */

.scroll-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: var(--z-dots);
    pointer-events: none;
}

.scroll-dots span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0.4);
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- About --- */

.about {
    position: relative;
    padding: 120px 48px;
    overflow: hidden;
    background: #000;
}

.about__image {
    position: absolute;
    inset: -300px 0;
    z-index: 0;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.45);
    will-change: transform;
}

.about__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.about__portrait {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.about__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.about__label {
    position: absolute;
    top: 48px;
    left: 48px;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.about__body h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 32px;
}

.about__body p {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.9;
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
    max-width: 560px;
}

/* --- Contact --- */

.contact {
    position: relative;
    padding: 160px 48px;
    background: #000;
    text-align: center;
    overflow: hidden;
    margin-top: -2px;
}

.contact__bg {
    position: absolute;
    inset: -300px 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    z-index: 0;
    will-change: transform;
}

.contact__label {
    position: absolute;
    top: 48px;
    left: 48px;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.contact__email {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: #fff;
    transition: color 0.3s ease;
    margin-bottom: 32px;
}

.contact__email:hover {
    color: var(--accent);
}


/* --- Consent bar --- */

.consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-consent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 48px;
    background: rgba(247, 246, 243, 0.96);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

.consent-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.consent-bar__text {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

.consent-bar__text a {
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}

.consent-bar__btn {
    flex-shrink: 0;
    padding: 5px 18px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--text);
    background: none;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.consent-bar__btn:hover {
    background: var(--text);
    color: var(--bg);
}

.consent-bar.is-visible ~ .back-to-top {
    bottom: 64px;
}

/* --- Footer --- */

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 32px;
    height: 32px;
    background: none;
    color: var(--text-dim);
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, color 0.2s ease;
    z-index: var(--z-back-top);
}

.back-to-top:hover {
    color: var(--text);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.footer__logo img {
    height: 16px;
    width: auto;
    opacity: 0.25;
}

.footer__links {
    display: flex;
    gap: 28px;
    margin-right: 56px;
}

.footer__links a {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--text-dim);
}

/* --- Lightbox --- */

.lb {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    background: rgba(10, 10, 10, 0.94);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lb[hidden] {
    display: none;
}

.lb.is-open {
    opacity: 1;
}

@supports (backdrop-filter: blur(1px)) {
    .lb {
        background: rgba(10, 10, 10, 0.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.lb__close {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: var(--z-lb-close);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb__close span {
    position: absolute;
    width: 20px;
    height: 1px;
    background: #E8E8E8;
    transition: background 0.2s ease;
}

.lb__close span:first-child { transform: rotate(45deg); }
.lb__close span:last-child  { transform: rotate(-45deg); }

.lb__close:hover span { background: var(--accent); }

.lb__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 48px 80px;
}

.lb__video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.lb__video {
    width: 100%;
    height: 100%;
}

.lb__video iframe,
.lb__video video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Multi-film navigation */
.lb__film-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    margin-bottom: 20px;
}

.lb__film-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 0;
    transition: color 0.2s;
}

.lb__film-nav-btn:hover { color: #fff; }

.lb__film-nav-btn svg { flex-shrink: 0; width: 18px; height: 18px; }

.lb__film-counter {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.3);
    margin-right: 24px;
}

.lb__film-title {
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75);
    text-align: center;
    flex: 1;
    padding: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.lb__no-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.lb__body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1E1E1E;
}

.lb__header {
    flex-shrink: 0;
}

.lb__title {
    font-size: clamp(1.68rem, 3.5vw, 2.52rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #E8E8E8;
    margin-bottom: 8px;
}

.lb__category {
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.lb__credits {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.lb__credit {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lb__credit-label {
    font-size: 0.77rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #444;
}

.lb__credit-value {
    font-size: 1.12rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #E8E8E8;
}

/* Embed */
.lb__embed {
    margin-bottom: 32px;
}

.lb__embed-btn {
    background: none;
    border: 1px solid #333;
    color: #888;
    font-family: 'Futura', sans-serif;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 8px 18px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lb__embed-btn:hover {
    color: #ccc;
    border-color: #666;
}

/* Stills Grid */
.lb__stills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
    margin-bottom: 0;
}

.lb__still {
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

.lb__still img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lb__still:hover img {
    opacity: 0.8;
    transform: scale(1.02);
}

.lb__stills-empty {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #333;
}

@media (max-width: 768px) {
    .lb__stills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Expanded image */
.lb__expand {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-expand);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
    overflow: hidden;
}

.lb__expand[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.lb__expand-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: expand-zoom 0.3s ease-out;
    pointer-events: none;
}

@media (max-width: 768px) {
    .lb__expand-img {
        max-width: 100%;
        max-height: 80svh;
    }
}

@keyframes expand-zoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lb__expand-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-expand-ui);
}

.lb__expand-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.2s ease;
}

.lb__expand-close span:first-child {
    transform: rotate(45deg);
}

.lb__expand-close span:last-child {
    transform: rotate(-45deg);
}

.lb__expand-close:hover span {
    background: #ccc;
}

.lb__expand-nav {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0;
    cursor: pointer;
    z-index: var(--z-expand-ui);
    transition: all 0.2s ease;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb__expand-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.lb__expand-prev {
    left: 24px;
}

.lb__expand-next {
    right: 24px;
}

.lb__expand-nav span {
    width: 8px;
    height: 8px;
    background: none;
    border-right: 2px solid #fff;
    border-top: 2px solid #fff;
    position: absolute;
}

.lb__expand-prev span {
    transform: rotate(-135deg);
}

.lb__expand-prev span::after {
    display: none;
}

.lb__expand-next span {
    transform: rotate(45deg);
}

.lb__expand-next span::after {
    display: none;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .work__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about__inner {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root { --nav-h: 80px; }

    /* --- Nav --- */
    .nav { padding: 0 20px; }
    .nav__logo img { height: 56px; }

    /* Burger must sit above the fixed dropdown (position: fixed creates a stacking layer) */
    .nav__burger { position: relative; z-index: 1; }

    /* Disable hover-based expansion on touch; use .nav--open only */
    .nav__right:hover .nav__links {
        max-width: 0;
        opacity: 1;
        transform: translateX(100%);
    }
    .nav__right:hover .nav__burger span:first-child,
    .nav__right:hover .nav__burger span:last-child {
        transform: none;
    }
    /* X animation when menu is open */
    .nav--open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg) !important; }
    .nav--open .nav__burger span:last-child  { transform: translateY(-3.5px) rotate(-45deg) !important; }
    /* Burger turns dark when panel (white bg) is open */
    .nav--open .nav__burger span { background: var(--text) !important; }

    /* Right-side slide-in panel */
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        max-width: none !important;
        width: 260px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        background: var(--bg);
        padding: 80px 36px 40px;
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition: transform 0.3s var(--ease), visibility 0.3s ease;
        box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    }
    .nav--open .nav__links {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0) !important;
    }
    .nav__links li a {
        color: var(--text-dim) !important;
        padding: 12px 0;
        font-size: 0.75rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        display: block;
    }
    .nav__links li:first-child a { border-top: 1px solid var(--border); }
    .nav__links li a:hover { color: var(--text) !important; }

    /* --- Hero --- */
    .hero { padding: 0 20px 48px; }
    .hero__grain { opacity: 0.08; }

    /* --- Work --- */
    .work__title { top: 20px; left: 20px; }
    .work__header { padding: 52px 20px 24px; justify-content: flex-end; }
    .work__search { width: 100%; }
    .work__filters { gap: 4px; }

    .work__grid { grid-template-columns: 1fr; }

    /* On mobile, show project info below the thumbnail (no hover available) */
    .project__inner {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .project__thumb {
        height: auto;
        aspect-ratio: 16 / 9;
        flex-shrink: 0;
    }
    .project__info {
        position: static;
        opacity: 1;
        background: none;
        padding: 12px 16px 16px;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
        gap: 4px;
    }
    .project__name {
        color: var(--text);
        font-size: 0.88rem;
        font-weight: 500;
    }
    .project__meta {
        color: var(--text-faint);
        font-size: 0.72rem;
    }
    /* Disable hover effects on mobile project cards */
    .project__inner:hover .project__img { transform: none; }
    .project__inner:hover .project__info { opacity: 1; }
    .project__inner:hover .project__name { color: var(--text); }

    /* --- About --- */
    .about__label { top: 20px; left: 20px; }
    .about__inner {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .about { padding: 80px 20px 60px; }

    /* --- Contact --- */
    .contact__label { top: 20px; left: 20px; }
    .contact { padding: 80px 20px; }

    /* --- Footer --- */
    .footer { padding: 24px 20px; }
    .footer__links { margin-right: 0; }

    /* --- Lightbox --- */
    .lb__inner { padding: 64px 20px 48px; }
    .lb__body {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
    .lb__credits { gap: 20px; }
    .lb__credit-value { font-size: 0.9rem; }
    .lb__film-nav { margin-top: 16px; margin-bottom: 12px; }
    .lb__film-title { font-size: 0.85rem; }
    .lb__film-nav-btn { font-size: 0.7rem; }
    .lb__close { top: 16px; right: 16px; }
}
