/* ============================================
   PALAWA STUDIO — Cinematic Portfolio v2
   Bilingual · Enhanced Animations · Immersive
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@500;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #111111;
    --color-bg-card: #161616;
    --color-bg-overlay: rgba(10, 10, 10, 0.85);
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #666666;
    --color-accent: #3b82f6;
    --color-accent-light: #60a5fa;
    --color-accent-glow: rgba(59, 130, 246, 0.15);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-white: #ffffff;
    --color-black: #000000;
    --color-red: #e74c3c;
    --color-cyan: #00e5ff;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-h1: 'Open Sans', -apple-system, sans-serif;
    --font-h2: 'Open Sans', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-cinematic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-dramatic: 1.2s cubic-bezier(0.16, 1, 0.3, 1);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);

    --z-base: 1;
    --z-overlay: 10;
    --z-modal: 100;
    --z-nav: 50;
    --z-cursor: 9999;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-bg);
}
body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }
::selection { background: var(--color-accent); color: var(--color-black); }

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
    position: fixed; width: 8px; height: 8px;
    background: var(--color-accent); border-radius: 50%;
    pointer-events: none; z-index: var(--z-cursor);
    transition: transform 0.1s, opacity 0.3s, width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor-ring {
    position: fixed; width: 40px; height: 40px;
    border: 1.5px solid var(--color-accent); border-radius: 50%;
    pointer-events: none; z-index: var(--z-cursor);
    transition: transform 0.35s var(--ease-out-expo), width 0.35s, height 0.35s, opacity 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%); opacity: 0.4;
}
.cursor-ring.expanded { width: 80px; height: 80px; opacity: 0.2; border-color: var(--color-white); }
.cursor-ring.video-hover {
    width: 100px; height: 100px; opacity: 1;
    border-color: var(--color-accent); background: rgba(59,130,246,0.08);
}
.cursor-text {
    position: fixed; pointer-events: none; z-index: calc(var(--z-cursor) + 1);
    font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent);
    opacity: 0; transition: opacity 0.3s; transform: translate(-50%, -50%);
}
.cursor-text.visible { opacity: 1; }

@media (max-width: 1024px) {
    .cursor-dot, .cursor-ring, .cursor-text { display: none !important; }
}

/* ============================================
   LOADING SCREEN — Film Style
   ============================================ */
.loader {
    position: fixed; inset: 0; background: var(--color-black); z-index: 10000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 1s var(--ease-out-expo), visibility 1s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Logo SVG wrapper */
.loader-logo-wrap {
    position: relative; width: 160px; height: 160px;
    margin-bottom: 1.2rem; opacity: 0;
    animation: loaderLogoReveal 1s 0.2s cubic-bezier(.16,1,.3,1) forwards;
}
.loader-logo-svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 20px rgba(59,130,246,0.15));
}
/* Loader brand image */
.loader-brand-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: auto;
    z-index: 2;
    opacity: 0;
    animation: loaderBrandReveal 0.8s 0.5s cubic-bezier(.16,1,.3,1) forwards;
}
[data-theme="light"] .loader-brand-img {
    filter: brightness(0) saturate(100%);
}
@keyframes loaderBrandReveal {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.loader-ring-outer {
    stroke-dasharray: 566; stroke-dashoffset: 566;
    animation: loaderRingDraw 1.5s 0.3s cubic-bezier(.16,1,.3,1) forwards;
}
.loader-ring-inner {
    animation: apertureRotate 20s linear infinite reverse;
}
.loader-aperture {
    animation: apertureRotate 15s linear infinite;
    transform-origin: center;
}
.loader-logo-wrap::after {
    content: ''; position: absolute; inset: -12px;
    border: 1px solid rgba(59,130,246,0.08); border-radius: 50%;
    animation: loaderRingPulse 2.5s ease-in-out infinite;
}
.loader-tagline {
    font-family: var(--font-heading); font-style: italic; font-size: 0.82rem;
    color: var(--color-accent); margin-bottom: 2.5rem; opacity: 0;
    animation: loaderFadeIn 0.6s 0.6s forwards;
}
.loader-bar-track { width: 180px; height: 1px; background: rgba(255,255,255,0.08); overflow: hidden; }
.loader-bar { width: 0%; height: 100%; background: var(--color-accent); transition: width 0.3s; }
.loader-percent {
    font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.15em;
    color: var(--color-text-muted); margin-top: 1rem; opacity: 0;
    animation: loaderFadeIn 0.6s 0.7s forwards;
}
.loader-film-strip {
    position: absolute; bottom: 2rem; display: flex; gap: 4px; opacity: 0.06;
}
.loader-film-strip span {
    width: 8px; height: 11px; background: var(--color-white); border-radius: 1px;
    animation: filmFlicker 0.8s infinite alternate;
}
.loader-film-strip span:nth-child(2n) { animation-delay: 0.15s; }
.loader-film-strip span:nth-child(3n) { animation-delay: 0.3s; }

@keyframes loaderFadeIn { to { opacity: 1; } }
@keyframes filmFlicker { 0% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes loaderLogoReveal {
    0% { opacity: 0; transform: scale(0.6) rotate(-8deg); filter: blur(8px); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
}
@keyframes loaderRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.08; }
}
@keyframes loaderRingDraw {
    to { stroke-dashoffset: 0; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
    padding: 1.5rem 3rem; display: flex; align-items: center; justify-content: space-between;
    transition: background var(--transition-smooth), padding var(--transition-smooth), backdrop-filter var(--transition-smooth);
}
.nav.scrolled {
    background: rgba(10,10,10,0.92); backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); padding: 0.85rem 3rem;
    border-bottom: 1px solid var(--color-border);
}
.nav-logo {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-white);
    transition: opacity var(--transition-fast);
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo span { color: var(--color-accent); }

.nav-center { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-center a {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--color-text-secondary);
    position: relative; padding-bottom: 4px; transition: color var(--transition-fast);
}
.nav-center a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--color-accent); transition: width var(--transition-smooth);
}
.nav-center a:hover { color: var(--color-white); }
.nav-center a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Language Switcher */
.lang-switcher {
    display: flex; align-items: center; border: 1px solid var(--color-border);
    border-radius: 2px; overflow: hidden;
}
.lang-btn {
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
    letter-spacing: 0.08em; padding: 0.4rem 0.65rem;
    color: var(--color-text-muted); transition: all var(--transition-fast); background: transparent;
}
.lang-btn:hover { color: var(--color-text-secondary); }
.lang-btn.active { color: var(--color-black); background: var(--color-accent); }
.lang-divider { width: 1px; height: 14px; background: var(--color-border); }

.nav-cta {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--color-black); background: var(--color-accent);
    padding: 0.55rem 1.3rem; border-radius: 2px;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-cta:hover {
    background: var(--color-accent-light); transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

/* Mobile menu */
.nav-menu-btn {
    display: none; flex-direction: column; gap: 6px; padding: 4px; z-index: 60;
}
.nav-menu-btn span {
    display: block; width: 26px; height: 1.5px; background: var(--color-white);
    transition: transform var(--transition-smooth), opacity var(--transition-fast); transform-origin: center;
}
.nav-menu-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; background: rgba(0,0,0,0.98); z-index: 55;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
    opacity: 0; visibility: hidden; transition: opacity var(--transition-cinematic), visibility var(--transition-cinematic);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-family: var(--font-heading); font-size: 1.8rem; font-weight: 500;
    color: var(--color-text-secondary); transition: color var(--transition-fast), transform var(--transition-smooth);
    transform: translateY(30px); opacity: 0;
}
.mobile-menu.active a { transform: translateY(0); opacity: 1; }
.mobile-menu.active a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.22s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.26s; }
.mobile-menu.active a:nth-child(7) { transition-delay: 0.3s; }
.mobile-menu a:hover { color: var(--color-accent); }

.mobile-lang-switch {
    display: flex; gap: 1rem; margin-top: 1.5rem; opacity: 0; transform: translateY(20px);
    transition: all var(--transition-smooth) 0.35s;
}
.mobile-menu.active .mobile-lang-switch { opacity: 1; transform: translateY(0); }
.mobile-lang-btn {
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; padding: 0.5rem 1.2rem; border: 1px solid var(--color-border);
    border-radius: 2px; color: var(--color-text-muted); transition: all var(--transition-fast);
}
.mobile-lang-btn.active { color: var(--color-accent); border-color: var(--color-accent); }

