/* Inter */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 500;
    font-display: block;
    src: url('https://pub-5c128c556e364ff4a4578eac0ca512c4.r2.dev/Fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 500;
    font-display: block;
    src: url('https://pub-5c128c556e364ff4a4578eac0ca512c4.r2.dev/Fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: block;
    src: url('https://pub-5c128c556e364ff4a4578eac0ca512c4.r2.dev/Fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300 800;
    font-display: block;
    src: url('https://pub-5c128c556e364ff4a4578eac0ca512c4.r2.dev/Fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.mobile-only { display: none; }

:root {
    --bg-color: #0a0a0a;
    --text-color: #f5f5f7;
    --accent-color: #ffffff;
    --muted-color: #86868b;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

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

/* Cursor only for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none; }
    #custom-cursor { display: block; }
}

@media (hover: none), (pointer: coarse) {
    #custom-cursor { display: none !important; }
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease, border 0.3s ease;
    transform: translate(-50%, -50%);
}

#custom-cursor.hovering {
    transform: translate(-50%, -50%) scale(4);
    background: var(--accent-color);
    mix-blend-mode: difference;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: calc(20px + var(--safe-top)) calc(50px + var(--safe-right)) 20px calc(50px + var(--safe-left));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: calc(15px + var(--safe-top));
    padding-bottom: 15px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-color);
    text-decoration: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Language switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    margin-left: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 2px;
    gap: 0;
}

.lang-btn {
    background: transparent;
    border: 0;
    color: rgba(255,255,255,0.55);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.lang-btn:hover {
    color: #fff;
}

.lang-btn.active {
    background: rgba(255,255,255,0.9);
    color: #0a0a0a;
}

/* Hero Section */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.45);
    transition: var(--transition-smooth);
}

.hero-content,
.scroll-indicator {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px calc(20px + var(--safe-right)) 60px calc(20px + var(--safe-left));
}

.hero-content h1 {
    font-size: clamp(3rem, 15vw, 15rem);
    line-height: 0.95;
    margin: 0;
    letter-spacing: -0.02em;
    word-break: break-word;
    width: 100%;
}

.hero-tagline {
    margin-top: 20px;
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    color: rgba(255,255,255,0.75);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0 15px;
}

.scroll-indicator {
    position: absolute;
    bottom: calc(20px + var(--safe-bottom));
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Work / Bento */
.work-section {
    padding: 100px 50px;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 8vw, 4.5rem);
    margin-bottom: 10px;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.section-subtitle {
    color: var(--muted-color);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--muted-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 9px 22px;
    border-radius: 100px;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 20px;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    z-index: 1100;
    background: transparent;
    border: 0;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition-smooth);
    display: block;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100svh;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: var(--transition-smooth);
        z-index: 1000;
        padding: 50px;
        text-align: center;
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .nav-links a {
        margin: 15px 0;
        font-size: 1.5rem;
        width: 100%;
        display: block;
        opacity: 1;
    }
    .lang-switcher {
        margin: 30px 0 0;
    }
    .lang-btn {
        font-size: 0.85rem;
        padding: 11px 18px;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Bento items */
.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #1a1a1a;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: block;
    transform: translateZ(0);
    will-change: transform;
}

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-item img,
.bento-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: grayscale(60%);
    display: block;
}

.bento-item:hover img,
.bento-item:hover video {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.bento-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    transform: translateY(100%);
    transition: var(--transition-smooth);
    z-index: 2;
}

.item-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.item-overlay p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted-color);
    margin: 0;
}

.bento-item:hover .item-overlay {
    transform: translateY(0);
}

/* Split bento cover */
.bento-split {
    position: absolute;
    inset: 0;
    display: flex;
}

.bento-split-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-split-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    transition: background 0.7s ease;
    z-index: 1;
}

.bento-item:hover .bento-split-panel::after {
    background: rgba(0,0,0,0.2);
}

.bento-split-panel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(60%);
    transition: filter 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-item:hover .bento-split-panel video {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.bento-split-label {
    position: absolute;
    bottom: 60px;
    left: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.bento-item:hover .bento-split-label {
    color: #fff;
}

/* Hover image swap on bento */
.bento-item .img-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    filter: grayscale(60%);
}
.bento-item:hover .img-hover {
    opacity: 1;
    filter: grayscale(0%);
}
.bento-item:hover .img-default {
    opacity: 0;
}
@media (hover: none), (pointer: coarse) {
    .bento-item .img-hover { display: none; }
    .bento-item .img-default { opacity: 1 !important; }
}

/* On touch devices: overlay always visible + always color */
@media (hover: none), (pointer: coarse) {
    .item-overlay {
        transform: translateY(0);
    }
    .bento-item img,
    .bento-item video {
        filter: grayscale(0%);
    }
}

/* About */
.about-section {
    padding: 100px 50px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    text-align: left;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #1a1a1a;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.about-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.about-text { flex: 1.2; }

.about-text h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 30px;
}

.about-text p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--muted-color);
}

