/*
Theme Name: Allset Barba
Theme URI: https://allset.agency
Author: Allset Creative Agency
Author URI: https://allset.agency
Description: Modern WordPress theme powered by Barba.js for app-like page transitions, smooth scrolling, and immersive animations. Designed for creative agencies and event production companies.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allset-barba
Tags: portfolio, one-column, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
# CSS Custom Properties (Design Tokens)
--------------------------------------------------------------*/
:root {
    /* Colors - 'New Rising' Palette (Earthy & Deep) - Magician/Engineer Mode */
    --color-bg-primary: #050505;
    /* Deepest Graphite (OLED friendly) requested by user */
    --color-bg-secondary: #0f1219;
    /* Slightly lighter for contrast */
    --color-bg-tertiary: #1a1e29;

    --color-accent-copper: #b07054;
    --color-accent-sand: #d1b79e;
    --color-accent-tech: #00FF94;
    /* Acid Green for tech cursor/hovers as requested */

    --color-text-primary: #E0E0E0;
    /* Broken White */
    --color-text-secondary: #94a3b8;
    /* Cool Grey */
    --color-text-mono: #666666;
    /* Darker Grey for specs */
    --color-text-muted: rgba(255, 255, 255, 0.4);

    /* Gradients */
    --color-bg-gradient: linear-gradient(to bottom, #0f1219, #050505);
    --color-accent-gradient: linear-gradient(135deg, #d1b79e 0%, #b07054 100%);
    --color-dark-gradient: linear-gradient(135deg, #1a1e29 0%, #050505 100%);

    /* Glassmorphism */
    --color-bg-glass: rgba(15, 18, 25, 0.7);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-display: 'Unbounded', 'Manrope', sans-serif;
    /* Wide Sans */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Space Mono', 'JetBrains Mono', monospace;
    /* Tech Specs */

    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
    --text-hero: clamp(3.5rem, 2rem + 7.5vw, 8rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --sidebar-width: 90px;
    --sidebar-width-collapsed: 90px;
    --container-max: 1600px;
    /* Wider for cinematic feel */
    --content-max: 900px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    --duration-slower: 0.8s;

    /* Effects */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 32px;
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* Z-index layers */
    --z-noise: -1;
    --z-base: 1;
    --z-nav: 100;
    --z-cursor: 900;
    --z-transition: 950;
    --z-preloader: 1000;
}

/*--------------------------------------------------------------
# Noise Overlay (Grain)
--------------------------------------------------------------*/
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: var(--z-noise);
    opacity: 0.05;
    background: repeating-radial-gradient(#000 0 0.0001%, #fff 0 0.0002%) 50% 0/2500px 2500px,
        repeating-conic-gradient(#000 0 0.0001%, #fff 0 0.0002%) 60% 60%/2500px 2500px;
    background-blend-mode: difference;
    filter: contrast(150%) brightness(1000%);
    mix-blend-mode: overlay;
}

/*--------------------------------------------------------------
# Reset & Base
--------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: auto;
    /* Lenis handles smooth scroll */
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/*--------------------------------------------------------------
# Typography - Magician / Engineer
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.font-mono,
.specs,
.meta-data {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--color-text-mono);
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 5vw, 6rem);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
}

h3 {
    font-size: clamp(2rem, 3vw, 3.5rem);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

.text-gradient {
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*--------------------------------------------------------------
# Layout - Barba Structure
--------------------------------------------------------------*/
[data-barba="wrapper"] {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

[data-barba="container"] {
    flex: 1;
    margin-left: 0;
    /* Changed from var(--sidebar-width) to 0 for floating sidebar */
    min-height: 100vh;
    position: relative;
    padding-left: 0;
    /* Content goes full width under the floating sidebar */
    transition: margin-left var(--duration-normal) var(--ease-out-expo);
}

@media (max-width: 1024px) {
    [data-barba="container"] {
        margin-left: 0;
        padding-left: 0;
        padding-bottom: 80px;
        /* Space for mobile nav */
    }
}

/*--------------------------------------------------------------
# Sidebar Navigation (Iconic Mode)
--------------------------------------------------------------*/
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: transparent;
    /* Fully transparent container */
    z-index: var(--z-nav);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-8) 0;
    transition: transform var(--duration-slow) var(--ease-out-expo);
    border: none;
    /* No border for the floating look */
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

.sidebar-nav>* {
    pointer-events: auto;
    /* Re-enable clicks on content */
}

.sidebar-nav__logo {
    margin-bottom: var(--space-8);
    padding: 0;
    display: flex;
    justify-content: center;
}

.sidebar-nav__logo img,
.sidebar-nav__logo svg {
    height: 32px;
    width: auto;
}

/* Menu Container */
.sidebar-nav__menu {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: var(--space-8);
}

.sidebar-nav__menu .menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Menu Item Wrapper */
.sidebar-nav__menu .menu-item {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    /* Force reset margins */
}

/* The Link (Square) */
.sidebar-nav__menu .menu-item a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    /* Glassmorphism for individual icons */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 2;
    text-decoration: none;
    /* Ensure no underline */
    font-size: 0;
    /* Hide any raw text */
}

/* Ensure SVG icons act correctly */
.sidebar-nav__menu .menu-item a svg.nav-icon {
    width: 20px;
    height: 20px;
    display: block;
    /* Ensure it's not inline */
    stroke-width: 2px;
}

/* Hide text label if it's not wrapped in .nav-label (fallback safety) */
.sidebar-nav__menu .menu-item a {
    font-size: 0;
    /* Hide any raw text */
}

/* Active State (White Square) */
.sidebar-nav__menu .menu-item.current-menu-item a {
    color: #000;
    background: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    border-color: #ffffff;
    /* Remove border visibility on active */
}

.sidebar-nav__menu .menu-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Floating Label (Tooltip) - EXPLICITLY ABSOLUTE */
.nav-label {
    position: absolute;
    left: 60px;
    /* Fixed distance from icon center */
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    /* Hide partially from layout */
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
}

/* Tooltip connecting line/arrow effect */
.nav-label::before {
    content: '';
    position: absolute;
    left: -15px;
    /* Extend towards icon */
    top: 50%;
    width: 15px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    display: none;
    /* Hide line by default, minimalist */
}

/* Show Tooltip on Hover */
.menu-item:hover .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Adding the corner brackets effect for active item label in the future if needed, 
   but for now clean floating label is closer to the spirit of "minimal tech". */


.sidebar-nav__footer {
    padding-bottom: var(--space-8);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.sidebar-nav__footer:hover {
    opacity: 1;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .sidebar-nav {
        transform: translateX(-100%);
        width: 100%;
        max-width: 320px;
    }

    .sidebar-nav.is-open {
        transform: translateX(0);
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: var(--color-bg-glass);
        backdrop-filter: blur(var(--blur-lg));
        -webkit-backdrop-filter: blur(var(--blur-lg));
        border-top: 1px solid var(--color-border);
        z-index: var(--z-nav);
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 var(--space-4);
    }

    .mobile-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-1);
        padding: var(--space-2);
        color: var(--color-text-secondary);
        transition: color var(--duration-fast);
    }

    .mobile-nav__item.is-active,
    .mobile-nav__item:hover {
        color: var(--color-text-primary);
    }

    .mobile-nav__icon {
        width: 24px;
        height: 24px;
    }

    .mobile-nav__label {
        font-size: var(--text-xs);
    }
}

@media (min-width: 1025px) {
    .mobile-nav {
        display: none;
    }
}

/*--------------------------------------------------------------
# Custom Cursor
--------------------------------------------------------------*/
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--color-text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width var(--duration-normal) var(--ease-out-quart),
        height var(--duration-normal) var(--ease-out-quart);
    opacity: 0;
}

.cursor-follower.is-visible {
    opacity: 1;
}

.cursor-follower.is-hovering {
    width: 60px;
    height: 60px;
}

.cursor-follower.is-clicking {
    width: 15px;
    height: 15px;
}

@media (pointer: coarse) {
    .cursor-follower {
        display: none;
    }
}

/*--------------------------------------------------------------
# Transition Curtain
--------------------------------------------------------------*/
.transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    z-index: var(--z-transition);
    transform: translateY(100%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-curtain__content {
    text-align: center;
}

.transition-curtain__logo {
    width: 80px;
    height: auto;
    opacity: 0;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg-primary);
    z-index: var(--z-preloader);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
}

.preloader__counter {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader__bar {
    width: 200px;
    height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.preloader__progress {
    height: 100%;
    width: 0%;
    background: var(--color-accent-gradient);
    transition: width var(--duration-fast) linear;
}

.preloader.is-loaded {
    pointer-events: none;
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation utilities */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    /* transform: translateY(100%);  - handled by JS to avoid FOUC blocking content */
}

.fade-up {
    opacity: 1;
    /* Changed from 0 to 1 for safety */
    transform: none;
    /* Changed from translateY(30px) */
}

html.js-loading .fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in {
    opacity: 1;
}

.scale-in {
    opacity: 1;
}

/*--------------------------------------------------------------
# Vibe Spectrum Section (New)
--------------------------------------------------------------*/
.vibe-spectrum {
    position: relative;
    padding: var(--space-20) 0;
    z-index: 2;
    /* Above backgrounds */
}

.spectrum-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.spectrum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 1024px) {
    .spectrum-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

.vibe-card {
    position: relative;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    transition: none;
    overflow: visible;
}

.vibe-card:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
}

/* Card content styling */
.vibe-card .card-inner {
    position: relative;
    z-index: 2;
}

.vibe-card .card-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #C4753A;
    margin-bottom: 20px;
    opacity: 1;
    letter-spacing: 0.1em;
}

.vibe-card .card-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #fff;
    text-transform: uppercase;
}

.vibe-card .card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 280px;
}

