body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    color: #E2E2E2;
    background-color: #111111;
}
/* Only show custom cursor on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
}
body.modal-open, body.mobile-menu-open {
    overflow: hidden;
}
/* Canvas for smoke cursor */
#smoke-cursor-canvas, #transition-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#smoke-cursor-canvas { z-index: 1000; }
#transition-canvas { z-index: 9999; display: none; }


#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0.7;
}
.hero-section > .container {
    z-index: 10;
}
 /* Mobile fallback hero background */
 @media (max-width: 768px) {
    .hero-section {
        background-image: radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 40%);
    }
}
/* This rule initially hides elements for the animation */
.gsap-logo, .gsap-nav-item, .gsap-hero-line, .gsap-hero-text, .gsap-hero-cta, .gsap-scroll-indicator, .gsap-reveal, .gsap-service-card, .gsap-client-logo, .gsap-parallax-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
}
/* This sets up the slide-in text effect */
.gsap-hero-line {
    overflow: hidden;
}
.gsap-hero-line > span {
    display: inline-block;
    transform: translateY(100%);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* UPDATED PARALLAX SECTION */
#parallax-video-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
#parallax-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
#parallax-video-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,0.7);
    z-index: 2;
}
#parallax-video-section .container {
    position: relative;
    z-index: 3;
}


/* Styles for the image slideshow */
.slide { /* This applies to the About section slideshow */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active { /* This applies to the About section slideshow */
    opacity: 1;
}

/* Styles for split text animation */
.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.split-word > span {
    display: inline-block;
    transform: translateY(110%);
}

/* Vignette effect for gallery (About Section) */
.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

/* REVISED STYLES for Interactive Service Cards */
.service-card-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    z-index: 5; /* Ensure canvas is behind text/arrow */
}
.gsap-service-card-inner.is-active .service-card-canvas {
    opacity: 0.6;
}
#services-grid.is-hovered .gsap-service-card:not(.is-active) .gsap-service-card-inner {
    opacity: 0.5;
    /* transform: scale(0.95); // Removed to allow hover scale */
}
.gsap-service-card-inner {
    position: relative; /* Needed for arrow positioning */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.5s ease-out, box-shadow 0.5s ease-out;
}
.gsap-service-card-inner.is-active {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.2);
}

/* NEW STYLES for Header */
#header {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.4s ease, backdrop-filter 0.4s ease;
}
#header.header-scrolled {
    background-color: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#header.header-hidden {
    transform: translateY(-100%);
}

/* NEW STYLES for Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
}

/* --- STYLES FOR WORKS V6 (HOVER EFFECT) --- */
.work-project {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    align-items: center;
}
.work-project-media {
    grid-column: 1 / span 7;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #1a1a1a;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.work-project:hover .work-project-media {
    transform: scale(1.03) rotate(2deg);
}
.work-project.align-right:hover .work-project-media {
    transform: scale(1.03) rotate(-2deg);
}

