/* ==========================================================================
   CORE VARIABLES & BASE STYLES
   ========================================================================== */

@font-face {
    font-family: 'GT Super Display Light';
    src: url('GT Super Display Light/GT Super Display Light.woff2') format('woff2'),
         url('GT Super Display Light/GT Super Display Light.woff') format('woff'),
         url('GT Super Display Light/GT Super Display Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-obsidian: #050505;
    --color-charcoal: #0E0E0E;
    --color-bronze-black: #1A150E;
    --color-signature-gold: #C9A227;
    --color-soft-gold: #8B6F2D;
    --color-champagne: #EADDB7;
    
    --font-display: 'GT Super Display Light', Georgia, "Times New Roman", serif;
    --font-sans: 'Inter', Arial, sans-serif;
    
    --ease-cinematic: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-snap: cubic-bezier(0.1, 0.9, 0.2, 1);

    /* ---- Image tuning (edit these if a crop needs adjusting) ---- */
    --pos-anand: center 20%;              /* portrait focus: 20% keeps faces near the top */
    --pos-antony: center 20%;
    --pos-eldho: center 20%;
}

body {
    background-color: var(--color-obsidian);
    color: var(--color-champagne);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar - Minimal */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-obsidian); }
::-webkit-scrollbar-thumb { background: #333; }
::-webkit-scrollbar-thumb:hover { background: var(--color-soft-gold); }

/* Utility Classes */
.mask-image-left {
    mask-image: linear-gradient(to right, transparent, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
}

.editorial-text p {
    text-indent: 0;
    margin-bottom: 2em;
}

/* ==========================================================================
   CUSTOM CINEMATIC CURSOR
   (z-index sits above the preloader so the cursor stays visible over the X)
   ========================================================================== */
.custom-cursor-enabled,
.custom-cursor-enabled * {
    cursor: none !important;
}

.cinematic-cursor {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background-color: var(--color-champagne);
    pointer-events: none;
    z-index: 1000001;
    transform: translate3d(calc(var(--mouse-x, -100px) - 50%), calc(var(--mouse-y, -100px) - 50%), 0);
    transition: opacity 0.3s;
}

.cinematic-cursor-follower {
    position: fixed; top: 0; left: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.5); /* Signature Gold subtle */
    pointer-events: none;
    z-index: 1000000;
    transform: translate3d(calc(var(--follower-x, -100px) - 50%), calc(var(--follower-y, -100px) - 50%), 0);
    transition: opacity 0.3s, width 0.3s var(--ease-cinematic), height 0.3s var(--ease-cinematic), background-color 0.3s var(--ease-cinematic), border-color 0.3s ease;
}

.cinematic-cursor-follower.cursor-hover {
    width: 48px; height: 48px;
    background-color: rgba(201, 162, 39, 0.05);
    border-color: rgba(201, 162, 39, 0.8);
}

.cinematic-cursor.cursor-hidden,
.cinematic-cursor-follower.cursor-hidden {
    opacity: 0 !important;
}


/* ==========================================================================
   ORGANIC INDEPENDENT FLOATING ANIMATIONS
   ========================================================================== */
.float-1 { animation: organicFloat1 8s ease-in-out infinite; will-change: transform; }
.float-2 { animation: organicFloat2 7.5s ease-in-out infinite 0.5s; will-change: transform; }
.float-3 { animation: organicFloat3 9s ease-in-out infinite 1.2s; will-change: transform; }
.float-4 { animation: organicFloat4 8.5s ease-in-out infinite 0.8s; will-change: transform; }
.float-5 { animation: organicFloat1 7s ease-in-out infinite 1.5s; will-change: transform; }
.float-6 { animation: organicFloat2 9.5s ease-in-out infinite 0.3s; will-change: transform; }

@keyframes organicFloat1 {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-4px) rotate(0.1deg); }
}
@keyframes organicFloat2 {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-3px) rotate(-0.15deg); }
}
@keyframes organicFloat3 {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(0.2deg); }
}
@keyframes organicFloat4 {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-2px) rotate(-0.1deg); }
}