/* List Header Styling */
.list-header-wrapper {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    margin-bottom: var(--space-10);
    padding-top: var(--space-12);
    border-top: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.list-header-wrapper::before {
    content: '';
    display: block;
    width: 4px;
    height: 12px;
    background: linear-gradient(180deg, #C4753A 0%, #D4935B 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.list-header-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/*--------------------------------------------------------------
# Vibe Moodboard (Siatka Imersyjna)
--------------------------------------------------------------*/
.vibe-moodboard {
    position: relative;
    padding-bottom: var(--space-32);
    z-index: 5;
}

.mood-grid-wrapper {
    display: flex;
    justify-content: space-between;
    gap: var(--space-6);
    padding: 0 var(--space-6);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.mood-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    flex: 1;
}

/* Offset first items in columns to create stagger */
.mood-column.col-2 {
    margin-top: var(--space-16);
}

.mood-column.col-3 {
    margin-top: var(--space-8);
}

.mood-item {
    position: relative;
    width: 100%;
    margin-bottom: var(--space-8);
    cursor: pointer;
}

/* Click indicator badge */
.mood-item::before {
    content: 'ZOBACZ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.mood-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Image Wrapper */
.mood-img {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
}

.mood-img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3/4;
    /* Vertical portrait mode */
    object-fit: cover;
    transition: transform 0.7s var(--ease-out-quart), filter 0.5s ease;
    filter: grayscale(80%) contrast(110%);
}

.mood-item.wide .mood-img img {
    aspect-ratio: 16/9;
    /* Cinematic wide shots */
}

/* Hover: Color restore & Zoom */
.mood-item:hover .mood-img img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(100%);
}


/* Gradient Fade at the bottom of the moodboard for smooth exit */
.vibe-moodboard::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent, #1C222E);
    pointer-events: none;
    z-index: 10;
}

/* Overlay Info - Always Visible */
.mood-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-6);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 90%);
    opacity: 1;
    /* Always visible */
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    pointer-events: none;
    height: 60%;
    /* Increased height for better gradient spread */
}