@media (max-width: 1024px) {
    .nav { padding: 1.1rem 1.5rem; }
    .nav.scrolled { padding: 0.85rem 1.5rem; }
    .nav-center, .nav-cta, .lang-switcher { display: none; }
    .nav-menu-btn { display: flex; }
}
@media (min-width: 1025px) { .mobile-menu { display: none !important; } }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-black);
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video-wrap video {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.75;
}
.hero-video-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.30) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(10,10,10,0.90) 100%);
    z-index: 1;
}

.hero-film-border {
    position: absolute; top: 0; bottom: 0; width: 36px; z-index: 3;
    display: flex; flex-direction: column; gap: 5px; padding: 15px 0;
    overflow: hidden; opacity: 0.05;
}
.hero-film-border.left { left: 0; align-items: flex-start; padding-left: 8px; }
.hero-film-border.right { right: 0; align-items: flex-end; padding-right: 8px; }
.hero-film-border span {
    flex-shrink: 0; width: 14px; height: 9px;
    border: 1px solid var(--color-white); border-radius: 1px;
}

/* Viewfinder corners */
.hero-viewfinder {
    position: absolute; inset: 2rem; z-index: 2; pointer-events: none; opacity: 0.06;
}
.vf-corner { position: absolute; width: 25px; height: 25px; }
.vf-corner::before, .vf-corner::after { content: ''; position: absolute; background: var(--color-white); }
.vf-corner::before { width: 1px; height: 100%; }
.vf-corner::after { width: 100%; height: 1px; }
.vf-tl { top: 0; left: 0; }
.vf-tl::before { top: 0; left: 0; } .vf-tl::after { top: 0; left: 0; }
.vf-tr { top: 0; right: 0; }
.vf-tr::before { top: 0; right: 0; } .vf-tr::after { top: 0; right: 0; }
.vf-bl { bottom: 0; left: 0; }
.vf-bl::before { bottom: 0; left: 0; } .vf-bl::after { bottom: 0; left: 0; }
.vf-br { bottom: 0; right: 0; }
.vf-br::before { bottom: 0; right: 0; } .vf-br::after { bottom: 0; right: 0; }

/* REC indicator */
.vf-rec {
    position: absolute; top: 1.5rem; right: 4rem; display: flex;
    align-items: center; gap: 6px; opacity: 0.12; z-index: 3;
}
.vf-rec-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--color-red);
    animation: recBlink 1.5s infinite;
}
.vf-rec-text { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.15em; color: var(--color-white); }
@keyframes recBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

.hero-content { position: relative; z-index: 4; text-align: center; max-width: 900px; padding: 0 2rem; }
.hero-content::before {
    content: ''; position: absolute; inset: -5rem -3rem;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, transparent 70%);
    pointer-events: none; z-index: -1;
}
.hero-tag {
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.35em; text-transform: uppercase; color: #ffffff;
    margin-bottom: 1.5rem; opacity: 0; transform: translateY(20px);
    background: transparent;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    backdrop-filter: blur(4px);
    display: inline-block;
    text-shadow: none;
}
.hero-title {
    font-family: var(--font-h1); font-size: clamp(2.4rem, 6vw, 5.5rem);
    font-weight: 700; line-height: 1.1; color: var(--color-white);
    margin-bottom: 1.5rem; opacity: 0; transform: translateY(40px);
    text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 1px 6px rgba(0,0,0,0.6);
}
.hero-title em { font-style: italic; color: var(--color-accent); }
.hero-subtitle {
    font-size: clamp(0.82rem, 1.4vw, 1.02rem); font-weight: 300; line-height: 1.8;
    color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 2.5rem;
    opacity: 0; transform: translateY(30px);
    text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
.hero-cta-wrap {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    opacity: 0; transform: translateY(30px); flex-wrap: wrap;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.25); padding: 0.9rem 2rem; border-radius: 2px;
    transition: all var(--transition-smooth);
}
.hero-cta:hover {
    background: var(--color-white); color: var(--color-black); border-color: var(--color-white);
}
.hero-cta svg { width: 14px; height: 14px; transition: transform var(--transition-smooth); }
.hero-cta:hover svg { transform: translateX(4px); }
.hero-cta-secondary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-text-secondary);
    padding: 0.9rem 1.2rem; transition: color var(--transition-fast);
}
.hero-cta-secondary:hover { color: var(--color-accent); }
.hero-cta-secondary svg { width: 15px; height: 15px; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    opacity: 0; animation: scrollIndicatorIn 0.6s 2.2s forwards;
}
.scroll-indicator span {
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.32em; text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-shadow:
        0 0 14px rgba(59,130,246,0.9),
        0 0 28px rgba(59,130,246,0.5),
        0 2px 6px rgba(0,0,0,0.95);
}
.scroll-line {
    width: 1px; height: 36px; background: rgba(255,255,255,0.08);
    position: relative; overflow: hidden;
}
.scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
    background: var(--color-accent); animation: scrollLineMove 2s infinite;
}
@keyframes scrollLineMove { 0% { top: -100%; } 50% { top: 100%; } 100% { top: 100%; } }
@keyframes scrollIndicatorIn { to { opacity: 1; } }

@media (max-width: 640px) {
    .hero-film-border { display: none; }
    .hero-viewfinder { inset: 1rem; }
    .vf-rec { top: 1rem; right: 1rem; }
}

/* ============================================
   COMMON SECTION
   ============================================ */
.section { position: relative; padding: 8rem 3rem; }
.section-sm { padding: 5rem 3rem; }
.container { max-width: 1400px; margin: 0 auto; }

.section-label {
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
    letter-spacing: 0.35em; text-transform: uppercase; color: var(--color-accent);
    margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.75rem;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--color-accent); }
.section-title {
    font-family: var(--font-h2); font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500; line-height: 1.12; color: var(--color-white); margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--color-accent); }
.section-desc {
    font-size: 0.95rem; font-weight: 300; line-height: 1.85;
    color: var(--color-text-secondary); max-width: 580px;
}
.divider { width: 50px; height: 1px; background: var(--color-accent); margin: 2rem 0; }

@media (max-width: 640px) {
    .section { padding: 5rem 1.25rem; }
    .section-sm { padding: 3rem 1.25rem; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: opacity var(--transition-dramatic), transform var(--transition-dramatic);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity var(--transition-dramatic), transform var(--transition-dramatic); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity var(--transition-dramatic), transform var(--transition-dramatic); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity var(--transition-dramatic), transform var(--transition-dramatic); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Split text character animation */
.split-text .char {
    display: inline-block; opacity: 0; transform: translateY(100%);
    transition: opacity 0.4s, transform 0.6s var(--ease-out-expo);
}
.split-text.revealed .char { opacity: 1; transform: translateY(0); }

/* ============================================
   GLITCH HOVER EFFECT
   ============================================ */
.glitch-hover { position: relative; display: inline-block; }
.glitch-hover::before, .glitch-hover::after {
    content: attr(data-text); position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; opacity: 0; pointer-events: none;
}
.glitch-hover:hover::before {
    animation: glitch1 0.3s linear; color: var(--color-cyan); opacity: 0.7;
    clip-path: inset(20% 0 40% 0);
}
.glitch-hover:hover::after {
    animation: glitch2 0.3s linear; color: var(--color-red); opacity: 0.7;
    clip-path: inset(60% 0 10% 0);
}
@keyframes glitch1 {
    0% { transform: translate(0); } 20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, 1px); }
    80% { transform: translate(2px, -1px); } 100% { transform: translate(0); }
}
@keyframes glitch2 {
    0% { transform: translate(0); } 20% { transform: translate(3px, -2px); }
    40% { transform: translate(-3px, 2px); } 60% { transform: translate(2px, -1px); }
    80% { transform: translate(-2px, 1px); } 100% { transform: translate(0); }
}