/* ==========================================================================
   CINEMATIC PRELOADER CONTAINER & FILM MARKINGS (UNCHANGED VISUALS)
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    background-color: transparent;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: border-color 0.3s ease;
}

.preloader.exiting {
    border-color: transparent;
}

/* Applied by script.js when the preloader has finished or been closed:
   guarantees nothing is left on screen or blocking clicks. */
.preloader.pl-closed {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.film-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    transition: opacity 0.2s ease;
}

.pl-borders {
    position: absolute; inset: 15px; border: 1px solid rgba(212, 175, 55, 0.3); pointer-events: none; z-index: 3;
    transition: opacity 0.2s ease;
}
.pl-reg-mark {
    position: absolute; width: 15px; height: 15px; border: 2px solid #d4af37;
}
.pl-reg-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.pl-reg-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.pl-reg-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.pl-reg-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.pl-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.1s ease;
    z-index: 4;
}

.pl-stage.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.preloader.exiting .pl-stage,
.preloader.exiting .pl-borders,
.preloader.exiting .film-grain {
    opacity: 0 !important;
    visibility: hidden;
}

.frame-jump { animation: mechanicalJump 1s steps(1); }
@keyframes mechanicalJump {
    0% { transform: translateY(0); }
    5% { transform: translateY(-1.5vh); }
    10% { transform: translateY(0); }
}

/* ==========================================================================
   PRELOADER SKIP / CLOSE BUTTON (X)
   Sits above every preloader layer (stages z:4, flash z:5).
   Responsive offsets use clamp() and respect device safe areas (notches).
   ========================================================================== */
.pl-close {
    position: absolute;
    z-index: 10;
    top: calc(env(safe-area-inset-top, 0px) + clamp(1.75rem, 4vw, 2.75rem));
    right: calc(env(safe-area-inset-right, 0px) + clamp(1.75rem, 4vw, 2.75rem));
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-champagne);
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* Invisible extra hit area so the small button is easy to tap */
.pl-close::before {
    content: '';
    position: absolute;
    inset: -0.4rem;
    border-radius: 50%;
}

.pl-close svg {
    display: block;
    transition: transform 0.4s var(--ease-cinematic);
}

.pl-close:hover,
.pl-close:focus-visible {
    color: var(--color-signature-gold);
    border-color: var(--color-signature-gold);
    background: rgba(201, 162, 39, 0.08);
}
.pl-close:hover svg { transform: rotate(90deg); }
.pl-close:focus-visible { outline: 1px solid var(--color-signature-gold); outline-offset: 3px; }