/* Hover effect now just subtly lifts the image, overlay stays */
.mood-item:hover .mood-overlay {
    opacity: 1;
}

.mood-client {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--color-accent-tech);
    margin-bottom: var(--space-2);
    letter-spacing: 0.1em;
}

.mood-title {
    font-size: var(--text-xl);
    line-height: 1.1;
    margin-bottom: var(--space-2);
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mood-tags {
    display: flex;
    gap: var(--space-2);
}

.mood-tags span {
    font-size: 10px;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 100px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
    .mood-grid-wrapper {
        flex-direction: column;
        gap: var(--space-8);
    }

    .mood-column {
        margin-top: 0 !important;
    }

    .mood-img img,
    .mood-item.wide .mood-img img {
        aspect-ratio: 4/5;
    }

    .mood-item {
        margin-bottom: var(--space-4);
    }

    /* Fixed visibility on mobile */
    .mood-overlay {
        position: relative;
        opacity: 1;
        background: transparent;
        padding: var(--space-4) 0;
        height: auto;
    }

    .mood-img img {
        filter: grayscale(0%);
    }

    .mood-client {
        color: var(--color-accent-copper);
    }
}

.portfolio-page {
    background-color: #1C222E !important;
}

/*--------------------------------------------------------------
# Concept Modal
--------------------------------------------------------------*/
.concept-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 20000;
    /* Increased to be above Nav (10000) */
    /* Above everything */
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.concept-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-close-btn {
    position: absolute;
    top: 100px;
    right: 40px;
    z-index: 102;
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 2px;
    padding: 10px;
}

.modal-close-btn .close-icon {
    font-size: 18px;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--color-accent-copper);
}