/* ============================================
   SERVICES — THE CRAFT
   ============================================ */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem;
}
.service-card {
    position: relative; background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: 4px; overflow: hidden; padding: 2.5rem 2rem;
    transition: all var(--transition-cinematic); cursor: pointer; min-height: 280px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59,130,246,0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity var(--transition-smooth);
}
.service-card:hover {
    border-color: var(--color-border-hover); transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.service-card:hover::before { opacity: 1; }

.service-video-bg {
    position: absolute; inset: 0; z-index: 0; opacity: 0;
    transition: opacity var(--transition-cinematic);
}
.service-card:hover .service-video-bg { opacity: 0.2; }
.service-video-bg video { width: 100%; height: 100%; object-fit: cover; }

.service-icon {
    position: relative; z-index: 1; font-size: 2rem; margin-bottom: 1.25rem;
    opacity: 0.6; transition: all var(--transition-smooth); filter: grayscale(1);
}
.service-card:hover .service-icon { opacity: 1; filter: grayscale(0); transform: scale(1.1); }
.service-number {
    position: absolute; top: 1.5rem; right: 1.5rem;
    font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500;
    letter-spacing: 0.1em; color: var(--color-text-muted); z-index: 1;
}
.service-card-title {
    position: relative; z-index: 1; font-family: var(--font-heading);
    font-size: 1.3rem; font-weight: 600; color: #ffffff;
    margin-bottom: 0.5rem; transition: color var(--transition-smooth);
}
.service-card:hover .service-card-title { color: var(--color-accent-light); }
.service-card-desc {
    position: relative; z-index: 1; font-size: 0.8rem; font-weight: 300;
    line-height: 1.7; color: rgba(255, 255, 255, 0.85); transition: color var(--transition-smooth);
}
.service-card:hover .service-card-desc { color: rgba(255, 255, 255, 0.95); }

/* Scanner line on card hover */
.service-scanner {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0; transition: opacity var(--transition-smooth);
}
.service-card:hover .service-scanner { opacity: 0.5; animation: scanLine 2.5s linear infinite; }
@keyframes scanLine { 0% { top: -2px; } 100% { top: 100%; } }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================
   SHOWREEL
   ============================================ */
.showreel {
    position: relative; width: 100%; padding: 6rem 3rem;
    display: flex; flex-direction: column; align-items: center;
}
.showreel-player {
    position: relative; width: 100%; max-width: 1200px; aspect-ratio: 16 / 9;
    background: var(--color-black); border-radius: 4px; overflow: hidden;
    cursor: pointer; box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.showreel-player video { width: 100%; height: 100%; object-fit: cover; }
/* Poster thumbnail (replaces <video> when using YouTube embed) */
.showreel-poster {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease;
}
.showreel-player:hover .showreel-poster { transform: scale(1.03); }
.showreel-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 88px; height: 88px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-smooth); z-index: 2;
}
.showreel-play-btn::before {
    content: ''; position: absolute; inset: -12px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06); animation: playPulse 2.5s infinite;
}
.showreel-play-btn svg { width: 22px; height: 22px; fill: var(--color-white); margin-left: 3px; }
.showreel-player:hover .showreel-play-btn {
    border-color: var(--color-accent); transform: translate(-50%, -50%) scale(1.06);
}
.showreel-player.playing .showreel-play-btn { opacity: 0; pointer-events: none; }
@keyframes playPulse { 0%,100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.2); opacity: 0; } }
.showreel-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.3);
    transition: opacity var(--transition-smooth); z-index: 1;
}
.showreel-player.playing .showreel-overlay { opacity: 0; }

.showreel-timecode {
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
    color: var(--color-text-muted); margin-top: 1.5rem; opacity: 0.4;
}

@media (max-width: 640px) { .showreel { padding: 4rem 1.25rem; } }

/* ============================================
   PORTFOLIO CAROUSEL
   ============================================ */
.portfolio-carousel-wrap {
    position: relative; width: 100%; overflow: hidden;
    padding: 3rem 0 1rem; margin-top: 2rem;
}
/* Film perforations decoration */
.portfolio-carousel-wrap::before,
.portfolio-carousel-wrap::after {
    content: ''; position: absolute; left: 0; right: 0; height: 24px;
    background: repeating-linear-gradient(90deg,
        transparent 0px, transparent 20px,
        rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 30px);
    z-index: 2; pointer-events: none;
}
.portfolio-carousel-wrap::before { top: 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.portfolio-carousel-wrap::after { bottom: 0; border-top: 1px solid rgba(255,255,255,0.03); }

.portfolio-carousel {
    display: flex; align-items: center; justify-content: center;
    perspective: 1400px; height: 520px; position: relative;
    user-select: none; cursor: grab;
}
.portfolio-carousel:active { cursor: grabbing; }

.portfolio-card {
    position: absolute; width: 300px; aspect-ratio: 3 / 4;
    border-radius: 8px; overflow: hidden;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d; will-change: transform, opacity;
    background: var(--color-bg-card); border: 1px solid transparent;
    box-shadow:
        0 15px 40px rgba(0,0,0,0.45),
        0 4px 12px rgba(0,0,0,0.3);
}
.portfolio-card.active {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.65),
        0 0 0 1px rgba(59,130,246,0.18),
        0 0 40px rgba(59,130,246,0.18),
        0 0 80px rgba(59,130,246,0.1);
    animation: cardGlowPulse 3s ease-in-out infinite;
}
@keyframes cardGlowPulse {
    0%, 100% {
        box-shadow:
            0 30px 80px rgba(0,0,0,0.65),
            0 0 0 1px rgba(59,130,246,0.18),
            0 0 40px rgba(59,130,246,0.18),
            0 0 80px rgba(59,130,246,0.08);
    }
    50% {
        box-shadow:
            0 30px 80px rgba(0,0,0,0.65),
            0 0 0 1px rgba(59,130,246,0.4),
            0 0 55px rgba(59,130,246,0.3),
            0 0 100px rgba(59,130,246,0.15);
    }
}

.portfolio-card-media { position: absolute; inset: 0; }
.portfolio-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-card.active:hover .portfolio-card-media img { transform: scale(1.08); }

/* Glitch scan line on active card */
.portfolio-card-glitch {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--color-accent); z-index: 5; opacity: 0; pointer-events: none;
}
.portfolio-card.active .portfolio-card-glitch {
    animation: glitchScan 2s ease-in-out infinite;
}
@keyframes glitchScan {
    0% { top: 0; opacity: 0; } 5% { opacity: 0.6; }
    50% { top: 100%; opacity: 0.3; } 100% { top: 100%; opacity: 0; }
}

/* Film frame number */
.portfolio-card-frame {
    position: absolute; top: 0.7rem; left: 0.7rem; z-index: 4;
    font-family: var(--font-mono); font-size: 0.5rem; font-weight: 500;
    letter-spacing: 0.15em; color: rgba(255,255,255,0.3);
    padding: 0.15rem 0.45rem; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2px; backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.6s ease;
}
.portfolio-card.active .portfolio-card-frame { opacity: 1; }

/* Viewfinder brackets (shared with featured cards) */
.pf-bracket {
    position: absolute; width: 20px; height: 20px;
    border-color: var(--color-accent); border-style: solid; border-width: 0; opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pf-bracket.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.pf-bracket.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.pf-bracket.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.pf-bracket.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.portfolio-card-vf {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    opacity: 0; transition: opacity 0.6s ease;
}
.portfolio-card.active .portfolio-card-vf { opacity: 1; }

/* Card overlay with info */
.portfolio-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem; z-index: 3; opacity: 0; transition: opacity 0.6s ease;
}
.portfolio-card.active .portfolio-card-overlay { opacity: 1; }
.portfolio-card-category {
    font-family: var(--font-mono); font-size: 0.55rem; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: #ffffff; margin-bottom: 0.3rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6), 0 2px 18px rgba(0,0,0,0.8);
}
.portfolio-card-title {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600;
    color: var(--color-white); line-height: 1.3; margin-bottom: 0.15rem;
}
.portfolio-card-client {
    font-size: 0.72rem; font-weight: 300; color: var(--color-text-secondary);
}