.work-project-info {
    grid-column: 9 / span 3;
    text-align: left;
}
.work-project.align-right .work-project-media {
    grid-column: 6 / span 7;
}
.work-project.align-right .work-project-info {
    grid-column: 3 / span 3;
    text-align: right;
}
.work-project-media video,
.work-project-media .pillowfund-slideshow {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.work-project-media.aspect-landscape {
     aspect-ratio: 16/9;
}
.work-project-media.aspect-portrait {
     aspect-ratio: 9/16;
     max-width: 350px;
     margin: 0 auto;
}
.work-project-media.aspect-square {
    aspect-ratio: 1/1;
    max-width: 500px;
    margin: 0 auto;
}
.work-project.align-right .work-project-media.aspect-portrait,
.work-project.align-right .work-project-media.aspect-square {
    margin: 0 auto;
}
.work-project-media .pillowfund-slideshow img {
     position: absolute;
     top: 0; left: 0; width: 100%; height: 100%;
     object-fit: cover;
     display: none;
}
.work-project-media .pillowfund-slideshow img.active {
    display: block;
}
@media (max-width: 768px) {
    .work-project, .work-project.align-right {
        grid-template-columns: 1fr;
    }
    .work-project-media, .work-project.align-right .work-project-media {
        grid-column: 1 / -1;
        margin-bottom: 2rem;
    }
    .work-project-media.aspect-portrait {
        max-width: 300px;
    }
    .work-project-media.aspect-square {
        max-width: 350px;
    }
    .work-project-info, .work-project.align-right .work-project-info {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* --- Service Card CTA Enhancements --- */
.service-card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: rgba(230, 230, 230, 0.4);
    transition: transform 0.4s ease, color 0.4s ease;
    transform: translateX(0);
}
.gsap-service-card:hover .gsap-service-card-inner {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.gsap-service-card:hover .service-card-arrow {
    color: rgba(249, 115, 22, 0.8);
    transform: translateX(5px);
}
.gsap-service-card-inner .relative.z-10 {
    position: relative;
    z-index: 10;
}

/* --- Film Strip Client Scroller --- */
#clients .client-scroller {
    margin-top: 10rem; /* Increased top margin */
    padding: 2rem 0; /* Adjusted vertical padding */
    -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.client-scroller-inner {
    display: flex;
    width: fit-content;
    /* Apply ONLY scroll animation */
    animation: scroll-only 80s linear infinite;
    will-change: transform;
    /* Wobble animation removed from here */
}

.film-frame {
    flex-shrink: 0;
    width: 250px;
    height: 180px;
    background-color: #0a0a0a;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 0 5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    /* Apply wobble animation HERE */
    animation: wobble 8s ease-in-out infinite;
    will-change: transform;
}

.logo-container {
    width: 100%;
    height: calc(100% - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.logo-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0.9) grayscale(20%);
    transition: filter 0.3s ease;
}

.film-frame:hover .logo-container img {
    filter: brightness(1) grayscale(0%);
}

.perforations {
    width: 100%;
    height: 20px;
    background-color: #1a1a1a;
    background-image:
        radial-gradient(circle at 30px 10px, #0a0a0a 5px, transparent 5.5px),
        radial-gradient(circle at 70px 10px, #0a0a0a 5px, transparent 5.5px),
        radial-gradient(circle at 110px 10px, #0a0a0a 5px, transparent 5.5px),
        radial-gradient(circle at 150px 10px, #0a0a0a 5px, transparent 5.5px),
        radial-gradient(circle at 190px 10px, #0a0a0a 5px, transparent 5.5px),
        radial-gradient(circle at 230px 10px, #0a0a0a 5px, transparent 5.5px);
    background-repeat: repeat-x;
    background-size: 250px 20px;
    background-position: center center;
}
.perforations::before,
.perforations::after {
     content: none;
}

/* Wobble Animation Keyframes (Emphasizing Downward) */
@keyframes wobble {
    0%, 100% {
      transform: translateY(0) rotate(0deg);
    }
    25% {
      transform: translateY(8px) rotate(0.5deg);
    }
    50% {
       transform: translateY(0) rotate(0deg);
    }
     75% {
       transform: translateY(-2px) rotate(-0.5deg);
    }
}

/* Horizontal scroll keyframes */
@keyframes scroll-only {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* --- END Film Strip --- */


/* --- START: Phase 4 Accessibility Additions --- */
@media (prefers-reduced-motion: reduce) {
  .gsap-logo, .gsap-nav-item, .gsap-hero-line, .gsap-hero-text, .gsap-hero-cta, .gsap-scroll-indicator, .gsap-reveal, .gsap-service-card, .gsap-client-logo, .gsap-parallax-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .gsap-hero-line > span {
    transform: none !important;
  }
  .gsap-scroll-indicator {
     animation: none !important;
  }
  /* Keep scroll only */
  .client-scroller-inner {
     animation: scroll-only 80s linear infinite !important;
  }
  /* Disable wobble on frames */
   .film-frame {
       animation: none !important;
   }
  .work-project:hover .work-project-media,
  .work-project.align-right:hover .work-project-media {
    transform: none !important;
  }
  .gsap-service-card:hover .gsap-service-card-inner {
    transform: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* 2. Add Keyboard Focus Indicators */
a:focus-visible, button:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
    border-radius: 2px;
}
a.rounded-full:focus-visible {
    outline-offset: 4px;
}
a.gsap-service-card:focus-visible {
    outline: none;
}
a.gsap-service-card:focus-visible .gsap-service-card-inner {
    outline: 2px solid #F97316;
    outline-offset: 4px;
    border-radius: 1rem;
}
/* --- END: Phase 4 Accessibility Additions --- */