/* Hide the button while the shutter exit plays */
.preloader.exiting .pl-close {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   PRELOADER COUNTDOWN (3, 2, 1) (UNCHANGED)
   ========================================================================== */
.pl-cd-frame {
    position: relative; width: 50vmin; height: 50vmin; max-width: 350px; max-height: 350px;
    display: flex; align-items: center; justify-content: center;
}
.pl-cd-ring {
    position: absolute; width: 100%; height: 100%;
    border: 3px dashed #d4af37; border-radius: 50%; opacity: 0.8;
}
.pl-cd-ring-inner {
    position: absolute; width: 85%; height: 85%;
    border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 50%;
}
.pl-cd-cross-h { position: absolute; width: 110%; height: 1px; background: #d4af37; opacity: 0.5; }
.pl-cd-cross-v { position: absolute; width: 1px; height: 110%; background: #d4af37; opacity: 0.5; }
.pl-cd-num {
    font-family: 'Cinzel', serif; font-size: 20vmin; font-weight: 700; line-height: 1;
    z-index: 2; color: #d4af37; background: #050505; padding: 0 40px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
.pl-cd-meta {
    position: absolute; font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.3em; color: #d4af37; text-transform: uppercase;
    background: #050505; padding: 2px 10px; opacity: 0.7;
}

/* ==========================================================================
   2. LIGHTS, CAMERA, ACTION SCENES (UNCHANGED)
   ========================================================================== */
.pl-comp { display: flex; flex-direction: column; align-items: center; gap: 50px; position: relative; }
.pl-word {
    font-family: 'Cinzel', serif; font-size: 10vmin; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; z-index: 2; position: relative; line-height: 1;
    color: #d4af37; text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); background: #050505; padding: 0 20px;
}

.pl-fresnel {
    position: relative; width: 140px; height: 120px; border: 3px solid #d4af37;
    border-radius: 10px 10px 0 0; border-bottom: none; display: flex; justify-content: center; align-items: flex-end;
    background: #050505; z-index: 2;
}
.pl-fresnel-lens {
    width: 80%; height: 40px; border: 3px solid #d4af37; border-radius: 50% 50% 0 0;
    border-bottom: none; position: relative; background: #050505; z-index: 2;
}
.pl-fresnel-stand { position: absolute; bottom: -50px; width: 6px; height: 50px; background: #d4af37; }
.pl-fresnel-beam {
    position: absolute; top: -200px; left: -140px; right: -140px; height: 200px;
    background: linear-gradient(to top, rgba(212,175,55,0.01), rgba(212,175,55,0.15));
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform-origin: bottom center; transform: scaleY(0); opacity: 0; z-index: 1;
}
.pl-stage.active .pl-fresnel-beam { animation: beamOn 0.1s forwards 0.2s; }
@keyframes beamOn { to { transform: scaleY(1); opacity: 1; } }

.pl-cinema-cam { position: relative; width: 180px; height: 100px; border: 3px solid #d4af37; display: flex; align-items: center; background: #050505; z-index: 2;}
.pl-cam-lens { position: absolute; right: -50px; width: 50px; height: 70px; border: 3px solid #d4af37; border-left: none; background: #050505; }
.pl-cam-lens::after { content: ''; position: absolute; right: 10px; top: 10px; bottom: 10px; width: 3px; background: #d4af37; }
.pl-cam-mag-1 { position: absolute; top: -45px; left: 20px; width: 60px; height: 60px; border: 3px solid #d4af37; border-radius: 50%; background: #050505; }
.pl-cam-mag-2 { position: absolute; top: -45px; left: 90px; width: 60px; height: 60px; border: 3px solid #d4af37; border-radius: 50%; background: #050505; }
.pl-cam-handle { position: absolute; top: -20px; right: 20px; width: 40px; height: 10px; border: 3px solid #d4af37; border-bottom: none; }
.pl-cam-rec { position: absolute; bottom: 15px; left: 15px; width: 12px; height: 12px; background: #D33F3F; border-radius: 50%; opacity: 0; }
.pl-stage.active .pl-cam-rec { animation: recBlink 0.4s infinite steps(2) 0.1s; }
@keyframes recBlink { 50% { opacity: 1; } }

.pl-clapper { position: relative; width: 220px; height: 160px; border: 3px solid #d4af37; display: flex; flex-direction: column; background: #050505; z-index: 2; }
.pl-clapper-top {
    width: 100%; height: 35px; border-bottom: 3px solid #d4af37;
    background: repeating-linear-gradient(45deg, #d4af37, #d4af37 15px, #050505 15px, #050505 30px);
    transform-origin: bottom left; transform: rotate(-25deg); transition: transform 0.1s var(--ease-snap);
}
.pl-clapper-board { flex: 1; padding: 15px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.pl-clapper-line { border-bottom: 2px solid #d4af37; width: 100%; align-self: end; opacity: 0.6; }
.pl-stage.active .pl-clapper-top { animation: clapClose 0.1s forwards 0.8s; }
@keyframes clapClose { to { transform: rotate(0); } }

/* ==========================================================================
   3. FINAL FILM FLASH TRANSITION (UNCHANGED)
   ========================================================================== */
.pl-flash {
    position: absolute;
    inset: 0;
    background: #FFFFFF;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    visibility: hidden;
}
.pl-flash.flash-trigger {
    visibility: visible;
    animation: pureWhiteFlash 0.3s steps(2) forwards;
}
@keyframes pureWhiteFlash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

.pl-shutter {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    z-index: 1;
}
.pl-shutter-panel {
    flex: 1;
    background: #050505;
    transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}
.pl-shutter-left { transform-origin: left; transform: scaleX(1); }
.pl-shutter-right { transform-origin: right; transform: scaleX(1); }
.preloader.exiting .pl-shutter-panel { transform: scaleX(0); }

/* ==========================================================================
   WEBSITE COMPONENT STYLES
   ========================================================================== */

/* Navbar scrolled state */
.nav-scrolled {
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Subtle logo hover */
.logo-hover-effect {
    transition: opacity 0.3s ease;
}
.logo-hover-effect:hover {
    opacity: 0.8;
}

/* Base Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}
.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cinematic Reveal Animations */
.reveal-hero {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s var(--ease-cinematic) 0.8s, transform 1.2s var(--ease-cinematic) 0.8s;
}
.reveal-hero.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-movie {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}
.reveal-movie.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-director {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}
.reveal-director.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-reel {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1.2s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
}
.reveal-reel.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-gallery {
    opacity: 0;
    transform: translateY(15px) scale(0.99);
    transition: opacity 0.8s var(--ease-cinematic), transform 0.8s var(--ease-cinematic);
}
.reveal-gallery.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-contact {
    opacity: 0;
    transition: opacity 1.2s var(--ease-cinematic);
}
.reveal-contact.active {
    opacity: 1;
}

.reveal-footer {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}
.reveal-footer.active {
    opacity: 1;
    transform: translateY(0);
}


/* Gallery image treatment */
.gallery-img {
    filter: grayscale(20%);
    transition: filter 0.5s ease, transform 1s var(--ease-cinematic);
}
.group:hover .gallery-img {
    filter: grayscale(0%);
}

/* ==========================================================================
   SUBTLE CINEMATIC IMAGE REVEAL
   The wrapper starts slightly scaled + transparent, then settles once its
   parent card receives .active from the scroll observer.
   ========================================================================== */
.img-reveal {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s var(--ease-cinematic) 0.15s, transform 1.8s var(--ease-cinematic) 0.15s;
    will-change: opacity, transform;
}
.reveal-movie.active .img-reveal,
.reveal-director.active .img-reveal {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   PRODUCTION CARDS (Production 01 / Production 02)
   ========================================================================== */
.production-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.production-card:focus-visible {
    outline: 1px solid var(--color-signature-gold);
    outline-offset: 8px;
}

.prod-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--color-charcoal);
    border: 1px solid rgba(201, 162, 39, 0.2);
    transition: border-color 0.6s var(--ease-cinematic), box-shadow 0.6s var(--ease-cinematic);
}
.group:hover .prod-frame,
.production-card:focus-visible .prod-frame {
    border-color: rgba(201, 162, 39, 0.65);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.12), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

/* Poster adapts to the image's own size: full width, natural height, never cropped or stretched */
.prod-frame .img-reveal {
    position: relative;
    inset: auto;
}
.prod-img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 1.2s var(--ease-cinematic);
}
.group:hover .prod-img { transform: scale(1.04); }

/* Subtle black overlay: keeps the gold details readable, eases off on hover */
.prod-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.15) 45%, rgba(5, 5, 5, 0.35) 100%);
    transition: opacity 0.7s var(--ease-cinematic);
}
.group:hover .prod-overlay { opacity: 0.6; }

/* ==========================================================================
   DIRECTOR / TEAM PORTRAIT CARDS
   ========================================================================== */
.director-frame {
    position: relative;
    width: 12rem;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-obsidian);
    border: 1px solid rgba(201, 162, 39, 0.22);
    transition: border-color 0.6s var(--ease-cinematic), box-shadow 0.6s var(--ease-cinematic);
}
.director-frame:hover {
    border-color: rgba(201, 162, 39, 0.6);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}
@media (min-width: 1024px) {
    .director-frame { width: 14rem; }
}

.director-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 1.2s var(--ease-cinematic);
}
.director-photo--anand { object-position: var(--pos-anand); }
.director-photo--antony { object-position: var(--pos-antony); }
.director-photo--eldho { object-position: var(--pos-eldho); }
.director-frame:hover .director-photo {
    transform: scale(1.03);
}

/* ==========================================================================
   PRODUCTION MODALS (same look as the Reel modal)
   ========================================================================== */
.modal-fade:not(.hidden) {
    animation: modalFadeIn 0.35s var(--ease-cinematic) both;
}
.modal-fade:not(.hidden) .prod-modal-panel {
    animation: modalRise 0.6s var(--ease-cinematic) both;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalRise {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.prod-modal-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--color-charcoal);
    border: 1px solid rgba(201, 162, 39, 0.25);
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    overflow-y: auto;
}
.prod-modal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-obsidian);
    min-height: 0;
}
/* contain = the full artwork is always visible, never cropped, in the modal */
.prod-modal-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(60vh, 560px);
    object-fit: contain;
}
.prod-modal-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1.75rem, 5vw, 3rem);
}
@media (min-width: 768px) {
    .prod-modal-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
    .prod-modal-media img { height: 100%; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); }
}

/* ==========================================================================
   PRODUCTION CATEGORY TABS (Pre-Production / In Development / Completed)
   ========================================================================== */
.cat-hidden { display: none !important; }

.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 2.25rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
    .cat-tabs { justify-content: flex-start; margin-bottom: 4rem; }
}
.cat-tab {
    position: relative;
    padding: 0.9rem 0;
    background: none;
    border: 0;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(234, 221, 183, 0.5);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color 0.4s var(--ease-cinematic);
}
.cat-tab::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--color-signature-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-cinematic);
}
.cat-tab:hover { color: var(--color-signature-gold); }
.cat-tab.is-active { color: var(--color-signature-gold); }
.cat-tab.is-active::after { transform: scaleX(1); }
.cat-tab:focus-visible { outline: 1px solid var(--color-signature-gold); outline-offset: 4px; }

.cat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 5rem 1rem;
    text-align: center;
    color: rgba(234, 221, 183, 0.35);
    border: 1px dashed rgba(201, 162, 39, 0.2);
    font-family: var(--font-sans);
    font-weight: 300;
}
.cat-empty i { font-size: 1.75rem; color: rgba(201, 162, 39, 0.35); }
.cat-empty p { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; }