/* Card Link Arrow */
.portfolio-card-link {
    position: absolute; top: 1rem; right: 1rem;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(8px); display: flex; align-items: center;
    justify-content: center; opacity: 0; transform: translateY(6px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 6;
    text-decoration: none;
}
.portfolio-card-link svg {
    width: 14px; height: 14px; stroke: var(--color-white);
    transition: transform 0.3s ease;
}
.portfolio-card.active .portfolio-card-link {
    opacity: 1; transform: translateY(0) scale(1);
}
.portfolio-card-link:hover {
    background: var(--color-accent); border-color: var(--color-accent);
}
.portfolio-card-link:hover svg { stroke: #fff; transform: translate(1px, -1px); }

/* Navigation buttons */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(10, 10, 10, 0.8); border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px); display: flex; align-items: center;
    justify-content: center; z-index: 10; cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-btn:hover {
    background: rgba(59, 130, 246, 0.15); border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}
.carousel-btn svg { width: 20px; height: 20px; stroke: var(--color-white); }
.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }

/* Carousel dots */
.carousel-dots {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; margin-top: 2rem;
}
.carousel-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.15); border: none;
    cursor: pointer; padding: 0; transition: all 0.4s ease;
}
.carousel-dot.active {
    width: 24px; border-radius: 3px; background: var(--color-accent);
}

@media (max-width: 768px) {
    .portfolio-carousel { height: 440px; }
    .portfolio-card { width: 250px; }
    .carousel-prev { left: 0.75rem; }
    .carousel-next { right: 0.75rem; }
    .carousel-btn { width: 38px; height: 38px; }
    .carousel-btn svg { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
    .portfolio-carousel { height: 400px; }
    .portfolio-card { width: 220px; }
    .carousel-prev { left: 0.5rem; }
    .carousel-next { right: 0.5rem; }
    .carousel-btn { width: 34px; height: 34px; }
}

/* ============================================
   FEATURED PROJECTS (Video Cards)
   ============================================ */
.featured-section { padding-top: 1rem; }
.featured-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; margin-top: 2.5rem;
}
.featured-card {
    position: relative; aspect-ratio: 16 / 9; border-radius: 6px;
    overflow: hidden; cursor: pointer; background: var(--color-bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 12px 40px rgba(0,0,0,0.55),
        0 4px 14px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.06);
    transition:
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        border-color var(--transition-smooth);
}
.featured-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(59,130,246,0.35);
    box-shadow:
        0 40px 100px rgba(0,0,0,0.7),
        0 0 0 1px rgba(59,130,246,0.2),
        0 0 50px rgba(59,130,246,0.22),
        0 0 100px rgba(59,130,246,0.1),
        inset 0 1px 0 rgba(255,255,255,0.12);
    animation: featuredCardGlow 2.5s ease-in-out infinite;
}
@keyframes featuredCardGlow {
    0%, 100% {
        box-shadow:
            0 40px 100px rgba(0,0,0,0.7),
            0 0 0 1px rgba(59,130,246,0.2),
            0 0 50px rgba(59,130,246,0.22),
            0 0 100px rgba(59,130,246,0.1),
            inset 0 1px 0 rgba(255,255,255,0.12);
    }
    50% {
        box-shadow:
            0 40px 100px rgba(0,0,0,0.7),
            0 0 0 1px rgba(59,130,246,0.4),
            0 0 70px rgba(59,130,246,0.35),
            0 0 130px rgba(59,130,246,0.18),
            inset 0 1px 0 rgba(255,255,255,0.18);
    }
}
.featured-card-media {
    position: absolute; inset: 0;
}
.featured-card-media video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition-cinematic);
}
.featured-card:hover .featured-card-media video { transform: scale(1.05); }

/* Scanner line on featured cards */
.featured-card-scanner {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0; z-index: 5; pointer-events: none;
}
.featured-card:hover .featured-card-scanner {
    animation: featuredScan 2.5s ease-in-out infinite;
}
@keyframes featuredScan {
    0% { top: 0; opacity: 0; }
    8% { opacity: 0.8; }
    45% { top: 100%; opacity: 0.3; }
    55% { top: 100%; opacity: 0; }
    100% { top: 0; opacity: 0; }
}

/* VF brackets on featured */
.featured-card-vf {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    opacity: 0; transition: opacity 0.6s ease;
}
.featured-card:hover .featured-card-vf { opacity: 1; }
.featured-card-vf .pf-bracket { width: 28px; height: 28px; }
.featured-card-vf .pf-bracket.tl { top: 16px; left: 16px; }
.featured-card-vf .pf-bracket.tr { top: 16px; right: 16px; }
.featured-card-vf .pf-bracket.bl { bottom: 16px; left: 16px; }
.featured-card-vf .pf-bracket.br { bottom: 16px; right: 16px; }

/* Overlay */
.featured-card-overlay {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 1.5rem 2rem; transition: background var(--transition-smooth);
}
.featured-card:hover .featured-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.9) 100%);
}

/* REC badge */
.featured-card-rec {
    display: flex; align-items: center; gap: 0.4rem; align-self: flex-start;
    font-family: var(--font-mono); font-size: 0.55rem; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase; color: #ef4444;
    opacity: 0; transition: opacity 0.5s ease;
}
.featured-card:hover .featured-card-rec { opacity: 1; }
.featured-rec-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #ef4444;
    animation: recBlink 1.2s ease-in-out infinite;
}
@keyframes recBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* Info block */
.featured-card-info { margin-top: auto; }
.featured-card-tag {
    font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent);
    display: block; margin-bottom: 0.5rem;
}
.featured-card-title {
    font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700; color: var(--color-white); line-height: 1.2;
    margin-bottom: 0.4rem;
}
.featured-card-desc {
    font-size: 0.78rem; font-weight: 300; line-height: 1.7;
    color: var(--color-text-secondary); max-width: 460px;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.featured-card:hover .featured-card-desc { opacity: 1; transform: translateY(0); }

/* Metadata bar */
.featured-card-meta {
    display: flex; align-items: center; gap: 1.2rem;
    margin-top: 0.75rem; opacity: 0; transform: translateY(6px);
    transition: opacity 0.5s 0.1s ease, transform 0.5s 0.1s ease;
}
.featured-card:hover .featured-card-meta { opacity: 1; transform: translateY(0); }
.featured-card-timecode {
    font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
}
.featured-card-fps {
    font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3); padding: 0.15rem 0.4rem;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 2px;
}

@media (max-width: 768px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-card { aspect-ratio: 16 / 10; }
    .featured-card-overlay { padding: 1.2rem 1.5rem; }
    .featured-card-desc { opacity: 1; transform: none; }
    .featured-card-meta { opacity: 1; transform: none; }
    .featured-card-rec { opacity: 1; }
}

/* ============================================
   CLIENTS CAROUSEL
   ============================================ */
.clients-carousel-wrap {
    width: 100%; overflow: hidden;
    display: flex; flex-direction: column; gap: 1rem;
    padding: 0 0 1rem;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.clients-row {
    display: flex; gap: 1rem; width: max-content;
}
.clients-row-left { animation: clientsScrollLeft 45s linear infinite; }
.clients-row-right { animation: clientsScrollRight 50s linear infinite; }
.clients-carousel-wrap:hover .clients-row { animation-play-state: paused; }

@keyframes clientsScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes clientsScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.client-card {
    flex-shrink: 0; width: 180px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px; padding: 1rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px); cursor: default;
}
.client-card:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.05);
}
.client-card img {
    display: block;
    max-width: 100%; max-height: 48px; object-fit: contain;
    filter: grayscale(1) brightness(0.6); opacity: 0.5;
    transition: all 0.4s ease;
}
.client-card:hover img {
    filter: grayscale(0) brightness(1); opacity: 1;
}
.client-card-text {
    display: none;
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--color-text-muted);
    text-align: center; line-height: 1.4; transition: color 0.4s ease;
}
.client-card:hover .client-card-text { color: var(--color-accent); }

@media (max-width: 768px) {
    .client-card { width: 150px; height: 75px; padding: 0.75rem 1rem; }
    .client-card img { max-height: 40px; }
    .clients-row-left { animation-duration: 35s; }
    .clients-row-right { animation-duration: 40s; }
}
@media (max-width: 480px) {
    .client-card { width: 130px; height: 65px; padding: 0.75rem; }
    .client-card img { max-height: 32px; }
    .client-card-text { font-size: 0.55rem; }
}

/* ============================================
   ABOUT — Interactive Cinematic
   ============================================ */
.about-section { position: relative; overflow: hidden; }

