/* ============================================
   FONTS - LEXEND & ATKINSON
   ============================================ */
@font-face {
    font-family: 'Lexend';
    src: url('../fonts/Lexend-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson';
    src: url('../fonts/AtkinsonHyperlegible-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atkinson';
    src: url('../fonts/AtkinsonHyperlegible-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Atkinson', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Cacher le curseur par défaut */
}

/* Titres avec Lexend Bold */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
}

/* Éléments en bold utilisent Atkinson Bold */
strong, b {
    font-family: 'Atkinson', sans-serif;
    font-weight: 700;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: oklch(84.23% 0.169 85.36);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}

/* Agrandir le curseur au survol des éléments interactifs */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
.nav-link:hover ~ .custom-cursor {
    width: 40px;
    height: 40px;
}

/* Alternative : utiliser une classe JavaScript */
.custom-cursor.hover {
    width: 40px;
    height: 40px;
}

/* Masquer le curseur personnalisé sur mobile */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header.menu-collapsed {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.menu-collapsed .nav-logo {
    color: #1a1a1a;
    opacity: 1;
}

.header.menu-collapsed .nav-logo svg {
    opacity: 1;
}

.header.menu-collapsed .nav-logo svg path {
    fill: #1a1a1a !important;
    stroke: #1a1a1a !important;
}

.header.menu-collapsed .nav-link-text {
    color: #000000;
}

.header.menu-collapsed .nav-audio .audio-icon {
    color: #000000;
}

.nav {
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.nav-logo:hover {
    color: oklch(84.23% 0.169 85.36);
    opacity: 1;
}

.nav-logo svg {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-logo:hover svg {
    opacity: 1;
}

.nav-logo svg path {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    transition: fill 0.3s ease, stroke 0.3s ease, opacity 0.3s ease;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    padding: 0.5rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .nav-menu {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem;
    margin-right: 0;
    overflow: hidden;
    font-weight: 700;
    font-size: 3.25rem;
    line-height: 3.875rem;
    text-decoration: none;
    transition: opacity 0.5s ease;
    display: block;
    font-family: 'Figtree', sans-serif;
}

@media (min-width: 640px) {
    .nav-link {
        padding: 1rem;
        font-weight: 700;
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

.nav-link-text {
    display: inline-block;
    color: #ffffff;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0.9;
}

@media (min-width: 640px) {
    .nav-link-text {
        opacity: 0.9;
        transform: translateX(0);
    }
}

/* Au survol d'un lien, il devient opaque et les autres restent transparents */
.nav-link:hover .nav-link-text {
    opacity: 1;
}

/* Réduire l'opacité des autres liens quand on survole un lien */
.nav-menu:hover .nav-link:not(:hover) .nav-link-text {
    opacity: 0.4;
}

/* Quand on survole le menu, le lien survolé reste opaque */
.nav-menu:hover .nav-link:hover .nav-link-text {
    opacity: 1;
}

.nav-lang {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.375rem;
    font-weight: 500;
}

@media (min-width: 640px) {
    .nav-lang {
        padding: 0.5rem 1rem;
        font-weight: 500;
    }
}

.nav-lang:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: oklch(84.23% 0.169 85.36);
}

.nav-lang:hover .nav-link-text {
    color: oklch(84.23% 0.169 85.36);
    opacity: 1;
}

/* Audio Toggle Button */
.nav-audio {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .nav-audio {
        padding: 1rem;
    }
}

.nav-audio .audio-icon {
    width: 20px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    color: #ffffff;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
    .nav-audio .audio-icon {
        width: 24px;
        height: 20px;
    }
}

.nav-audio:hover .audio-icon {
    opacity: 1;
}

.nav-audio.playing .audio-icon {
    opacity: 1;
}

/* Menu Button (appears when scrolling) */
.nav-menu-button {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-right: 0;
}

@media (min-width: 640px) {
    .nav-menu-button {
        padding: 1rem;
    }
}

.header.menu-collapsed .nav-menu-button {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-link {
    transition: opacity 0.3s ease, transform 0.3s ease, display 0s linear 0.3s;
}

/* Mobile Navigation */
@media (max-width: 639px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #000000;
    padding-top: 80px;
    padding-bottom: 4rem;
    overflow: hidden;
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #000000;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: #ffffff;
    text-align: left;
    max-width: 800px;
}

.hero-connecting {
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    font-family: 'Lexend', sans-serif;
    letter-spacing: -4px;
}

.hero-connecting-word {
    color: #ffffff;
}

.hero-category {
    color: oklch(84.23% 0.169 85.36);
    font-weight: 700;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
    font-family: 'Lexend', sans-serif;
}

.hero-with {
    color: #ffffff;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
}

.hero-target {
    color: oklch(84.23% 0.169 85.36);
    font-weight: 700;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
    font-family: 'Lexend', sans-serif;
}

.hero-dot {
    color: #ffffff;
}

.hero-client-link {
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-top: 1rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, color 0.3s ease;
    line-height: 1.2;
    font-family: 'Lexend', sans-serif;
}

.hero-client-link.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-client-link:hover {
    color: oklch(84.23% 0.169 85.36);
}

.hero-client {
    display: inline-block;
}

.hero-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.hero-arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2em;
}

.hero-arrow-icon-hidden {
    position: absolute;
    transform: translateX(-100%);
}

.hero-client-link:hover .hero-arrow-icon:first-child {
    transform: translateX(100%);
}

.hero-client-link:hover .hero-arrow-icon-hidden {
    transform: translateX(0);
}

/* Scroll Button */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
    animation: fadeIn 1s ease-out 1s both;
}

.hero-scroll-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: oklch(84.23% 0.169 85.36);
    border: none;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: lowercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Atkinson', sans-serif;
}

.hero-scroll-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.hero-scroll-button:active {
    transform: scale(0.95);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInWord {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scrollDot {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(18px);
        opacity: 0.3;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2rem, 7vw, 4rem);
    }
    
    .hero-text {
        font-size: clamp(1.125rem, 3.5vw, 2rem);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        padding-top: 100px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-container {
        padding: 0;
    }
    
    .hero-title {
        margin-bottom: 2rem;
    }
    
    .hero-text {
        margin-bottom: 2rem;
    }
    
    .hero-word {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1.125rem;
    }
    
    .hero-message {
        font-size: 0.875rem;
    }
}

/* ============================================
   INSPIRE SECTION
   ============================================ */
.inspire {
    position: relative;
    min-height: 100vh;
    z-index: 11;
    background-color: #000000;
}

.inspire-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    max-width: 71.5rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .inspire-content {
        padding: 2rem 6.25rem;
    }
}

@media (min-width: 1920px) {
    .inspire-content {
        padding: 2rem 10.25rem;
    }
}

.inspire-text-wrapper {
    width: 100%;
    overflow: hidden;
}

.inspire-text-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    white-space: pre-wrap;
    overflow: hidden;
}

.inspire-word {
    display: inline-block;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: clamp(3.9rem, 8.9vw, 7.65rem);
    line-height: clamp(5.3rem, 11.1vw, 10.2rem);
    color: #ffffff;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    margin-right: 0.5rem;
}

.inspire-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.inspire-word-yellow {
    color: oklch(84.23% 0.169 85.36);
}

.inspire-media-inline {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    vertical-align: middle;
    width: 14.0625rem;
    height: 9.375rem;
    margin: 0 1.375rem;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.inspire-media-inline.visible {
    opacity: 1;
    transform: translateY(0);
}

.inspire-media-right {
    margin-left: 1.375rem;
    margin-right: 0.5rem;
}

.inspire-media-left {
    margin-left: 0.5rem;
    margin-right: 1.375rem;
}

.inspire-inline-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inspire-media-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.inspire-media-carousel video,
.inspire-media-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Mobile styles for Inspire Section */
@media (max-width: 768px) {
    .inspire-content {
        padding: 1.5rem 1rem;
        min-height: auto;
    }
    
    .inspire-word {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        line-height: clamp(2rem, 7vw, 3.2rem);
        margin-right: 0.25rem;
    }
    
    .inspire-text-line {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .inspire-media-inline {
        width: 8rem;
        height: 5rem;
        margin: 0.5rem 0.75rem;
        flex-shrink: 0;
    }
    
    .inspire-media-right {
        margin-left: 0.75rem;
        margin-right: 0.25rem;
    }
    
    .inspire-media-left {
        margin-left: 0.25rem;
        margin-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .inspire-content {
        padding: 1rem 0.75rem;
    }
    
    .inspire-word {
        font-size: clamp(1.25rem, 5vw, 2rem);
        line-height: clamp(1.6rem, 6vw, 2.5rem);
        margin-right: 0.2rem;
    }
    
    .inspire-media-inline {
        width: 6rem;
        height: 4rem;
        margin: 0.4rem 0.5rem;
    }
    
    .inspire-media-right {
        margin-left: 0.5rem;
        margin-right: 0.2rem;
    }
    
    .inspire-media-left {
        margin-left: 0.2rem;
        margin-right: 0.5rem;
    }
}

/* ============================================
   WORK SECTION
   ============================================ */
.work {
    position: relative;
    min-height: 100vh;
    background-color: #ffffff;
    z-index: 12;
    padding-top: 20vh;
    padding-bottom: 4rem;
    margin-top: 0;
    transform: translateY(0);
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.work-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.work-title-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.work-view-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.view-toggle-button {
    width: 60px;
    height: 30px;
    border-radius: 15px;
    border: 1px solid #000000;
    background-color: #ffffff;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.view-toggle-button.active .toggle-indicator {
    left: 4px;
}

.view-toggle-button:not(.active) .toggle-indicator {
    left: calc(100% - 26px);
}

.toggle-indicator {
    position: absolute;
    top: 3px;
    width: 22px;
    height: 22px;
    background-color: #000000;
    border-radius: 50%;
    transition: left 0.3s ease;
}

.toggle-icon {
    display: none;
}

.view-toggle-label {
    font-size: 0.875rem;
    color: #000000;
    font-weight: 400;
}

.work-title {
    font-weight: 700;
    font-size: 3.25rem;
    line-height: 3.25rem;
    letter-spacing: -0.09rem;
    color: #000000;
    font-family: 'Lexend', sans-serif;
}

@media (min-width: 640px) {
    .work-title {
        font-size: 4.5rem;
        line-height: 4.5rem;
        letter-spacing: -0.09rem;
    }
}

.work-title-accent {
    display: block;
    color: oklch(84.23% 0.169 85.36);
    margin-top: 0.5rem;
}

.work-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: #4a5568;
    font-weight: 400;
    margin-top: 2rem;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    transition: grid-template-columns 0.3s ease;
}

.work-grid.list-view {
    grid-template-columns: 1fr;
}

.work-grid.list-view .work-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.work-grid.list-view .work-card-image {
    aspect-ratio: 16 / 9;
    max-width: 100%;
    height: auto;
}

.work-grid.list-view .work-card-overlay {
    display: none;
}


.work-card-content-list {
    display: none;
}

.work-grid.list-view .work-card-content-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
}

.work-grid.list-view .work-card-header-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.work-grid.list-view .work-card-brand-list {
    font-size: 0.875rem;
    font-weight: 400;
    color: #1a1a1a;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.work-grid.list-view .work-card-title-list {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    font-family: 'Lexend', sans-serif;
}

.work-grid.list-view .work-card-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.work-grid.list-view .work-card-category-list {
    font-size: 0.75rem;
    font-weight: 400;
    color: #1a1a1a;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.work-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: none;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card:hover {
    transform: translateY(-4px);
}

.work-card-image {
    width: 100%;
    aspect-ratio: 735 / 673; /* Ratio 735 x 673 pixels */
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.work-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eee1bd 0%, #fdc117 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 500;
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.work-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.work-card-brand {
    font-size: 0.875rem;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.work-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    font-family: 'Lexend', sans-serif;
}

.work-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.work-card-category {
    font-size: 0.75rem;
    font-weight: 400;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .work {
        padding-top: 15vh;
    }
    
    .work-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-description {
        margin-top: 1rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .work-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo {
    width: 163px;
    height: 40px;
    opacity: 0.9;
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.loader-progress {
    width: 200px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    background-color: #DEAD2A;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: loaderProgress 2s ease-in-out infinite;
}

@keyframes loaderProgress {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 70%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(0);
    }
}

.loader-text {
    color: #ffffff;
    font-family: 'Atkinson', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

body.loading {
    overflow: hidden;
}

body.loaded {
    overflow: auto;
}