/* ==========================================================================
   CINEMATIC SLIDESHOW (Gallery + Showreel)
   Stacked slides. script.js swaps .is-active / .is-leaving and sets
   data-fx on the root, which picks the transition (fade, zoom, slide,
   wipe, dip-to-black). Every slide also drifts with a slow Ken Burns move.
   ========================================================================== */
.cs {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    outline: none;
}
.cs:focus-visible .cs-stage { border-color: rgba(201, 162, 39, 0.7); }
.cs-reel { cursor: pointer; }
.cs-modal { cursor: default; }

.cs-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    isolation: isolate;
    background: var(--color-obsidian);
    border: 1px solid rgba(201, 162, 39, 0.22);
    transition: border-color 0.6s var(--ease-cinematic);
}
.cs:hover .cs-stage { border-color: rgba(201, 162, 39, 0.5); }
@media (max-width: 640px) {
    .cs-stage { aspect-ratio: 4 / 3; }
}

.cs-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.cs-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: var(--kb-origin, 50% 50%);
    will-change: transform;
}
/* Gallery photos open the fullscreen viewer, and stay in full colour */
.cs-slide .gallery-img {
    filter: none;
    transition: none;
    cursor: zoom-in;
}
.cs-slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.cs-slide.is-leaving { opacity: 1; z-index: 1; }