/* Floating film particles */
.about-particles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.about-particle {
    position: absolute; left: var(--x); top: var(--y);
    width: 3px; height: 3px; background: var(--color-accent); border-radius: 50%;
    opacity: 0; animation: aboutParticleFloat var(--d) ease-in-out infinite;
}
@keyframes aboutParticleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    25% { opacity: 0.6; }
    50% { opacity: 0.3; transform: translateY(-40px) scale(1); }
    75% { opacity: 0.5; }
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.about-visual {
    position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
}
.about-visual img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 6s cubic-bezier(.25,.46,.45,.94);
}
.about-visual:hover img { transform: scale(1.06); }
.about-visual::after {
    content: ''; position: absolute; inset: 0; border: 1px solid var(--color-border); border-radius: 4px;
}

/* Scanline overlay on photo */
.about-visual-overlay {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
    );
}
.about-visual-scanline {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.25), transparent);
    animation: aboutScanline 4s linear infinite;
}
@keyframes aboutScanline { 0% { top: -3px; } 100% { top: 100%; } }

/* Film frame tag */
.about-frame-tag {
    position: absolute; top: 1rem; left: 1rem; z-index: 3;
    display: flex; align-items: center; gap: 0.8rem;
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
}
.about-frame-rec {
    display: flex; align-items: center; gap: 0.35rem; color: #ef4444;
}
.rec-blink {
    width: 6px; height: 6px; background: #ef4444; border-radius: 50%;
    animation: recBlink 1.2s ease-in-out infinite;
}
@keyframes recBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.about-frame-tc { color: rgba(255,255,255,0.5); }

/* Glitch strip */
.about-glitch-strip {
    position: absolute; left: 0; bottom: 18%; width: 100%; height: 2px; z-index: 3;
    background: rgba(59,130,246,0.35); opacity: 0;
    animation: aboutGlitch 6s ease-in-out infinite;
}
@keyframes aboutGlitch {
    0%, 90%, 100% { opacity: 0; transform: scaleX(0); }
    92% { opacity: 1; transform: scaleX(1); }
    94% { opacity: 0.5; transform: scaleX(0.7) translateX(5%); }
    96% { opacity: 0; }
}

.about-aperture {
    position: absolute; bottom: 1.2rem; right: 1.2rem; width: 44px; height: 44px;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: apertureRotate 25s linear infinite; z-index: 2;
}
.about-aperture svg { width: 26px; height: 26px; opacity: 0.35; }
@keyframes apertureRotate { to { transform: rotate(360deg); } }

/* Stats with animated bar */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.stat-item {
    border-top: 1px solid var(--color-border); padding-top: 1.2rem;
    transition: transform 0.4s var(--ease-out-expo);
}
.stat-item:hover { transform: translateY(-4px); }
.stat-number {
    font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700;
    color: var(--color-accent); line-height: 1; margin-bottom: 0.35rem;
}
.stat-label {
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-text-muted);
}
.stat-bar {
    width: 100%; height: 2px; background: rgba(255,255,255,0.06);
    margin-top: 0.8rem; border-radius: 2px; overflow: hidden;
}
.stat-bar-fill {
    width: 0; height: 100%; background: var(--color-accent);
    border-radius: 2px; transition: width 1.8s cubic-bezier(.16,1,.3,1);
}
.stat-item.animated .stat-bar-fill { width: var(--fill); }

.about-philosophy {
    font-family: var(--font-heading); font-size: 1.15rem; font-style: italic;
    line-height: 1.7; color: var(--color-text-secondary); margin-top: 2rem;
    padding-left: 1.5rem; border-left: 2px solid var(--color-accent);
    position: relative;
}
.about-philosophy::before {
    content: '\201C'; position: absolute; left: -0.2rem; top: -0.6rem;
    font-size: 3rem; color: var(--color-accent); opacity: 0.15;
    font-family: var(--font-heading);
}

/* About badge */
.about-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-top: 1.5rem; padding: 0.6rem 1.2rem;
    background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.12);
    border-radius: 4px; font-size: 0.78rem; color: var(--color-text-secondary);
    animation: aboutBadgePulse 3s ease-in-out infinite;
}
.about-badge-icon { font-size: 1.1rem; }
.about-badge strong { color: var(--color-accent); font-weight: 600; }
@keyframes aboutBadgePulse {
    0%, 100% { border-color: rgba(59,130,246,0.12); }
    50% { border-color: rgba(59,130,246,0.3); }
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr; }
}

/* ============================================
   CTA — Cinematic Interactive
   ============================================ */
.cta-section {
    position: relative; width: 100%; min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.92) 70%);
}
.cta-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }

/* Animated grid lines */
.cta-grid-lines {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    display: flex; justify-content: space-evenly;
}
.cta-grid-lines span {
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(59,130,246,0.06) 40%, rgba(59,130,246,0.06) 60%, transparent);
    animation: ctaGridPulse 4s ease-in-out infinite;
}
.cta-grid-lines span:nth-child(2) { animation-delay: 0.8s; }
.cta-grid-lines span:nth-child(3) { animation-delay: 1.6s; }
.cta-grid-lines span:nth-child(4) { animation-delay: 2.4s; }
.cta-grid-lines span:nth-child(5) { animation-delay: 3.2s; }
@keyframes ctaGridPulse {
    0%, 100% { opacity: 0.3; } 50% { opacity: 1; }
}

/* Orbit circles */
.cta-orbits { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cta-orbit {
    position: absolute; border: 1px solid rgba(59,130,246,0.06);
    border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.cta-orbit-1 { width: 350px; height: 350px; animation: ctaOrbitSpin 30s linear infinite; }
.cta-orbit-2 { width: 550px; height: 550px; animation: ctaOrbitSpin 45s linear infinite reverse; }
.cta-orbit-3 { width: 750px; height: 750px; animation: ctaOrbitSpin 60s linear infinite; }
.cta-orbit::after {
    content: ''; position: absolute; top: 0; left: 50%;
    width: 5px; height: 5px; background: var(--color-accent); border-radius: 50%;
    transform: translate(-50%, -50%); box-shadow: 0 0 12px rgba(59,130,246,0.5);
}
@keyframes ctaOrbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Viewfinder corners */
.cta-vf-corners { position: absolute; inset: 4rem; z-index: 1; pointer-events: none; }
.cta-corner {
    position: absolute; width: 30px; height: 30px;
    border-color: rgba(59,130,246,0.2); border-style: solid;
}
.cta-corner-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.cta-corner-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.cta-corner-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.cta-corner-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.cta-content { position: relative; z-index: 2; padding: 4rem 2rem; }

/* Camera icon with pulse */
.cta-icon-pulse {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 2rem;
    border: 1px solid rgba(59,130,246,0.2); border-radius: 50%;
    position: relative; color: var(--color-accent);
    animation: ctaIconFloat 3s ease-in-out infinite;
}
.cta-icon-pulse svg { width: 28px; height: 28px; }
.cta-icon-pulse::after {
    content: ''; position: absolute; inset: -6px;
    border: 1px solid rgba(59,130,246,0.1); border-radius: 50%;
    animation: ctaIconRing 2s ease-in-out infinite;
}
@keyframes ctaIconFloat {
    0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); }
}
@keyframes ctaIconRing {
    0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.2); opacity: 0; }
}

.cta-title {
    font-family: var(--font-h2); font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 500; line-height: 1.12; color: var(--color-white);
    margin-bottom: 1.25rem; max-width: 750px;
}
.cta-title em { font-style: italic; color: var(--color-accent); }
.cta-desc {
    font-size: 0.95rem; font-weight: 300; color: var(--color-text-secondary);
    max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.8;
}

/* CTA button with glow */
.cta-btn-wrap { position: relative; display: inline-block; }
.cta-btn {
    display: inline-flex; align-items: center; gap: 0;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; background: var(--color-accent); color: var(--color-black);
    padding: 1rem 2.5rem; border-radius: 2px; transition: all var(--transition-smooth);
    position: relative; overflow: hidden;
}
.cta-btn-text { position: relative; z-index: 1; }
.cta-btn-icon {
    display: inline-flex; align-items: center; width: 0; overflow: hidden;
    transition: width 0.4s var(--ease-out-expo), margin 0.4s var(--ease-out-expo);
    position: relative; z-index: 1;
}
.cta-btn-icon svg { width: 14px; height: 14px; flex-shrink: 0; }
.cta-btn:hover .cta-btn-icon { width: 14px; margin-left: 0.7rem; }
.cta-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%); transition: none;
}
.cta-btn:hover::before { animation: ctaBtnShine 0.6s ease-out; }
@keyframes ctaBtnShine { to { transform: translateX(100%); } }
.cta-btn:hover {
    background: var(--color-accent-light); transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.25);
}
.cta-btn-glow {
    position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    width: 180px; height: 40px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.15), transparent 70%);
    pointer-events: none; filter: blur(8px);
}