.modal-content-wrapper {
    position: relative;
    z-index: 101;
    width: 90%;
    max-width: 1400px;
    height: 80vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    overflow: hidden;
}

/* Modal Image Column */
.modal-media-col {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.modal-img-target {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.concept-modal.active .modal-img-target {
    opacity: 1;
    transform: scale(1);
}

/* Modal Info Column */
.modal-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.concept-modal.active .modal-info-col {
    opacity: 1;
    transform: translateY(0);
}

.modal-client-target {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-accent-copper);
    margin-bottom: 20px;
    display: block;
    letter-spacing: 2px;
}

.modal-title-target {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.9;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.modal-desc-target {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin-bottom: 40px;
}

.modal-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-tag-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 100px;
    text-transform: uppercase;
}

/* Responsive Modal */
@media (max-width: 1024px) {
    .modal-content-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        gap: 30px;
        padding-top: 80px;
        overflow-y: auto;
        /* Allow scroll for mobile */
        max-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .modal-media-col {
        height: 40vh;
        flex-shrink: 0;
    }

    .modal-info-col {
        padding-right: 0;
        padding-bottom: 60px;
        justify-content: flex-start;
    }

    .modal-close-btn {
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 40px;
        padding: 8px 16px;
    }
}

/*--------------------------------------------------------------
# Cookie Banner
--------------------------------------------------------------*/
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: rgba(28, 34, 46, 0.85);
    /* Deep Graphite with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    z-index: 19000;
    /* Below Modal (20000) but high */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(232, 224, 213, 0.8);
    margin: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-btn {
    align-self: flex-end;
    background: var(--accent);
    color: #1C222E;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(198, 123, 92, 0.3);
}

.cookie-btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    margin-right: 10px;
}

.cookie-btn.outline:hover {
    border-color: #fff;
    color: #fff;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 20px;
    }
}