/* Ken Burns: slow push-in with a gentle drift, direction varies per slide */
.cs-slide.is-active img,
.cs-slide.is-leaving img {
    animation: csKenBurns var(--kb-dur, 9s) linear both;
}
.cs-slide:nth-child(4n+2) { --kb-x: 1.6%;  --kb-y: -1%;   --kb-origin: 70% 40%; }
.cs-slide:nth-child(4n+3) { --kb-x: -1%;   --kb-y: 1.4%;  --kb-origin: 40% 70%; }
.cs-slide:nth-child(4n+4) { --kb-x: 1.2%;  --kb-y: 1.2%;  --kb-origin: 60% 60%; }
@keyframes csKenBurns {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(var(--kb-x, -1.5%), var(--kb-y, -1%), 0); }
}

/* --- Transitions (entering slide = is-active, exiting slide = is-leaving) --- */
.cs[data-fx="fade"] .cs-slide.is-active   { animation: csFadeIn  var(--fx-dur, 1.2s) ease both; }
.cs[data-fx="fade"] .cs-slide.is-leaving  { animation: csFadeOut var(--fx-dur, 1.2s) ease both; }

.cs[data-fx="zoom"] .cs-slide.is-active   { animation: csZoomIn  var(--fx-dur, 1.2s) var(--ease-cinematic) both; }
.cs[data-fx="zoom"] .cs-slide.is-leaving  { animation: csZoomOut var(--fx-dur, 1.2s) var(--ease-cinematic) both; }