/* CTA contact info strip */
.cta-contact-info {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 2rem; justify-content: center; flex-wrap: wrap;
}
.cta-location-link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.52); transition: color var(--transition-fast);
}
.cta-location-link:hover { color: var(--color-accent-light); }
.cta-location-link svg { opacity: 0.7; flex-shrink: 0; }
.cta-contact-divider { color: rgba(255,255,255,0.25); font-size: 1.1rem; line-height: 1; }

/* CTA timecode bar */
.cta-timecode {
    font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em;
    color: rgba(255,255,255,0.18); margin-top: 2.5rem; text-transform: uppercase;
}

/* ============================================
   MAPS SECTION — Cinematic Interactive
   ============================================ */
.maps-section {
    padding: 5rem 3rem; position: relative;
    background: var(--color-black);
    border-top: 1px solid var(--color-border);
    overflow: hidden;
}

/* Background grid animation */
.maps-bg-grid {
    position: absolute; inset: 0; pointer-events: none;
    display: grid; grid-template-columns: repeat(6, 1fr);
}
.maps-bg-grid span {
    border-right: 1px solid rgba(59,130,246,0.03);
    animation: mapGridFade 5s ease-in-out infinite;
}
.maps-bg-grid span:nth-child(2) { animation-delay: 0.8s; }
.maps-bg-grid span:nth-child(3) { animation-delay: 1.6s; }
.maps-bg-grid span:nth-child(4) { animation-delay: 2.4s; }
.maps-bg-grid span:nth-child(5) { animation-delay: 3.2s; }
@keyframes mapGridFade {
    0%, 100% { border-color: rgba(59,130,246,0.03); }
    50% { border-color: rgba(59,130,246,0.08); }
}

.maps-header {
    max-width: 1400px; margin: 0 auto 2.5rem; position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 0.6rem;
}

/* Animated pin icon */
.maps-pin-icon {
    position: relative; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-accent); margin-bottom: 0.5rem;
}
.maps-pin-icon svg { width: 24px; height: 24px; animation: mapPinBounce 2s ease-in-out infinite; }
@keyframes mapPinBounce {
    0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); }
}
.maps-pin-pulse {
    position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 12px; height: 4px; background: rgba(59,130,246,0.3);
    border-radius: 50%; animation: mapPinPulse 2s ease-in-out infinite;
}
@keyframes mapPinPulse {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.4; }
    50% { transform: translateX(-50%) scaleX(1.8); opacity: 0.1; }
}

.maps-overline {
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--color-accent); display: block;
}
.maps-title {
    font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500; color: var(--color-white);
}
.maps-title em { font-style: italic; color: var(--color-accent-light); }
.maps-subtitle {
    font-size: 0.85rem; font-weight: 300; color: var(--color-text-muted);
    max-width: 400px; line-height: 1.6;
}

.maps-embed-wrap {
    position: relative; max-width: 1400px; margin: 0 auto;
    border-radius: 4px; overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.maps-embed-wrap iframe {
    display: block; filter: grayscale(0.15) contrast(1.02);
}

/* Corner frames */
.maps-frame-corner {
    position: absolute; width: 20px; height: 20px; z-index: 3;
    border-color: rgba(59,130,246,0.25); border-style: solid;
    transition: border-color 0.3s;
}
.maps-embed-wrap:hover .maps-frame-corner { border-color: rgba(59,130,246,0.5); }
.maps-fc-tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.maps-fc-tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.maps-fc-bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.maps-fc-br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* Map scanline */
.maps-scanline {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2), transparent);
    z-index: 2; animation: mapScanline 6s linear infinite;
    pointer-events: none;
}
@keyframes mapScanline { 0% { top: -2px; } 100% { top: 100%; } }

/* Bottom info bar */
.maps-info-bar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.65rem 1.2rem;
    background: rgba(10,10,10,0.85); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(59,130,246,0.1);
}
.maps-info-left {
    display: flex; align-items: center; gap: 0.8rem;
}
.maps-coord {
    font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
}
.maps-info-divider { color: rgba(255,255,255,0.15); font-size: 0.7rem; }
.maps-status {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.maps-status-dot {
    width: 5px; height: 5px; background: #22c55e; border-radius: 50%;
    animation: mapStatusBlink 2s ease-in-out infinite;
}
@keyframes mapStatusBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.maps-open-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.63rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    background: transparent; color: var(--color-accent);
    padding: 0.4rem 0.8rem; border-radius: 2px;
    border: 1px solid rgba(59,130,246,0.3);
    transition: all var(--transition-fast);
}
.maps-open-btn:hover {
    background: var(--color-accent); color: var(--color-black);
    box-shadow: 0 4px 16px rgba(59,130,246,0.25);
}

/* Footer location link */
.footer-location {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 300; color: var(--color-text-muted);
    margin-top: 0.75rem; transition: color var(--transition-fast);
}
.footer-location:hover { color: var(--color-accent); }
.footer-location svg { opacity: 0.65; flex-shrink: 0; }
.footer { border-top: 1px solid var(--color-border); padding: 4rem 3rem 2rem; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; max-width: 1400px; margin: 0 auto;
}
.footer-brand-name {
    font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-white); margin-bottom: 0.75rem;
}
.footer-brand-name span { color: var(--color-accent); }
.footer-brand-desc {
    font-size: 0.8rem; font-weight: 300; line-height: 1.8;
    color: var(--color-text-muted); max-width: 280px;
}
.footer-brand-tagline {
    font-family: var(--font-heading); font-style: italic; font-size: 0.82rem;
    color: var(--color-accent); margin-top: 0.75rem;
}
.footer-col-title {
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--color-text-secondary); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
    font-size: 0.8rem; font-weight: 300; color: var(--color-text-muted);
    transition: color var(--transition-fast), transform var(--transition-fast); display: inline-block;
}
.footer-links a:hover { color: var(--color-accent); transform: translateX(3px); }

.footer-bottom {
    max-width: 1400px; margin: 3rem auto 0; padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 0.7rem; color: var(--color-text-muted); }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-socials a {
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-text-muted); transition: color var(--transition-fast);
}
.footer-socials a:hover { color: var(--color-accent); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 640px) {
    .footer { padding: 3rem 1.25rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .maps-section { padding: 3.5rem 1.25rem; }
    .maps-embed-wrap iframe { height: 280px; }
    .maps-open-btn { font-size: 0.62rem; padding: 0.55rem 0.85rem; bottom: 0.75rem; right: 0.75rem; }
    .cta-contact-info { gap: 0.65rem; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
    overflow: hidden; padding: 1.75rem 0;
    border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
}
.marquee-track {
    display: flex; animation: marquee 35s linear infinite; white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    font-family: var(--font-heading); font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    font-weight: 700; color: var(--color-white); padding: 0 1.5rem;
    opacity: 0.1; transition: opacity var(--transition-fast); flex-shrink: 0;
}
.marquee-item:hover { opacity: 0.35; }
.marquee-separator {
    color: var(--color-accent); padding: 0 0.75rem; opacity: 0.3; flex-shrink: 0;
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================
   WAVEFORM DECORATION
   ============================================ */
.waveform-deco { display: flex; align-items: center; gap: 2px; height: 28px; opacity: 0.12; }
.waveform-deco span {
    width: 2px; background: var(--color-accent); border-radius: 1px;
    animation: waveBar 1.2s ease-in-out infinite;
}
.waveform-deco span:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform-deco span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.waveform-deco span:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.waveform-deco span:nth-child(4) { height: 70%; animation-delay: 0.3s; }
.waveform-deco span:nth-child(5) { height: 40%; animation-delay: 0.4s; }
.waveform-deco span:nth-child(6) { height: 80%; animation-delay: 0.5s; }
.waveform-deco span:nth-child(7) { height: 50%; animation-delay: 0.6s; }
.waveform-deco span:nth-child(8) { height: 90%; animation-delay: 0.7s; }
@keyframes waveBar { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ============================================
   BOKEH PARTICLES
   ============================================ */
.bokeh-container { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bokeh-particle {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
    opacity: 0; animation: bokehFloat linear infinite;
}
@keyframes bokehFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0.5); }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1.2); }
}