/* Footer */
footer {
    position: relative;
    z-index: 20;
    padding: 100px 50px calc(100px + var(--safe-bottom));
    background: #050505;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 0;
}

.contact-button {
    display: inline-block;
    padding: 20px 40px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

.contact-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.contact-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-button--wa {
    border-color: #25D366;
    color: #25D366;
}

.contact-button--wa:hover {
    background: #25D366;
    color: #fff;
}

.footer-bottom {
    flex-basis: 100%;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.8rem;
    color: var(--muted-color);
    flex-wrap: wrap;
    gap: 20px;
}

.socials a {
    color: var(--muted-color);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

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

/* ============ NEXT PROJECT SECTION ============ */
.next-project-section {
    position: relative;
    z-index: 20;
    background: var(--bg-color);
    padding: 0 50px 100px;
}

.next-project-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.next-bento {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: #1a1a1a;
    aspect-ratio: 16/9;
    max-width: 800px;
    margin: 0 auto;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.next-bento img,
.next-bento video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.next-bento:hover img,
.next-bento:hover video {
    transform: scale(1.04);
}

.next-bento .item-overlay {
    transform: translateY(0);
    padding: 40px 50px;
}

.next-bento--text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-bento-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.next-bento .item-overlay h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        gap: 14px;
    }
    .bento-item.wide { grid-column: span 2; }
    .bento-item.tall { grid-row: span 2; }

    .hero-content h1 {
        font-size: clamp(2.8rem, 14vw, 6rem);
    }
    .navbar {
        padding: calc(15px + var(--safe-top)) calc(25px + var(--safe-right)) 15px calc(25px + var(--safe-left));
    }
    .work-section, .about-section, footer {
        padding-left: 25px;
        padding-right: 25px;
    }
    .work-section { padding-top: 80px; padding-bottom: 40px; }
    .about-section { padding-top: 60px; padding-bottom: 60px; }
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .about-image {
        width: 100%;
        max-width: 400px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .socials a:first-child { margin-left: 0; }
}

@media (max-width: 600px) {
    .bento-split-panel video { object-position: center top; }
    .mobile-only { display: block; }

    /* Reorder bento on mobile: Le Crieur Public remonte en 3e position */
    .bento-grid a:nth-child(1) { order: 1; } /* FoodyFocus */
    .bento-grid a:nth-child(2) { order: 2; } /* AI Influencers */
    .bento-grid a:nth-child(5) { order: 3; } /* Le Crieur Public */
    .bento-grid a:nth-child(3) { order: 4; } /* Santa Madre */
    .bento-grid a:nth-child(4) { order: 5; } /* La Dentellière */
    .bento-grid a:nth-child(6) { order: 6; } /* Aurea */
    .bento-grid a:nth-child(7) { order: 7; } /* In-house Work */

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .bento-item.tall, .bento-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }
    .next-project-section {
        padding: 0 20px 70px;
    }
    .next-bento {
        aspect-ratio: 16/9;
    }
    .next-bento .item-overlay {
        padding: 24px;
    }
    .hero-content h1 {
        font-size: clamp(2.5rem, 16vw, 5rem);
    }
    .navbar {
        padding: calc(15px + var(--safe-top)) calc(20px + var(--safe-right)) 15px calc(20px + var(--safe-left));
    }
    .nav-logo { font-size: 1.1rem; }
    .work-section, .about-section, footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .work-section { padding-top: 70px; }
    footer { padding-top: 70px; }
    .section-title { font-size: 2rem; }
    .item-overlay { padding: 18px; }
    .item-overlay h3 { font-size: 1rem; }
    .contact-button { padding: 16px 32px; font-size: 0.85rem; }
    .footer-content h2 { margin-bottom: 30px; }
    .footer-bottom { margin-top: 60px; }
}

/* ============ PROJECT PAGE ============ */
.project-page .navbar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.project-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-sticky-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    z-index: -1;
    will-change: transform, filter;
}