.cs[data-fx="slide"] .cs-slide.is-active  { animation: csSlideIn  var(--fx-dur, 1.2s) var(--ease-cinematic) both; }
.cs[data-fx="slide"] .cs-slide.is-leaving { animation: csSlideOut var(--fx-dur, 1.2s) var(--ease-cinematic) both; }

.cs[data-fx="wipe"] .cs-slide.is-active   { animation: csWipeIn var(--fx-dur, 1.2s) cubic-bezier(0.77, 0, 0.175, 1) both; }

.cs[data-fx="dip"] .cs-slide.is-active    { animation: csDipIn  var(--fx-dur, 1.2s) ease both; }
.cs[data-fx="dip"] .cs-slide.is-leaving   { animation: csDipOut var(--fx-dur, 1.2s) ease both; }

@keyframes csFadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes csFadeOut  { from { opacity: 1; } to { opacity: 0; } }
@keyframes csZoomIn   { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: scale(1); } }
@keyframes csZoomOut  { from { opacity: 1; transform: scale(1); }    to { opacity: 0; transform: scale(0.94); } }
@keyframes csSlideIn  { from { opacity: 0; transform: translate3d(9%, 0, 0); }  to { opacity: 1; transform: none; } }
@keyframes csSlideOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(-9%, 0, 0); } }
@keyframes csWipeIn   { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes csDipIn    { 0%, 45% { opacity: 0; } 100% { opacity: 1; } }
@keyframes csDipOut   { 0% { opacity: 1; } 45%, 100% { opacity: 0; } }

/* --- Overlays --- */
.cs-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 35%),
        radial-gradient(ellipse at center, rgba(5, 5, 5, 0) 55%, rgba(5, 5, 5, 0.45) 100%);
}

.cs-counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 6;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(234, 221, 183, 0.75);
    pointer-events: none;
}

/* Letterbox bars give the reel its widescreen film look */
.cs-bar {
    position: absolute;
    left: 0; right: 0;
    height: 8%;
    z-index: 4;
    background: var(--color-obsidian);
    pointer-events: none;
}
.cs-bar-top { top: 0; }
.cs-bar-bottom {
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}
.cs-bar .cs-counter { position: static; }
.cs-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--color-signature-gold);
}

.cs-overlay-center {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.25);
    pointer-events: none;
    transition: background 0.6s var(--ease-cinematic);
}
.cs-reel:hover .cs-overlay-center { background: rgba(5, 5, 5, 0.1); }

.cs-progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    z-index: 7;
    background: rgba(234, 221, 183, 0.12);
    pointer-events: none;
}
.cs-progress span {
    display: block;
    height: 100%;
    background: var(--color-signature-gold);
    transform: scaleX(0);
    transform-origin: left;
}