/* ============================================
   OVERLAYS
   ============================================ */
.noise-overlay {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat; background-size: 256px 256px;
}
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    z-index: 9999; transition: width 0.08s linear;
}

/* ============================================
   CASE STUDY PAGE
   ============================================ */
.case-hero {
    position: relative; width: 100%; height: 70vh; min-height: 450px;
    overflow: hidden; display: flex; align-items: flex-end;
}
.case-hero-media { position: absolute; inset: 0; }
.case-hero-media img, .case-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.case-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(10,10,10,1) 100%); z-index: 1;
}
.case-hero-content {
    position: relative; z-index: 2; padding: 4rem 3rem; max-width: 1400px; width: 100%; margin: 0 auto;
}
.case-hero-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-text-secondary);
    margin-bottom: 2rem; transition: color var(--transition-fast);
}
.case-hero-back:hover { color: var(--color-accent); }
.case-hero-back svg { width: 14px; height: 14px; }
.case-meta { display: flex; gap: 3rem; margin-top: 2rem; flex-wrap: wrap; }
.case-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.case-meta-label {
    font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-muted);
}
.case-meta-value { font-size: 0.85rem; color: var(--color-text-primary); }
.case-body { max-width: 1400px; margin: 0 auto; padding: 4rem 3rem; }
.case-text-block { max-width: 700px; margin-bottom: 4rem; }
.case-text-block h3 {
    font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600;
    color: var(--color-white); margin-bottom: 0.75rem;
}
.case-text-block p { font-size: 0.9rem; font-weight: 300; line-height: 1.9; color: var(--color-text-secondary); }
.case-gallery {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 4rem;
}
.case-gallery-item { border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; }
.case-gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-cinematic);
}
.case-gallery-item:hover img { transform: scale(1.03); }
.case-gallery-item.full-width { grid-column: span 2; aspect-ratio: 21 / 9; }

@media (max-width: 640px) {
    .case-hero-content { padding: 2rem 1.25rem; }
    .case-body { padding: 2rem 1.25rem; }
    .case-gallery { grid-template-columns: 1fr; }
    .case-gallery-item.full-width { grid-column: span 1; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-outline {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.2); padding: 0.85rem 1.7rem; border-radius: 2px;
    transition: all var(--transition-smooth);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline svg { width: 13px; height: 13px; transition: transform var(--transition-fast); }
.btn-outline:hover svg { transform: translateX(3px); }

.magnetic-btn { transition: transform 0.3s var(--ease-out-expo); }

/* ============================================
   DAY/NIGHT MODE TOGGLE — Sun/Moon Animation
   ============================================ */

/* ---- Light Mode (Day) Variables ---- */
[data-theme="light"] {
    --color-bg: #f5f3ef;
    --color-bg-elevated: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-overlay: rgba(245, 243, 239, 0.90);
    --color-text-primary: #1a1a2e;
    --color-text-secondary: #4a4a5a;
    --color-text-muted: #8a8a9a;
    --color-accent: #2563eb;
    --color-accent-light: #3b82f6;
    --color-accent-glow: rgba(37, 99, 235, 0.12);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-hover: rgba(0, 0, 0, 0.18);
    --color-white: #1a1a2e;
    --color-black: #ffffff;
    --color-red: #dc2626;
    --color-cyan: #0284c7;
}

/* Scrollbar for light mode */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--color-bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--color-accent); }
[data-theme="light"] ::selection { background: var(--color-accent); color: #fff; }

/* Override specific elements that use hard-coded dark values */
[data-theme="light"] body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
}

[data-theme="light"] .loader {
    background: #f5f3ef;
}
[data-theme="light"] .loader-logo-svg text[fill="white"] {
    fill: #1a1a2e;
}