.hero-sticky-image img,
.hero-sticky-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.hero-overlay-text {
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.project-hero h1 {
    font-size: clamp(2.2rem, 10vw, 6rem);
    line-height: 1;
}

.hero-category {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0.6;
}

.project-content {
    position: relative;
    background: var(--bg-color);
    z-index: 20;
    padding-top: 60px;
}

.project-info {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}

.info-block h3 {
    font-size: 0.75rem;
    color: var(--muted-color);
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.info-block p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
}

.project-cta {
    margin-top: 40px;
}

/* Gallery */
.project-gallery {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #1a1a1a;
}

.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-item.wide.portrait {
    aspect-ratio: 4/5;
}

.gallery-item.ratio-916 {
    aspect-ratio: 9/16;
}

.gallery-item.ratio-11 {
    aspect-ratio: 1/1;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.gallery-item iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.media-grain { display: none; }

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.02);
}

/* Video-focused gallery */
.video-gallery {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-gallery .gallery-item {
    aspect-ratio: 9/16;
}

.video-gallery .gallery-item.landscape {
    aspect-ratio: 16/9;
    grid-column: span 3;
}

/* App-style screenshot row */
.app-showcase {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-showcase .gallery-item {
    aspect-ratio: 9/19;
}

.project-conclusion {
    padding: 180px 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-conclusion h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 30px;
}

.project-conclusion p {
    color: var(--muted-color);
}

/* Hero with a graphic/designed cover (no full-bleed crop needed) */
.project-hero.hero-graphic {
    min-height: auto;
    padding-top: 0;
}

.project-hero.hero-graphic .hero-sticky-image {
    position: relative;
    height: auto;
    min-height: 0;
    z-index: 0;
}

.project-hero.hero-graphic .hero-sticky-image img {
    position: relative;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    filter: none !important;
    background: #0a0a0a;
    padding-top: 80px; /* clear navbar */
}

@media (max-width: 900px) {
    .hero-pos-left {
        object-position: 70% center;
    }
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .project-info {
        padding: 60px 25px;
    }
    .project-gallery,
    .video-gallery,
    .app-showcase {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }
    .gallery-item,
    .gallery-item.wide,
    .gallery-item.ratio-916,
    .gallery-item.ratio-11 {
        grid-column: 1 / -1;
        width: 100%;
        transform: none !important;
    }
    .gallery-item.wide       { aspect-ratio: 16/9; }
    .gallery-item.ratio-916  { aspect-ratio: 9/16; }
    .gallery-item.ratio-11   { aspect-ratio: 1/1; }
    .video-gallery .gallery-item.landscape {
        grid-column: span 1;
    }
    .project-conclusion {
        padding: 100px 25px;
    }
}

/* Per-video sound toggle */
.video-sound-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-color);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.video-sound-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.video-sound-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: none), (pointer: coarse) {
    .video-sound-btn { cursor: auto; }
}

/* Character label inside gallery grid */
.gallery-label {
    grid-column: 1 / -1;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted-color);
    padding: 30px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

.gallery-label:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* ============ MICRO-INTERACTIONS ============ */

/* Tilt 3D + spotlight on bento cards (desktop only) */
.bento-item {
    transform-style: preserve-3d;
    will-change: transform;
}

.bento-item .spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%),
                rgba(255, 255, 255, 0.18),
                transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
    border-radius: inherit;
}

.bento-item:hover .spotlight {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .bento-item .spotlight { display: none; }
}

/* Magnetic buttons */
.contact-button {
    will-change: transform;
}

/* Reveal text on scroll (word by word) */
.reveal-text {
    display: inline-block;
    max-width: 100%;
}

.reveal-text .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: 1.1;
    padding-bottom: 0.08em;
}

.reveal-text .word > span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.reveal-text.in-view .word > span {
    transform: translateY(0);
}

/* Color loupe on photo-only galleries */
.loupe-gallery .gallery-item {
    position: relative;
    overflow: hidden;
}

.loupe-gallery .gallery-item img {
    filter: none;
}

.loupe-gallery .gallery-item:hover img {
    transform: none;
    filter: none;
}

.loupe-gallery .gallery-item .loupe-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: grayscale(100%) contrast(1.05);
    -webkit-backdrop-filter: grayscale(100%) contrast(1.05);
    -webkit-mask-image: radial-gradient(circle 140px at var(--mx, -300px) var(--my, -300px),
                        transparent 30%, black 75%);
    mask-image: radial-gradient(circle 140px at var(--mx, -300px) var(--my, -300px),
                transparent 30%, black 75%);
    pointer-events: none;
    z-index: 2;
    transition: -webkit-mask-position 0.05s linear, mask-position 0.05s linear;
}

@media (hover: none), (pointer: coarse) {
    .loupe-gallery .gallery-item .loupe-overlay { display: none; }
    .loupe-gallery .gallery-item img { filter: none; }
}