.cs-nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--color-champagne);
    font-size: 0.95rem;
    background: rgba(5, 5, 5, 0.55);
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: opacity 0.4s ease, color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.cs-prev { left: 1rem; }
.cs-next { right: 1rem; }
.cs-nav:hover,
.cs-nav:focus-visible {
    color: var(--color-signature-gold);
    border-color: var(--color-signature-gold);
    background: rgba(201, 162, 39, 0.1);
    outline: none;
}
/* On mouse devices the arrows appear on hover; touch screens always show them */
@media (hover: hover) {
    .cs-nav { opacity: 0; }
    .cs-stage:hover .cs-nav,
    .cs-nav:focus-visible { opacity: 1; }
}
@media (max-width: 640px) {
    .cs-nav { width: 2.25rem; height: 2.25rem; margin-top: -1.125rem; font-size: 0.8rem; }
    .cs-prev { left: 0.5rem; }
    .cs-next { right: 0.5rem; }
}

/* Thumbnail strip (gallery) */
.cs-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.cs-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    background: var(--color-obsidian);
    border: 1px solid rgba(201, 162, 39, 0.15);
    opacity: 0.5;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: opacity 0.5s ease, border-color 0.5s ease;
}
.cs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-thumb:hover { opacity: 0.85; }
.cs-thumb.is-active { opacity: 1; border-color: var(--color-signature-gold); }
.cs-thumb:focus-visible { outline: 1px solid var(--color-signature-gold); outline-offset: 2px; }

/* ==========================================================================
   CLASSIC CAPITAL LETTER TITLES
   Page titles, film titles, partner names and the footer name are set in
   the classic display serif, in capitals, with generous letter-spacing.
   (The long hero sentence stays in sentence case.)
   ========================================================================== */
h2.font-display,
h3.font-display,
h4.font-display {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
h2.font-display {
    letter-spacing: 0.16em;
    line-height: 1.15;
}
h3.font-display { line-height: 1.3; }

/* CONTACT DETAILS: email + one phone number, laid out side by side with a hairline divider */
.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3.5rem;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 50%;
    color: var(--color-signature-gold);
    font-size: 0.9rem;
    transition: border-color 0.5s var(--ease-cinematic), background-color 0.5s var(--ease-cinematic);
}
.contact-item:hover .contact-icon {
    border-color: var(--color-signature-gold);
    background: rgba(201, 162, 39, 0.08);
}
.contact-label {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-signature-gold);
    margin-bottom: 0.6rem;
}
.contact-link {
    font-family: var(--font-display);
    font-size: 1.125rem;
    letter-spacing: 0.08em;
    color: rgba(234, 221, 183, 0.85);
    overflow-wrap: anywhere;
    transition: color 0.4s var(--ease-cinematic);
}
.contact-link:hover,
.contact-link:focus-visible { color: var(--color-signature-gold); outline: none; }
.contact-divider {
    display: block;
    width: 3rem;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 162, 39, 0.6), transparent);
}
@media (min-width: 768px) {
    .contact-details {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    .contact-item { flex: 1 1 0; }
    .contact-link { font-size: 1.25rem; }
    .contact-divider {
        width: 1px;
        height: 6.5rem;
        background: linear-gradient(to bottom, transparent, rgba(201, 162, 39, 0.6), transparent);
    }
}

/* CONTACT US button: capitals in the display font */
.contact-btn { font-weight: 300; }

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .pl-fresnel-beam { transform: scaleY(1); opacity: 1; }
    .pl-clapper-top { transform: rotate(0); }
    .reveal-on-scroll, .reveal-hero, .reveal-movie, .reveal-director, .reveal-reel, .reveal-gallery, .reveal-contact, .reveal-footer { 
        opacity: 1; transform: none; transition: none; 
    }
    .img-reveal { opacity: 1; transform: none; transition: none; }
    .cs-slide, .cs-slide img { animation: none !important; }
    .cs-slide.is-leaving { opacity: 0; }
    .float-1, .float-2, .float-3, .float-4, .float-5, .float-6 {
        animation: none !important;
        transform: none !important;
    }
}