[data-theme="light"] .nav.scrolled {
    background: rgba(245, 243, 239, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-logo { color: #1a1a2e; }
[data-theme="light"] .nav-cta { color: #fff; }
[data-theme="light"] .nav-menu-btn span { background: #1a1a2e; }
/* Transparent nav over video hero — keep white text + shadow for contrast */
[data-theme="light"] .nav:not(.scrolled) .nav-logo { color: #ffffff; }
[data-theme="light"] .nav:not(.scrolled) .nav-center a {
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
[data-theme="light"] .nav:not(.scrolled) .nav-center a:hover { color: #ffffff; }
[data-theme="light"] .nav:not(.scrolled) .nav-menu-btn span { background: #ffffff; }

[data-theme="light"] .mobile-menu {
    background: rgba(245, 243, 239, 0.98);
}
[data-theme="light"] .mobile-menu a { color: var(--color-text-secondary); }
[data-theme="light"] .mobile-menu a:hover { color: var(--color-accent); }

[data-theme="light"] .hero-video-wrap::after {
    /* Strong enough overlay for clear text readability, while video still shows */
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.40) 45%, rgba(0,0,0,0.50) 70%, rgba(245,243,239,1) 100%);
}
[data-theme="light"] .hero-content::before {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%, transparent 65%);
}
[data-theme="light"] .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0,0,0,0.85), 0 1px 6px rgba(0,0,0,0.7);
}
[data-theme="light"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
[data-theme="light"] .hero-tag {
    color: #ffffff;
    text-shadow: none;
}
[data-theme="light"] .hero-tag {
    background: transparent;
}
[data-theme="light"] .hero-cta {
    color: #ffffff; border-color: rgba(255,255,255,0.3);
}
[data-theme="light"] .hero-cta:hover {
    background: #ffffff; color: #1a1a2e; border-color: #ffffff;
}
[data-theme="light"] .hero-cta-secondary { color: rgba(255,255,255,0.78); }
[data-theme="light"] .hero-cta-secondary:hover { color: var(--color-accent-light); }
[data-theme="light"] .vf-corner::before, [data-theme="light"] .vf-corner::after { background: #1a1a2e; }

[data-theme="light"] .service-card {
    background: #fff;
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
[data-theme="light"] .service-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
[data-theme="light"] .service-card:hover .service-video-bg { opacity: 0.3; }
[data-theme="light"] .service-card-title {
    color: #1a1a2e;
}
[data-theme="light"] .service-card-desc {
    color: #4a4a5a;
}
[data-theme="light"] .service-card:hover .service-card-title {
    color: var(--color-accent);
}
[data-theme="light"] .service-card:hover .service-card-desc {
    color: #1a1a2e;
}
[data-theme="light"] .service-number {
    color: #8a8a9a;
}

[data-theme="light"] .showreel-player {
    box-shadow: 0 40px 100px rgba(0,0,0,0.12);
}
[data-theme="light"] .showreel-play-btn { border-color: rgba(0,0,0,0.2); }
[data-theme="light"] .showreel-play-btn svg { fill: #1a1a2e; }

[data-theme="light"] .portfolio-card {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
[data-theme="light"] .portfolio-card.active {
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 40px rgba(37, 99, 235, 0.06);
}

/* Ensure portfolio carousel overlay text remains bright in light mode */
[data-theme="light"] .portfolio-card-title {
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
[data-theme="light"] .portfolio-card-client {
    color: rgba(255,255,255,0.9);
}
[data-theme="light"] .portfolio-card-category {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6), 0 2px 18px rgba(0,0,0,0.8);
}

[data-theme="light"] .carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .carousel-btn svg { stroke: #1a1a2e; }

[data-theme="light"] .featured-card {
    background: #111;
}
[data-theme="light"] .featured-card-title { color: #ffffff; }
[data-theme="light"] .featured-card-tag { color: var(--color-accent-light); }
[data-theme="light"] .featured-card-desc { color: rgba(255,255,255,0.78); }
[data-theme="light"] .featured-card-timecode { color: rgba(255,255,255,0.5); }
[data-theme="light"] .featured-card-fps { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.15); }
[data-theme="light"] .featured-card-rec { color: #ef4444; }

[data-theme="light"] .client-card {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .client-card:hover {
    background: rgba(37, 99, 235, 0.04);
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
[data-theme="light"] .client-card img {
    filter: grayscale(1) brightness(1); opacity: 0.4;
}
[data-theme="light"] .client-card:hover img {
    filter: grayscale(0) brightness(1); opacity: 1;
}

[data-theme="light"] .about-visual::after { border-color: rgba(0,0,0,0.08); }

[data-theme="light"] .cta-bg::after {
    /* Reduced overlay so CTA background video is clearly visible */
    background: radial-gradient(ellipse at center, rgba(245,243,239,0.15) 0%, rgba(245,243,239,0.80) 70%);
}
[data-theme="light"] .cta-btn { color: #fff; }

/* Case hero — gradient fades to page bg in light mode, not black */
[data-theme="light"] .case-hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(245,243,239,1) 100%);
}

/* Outline button — visible border and text in light mode */
[data-theme="light"] .btn-outline {
    color: #1a1a2e;
    border-color: rgba(26,26,46,0.25);
}
[data-theme="light"] .btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

[data-theme="light"] .maps-section {
    background: var(--color-bg-elevated);
    border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .maps-info-bar {
    background: rgba(255,255,255,0.9);
    border-top-color: rgba(37, 99, 235, 0.08);
}
[data-theme="light"] .maps-coord { color: rgba(0,0,0,0.45); }

[data-theme="light"] .footer {
    background: #eae8e3;
    border-top-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .marquee-wrap {
    border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .bokeh-particle {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
}

[data-theme="light"] .noise-overlay { opacity: 0.012; }

[data-theme="light"] .cursor-dot { background: var(--color-accent); }
[data-theme="light"] .cursor-ring { border-color: var(--color-accent); }

/* ---- Theme Toggle Button ---- */
.theme-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}
[data-theme="light"] .theme-toggle {
    border-color: rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #87CEEB 0%, #e0f2fe 100%);
}

/* Sky/Stars background inside toggle */
.theme-toggle-bg {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    overflow: hidden;
    transition: opacity 0.6s ease;
}

/* Stars (visible in dark mode) */
.toggle-stars {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
}
.toggle-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite alternate;
}
.toggle-stars span:nth-child(1) { top: 6px; left: 8px; animation-delay: 0s; }
.toggle-stars span:nth-child(2) { top: 14px; left: 16px; animation-delay: 0.4s; width: 1.5px; height: 1.5px; }
.toggle-stars span:nth-child(3) { top: 8px; left: 24px; animation-delay: 0.8s; }
.toggle-stars span:nth-child(4) { top: 18px; left: 32px; animation-delay: 1.2s; width: 1px; height: 1px; }
.toggle-stars span:nth-child(5) { top: 5px; left: 38px; animation-delay: 0.3s; width: 1.5px; height: 1.5px; }
[data-theme="light"] .toggle-stars { opacity: 0; }

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Clouds (visible in light mode) */
.toggle-clouds {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}
.toggle-clouds span {
    position: absolute;
    background: rgba(255,255,255,0.8);
    border-radius: 50px;
    height: 4px;
}
.toggle-clouds span:nth-child(1) { width: 12px; top: 10px; left: 6px; animation: cloudDrift 4s ease-in-out infinite alternate; }
.toggle-clouds span:nth-child(2) { width: 8px; top: 16px; left: 18px; animation: cloudDrift 5s ease-in-out infinite alternate-reverse; }
.toggle-clouds span:nth-child(3) { width: 10px; top: 8px; left: 28px; animation: cloudDrift 3.5s ease-in-out infinite alternate; opacity: 0.6; }
[data-theme="light"] .toggle-clouds { opacity: 1; }

@keyframes cloudDrift {
    0% { transform: translateX(0); }
    100% { transform: translateX(3px); }
}

/* The Sun/Moon orb */
.theme-toggle-orb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8e8e8;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    box-shadow: 0 0 8px rgba(200, 200, 200, 0.4);
    overflow: hidden;
}

/* Moon craters */
.orb-crater {
    position: absolute;
    border-radius: 50%;
    background: rgba(180, 180, 180, 0.5);
    transition: opacity 0.4s ease;
}
.orb-crater:nth-child(1) { width: 5px; height: 5px; top: 4px; left: 3px; }
.orb-crater:nth-child(2) { width: 3px; height: 3px; top: 10px; left: 10px; }
.orb-crater:nth-child(3) { width: 4px; height: 4px; top: 12px; left: 4px; opacity: 0.4; }

/* Sun rays (hidden in dark mode, visible in light) */
.orb-rays {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.orb-rays span {
    position: absolute;
    width: 2px;
    height: 5px;
    background: #fbbf24;
    border-radius: 2px;
    left: 50%;
    top: 0;
    transform-origin: 50% 16px;
}
.orb-rays span:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.orb-rays span:nth-child(2) { transform: translateX(-50%) rotate(45deg); }
.orb-rays span:nth-child(3) { transform: translateX(-50%) rotate(90deg); }
.orb-rays span:nth-child(4) { transform: translateX(-50%) rotate(135deg); }
.orb-rays span:nth-child(5) { transform: translateX(-50%) rotate(180deg); }
.orb-rays span:nth-child(6) { transform: translateX(-50%) rotate(225deg); }
.orb-rays span:nth-child(7) { transform: translateX(-50%) rotate(270deg); }
.orb-rays span:nth-child(8) { transform: translateX(-50%) rotate(315deg); }

/* Light mode = Sun state */
[data-theme="light"] .theme-toggle-orb {
    left: calc(100% - 23px);
    background: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6), 0 0 30px rgba(251, 191, 36, 0.2);
}
[data-theme="light"] .orb-crater { opacity: 0; }
[data-theme="light"] .orb-rays { opacity: 1; animation: sunRaysRotate 12s linear infinite; }
@keyframes sunRaysRotate { to { transform: rotate(360deg); } }

/* Horizon line animation */
.theme-toggle-horizon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 0 0 50px 50px;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.5), transparent);
    z-index: 1;
    transition: all 0.6s ease;
}
[data-theme="light"] .theme-toggle-horizon {
    background: linear-gradient(to top, rgba(34, 197, 94, 0.2), transparent);
}

/* Toggle transition animation classes */
.theme-toggle.transitioning .theme-toggle-orb {
    animation: orbRiseSet 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes orbRiseSet {
    0% { transform: translateY(0); }
    30% { transform: translateY(10px); }
    60% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* Mobile adjustments for toggle */
.theme-toggle-mobile {
    display: none;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .theme-toggle-mobile { display: flex; align-items: center; gap: 0.6rem; }
    .theme-toggle-mobile .theme-toggle-label {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--color-text-muted);
    }
}

/* ---- Nav Logo Image ---- */
.nav-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: filter 0.5s ease, opacity 0.3s ease, height 0.3s ease;
    /* Dark mode default: white logo */
    filter: brightness(0) invert(1);
}
.nav.scrolled .nav-logo-img { height: 38px; }
/* Light mode: show original logo colors */
[data-theme="light"] .nav-logo-img {
    filter: none;
}
.nav-logo:hover .nav-logo-img { opacity: 0.7; }
.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
    transition: filter 0.5s ease;
    /* Dark mode default: white logo */
    filter: brightness(0) invert(1);
}
/* Light mode: show original logo colors */
[data-theme="light"] .footer-logo-img {
    filter: none;
}

/* ---- Theme Transition Smoothing ---- */
body, body *, body *::before, body *::after {
    transition-property: background-color, color, border-color, box-shadow, fill, stroke, filter, opacity;
}
/* Only add transition to non-animated elements to prevent conflicts */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition-duration: 0.5s !important;
}

/* ============================================
   RESPONSIVE FINE-TUNING
   ============================================ */
@media (max-width: 480px) {
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 0.82rem; }
    .hero-cta-wrap { flex-direction: column; }
    .section-title { font-size: 1.75rem; }
    .cta-title { font-size: 1.9rem; }
    .about-stats { gap: 1.25rem; }
    .stat-number { font-size: 2rem; }
    .case-meta { gap: 1.5rem; }
}
@media (max-width: 360px) {
    .nav { padding: 1rem; }
    .nav-logo { font-size: 0.95rem; }
    .hero-title { font-size: 1.8rem; }
    .section { padding: 3.5rem 1rem; }
}
