/* iQ Pictures Style Rules - Cinematic Dark & Gold Theme */

/* === Loading Screen === */
.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0a0a0d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader-overlay.loader-done {
    opacity: 0;
    pointer-events: none;
}

body.loading {
    overflow: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Rings container — holds logo + spinning rings */
.loader-rings {
    position: relative;
    width: 286px;
    height: 286px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Concentric rings */
.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(212, 175, 55, 0.15);
    border-top-color: rgba(212, 175, 55, 0.7);
    animation: loaderSpin 1.8s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    border-color: rgba(45, 90, 155, 0.1);
    border-bottom-color: rgba(45, 90, 155, 0.5);
    animation: loaderSpin 2.4s linear infinite reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    border-color: rgba(212, 118, 44, 0.1);
    border-left-color: rgba(212, 118, 44, 0.5);
    animation: loaderSpin 1.4s linear infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

/* Lens flare — a bright sweep across the logo */
.loader-flare {
    position: absolute;
    width: 160%;
    height: 4px;
    top: 50%;
    left: -30%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.8), rgba(255,255,255,0.9), rgba(212,175,55,0.8), transparent);
    filter: blur(3px);
    transform: translateY(-50%) scaleX(0);
    animation: flareSweep 2.8s ease-in-out 0.6s forwards;
    border-radius: 50%;
    z-index: 5;
}

@keyframes flareSweep {
    0%   { transform: translateY(-50%) translateX(-100%) scaleX(0.3); opacity: 0; }
    30%  { opacity: 1; }
    50%  { transform: translateY(-50%) translateX(0%) scaleX(1); opacity: 1; }
    100% { transform: translateY(-50%) translateX(100%) scaleX(0.3); opacity: 0; }
}

/* The actual logo image */
.loader-logo {
    width: 143px;
    height: auto;
    position: relative;
    z-index: 3;
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.7);
    animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes logoReveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Progress bar underneath */
.loader-bar-track {
    width: 234px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.loader-percent {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.15em;
    margin-top: -0.8rem;
    opacity: 0;
    animation: brandFadeIn 0.5s ease 0.3s forwards;
}

@keyframes brandFadeIn {
    to { opacity: 1; }
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2d5a9b, #d4af37, #d4762c);
    border-radius: 2px;
    animation: barFill 2.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes barFill {
    to { width: 100%; }
}

:root {
    --bg-obsidian: #0a0a0d;
    --bg-surface-dark: #121217;
    --bg-surface-light: #1c1c24;
    --accent-gold: #d4af37;
    --accent-gold-hover: #f1c40f;
    --accent-gold-rgb: 212, 175, 55;
    --text-primary: #ffffff;
    --text-secondary: #a0a0aa;
    --text-muted: #71717a;
    --glass-bg: rgba(18, 18, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Document Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset sticky navbar */
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
    background: #27273a;
    border-radius: 5px;
    border: 2px solid var(--bg-obsidian);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Common UI Elements & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-obsidian);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

/* Lightbox Modal styling */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 6, 8, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #000;
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-primary);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1010;
}

.close-lightbox:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

/* Sticky Translucent Glassmorphism Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.25));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.logo-accent {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation buttons (Desktop/Mobile) */
.nav-btn-desktop {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-left: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    white-space: nowrap;
}

.nav-btn-mobile {
    display: none;
}

/* Hero Section with Video Background */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Block clicking background video */
}

/* Scale video to cover viewport nicely */
@media (min-aspect-ratio: 16/9) {
    .bg-video {
        height: 56.25vw;
    }
}
@media (max-aspect-ratio: 16/9) {
    .bg-video {
        width: 177.78vh;
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 13, 0) 0%, rgba(10, 10, 13, 0.4) 50%, rgba(10, 10, 13, 0.8) 80%, var(--bg-obsidian) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffeb99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.75rem;
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-down:hover {
    color: var(--accent-gold);
}

/* Motto Section */
.motto-section {
    position: relative;
    background-color: #050508;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44vh; /* Added 10% more space: from 40vh to 44vh */
    overflow: hidden;
    padding: 3.5rem 2rem; /* Adjusted padding */
    perspective: 1200px;
    cursor: none;
}

/* Top & bottom fade overlays for smooth section transitions */
.motto-fade-top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg-obsidian) 0%, transparent 100%);
    pointer-events: none;
    z-index: 8;
}

.motto-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px; /* Even longer, smoother transition gradient at the bottom */
    background: linear-gradient(to top, #060609 0%, transparent 100%); /* Fades seamlessly into next section */
    pointer-events: none;
    z-index: 8;
}

/* Custom cursor dot for motto section */
.motto-section::after {
    content: '';
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    z-index: 100;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}
.motto-section:hover::after {
    opacity: 1;
}

/* Ambient pulsing glow — deep background */
.motto-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 40%, rgba(45, 90, 155, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 70% 60%, rgba(212, 175, 55, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(140, 60, 200, 0.04) 0%, transparent 70%);
    animation: mottoGlowPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mottoGlowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.05); }
}

/* === SCI-FI PERSPECTIVE GRID FLOOR === */
.mpx-grid-floor {
    position: absolute;
    bottom: -10%;
    left: -20%;
    width: 140%;
    height: 70%;
    background:
        linear-gradient(rgba(212,175,55,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(55deg);
    transform-origin: center bottom;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
    pointer-events: none;
    animation: gridScroll 8s linear infinite;
    will-change: transform;
}

@keyframes gridScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

/* === SCANLINES OVERLAY === */
.mpx-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 6;
}

/* --- Parallax Layers --- */
.mpx-layer {
    position: absolute;
    inset: -25%;
    pointer-events: none;
    will-change: transform;
}

/* === NEBULA ORBS === */
.mpx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    mix-blend-mode: screen;
}
.mpx-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.9), transparent 70%);
    top: 0%; left: 5%;
    animation: orbFloat1 12s ease-in-out infinite;
}
.mpx-orb-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(60,100,220,0.8), transparent 70%);
    bottom: 5%; right: 5%;
    animation: orbFloat2 14s ease-in-out infinite;
}
.mpx-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(160,60,210,0.6), transparent 70%);
    top: 40%; right: 20%;
    animation: orbFloat3 10s ease-in-out infinite;
}
.mpx-orb-4 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(212,175,55,0.5), transparent 70%);
    bottom: 20%; left: 25%;
    animation: orbFloat2 16s ease-in-out infinite 4s;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, -20px) scale(1.1); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(-20px, 25px) scale(1.08); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(15px, 15px) scale(0.92); }
}

/* === HOLOGRAPHIC RINGS === */
.mpx-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.mpx-ring-1 {
    width: 550px; height: 550px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-width: 1px;
    animation: ringRotate1 20s linear infinite, ringPulse 6s ease-in-out infinite;
}
.mpx-ring-2 {
    width: 380px; height: 380px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(60, 100, 220, 0.08);
    animation: ringRotate2 15s linear infinite reverse, ringPulse 6s ease-in-out infinite 2s;
}
.mpx-ring-3 {
    width: 700px; height: 700px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(160, 60, 210, 0.05);
    border-style: dashed;
    animation: ringRotate1 30s linear infinite, ringPulse 8s ease-in-out infinite 1s;
}

@keyframes ringRotate1 {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes ringRotate2 {
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.8; }
    50%       { opacity: 0.25; }
}

/* === FLOATING PARTICLES === */
.mpx-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
    animation: particleDrift 8s ease-in-out infinite;
}

.p1 { top: 15%; left: 20%; animation-delay: 0s; animation-duration: 7s; }
.p2 { top: 70%; left: 80%; animation-delay: 1s; animation-duration: 9s; width: 2px; height: 2px; }
.p3 { top: 30%; left: 65%; animation-delay: 2s; animation-duration: 6s; background: rgba(60,100,220,0.6); box-shadow: 0 0 6px rgba(60,100,220,0.4); }
.p4 { top: 80%; left: 35%; animation-delay: 3s; animation-duration: 10s; }
.p5 { top: 50%; left: 10%; animation-delay: 0.5s; animation-duration: 8s; width: 4px; height: 4px; }
.p6 { top: 20%; left: 85%; animation-delay: 4s; animation-duration: 11s; background: rgba(160,60,210,0.5); box-shadow: 0 0 6px rgba(160,60,210,0.3); }
.p7 { top: 60%; left: 50%; animation-delay: 2.5s; animation-duration: 7.5s; width: 2px; height: 2px; }
.p8 { top: 40%; left: 40%; animation-delay: 1.5s; animation-duration: 9.5s; }
.p9 { top: 10%; left: 45%; animation-delay: 0.8s; animation-duration: 6.5s; background: rgba(0,220,220,0.6); box-shadow: 0 0 8px rgba(0,220,220,0.4); width: 3px; height: 3px; }
.p10 { top: 85%; left: 60%; animation-delay: 3.5s; animation-duration: 8.5s; width: 2px; height: 2px; }
.p11 { top: 25%; left: 30%; animation-delay: 1.2s; animation-duration: 7s; background: rgba(60,100,220,0.5); box-shadow: 0 0 6px rgba(60,100,220,0.3); }
.p12 { top: 55%; left: 75%; animation-delay: 2.8s; animation-duration: 10.5s; width: 4px; height: 4px; background: rgba(160,60,210,0.6); box-shadow: 0 0 8px rgba(160,60,210,0.4); }

/* Close-range fast particles (foreground, bigger, brighter) */
.p13 { top: 20%; left: 15%; animation-delay: 0s; animation-duration: 5s; width: 5px; height: 5px; animation-name: particleDriftFast; }
.p14 { top: 75%; left: 90%; animation-delay: 1.5s; animation-duration: 6s; width: 4px; height: 4px; background: rgba(0,220,220,0.7); box-shadow: 0 0 10px rgba(0,220,220,0.5); animation-name: particleDriftFast; }
.p15 { top: 45%; left: 5%; animation-delay: 0.7s; animation-duration: 4.5s; width: 6px; height: 6px; animation-name: particleDriftFast; }
.p16 { top: 90%; left: 50%; animation-delay: 2s; animation-duration: 5.5s; width: 3px; height: 3px; background: rgba(60,100,220,0.7); box-shadow: 0 0 10px rgba(60,100,220,0.5); animation-name: particleDriftFast; }
.p17 { top: 35%; left: 92%; animation-delay: 3s; animation-duration: 7s; width: 5px; height: 5px; background: rgba(160,60,210,0.6); box-shadow: 0 0 10px rgba(160,60,210,0.4); animation-name: particleDriftFast; }
.p18 { top: 65%; left: 25%; animation-delay: 0.3s; animation-duration: 5.8s; width: 4px; height: 4px; animation-name: particleDriftFast; }
.p19 { top: 5%; left: 70%; animation-delay: 1.8s; animation-duration: 6.5s; width: 3px; height: 3px; background: rgba(0,220,220,0.5); box-shadow: 0 0 8px rgba(0,220,220,0.3); animation-name: particleDriftFast; }
.p20 { top: 50%; left: 55%; animation-delay: 2.5s; animation-duration: 4.8s; width: 5px; height: 5px; animation-name: particleDriftFast; }

@keyframes particleDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25%       { transform: translate(15px, -25px) scale(1.5); opacity: 1; }
    50%       { transform: translate(-10px, -40px) scale(0.8); opacity: 0.6; }
    75%       { transform: translate(20px, -15px) scale(1.2); opacity: 0.9; }
}

@keyframes particleDriftFast {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    20%       { transform: translate(-25px, -35px) scale(2); opacity: 1; }
    40%       { transform: translate(30px, -60px) scale(0.6); opacity: 0.4; }
    60%       { transform: translate(-15px, -80px) scale(1.5); opacity: 0.8; }
    80%       { transform: translate(20px, -50px) scale(1); opacity: 0.5; }
}

/* === CHROMATIC ABERRATION OVERLAY === */
.mpx-chromatic {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.motto-section:hover .mpx-chromatic {
    opacity: 1;
}

.mpx-chromatic::before,
.mpx-chromatic::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.mpx-chromatic::before {
    background: linear-gradient(135deg,
        rgba(255, 0, 60, 0.04) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 0, 60, 0.03) 100%
    );
    animation: chromaticShift 4s ease-in-out infinite;
}

.mpx-chromatic::after {
    background: linear-gradient(225deg,
        rgba(0, 180, 255, 0.04) 0%,
        transparent 40%,
        transparent 60%,
        rgba(0, 180, 255, 0.03) 100%
    );
    animation: chromaticShift 4s ease-in-out infinite 2s;
}

@keyframes chromaticShift {
    0%, 100% { transform: translate(0, 0); }
    25%       { transform: translate(3px, -1px); }
    50%       { transform: translate(-2px, 2px); }
    75%       { transform: translate(1px, -2px); }
}

/* === DOT MATRIX GRID === */
.mpx-dots {
    background-image: radial-gradient(circle, rgba(212,175,55,0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.25;
}

/* --- 3D Scene Wrapper --- */
.motto-3d-scene {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s linear;
}

.motto-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.motto-line {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    line-height: 1.15;
    margin-bottom: 0.15em;
}

.motto-word {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 7vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) skewY(4deg);
    will-change: opacity, transform;
    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.63),
        0 0 20px rgba(255, 255, 255, 0.35),
        0 0 40px rgba(200, 200, 255, 0.21),
        0 0 80px rgba(140, 160, 255, 0.105),
        2px 0 rgba(255, 0, 60, 0),
        -2px 0 rgba(0, 180, 255, 0);
    animation: textChromatic 6s ease-in-out infinite;
    transition: color 0.3s ease, text-shadow 0.3s ease, filter 0.3s ease;
}

.motto-word:hover {
    color: #ff3333 !important;
    -webkit-text-fill-color: #ff3333 !important;
    text-shadow:
        0 0 7px rgba(255, 51, 51, 0.63),
        0 0 20px rgba(255, 51, 51, 0.35),
        0 0 40px rgba(255, 51, 51, 0.21),
        0 0 80px rgba(255, 51, 51, 0.105) !important;
}

@keyframes textChromatic {
    0%, 100% {
        text-shadow:
            0 0 7px rgba(255,255,255,0.63),
            0 0 20px rgba(255,255,255,0.35),
            0 0 40px rgba(200,200,255,0.21),
            0 0 80px rgba(140,160,255,0.105),
            2px 0 rgba(255,0,60,0),
            -2px 0 rgba(0,180,255,0);
    }
    40% {
        text-shadow:
            0 0 7px rgba(255,255,255,0.63),
            0 0 22px rgba(255,255,255,0.42),
            0 0 45px rgba(200,200,255,0.245),
            0 0 80px rgba(140,160,255,0.105),
            2px 0 rgba(255,0,60,0.06),
            -2px 0 rgba(0,180,255,0.06);
    }
    50% {
        text-shadow:
            0 0 10px rgba(255,255,255,0.7),
            0 0 25px rgba(255,255,255,0.49),
            0 0 50px rgba(200,200,255,0.28),
            0 0 90px rgba(140,160,255,0.14),
            3px 0 rgba(255,0,60,0.12),
            -3px 0 rgba(0,180,255,0.12);
    }
    60% {
        text-shadow:
            0 0 7px rgba(255,255,255,0.63),
            0 0 22px rgba(255,255,255,0.42),
            0 0 45px rgba(200,200,255,0.245),
            0 0 80px rgba(140,160,255,0.105),
            2px 0 rgba(255,0,60,0.06),
            -2px 0 rgba(0,180,255,0.06);
    }
}

.accent-word {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffe680 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mottoShimmer 3s linear infinite;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.56))
            drop-shadow(0 0 20px rgba(212, 175, 55, 0.28))
            drop-shadow(0 0 40px rgba(212, 175, 55, 0.14));
}

.accent-word:hover {
    background: none !important;
    -webkit-text-fill-color: #ff3333 !important;
    filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.56))
            drop-shadow(0 0 20px rgba(255, 51, 51, 0.28))
            drop-shadow(0 0 40px rgba(255, 51, 51, 0.14)) !important;
}

@keyframes mottoShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.motto-underline {
    margin: 1.8rem auto 0;
    height: 3px;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    will-change: width;
}

/* Company Bio Section Styles */
.company-bio-section {
    background-color: #060609;
    position: relative;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    overflow: visible;
}

/* Background Tech Accents */
.bio-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    pointer-events: none;
}

.bio-glow-light {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(50px);
}

.bio-vector-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    height: 1px;
    width: 100%;
    pointer-events: none;
}
.bio-vector-line.line-1 { top: 15%; }
.bio-vector-line.line-2 { bottom: 15%; }

/* Scroll-Triggered Text Reveal */
.reveal-text-flow {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.reveal-text-flow span {
    display: block;
    transform: translateY(100%) rotateX(-20deg);
    transform-origin: left top;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
.reveal.active-reveal .reveal-text-flow span,
.active-reveal.reveal-text-flow span {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
}
.reveal.active-reveal .reveal-text-flow span:nth-child(2) { transition-delay: 0.15s; }
.reveal.active-reveal .reveal-text-flow span:nth-child(3) { transition-delay: 0.3s; }

.reveal-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active-reveal .reveal-fade-up,
.active-reveal.reveal-fade-up {
    opacity: 1;
    transform: translateY(0);
}
.reveal.active-reveal .reveal-fade-up { transition-delay: 0.3s; }

/* Sticky Horizontal Arc Timeline Styling */
.timeline-pin-track {
    position: relative;
    height: 450vh; /* Controlled scroll length for horizontal slide */
    background: #060609;
    width: 100%;
}

.timeline-sticky-container {
    position: sticky;
    top: 50px; /* Sticks 50px down from viewport top */
    height: calc(100vh - 50px); /* Fill remaining viewport space */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #060609;
}

.timeline-header-sticky {
    position: absolute;
    top: 105px; /* Moved down 75px */
    text-align: center;
    z-index: 10;
}

/* Match 'Our History' tag style to the golden neon tracker heading */
.timeline-header-sticky .section-tag {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: transparent;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffeb99 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShift 4s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8))
            drop-shadow(0 0 20px rgba(212, 175, 55, 0.4))
            drop-shadow(0 0 35px rgba(212, 175, 55, 0.2));
    margin-bottom: 0;
}

.timeline-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 800px;
    margin-top: 20px; /* Shifted up */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide off-screen elements to prevent horizontal overflow and right-side gaps */
}

.timeline-arc-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    top: 0;
    transform: none;
    pointer-events: none;
    z-index: 2;
}

.timeline-arc-svg {
    width: 100%;
    height: 100%;
    opacity: 0.75;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.25));
}

.timeline-glow-thumb.timeline-tracker-text {
    position: absolute;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, 125px); /* Position text immediately below the path curve */
    z-index: 12;
    will-change: left, top;
    
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffeb99 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShift 4s linear infinite;
    
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8))
            drop-shadow(0 0 20px rgba(212, 175, 55, 0.4))
            drop-shadow(0 0 35px rgba(212, 175, 55, 0.2));
}

.timeline-step-node {
    position: absolute;
    width: 525px; /* Increased by 25% (was 420px) */
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    transform-origin: bottom center;
    z-index: 8;
    will-change: left, top, opacity, transform;
    transition: opacity 0.25s ease, transform 0.15s ease-out;
}

.node-dot-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 24px;
    height: 24px;
    z-index: 9;
}

.node-dot-wrap .node-dot {
    width: 14px;
    height: 14px;
    background: #060609;
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
    margin: 5px;
}

.node-dot-wrap .node-pulse {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--accent-gold);
    border-radius: 50%;
    top: -6px;
    left: -6px;
    opacity: 0;
    z-index: 1;
    animation: nodeWavePulse 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes nodeWavePulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.step-card-wrap {
    position: relative;
    width: 525px; /* Matches parent width */
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 1.3rem 1.8rem;
    border-radius: 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
    margin-bottom: 20px; /* Gap to dot */
    margin-top: 25px; /* Gap exactly 25px to bottom of graphic above */
}

.step-graphic-wrap {
    position: relative;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Custom stage scale overrides inside horizontal slider - Expanded graphics */
.timeline-step-node .small-stage {
    width: 450px;
    height: 500px;
}
.timeline-step-node .small-stage .holo-ring {
    top: 100% !important;
}
.timeline-step-node .small-stage .holo-ring.r1 {
    width: 420px;
    height: 420px;
    margin-top: -210px;
    margin-left: -210px;
}
.timeline-step-node .small-stage .holo-ring.r2 {
    width: 320px;
    height: 320px;
    margin-top: -160px;
    margin-left: -160px;
}
.timeline-step-node .small-stage .holo-ring.r3 {
    width: 240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
}
/* Ambient glow sphere sizing inside timeline stage */
.timeline-step-node .small-stage .holo-beam {
    width: 380px;
    height: 380px;
    bottom: auto !important;
    top: 50% !important; /* default fallback */
}

/* Per-graphic glow centering: beam center = graphic top + graphic height/2 */
.timeline-step-node .small-stage .seattle-hologram ~ .holo-beam {
    top: 387px !important; /* 200 + 375/2 */
}
.timeline-step-node .small-stage .la-hologram ~ .holo-beam {
    top: 360px !important; /* 110 + 500/2 */
}
.timeline-step-node .small-stage .views-hologram ~ .holo-beam {
    top: 450px !important; /* 200 + 500/2 */
}
.timeline-step-node .small-stage .wok-hologram ~ .holo-beam {
    top: 450px !important; /* 200 + 500/2 */
}
.timeline-step-node .small-stage .team-hologram ~ .holo-beam {
    top: 450px !important; /* 200 + 500/2 */
}
.timeline-step-node .small-stage .deal-hologram ~ .holo-beam {
    top: 360px !important; /* 110 + 500/2 */
}

/* Per-graphic dust centering: cluster particles around the same center */
.timeline-step-node .small-stage .seattle-hologram ~ .holo-dust {
    position: absolute; top: 287px; left: 0; width: 100%; height: 200px;
}
.timeline-step-node .small-stage .la-hologram ~ .holo-dust {
    position: absolute; top: 260px; left: 0; width: 100%; height: 200px;
}
.timeline-step-node .small-stage .views-hologram ~ .holo-dust {
    position: absolute; top: 350px; left: 0; width: 100%; height: 200px;
}
.timeline-step-node .small-stage .wok-hologram ~ .holo-dust {
    position: absolute; top: 350px; left: 0; width: 100%; height: 200px;
}
.timeline-step-node .small-stage .team-hologram ~ .holo-dust {
    position: absolute; top: 350px; left: 0; width: 100%; height: 200px;
}
.timeline-step-node .small-stage .deal-hologram ~ .holo-dust {
    position: absolute; top: 260px; left: 0; width: 100%; height: 200px;
}

.timeline-step-node .small-stage .left-hud {
    left: -60px;
    bottom: 15px;
}
.timeline-step-node .small-stage .right-hud {
    right: -60px;
    bottom: 15px;
}

/* Responsive details for tablet/mobile screens */
@media (max-width: 900px) {
    .timeline-slider-wrapper {
        height: 560px;
        margin-top: 120px;
    }
    .timeline-arc-wrapper {
        height: 350px;
    }
    .step-card-wrap {
        width: calc(100% - 20px);
        max-width: 350px;
        padding: 1.1rem 1.3rem;
        margin-top: 15px;
        margin-bottom: 12px;
    }
    .step-card-wrap .step-title {
        font-size: 1.3rem !important;
    }
    .step-card-wrap .step-desc {
        font-size: 0.8rem !important;
    }
    .timeline-step-node {
        width: 100vw;
        max-width: 350px;
    }
    .timeline-step-node .small-stage {
        transform: scale(0.6) !important;
    }
}

.hologram-stage {
    position: relative;
    width: 250px;
    height: 250px;
    perspective: 800px;
}

.seattle-hologram,
.la-hologram,
.views-hologram,
.wok-hologram,
.team-hologram,
.deal-hologram {
    position: absolute;
    width: 450px;
    height: 500px;
    top: 110px;
    left: 0;
    transform-style: preserve-3d;
    transform: rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.seattle-hologram {
    width: 337px !important;
    height: 375px !important;
    left: 56.5px !important;
    top: 200px !important;
}

/* Steps 3, 4, 5 — bottom of graphic ~30px above text box top */
.views-hologram,
.wok-hologram,
.team-hologram {
    top: 200px !important;
}

.timeline-step-node:hover .seattle-hologram,
.timeline-step-node:hover .la-hologram,
.timeline-step-node:hover .views-hologram,
.timeline-step-node:hover .wok-hologram,
.timeline-step-node:hover .team-hologram,
.timeline-step-node:hover .deal-hologram {
    transform: rotateX(10deg) rotateY(15deg) translateY(-5px);
}

.needle-svg,
.la-svg,
.views-svg,
.wok-logo-svg,
.team-svg,
.handshake-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Radar pulse wave animation */
.radar-wave {
    transform-origin: 100px 72px;
    animation: radarPulse 4s infinite linear;
}

.r-wave-1 {
    animation-delay: 0s;
}

.r-wave-2 {
    animation-delay: 2s;
}

@keyframes radarPulse {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    30% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* HUD Text styling */
.holo-hud-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(212, 175, 55, 0.5);
    pointer-events: none;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.left-hud {
    bottom: 30px;
    left: -20px;
    text-align: left;
    border-left: 1px solid rgba(212, 175, 55, 0.25);
    padding-left: 8px;
}

.right-hud {
    bottom: 30px;
    right: -20px;
    text-align: right;
    border-right: 1px solid rgba(212, 175, 55, 0.25);
    padding-right: 8px;
}

.holo-hud-text span:first-child {
    color: #ffffff;
    font-size: 0.72rem;
}


/* Hologram orbit rings */
.hologram-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    pointer-events: none;
}

.holo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    top: 50%;
    left: 50%;
}

.holo-ring.r1 {
    width: 220px;
    height: 220px;
    margin-top: -110px;
    margin-left: -110px;
    transform: rotateX(75deg) rotateY(10deg);
    border-style: dashed;
    animation: spinR 25s linear infinite;
}

.holo-ring.r2 {
    width: 170px;
    height: 170px;
    margin-top: -85px;
    margin-left: -85px;
    transform: rotateX(80deg) rotateY(-15deg);
    border-color: rgba(45, 90, 155, 0.2);
    animation: spinR 18s linear infinite reverse;
}

.holo-ring.r3 {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-left: -60px;
    transform: rotateX(85deg) rotateY(5deg);
    border-color: rgba(212, 118, 44, 0.3);
    animation: spinR 12s linear infinite;
}

@keyframes spinR {
    to { transform: rotateX(80deg) rotateZ(360deg); }
}

/* Ambient holographic glow replaces directional beam */
.holo-beam {
    position: absolute;
    bottom: auto;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at 50% 50%,
        rgba(212, 175, 55, 0.18) 0%,
        rgba(212, 175, 55, 0.08) 35%,
        rgba(100, 60, 200, 0.06) 60%,
        transparent 75%);
    border-radius: 50%;
    clip-path: none;
    pointer-events: none;
    opacity: 1;
    filter: blur(18px);
    animation: ambientGlow 5s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes ambientGlow {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    33%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
    66%  { opacity: 0.8; transform: translate(-50%, -50%) scale(0.96); }
}

/* Floating holo dust — more particles, all-directional drift */
.holo-dust span {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-gold);
    pointer-events: none;
    animation: floatDrift 5s ease-in-out infinite;
}

.holo-dust .d1 { width: 3px; height: 3px; left: 30%; top: 70%; animation-delay: 0s; animation-duration: 5s; }
.holo-dust .d2 { width: 2px; height: 2px; left: 62%; top: 55%; animation-delay: 1.2s; animation-duration: 6.5s; }
.holo-dust .d3 { width: 4px; height: 4px; left: 50%; top: 82%; animation-delay: 2.4s; animation-duration: 4.2s; }
.holo-dust .d4 { width: 2px; height: 2px; left: 78%; top: 65%; animation-delay: 0.7s; animation-duration: 5.8s; background: rgba(180,120,255,0.9); }
.holo-dust .d5 { width: 3px; height: 3px; left: 18%; top: 60%; animation-delay: 1.9s; animation-duration: 4.8s; }
.holo-dust .d6 { width: 2px; height: 2px; left: 45%; top: 40%; animation-delay: 3.1s; animation-duration: 7s; background: rgba(255,255,255,0.7); }

@keyframes floatDrift {
    0%   { transform: translate(0, 0) scale(0.4); opacity: 0; }
    20%  { opacity: 0.9; }
    50%  { transform: translate(var(--dx, 12px), -60px) scale(1.3); opacity: 0.6; }
    80%  { opacity: 0.3; }
    100% { transform: translate(var(--dx, -8px), -120px) scale(0.6); opacity: 0; }
}

/* Position Statement Card */
.company-bio-position {
    max-width: 900px;
    margin: 8rem auto;
    text-align: center;
}

.pos-mega-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #ffffff;
}

.pos-mega-title span:nth-child(2) {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffeb99 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShift 4s linear infinite;
    text-shadow: 0 0 35px rgba(212, 175, 55, 0.25);
}

@keyframes goldShift {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}


.pos-border-box {
    background: rgba(14, 14, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 4.5rem 3.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pos-border-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2) 0%, transparent 30%, transparent 70%, rgba(45,90,155,0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.company-bio-desc {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto;
    font-weight: 300;
}

/* Services / What We Do Section */
.company-services {
    margin-bottom: 8rem;
    scroll-margin-top: 140px; /* Force scroll to stop higher, preventing header overlap */
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Enhanced Tech Cards */
.service-card {
    position: relative;
    background: rgba(15, 15, 22, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 4rem 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.service-card-border {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 16px;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.service-card.s-studio:hover .service-card-border { border-color: rgba(45, 90, 155, 0.4); }
.service-card.s-games:hover .service-card-border { border-color: rgba(212, 175, 55, 0.4); }
.service-card.s-advisory:hover .service-card-border { border-color: rgba(212, 118, 44, 0.4); }

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(20, 20, 28, 0.7);
}

.service-card.s-studio:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(45, 90, 155, 0.1); }
.service-card.s-games:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(212, 175, 55, 0.1); }
.service-card.s-advisory:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(212, 118, 44, 0.1); }

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-studio .service-icon { color: #5282ff; text-shadow: 0 0 15px rgba(82, 130, 255, 0.3); }
.s-games .service-icon { color: var(--accent-gold); text-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }
.s-advisory .service-icon { color: #f3823d; text-shadow: 0 0 15px rgba(243, 130, 61, 0.3); }

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-3px);
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.service-corner-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.2;
    transition: opacity 0.4s ease;
}
/* Why We're Different (Split Layout with Venn Diagram) */
.different-grid-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
    text-align: left;
    margin-bottom: 4rem;
}

.different-text-block .section-title-sub {
    margin-bottom: 3rem;
}

.different-bullets {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.diff-bullet-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.diff-bullet-item:hover,
.diff-bullet-item.active-world {
    background-color: rgba(255, 255, 255, 0.02);
    transform: translateX(5px);
}

.bullet-num {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    opacity: 0.6;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

.diff-bullet-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.diff-bullet-item:hover h4,
.diff-bullet-item.active-world h4 {
    color: var(--accent-gold);
}

.diff-bullet-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Interactive Venn Diagram */
.venn-graphic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 540px; /* 50% bigger: from 380px to 540px */
}

.venn-diagram {
    position: relative;
    width: 480px; /* 50% bigger: from 320px to 480px */
    height: 480px;
}

.venn-circle {
    position: absolute;
    width: 300px; /* 50% bigger: from 200px to 300px */
    height: 300px;
    border-radius: 50%;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: screen;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.5s ease,
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

/* Circle positions & colors */
.circle-production {
    border-color: rgba(82, 130, 255, 0.3);
    background-color: rgba(82, 130, 255, 0.02);
    top: 15px; /* Scaled: from 10px to 15px */
    left: 90px; /* Centered horizontally: (480 - 300) / 2 = 90px */
    box-shadow: inset 0 0 20px rgba(82, 130, 255, 0.05);
    transform: translateY(-52.5px) scale(0.95); /* Scaled translation: from -35px to -52.5px */
}
.circle-interactive {
    border-color: rgba(212, 175, 55, 0.3);
    background-color: rgba(212, 175, 55, 0.02);
    bottom: 30px; /* Scaled: from 20px to 30px */
    left: 15px; /* Scaled: from 10px to 15px */
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
    transform: translate(-45px, 22.5px) scale(0.95); /* Scaled translation */
}
.circle-cultural {
    border-color: rgba(243, 130, 61, 0.3);
    background-color: rgba(243, 130, 61, 0.02);
    bottom: 30px;
    right: 15px;
    box-shadow: inset 0 0 20px rgba(243, 130, 61, 0.05);
    transform: translate(45px, 22.5px) scale(0.95);
}

/* Merged scrolling trigger states */
.venn-diagram.merged .circle-production {
    transform: translateY(0) scale(1);
}
.venn-diagram.merged .circle-interactive {
    transform: translate(0, 0) scale(1);
}
.venn-diagram.merged .circle-cultural {
    transform: translate(0, 0) scale(1);
}


/* Venn text labels inside circles */
.circle-label {
    font-family: var(--font-heading);
    font-size: 0.85rem; /* Slightly larger text for scaled graphic */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.circle-production .circle-label { color: #8cb0ff; transform: translateY(-60px); } /* Scaled translation */
.circle-interactive .circle-label { color: #ffd659; transform: translate(-45px, 45px); }
.circle-cultural .circle-label { color: #ffab73; transform: translate(45px, 45px); }

/* Circle Highlights on Hover/Active */
.circle-production:hover,
.circle-production.active-glow {
    border-color: rgba(82, 130, 255, 0.85);
    background-color: rgba(82, 130, 255, 0.08);
    box-shadow: inset 0 0 30px rgba(82, 130, 255, 0.15), 0 0 25px rgba(82, 130, 255, 0.2);
}
.circle-interactive:hover,
.circle-interactive.active-glow {
    border-color: rgba(212, 175, 55, 0.85);
    background-color: rgba(212, 175, 55, 0.08);
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.15), 0 0 25px rgba(212, 175, 55, 0.2);
}
.circle-cultural:hover,
.circle-cultural.active-glow {
    border-color: rgba(243, 130, 61, 0.85);
    background-color: rgba(243, 130, 61, 0.08);
    box-shadow: inset 0 0 30px rgba(243, 130, 61, 0.15), 0 0 25px rgba(243, 130, 61, 0.2);
}

.circle-production:hover .circle-label, .circle-production.active-glow .circle-label,
.circle-interactive:hover .circle-label, .circle-interactive.active-glow .circle-label,
.circle-cultural:hover .circle-label, .circle-cultural.active-glow .circle-label {
    opacity: 1;
}

/* Intersect Center Core */
.venn-core {
    position: absolute;
    width: 90px; /* 50% bigger: from 60px to 90px */
    height: 90px;
    top: 187.5px; /* Center offset scaled: 125 * 1.5 = 187.5px */
    left: 195px; /* Center offset scaled: 130 * 1.5 = 195px */
    background: rgba(10, 10, 13, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: coreWave 3s ease-out infinite;
}

@keyframes coreWave {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Central dot visible by default */
.core-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px #ffffff;
    transition: opacity 0.3s ease;
}

/* iQ Logo inside center core (Invisible by default, fades in on hover) */
.core-logo {
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
    opacity: 0; /* Hidden by default */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transform: scale(0.85); /* Slightly smaller initially */
}

.venn-core:hover {
    border-color: var(--accent-gold);
    transform: scale(1.08);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.25);
}

.venn-core:hover .core-dot {
    opacity: 0; /* Fade out dot on hover */
}

.venn-core:hover .core-logo {
    opacity: 1; /* Fade in logo on hover */
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.75));
}

.different-footer-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 4rem auto 0 auto;
    text-align: center;
    font-weight: 300;
}

@media (max-width: 991px) {
    .company-bio-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .company-bio-intro {
        text-align: center;
    }
    .title-underline-short {
        margin: 0 auto 2rem auto;
    }
    .different-grid-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .venn-graphic-container {
        order: -1; /* graphic on top in mobile */
    }
}




.about-image-card {
    display: flex;
    justify-content: center;
}

.glass-card {
    background: rgba(28, 28, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Kylia scroll-story section styles */
.scroll-story-section {
    background-color: #060608;
    position: relative;
    height: 160vh; /* Reduced height to pull next section closer and end 75px under card */
    padding: 0;
    overflow: visible;
}

.globe-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    pointer-events: none; /* Let clicks pass to content card below */
}

.globe-canvas-container-centered {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    cursor: grab;
    pointer-events: auto; /* Re-enable pointer events on the globe canvas */
    opacity: 0; /* Starts hidden, scroll handles fade-in */
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.globe-canvas-container-centered:active {
    cursor: grabbing;
}

/* Spinning loading ring */
.loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    z-index: 10;
}

.spinner-circle {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-top: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: spinR 1s linear infinite;
}

/* Sci-Fi circular coordinates orbiting in background of globe */
.globe-hud-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.04);
    pointer-events: none;
    opacity: 0; /* Hidden initially */
    transition: opacity 0.15s ease-out;
}

.globe-hud-ring.r-outer {
    width: min(570px, 92vw);
    height: min(570px, 92vw);
    border-style: dashed;
    animation: rotate 45s linear infinite;
}

.globe-hud-ring.r-inner {
    width: min(480px, 78vw);
    height: min(480px, 78vw);
    border-color: rgba(82, 130, 255, 0.04);
    animation: rotate 30s linear infinite reverse;
}

.globe-coordinates-hud {
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.12em;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    opacity: 0; /* Hidden initially */
    transition: opacity 0.15s ease-out;
}

.globe-coordinates-hud span:first-child {
    color: var(--accent-gold);
}

/* Floating Visit Kylia Neon Button on Globe */
.visit-kylia-btn-wrapper {
    position: absolute;
    z-index: 25; /* Sits directly on top of the 3D canvas */
    pointer-events: none;
    opacity: 0; /* Starts hidden, scroll handles fade-in */
    transition: opacity 0.15s ease-out;
    animation: floatBob 3.5s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sci-fi glowing flow aura behind button */
.visit-kylia-btn-wrapper::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(212, 175, 55, 0.08) 45%, transparent 70%);
    filter: blur(12px);
    z-index: -1;
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(0.85);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.95;
    }
}

.visit-kylia-btn {
    pointer-events: auto; /* Active clicking on the link button itself */
    background: rgba(14, 10, 24, 0.95); /* Dark purple-tinted base at 0.95 opacity */
    color: #c084fc; /* Bright neon purple */
    border: 1px solid rgba(168, 85, 247, 0.6); /* Purple border */
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 
                0 0 15px rgba(168, 85, 247, 0.3),
                inset 0 0 10px rgba(168, 85, 247, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.visit-kylia-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.45), 
                0 0 25px rgba(168, 85, 247, 0.5),
                inset 0 0 15px rgba(168, 85, 247, 0.2);
    transform: scale(1.05);
}

.visit-kylia-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.visit-kylia-btn:hover i {
    transform: translate(2px, -2px);
}

/* Bobbing animation for the floating button wrapper */
@keyframes floatBob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Scrollable panels */
.scroll-story-content {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: -100vh; /* Align first panel with top sticky view */
    pointer-events: none; /* Let clicks pass through empty spacers to globe/button below */
}

.projects-top-header {
    position: relative;
    z-index: 12;
    text-align: center;
    padding: 8rem 2rem 3rem 2rem;
    background-color: #060608;
    pointer-events: auto;
}

.projects-top-header .section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: block;
    text-shadow: 0 0 15px rgba(212,175,55,0.3);
}

.story-neon-header {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    color: #f5f3ff; /* Soft lavender white */
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(168, 85, 247, 0.9), 
        0 0 25px rgba(168, 85, 247, 0.6), 
        0 0 50px rgba(168, 85, 247, 0.3), 
        0 0 100px rgba(168, 85, 247, 0.15);
}

.story-spacer-short {
    height: 70vh; /* Scroll space showing just the rotating globe */
    pointer-events: none;
}

.story-details-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 75px 2rem; /* Ends exactly 75px under the glass text box */
    background: linear-gradient(to bottom, transparent, rgba(6, 6, 8, 0.85) 20%, #060608 100%);
}

/* Frosted glass details card covering globe */
.details-glass-card {
    background: rgba(14, 14, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 4.5rem 3.5rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 
                0 0 50px rgba(212, 175, 55, 0.02);
    pointer-events: auto; /* Re-enable pointer events on the card */
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    text-align: center;
}

.details-glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), transparent 40%, transparent 60%, rgba(82, 130, 255, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.kylia-desc {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 300;
}

.kylia-desc strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.kylia-desc-alt {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.kylia-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.highlight-pill {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.highlight-pill:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .details-glass-card {
        padding: 3rem 2rem;
    }
}




/* =============================================
   FILMS SECTION — 3D TV + STREAMING SERVICE UI
   ============================================= */

.films-section {
    background: #050508;
    padding: 0;
    overflow: visible;
    position: relative;
    margin-top: 0; /* Removed the empty space gap entirely */
}

.films-outer-wrap {
    position: sticky;
    top: 0; /* Pin at the very top of screen to cover the preceding section completely */
    height: 100vh; /* Take up the full viewport height */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 80px 0 0 0; /* Add top padding to clear the 80px header navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Vertically center the TV to keep it fully visible */
    overflow: visible; /* Changed from hidden to prevent TV bezel and stand from clipping */
    box-sizing: border-box;
}

.films-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.films-section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-top: 0.5rem;
}

/* --- TV SCENE / WAREHOUSE ROOM --- */
.tv-scene {
    position: relative;
    width: 100%;
    height: 100%; /* Cover the entire outer-wrap viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    overflow: hidden;
    background: #020204;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.95);
}

.warehouse-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 50% 30%, #06060c 0%, #020204 75%);
    transition: opacity 0.25s ease-out;
}

.warehouse-beam {
    position: absolute;
    top: -10%;
    bottom: -10%;
    width: 140px;
    background: linear-gradient(90deg, 
        rgba(5, 5, 8, 0.95) 0%, 
        rgba(15, 15, 25, 0.9) 30%, 
        rgba(25, 25, 38, 0.8) 50%, 
        rgba(15, 15, 25, 0.9) 70%, 
        rgba(5, 5, 8, 0.95) 100%);
    border-left: 1px dashed rgba(212, 175, 55, 0.04);
    border-right: 1px dashed rgba(212, 175, 55, 0.04);
    opacity: 0.25;
}

.left-beam {
    left: 8%;
    transform: rotateY(25deg);
}

.right-beam {
    right: 8%;
    transform: rotateY(-25deg);
}

.warehouse-light-cone {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 120%;
    background: conic-gradient(from 155deg at 50% 0%, 
        rgba(212, 175, 55, 0.05) 0%, 
        rgba(80, 50, 200, 0.02) 20deg, 
        transparent 50deg);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.warehouse-depth-shadow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(0,0,0,0.88) 95%);
    z-index: 2;
}

/* Table supporting the TV stand (Walnut Wood Credenza Console) */
.warehouse-table-surface {
    position: absolute;
    top: 50%;
    bottom: auto;
    margin-top: 310px; /* Aligned exactly under the TV legs */
    left: 50%;
    transform: translateX(-50%) rotateX(82deg);
    width: 92%;
    height: 350px;
    background: radial-gradient(circle at 50% 10%, 
        #6e483b 0%, 
        #462c24 70%, 
        #2f1c16 100%);
    box-shadow: 
        0 45px 120px rgba(0,0,0,0.95), 
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 3;
    border-radius: 6px;
    transform-style: preserve-3d;
    transition: opacity 0.25s ease-out;
}

/* Front thickness of the table slab (Walnut wood edge trim) */
.table-slab-front {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: linear-gradient(to bottom, #57362c, #3d231b);
    border-bottom: 2px solid #23120d;
    transform: rotateX(-90deg);
    transform-origin: bottom center;
    border-radius: 0 0 4px 4px;
    z-index: 10;
}

/* Credenza cabinet body box hanging below tabletop */
.credenza-cabinet {
    position: absolute;
    bottom: -90px;
    left: 4%;
    right: 4%;
    height: 90px;
    background: linear-gradient(to right, #402720, #4e3027 15%, #402720 50%, #4e3027 85%, #402720 100%);
    border: 1px solid rgba(0,0,0,0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    display: flex;
    justify-content: space-between;
    transform: rotateX(-90deg);
    transform-origin: top center;
    border-radius: 2px 2px 6px 6px;
    overflow: hidden;
}

.credenza-door {
    width: 35%;
    height: 100%;
    background: linear-gradient(135deg, #4c2f26, #36201a);
    position: relative;
    border-right: 1px solid rgba(0,0,0,0.3);
}

.credenza-door.door-right {
    border-right: none;
    border-left: 1px solid rgba(0,0,0,0.3);
}

.credenza-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 4px;
    background: #c8a261; /* Brass/Gold handle hardware */
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.door-left .credenza-handle { right: 15px; }
.door-right .credenza-handle { left: 15px; }

.credenza-shelf {
    width: 30%;
    height: 100%;
    background: #1a0e0b; /* Recessed dark wood shelf */
    position: relative;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.8);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.shelf-books {
    display: flex;
    flex-direction: column;
    width: 60px;
}

.shelf-books .book {
    height: 8px;
    border-radius: 1px;
    margin-top: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.shelf-books .book.b1 { background: #962d2d; width: 55px; }
.shelf-books .book.b2 { background: #2d5596; width: 50px; }
.shelf-books .book.b3 { background: #dddddd; width: 45px; }

/* Decorative accessories sitting on the tabletop */
.credenza-decor {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    /* Un-tilt decor relative to the table surface angle */
    transform: rotateX(-82deg);
    transform-origin: bottom center;
}

.credenza-decor.pot-plant {
    left: 8%;
    bottom: 260px; /* Sitting on the wood slab */
    width: 40px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plant-pot {
    width: 25px;
    height: 30px;
    background: linear-gradient(to bottom, #dfdfd6, #c8c8bd);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    z-index: 2;
}

.plant-foliage {
    position: absolute;
    bottom: 25px;
    width: 30px;
    height: 40px;
    z-index: 1;
}

.plant-foliage .leaf {
    position: absolute;
    bottom: 0;
    left: 13px;
    width: 4px;
    background: linear-gradient(to top, #345c2d, #5c9952);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
}

.plant-foliage .leaf.l1 { height: 35px; transform: rotate(-15deg); }
.plant-foliage .leaf.l2 { height: 42px; transform: rotate(5deg); }
.plant-foliage .leaf.l3 { height: 30px; transform: rotate(-30deg); }
.plant-foliage .leaf.l4 { height: 38px; transform: rotate(20deg); }
.plant-foliage .leaf.l5 { height: 28px; transform: rotate(35deg); }

.credenza-decor.ceramic-vase {
    right: 8%;
    bottom: 260px;
    width: 26px;
    height: 40px;
    background: radial-gradient(circle at 35% 35%, #e2d7c5, #bba78c);
    border-radius: 50% 50% 45% 45%;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Mid-century Modern Tapered Wooden Legs */
.warehouse-table-legs {
    position: absolute;
    top: 50%;
    bottom: auto;
    margin-top: 325px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    height: 190px;
    z-index: 2;
    transform-style: preserve-3d;
    transition: opacity 0.25s ease-out;
}

.table-pedestal {
    position: absolute;
    width: 14px;
    height: 155px;
    background: linear-gradient(to bottom, #4c2f26, #2d1b16);
    clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%); /* Tapered shape */
    box-shadow: 2px 6px 12px rgba(0,0,0,0.4);
    transform-origin: top center;
}

.left-pedestal {
    left: 16%;
}

.right-pedestal {
    right: 16%;
}

/* 3D flare angles */
.left-pedestal.front-leg { transform: rotate(-14deg) rotateY(10deg); }
.left-pedestal.back-leg { transform: rotate(-14deg) rotateY(-10deg) translateZ(-40px); opacity: 0.7; }
.right-pedestal.front-leg { transform: rotate(14deg) rotateY(-10deg); }
.right-pedestal.back-leg { transform: rotate(14deg) rotateY(10deg) translateZ(-40px); opacity: 0.7; }

/* Floating warehouse air particles */
.warehouse-dust {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.25s ease-out;
}

.warehouse-dust span {
    position: absolute;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

/* Slow, heavy floating animations for warehouse dust */
.warehouse-dust .wd1 { width: 12px; height: 12px; top: 15%; left: 20%; animation: wFloat1 18s infinite ease-in-out; }
.warehouse-dust .wd2 { width: 8px; height: 8px; top: 40%; left: 75%; animation: wFloat2 24s infinite ease-in-out; }
.warehouse-dust .wd3 { width: 14px; height: 14px; top: 60%; left: 12%; animation: wFloat3 22s infinite ease-in-out; }
.warehouse-dust .wd4 { width: 6px; height: 6px; top: 25%; left: 60%; animation: wFloat4 16s infinite ease-in-out; }
.warehouse-dust .wd5 { width: 10px; height: 10px; top: 70%; left: 45%; animation: wFloat1 20s infinite ease-in-out; }
.warehouse-dust .wd6 { width: 7px; height: 7px; top: 10%; left: 85%; animation: wFloat3 28s infinite ease-in-out; }
.warehouse-dust .wd7 { width: 11px; height: 11px; top: 80%; left: 80%; animation: wFloat2 19s infinite ease-in-out; }
.warehouse-dust .wd8 { width: 9px; height: 9px; top: 50%; left: 30%; animation: wFloat4 25s infinite ease-in-out; }

@keyframes wFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(40px, -60px) scale(1.2); opacity: 0.6; }
}
@keyframes wFloat2 {
    0%, 100% { transform: translate(0, 0) scale(0.9); opacity: 0.2; }
    50% { transform: translate(-50px, -40px) scale(1.1); opacity: 0.55; }
}
@keyframes wFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1.1); opacity: 0.1; }
    50% { transform: translate(30px, 50px) scale(0.85); opacity: 0.45; }
}
@keyframes wFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
    50% { transform: translate(-30px, 60px) scale(1.3); opacity: 0.7; }
}

/* TV Camera Rig wrapper (controlled dynamically via scroll script) */
.tv-camera-rig {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%; /* Fill full outer-wrap viewport height */
    transform-style: preserve-3d;
    transition: transform 0.08s ease-out; /* Keeps the mouse/scroll interaction responsive & smooth */
    pointer-events: auto;
    will-change: transform; /* Hint browser to optimize layout transformations */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ambient underglow that bleeds onto the floor */
.tv-ambient-glow {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 140px;
    background: radial-gradient(ellipse at 50% 100%,
        rgba(212, 175, 55, 0.2) 0%,
        rgba(80, 50, 200, 0.08) 45%,
        transparent 75%);
    filter: blur(25px);
    pointer-events: none;
    z-index: 2;
    animation: tvGlowPulse 5s ease-in-out infinite;
    transition: opacity 0.25s ease-out;
}

@keyframes tvGlowPulse {
    0%, 100% { opacity: 0.65; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 0.95; transform: translateX(-50%) scaleX(1.04); }
}

/* --- 3D TV SET (Retro Sci-Fi CRT Cabinet Casing) --- */
.tv-set {
    position: relative;
    top: 15px; /* Shift the TV console down 15px */
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: none;
    transform-style: preserve-3d;
    filter: drop-shadow(0 25px 60px rgba(26, 95, 168, 0.35)); /* Logo blue drop-shadow */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.tv-set:hover {
    transform: none;
}

.tv-cabinet {
    position: relative;
    width: min(1160px, 73vw, 121vh); /* Increased base width to support native scale(1.0) crisp rendering */
    aspect-ratio: 1060 / 620; /* Maintain retro-tv proportions fluidly */
    height: auto;
    background: linear-gradient(135deg, 
        #141722 0%, 
        #0b0d14 50%, 
        #050608 100%);
    padding: 16px;
    border-radius: 12px;
    border: 3px solid #e87722; /* Logo orange edge border */
    box-shadow: 
        0 0 35px rgba(26, 95, 168, 0.45), /* Logo blue neon outline glow */
        inset 0 1px 4px rgba(255, 255, 255, 0.08),
        inset 0 -4px 12px rgba(0, 0, 0, 0.8);
    transform-style: preserve-3d;
    box-sizing: border-box;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* TV Front Bezel (Titanium faceplate) */
.tv-bezel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(180deg, #222630 0%, #12141a 100%);
    border-radius: 8px;
    border: 1px solid rgba(232, 119, 34, 0.3); /* Orange bezel highlight */
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.05),
        0 4px 10px rgba(0,0,0,0.6);
    padding: 15px;
    box-sizing: border-box;
    transform-style: preserve-3d;
}

/* Left side: Recessed Screen Box Frame */
.tv-screen-box {
    width: 79%; /* Widened by 5% to give the screen more space */
    height: 100%;
    background: #090b0e;
    border-radius: 12px; /* Rounded corners slightly */
    border: 10px solid #1a1e26;
    box-shadow: inset 0 8px 16px rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* CRT Screen (Slightly rounded screen boundary) */
.tv-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 6px; /* Rounded slightly to match frame without excessive corner cropping */
    overflow: hidden;
    box-shadow: none; /* Removed vignette inset shadows */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Subtle CRT phosphor screen glow overlay */
.tv-crt-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 25; /* Sits over the stream UI content */
    background: radial-gradient(circle at 50% 50%, 
        rgba(26, 95, 168, 0.10) 0%,   /* Logo blue phosphor center */
        rgba(232, 119, 34, 0.04) 65%, /* Logo orange outer glow */
        transparent 85%);
    mix-blend-mode: screen;
    opacity: 0.85;
    animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
    0%, 100% { opacity: 0.82; }
    50% { opacity: 0.90; }
    25% { opacity: 0.85; }
    75% { opacity: 0.87; }
}

/* Subtle RGB Subpixel Scanline effect (Simulates CRT aperture grille grid) */
.tv-scanlines {
    display: block; /* Enabled */
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 26; /* Sit on top of crt glow and stream UI */
    background-image: 
        /* Vertical Red-Green-Blue (RGB) subpixel phosphor mask */
        repeating-linear-gradient(90deg,
            rgba(255, 0, 0, 0.04) 0px,
            rgba(255, 0, 0, 0.04) 1px,
            rgba(0, 255, 0, 0.03) 1px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 0, 255, 0.04) 2px,
            rgba(0, 0, 255, 0.04) 3px
        ),
        /* Horizontal shadow-mask micro scanlines */
        repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.12) 0px,
            rgba(0, 0, 0, 0.12) 1px,
            transparent 1px,
            transparent 2px
        );
    background-size: 3px 100%, 100% 2px;
    mix-blend-mode: multiply;
    opacity: 0.9;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Glare reflection (disabled for clean digital sci-fi look) */
.tv-glare {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 50%;
    background: linear-gradient(135deg,
        rgba(0, 240, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 31;
    border-radius: 50% 0 0 50%;
}

/* Right side: Sci-Fi Control Panel Column */
.tv-control-panel {
    width: 18%; /* Made 50px narrower (23% -> 18%) */
    height: 100%;
    background: linear-gradient(to right, 
        #1d212b 0%, 
        #2b313f 25%, 
        #191c24 60%, 
        #0e1015 100%);
    border-radius: 6px;
    border: 1px solid rgba(232, 119, 34, 0.25); /* Orange trim border */
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.05),
        0 3px 8px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 12px 0;
    box-sizing: border-box;
}

/* Horizontal Knobs Row */
.dials-horizontal-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    width: 92%;
    margin: 4px 0 8px 0;
}

/* Rotary Tuning Dials */
.retro-dial {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}

.dial-knob {
    width: 57px; /* Sized up by 50% (38px -> 57px) */
    height: 57px; /* Sized up by 50% (38px -> 57px) */
    border-radius: 50%;
    background: radial-gradient(circle, #333 20%, #15181f 65%, #090a0d 80%);
    border: 2px solid #e87722; /* Logo orange dials */
    position: relative;
    box-shadow: 
        0 3px 6px rgba(232, 119, 34, 0.25), 
        inset 0 1px 1px rgba(255,255,255,0.05);
}

.dial-indicator {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3.5px;
    height: 14px;
    background: #e87722; /* Logo orange dial line */
    border-radius: 1px;
    box-shadow: 0 0 5px #e87722;
}

.dial-vhf .dial-knob {
    transform: rotate(45deg);
}

.dial-uhf .dial-knob {
    transform: rotate(135deg);
}

.dial-label {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    font-weight: 800;
    color: #e87722; /* Logo orange text labels */
    margin-top: 4px;
    letter-spacing: 0.05em;
    text-shadow: 0 0 5px rgba(232, 119, 34, 0.7);
}

/* Switches / Buttons block */
.retro-switches {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.switch-rectangular {
    width: 22px;
    height: 12px;
    background: #1a5fa8; /* Logo blue switch */
    border: 1px solid #0e3d6e;
    box-shadow: 
        0 0 6px rgba(26, 95, 168, 0.7),
        inset 0 1px 2px rgba(255,255,255,0.3);
    border-radius: 2px;
}

.switch-circular-red {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e87722; /* Logo orange button */
    border: 2px solid #a8520e;
    box-shadow: 
        0 0 6px rgba(232, 119, 34, 0.6),
        inset 0 1px 1px rgba(255,255,255,0.2);
}

/* Slatted Speaker Grille (glowing indicator stripes) */
.retro-speaker-grille {
    width: 82%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.retro-speaker-grille span {
    display: block;
    width: 100%;
    height: 3px;
    background: rgba(26, 95, 168, 0.18); /* Logo blue light slots */
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(26, 95, 168, 0.08);
}

/* Bottom strip with extra adjusters */
.tv-bottom-strip {
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 28px;
    background: linear-gradient(to bottom, #151822, #08090d);
    border-radius: 0 0 6px 6px;
    border-top: 1px solid rgba(232, 119, 34, 0.3); /* Orange trim line */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.05);
}

.adjust-dial {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1a5fa8; /* Logo blue dial adjusters */
    border: 1px solid #0e3d6e;
    box-shadow: 
        0 0 5px rgba(26, 95, 168, 0.6),
        inset 0 1px 2px rgba(0,0,0,0.8);
}

/* Retro Casing Base Feet */
.tv-retro-feet {
    display: flex;
    justify-content: space-between;
    width: 78%;
    margin: 0 auto;
    pointer-events: none;
    z-index: 1;
}

.retro-foot {
    width: 55px;
    height: 12px;
    background: #1c1c1f;
    border: 1px solid rgba(0,0,0,0.4);
    border-radius: 0 0 6px 6px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Floor reflection effect */
.tv-floor-reflection {
    width: min(1060px, 66vw);
    height: 60px;
    background: linear-gradient(to bottom,
        rgba(212, 175, 55, 0.04) 0%,
        transparent 100%);
    margin-top: -4px;
    filter: blur(4px);
    transform: scaleY(-1) perspective(200px) rotateX(12deg);
    transform-origin: top center;
    pointer-events: none;
    opacity: 0.6;
}

/* Background Flowing Particles Canvas */
.tv-particles-canvas {
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    pointer-events: none;
    z-index: 2; /* Sits behind the TV set */
    transform: translateZ(-90px); /* 3D parallax depth pushing it behind console casing */
    opacity: 0.95;
}

/* =============================================
   STREAMING SERVICE UI (inside the screen)
   ============================================= */

.stream-ui {
    position: absolute;
    inset: 0;
    background: #0a0a10;
    overflow-y: auto; /* Enable scrollbar visibility */
    scrollbar-width: thin; /* Firefox scrollbar support */
    scrollbar-color: var(--accent-gold) rgba(168, 85, 247, 0.08); /* Firefox scrollbar colors */
    z-index: 10;
    will-change: transform, scroll-position;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    transform: translateZ(0); /* Forces hardware rendering and crisp layer compositing */
}

/* Custom themed TV scrollbar for Webkit browsers */
.stream-ui::-webkit-scrollbar {
    display: block;
    width: 6px;
}

.stream-ui::-webkit-scrollbar-track {
    background: rgba(26, 95, 168, 0.05);
    border-radius: 3px;
    margin: 4px;
}

.stream-ui::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #1a5fa8, #e87722);
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(26, 95, 168, 0.4);
}

.stream-ui::-webkit-scrollbar-thumb:hover {
    background: #e87722;
}

/* Stream Header Bar */
.stream-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.77rem 1.54rem;
    background: linear-gradient(to bottom, rgba(5,5,10,0.98) 0%, rgba(5,5,10,0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    gap: 1rem;
}

.stream-logo {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    flex-shrink: 0;
}

.stream-logo-iq {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(212,175,55,0.5);
    white-space: nowrap;
}

.stream-logo-stream {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff; /* Unified look with white suffix */
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    white-space: nowrap;
    margin-left: 0.35rem;
}

/* Retro Sci-Fi Channel Selector (Mechanical buttons with larger text) */
.retro-channel-selector {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 86%;
    margin: 8px 0;
    align-items: stretch;
}

.retro-channel-selector .stream-nav-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 30px; /* Made taller to accommodate larger text size */
    padding: 0 10px;
    background: linear-gradient(135deg, #1f2530 0%, #11141a 100%);
    border: 1px solid rgba(26, 95, 168, 0.4); /* Logo blue border */
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.4), 
        inset 0 1px 1px rgba(255,255,255,0.05);
    border-radius: 3px;
    cursor: pointer;
    color: #e87722; /* Logo orange text */
    font-family: 'Raleway', sans-serif;
    font-size: 11px; /* Made text larger */
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.15s ease-out;
    position: relative;
}

.retro-channel-selector .stream-nav-btn:hover {
    background: linear-gradient(135deg, #28303f 0%, #171b24 100%);
    color: #ffffff;
    border-color: #e87722;
    box-shadow: 0 0 8px rgba(232, 119, 34, 0.45);
}

.retro-channel-selector .stream-nav-btn.active {
    transform: translateY(2.5px); /* Pressed mechanical toggle feel */
    background: linear-gradient(135deg, #0e3d6e 0%, #092b50 100%); /* Logo blue active */
    border: 1px solid #e87722; /* Orange border when active */
    color: #ffffff;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.6), 
        0 0 12px rgba(26, 95, 168, 0.6);
}

.btn-plunger {
    width: 9px;
    height: 9px;
    background: radial-gradient(circle, #555, #111);
    border: 1px solid rgba(26, 95, 168, 0.4);
    border-radius: 50%; /* LED circle shape */
    margin-right: 8px;
    display: inline-block;
}

.retro-channel-selector .stream-nav-btn.active .btn-plunger {
    background: radial-gradient(circle, #ffffff, #e87722); /* Orange glow active LED */
    border-color: #e87722;
    box-shadow: 0 0 6px #e87722;
}

.btn-lbl {
    display: inline-block;
    text-shadow: 0 0 4px rgba(232, 119, 34, 0.3);
}

.retro-channel-selector .stream-nav-btn.active .btn-lbl {
    color: #ffffff;
    text-shadow: 0 0 6px #e87722;
}



/* Hero Banner */
.stream-hero {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.stream-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    filter: brightness(0.75);
}

.stream-hero:hover .stream-hero-bg {
    transform: scale(1.04);
}

.stream-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(5,5,10,0.92) 0%,
        rgba(5,5,10,0.5) 45%,
        transparent 100%),
        linear-gradient(to top,
        rgba(5,5,10,0.5) 0%,
        transparent 50%);
    pointer-events: none;
}

.stream-hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.68rem 1.96rem;
    z-index: 2;
}

.stream-hero-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.28rem 0.77rem;
    border-radius: 3px;
    margin-bottom: 0.56rem;
}

.stream-hero-title {
    font-family: var(--font-heading);
    font-size: 1.47rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    max-width: 480px;
}

.stream-hero-meta {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.91rem;
    letter-spacing: 0.04em;
}

.stream-hero-play {
    display: inline-flex;
    align-items: center;
    gap: 0.56rem;
    background: var(--accent-gold);
    color: #000;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.56rem 1.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}

.stream-hero-play:hover {
    background: #f1c40f;
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(212,175,55,0.5);
}

/* Scrollable content rows */
.stream-rows {
    padding: 0.8rem 0 1.2rem;
}

.stream-row {
    margin-bottom: 0.6rem;
}

.stream-row-label {
    font-family: var(--font-heading);
    font-size: 0.87rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 1rem 0.4rem;
}

/* Row header: label + scroll arrows */
.stream-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0.5rem;
}

.stream-row-arrows {
    display: flex;
    gap: 0.3rem;
}

.stream-row-arrow {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: all 0.18s ease;
    flex-shrink: 0;
    line-height: 1;
}

.stream-row-arrow:hover {
    background: rgba(212,175,55,0.15);
    border-color: rgba(212,175,55,0.4);
    color: var(--accent-gold);
}

.stream-row-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.2rem 1rem 0.5rem;
    scrollbar-width: none;
    cursor: grab;
}
.stream-row-track:active { cursor: grabbing; }
.stream-row-track::-webkit-scrollbar { display: none; }

/* Individual stream card */
.stream-card {
    flex-shrink: 0;
    width: 182px;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: #111118;
    border: 1px solid rgba(255,255,255,0.04);
}

.stream-card:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.7), 0 0 0 1px rgba(212,175,55,0.25);
    z-index: 5;
}

/* Card media wrapper (contains thumb + preview iframe) */
.stream-card-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.stream-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.25s ease;
}

.stream-card:hover .stream-card-thumb {
    filter: brightness(0.4);
}

/* Vimeo preview iframe */
.stream-preview-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
    pointer-events: none;
}

.stream-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: rgba(0,0,0,0.15);
    z-index: 2;
}

.stream-card:hover .stream-card-overlay { opacity: 1; }

.stream-card-play {
    width: 39px;
    height: 39px;
    background: rgba(212,175,55,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.91rem;
    box-shadow: 0 4px 12px rgba(212,175,55,0.5);
}

.stream-card-title {
    font-family: var(--font-body);
    font-size: 0.77rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    padding: 0.42rem 0.63rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Drag-to-scroll state for rows */
.stream-row-track.is-dragging {
    scroll-behavior: auto;
    user-select: none;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-obsidian);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    transition: all 0.5s ease;
}

.film-card {
    background-color: var(--bg-surface-dark);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.film-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.2);
}

.film-thumb-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #000;
}

.film-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.film-card:hover .film-thumb {
    transform: scale(1.08);
}

.film-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 13, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.film-card:hover .film-play-overlay {
    opacity: 1;
}

.play-button-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-gold);
    color: var(--bg-obsidian);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    transform: scale(0.8);
    transition: var(--transition-smooth);
}

.film-card:hover .play-button-icon {
    transform: scale(1);
}

.film-info {
    padding: 1.25rem;
}

.film-category {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.film-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-section {
    background-color: var(--bg-surface-dark);
}

.team-section .section-container {
    padding-top: 3rem; /* Reduced top gap under the TV section */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: rgba(28, 28, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.15);
    background: rgba(28, 28, 36, 0.7);
}

.member-image-wrap {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .member-img {
    transform: scale(1.04);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 13, 0.9) 0%, transparent 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.team-card:hover .member-overlay {
    opacity: 1;
}

.member-socials a {
    width: 40px;
    height: 40px;
    background-color: var(--accent-gold);
    color: var(--bg-obsidian);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.member-socials a:hover {
    background-color: var(--text-primary);
}

.member-info {
    padding: 1.5rem;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.member-role {
    display: block;
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Services Cards Section */
.services-section {
    background-color: var(--bg-obsidian);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.service-icon-wrap {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 2rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrap {
    background-color: var(--accent-gold);
    color: var(--bg-obsidian);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer styles */
.footer {
    background-color: #060608;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #121217;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--bg-obsidian);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-external h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.footer-links ul,
.footer-external ul {
    list-style: none;
}

.footer-links li,
.footer-external li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-external a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-external a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .about-grid, .kylia-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .kylia-image {
        order: 2;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .section-container {
        padding: 4rem 1.5rem;
    }

    /* ── MOBILE: Motto Section (Visuals That Move) Clean Up ── */
    .mpx-layer,
    .mpx-particles,
    .mpx-dots,
    .mpx-ring,
    .mpx-orb,
    .mpx-glow,
    .mpx-chromatic {
        display: none !important; /* Remove performance-heavy backdrop elements */
    }
    .motto-word {
        opacity: 1 !important; /* Force fully visible */
        transform: none !important; /* Disable entry transition offsets */
        animation: none !important; /* Remove GPU constant chromatic text shadow animation */
    }
    .motto-underline {
        width: 80px !important; /* Give a static width to the underline */
        opacity: 0.8 !important;
    }

    /* ── MOBILE: Hide Graphic Particles to prevent scrolling lag ── */
    .holo-dust,
    .warehouse-dust {
        display: none !important;
    }

    /* ── MOBILE: Position Statement overrides ── */
    .pos-border-box {
        padding: 2.5rem 1.25rem !important; /* Reduce large padding so text can fit */
    }
    .company-bio-desc {
        font-size: 0.95rem !important; /* Make font size smaller to fit more words per line */
        line-height: 1.65 !important;
    }
    .pos-mega-title {
        font-size: 2rem !important; /* Shrink headline text size to prevent word overflow */
    }

    /* ── MOBILE: Contact Section overrides ── */
    .contact-section {
        padding: 4rem 0 !important; /* Reduce huge section padding */
    }
    .contact-grid {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        gap: 2.5rem !important;
    }
    .contact-form-container {
        padding: 2.2rem 1.5rem !important; /* Reduce large form card padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .form-submit-btn {
        width: 100% !important; /* Stretch submit button to full width */
        text-align: center !important;
        justify-content: center !important;
    }

    /* ── MOBILE: Convert horizontal timeline to vertical stacked cards ── */

    /* 1. Collapse the tall scroll-track so it no longer needs 450vh of space */
    .timeline-pin-track {
        height: auto !important;
    }

    /* Hide the empty first section-container inside company-bio to reclaim vertical space on mobile */
    .company-bio-section > .section-container:first-of-type {
        display: none !important;
    }

    /* 2. Unpin the sticky container so it becomes normal block flow */
    .timeline-sticky-container {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        overflow: visible !important;
        padding: 2.5rem 0 1rem;
    }

    /* 2b. Make the header block-level on mobile to sit cleanly above content */
    .timeline-header-sticky {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important; /* Reduced from 2rem to collapse blank space */
        padding-top: 0 !important; /* Reduced from 1rem to pull title up */
    }

    /* 3. Hide the arc SVG, floating tracker text, and JS-driven node dots */
    .timeline-arc-wrapper,
    .timeline-glow-thumb.timeline-tracker-text {
        display: none !important;
    }

    /* 4. Reflow the slider wrapper as a vertical column */
    .timeline-slider-wrapper {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        height: auto !important;
        overflow: visible !important;
        gap: 0;
        padding: 0 1rem;
        margin-top: 0 !important;
    }

    /* 5. Each step node: static, full-width vertical block */
    .timeline-step-node {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 360px !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 1.5rem; /* Reduce spacing between timeline steps */
    }

    /* 6. Show graphic first, then dot, then text card */
    .step-graphic-wrap {
        order: 1;
    }
    .node-dot-wrap {
        order: 2;
        position: static !important;
        transform: none !important;
        margin: 0.5rem 0;
    }
    .step-card-wrap {
        order: 3;
        position: static !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0.5rem 0 0 !important;
    }

    /* 7. Scale down hologram graphics to fit phone width and collapse extra vertical space */
    .timeline-step-node .small-stage {
        transform: scale(0.55) !important;
        transform-origin: top center !important;
        height: 250px !important; /* Force height to match visual scaled layout */
        margin-bottom: 0 !important;
    }

    /* 8. Vertical connector line between steps */
    .timeline-step-node:not(:last-child)::after {
        content: '';
        display: block;
        width: 2px;
        height: 20px; /* Reduce connector line height from 40px to 20px */
        background: linear-gradient(to bottom, var(--accent-gold), transparent);
        margin: 0 auto 0;
        order: 4;
    }

    /* ── MOBILE: Position Statement Margin Override ── */
    .company-bio-position {
        margin: 2.5rem auto !important; /* Pull position statement section closer to timeline track */
    }

    /* ── MOBILE: World of Kylia (Projects) Spacing Optimizations ── */
    .scroll-story-section {
        height: auto !important;
        padding: 2rem 0 !important;
    }
    .globe-sticky-wrapper {
        position: relative !important;
        top: auto !important;
        height: 280px !important; /* Fixed responsive height for the static globe */
        margin-bottom: 1rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .story-spacer-short {
        display: none !important; /* Hide spacer completely on mobile */
    }
    .scroll-story-content {
        margin-top: 0 !important; /* Reset desktop negative margins */
    }
    .story-details-panel {
        padding: 1.5rem 1.5rem !important; /* Tighten margins */
        background: none !important;
    }
    .details-glass-card {
        padding: 2.2rem 1.5rem !important;
        border-radius: 16px !important;
    }
    .globe-canvas-container-centered {
        opacity: 1 !important;
        transform: scale(1) !important;
        position: relative !important;
        height: 280px !important;
        width: 100% !important;
    }
    .globe-coordinates-hud,
    .globe-hud-ring,
    .visit-kylia-btn-wrapper {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* ── MOBILE: Why We're Different & Venn Diagram Scaling ── */
    .different-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }
    .venn-graphic-container {
        order: -1 !important;
        height: 310px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .venn-diagram {
        transform: scale(0.58) !important;
        transform-origin: center center !important;
        flex-shrink: 0 !important;
        margin: 0 auto !important;
    }
    .different-text-block {
        width: 100% !important;
        max-width: 100% !important;
    }
    .diff-bullet-item {
        padding: 0.75rem 0.5rem !important;
        gap: 1rem !important;
    }


    .nav-menu {
        display: none; /* simple mobile fallback, handled by active toggling in js */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface-dark);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-btn-desktop {
        display: none;
    }
    .nav-btn-mobile {
        display: inline-flex;
        margin-top: 1rem;
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
        align-self: center;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals for grids and layouts */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.active-reveal > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for child elements */
.reveal-stagger.active-reveal > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active-reveal > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active-reveal > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active-reveal > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.active-reveal > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.active-reveal > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger.active-reveal > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger.active-reveal > *:nth-child(8) { transition-delay: 0.8s; }
.reveal-stagger.active-reveal > *:nth-child(9) { transition-delay: 0.9s; }
.reveal-stagger.active-reveal > *:nth-child(10) { transition-delay: 1.0s; }

.hero-tagline {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
}

.highlight-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffeb99 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contact / Get Started Section */
.contact-section {
    background-color: var(--bg-surface-dark);
    position: relative;
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 500;
    transition: var(--transition-smooth);
}

a.detail-value:hover {
    color: var(--accent-gold);
}

/* Contact Form */
.contact-form-container {
    background: rgba(20, 20, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3.5rem 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(10, 10, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    background: rgba(10, 10, 13, 0.9);
}

.form-group select option {
    background: var(--bg-surface-dark);
    color: #ffffff;
}

.form-submit-btn {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 6px;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.form-submit-btn i {
    transition: transform 0.3s ease;
}

.form-submit-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .contact-info {
        position: relative;
        top: 0;
    }
    
    .contact-form-container {
        padding: 2.5rem 2rem;
    }
}

/* Mobile-Only Section Header for Films Area */
.mobile-films-header {
    display: none;
}

@media (max-width: 768px) {
    .mobile-films-header {
        display: block;
        text-align: center;
        margin-bottom: 2.5rem;
        width: 100%;
    }
    
    /* ── MOBILE FILMS SECTION STYLES ── */
    #films {
        height: auto !important;
        min-height: auto !important;
        padding: 6.5rem 1.5rem 4rem 1.5rem !important; /* Increased top padding to clear the fixed navigation header */
        background: #050508 !important;
    }
    
    .films-outer-wrap {
        position: relative !important;
        height: auto !important;
        padding: 0 !important;
        display: block !important;
    }

    .tv-scene, 
    .tv-camera-rig, 
    .tv-set, 
    .tv-cabinet {
        position: relative !important;
        display: block !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .tv-bezel {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Move control panel (containing selector tabs) to the top */
    .tv-control-panel {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        border: none !important;
        padding: 0 0 1.5rem 0 !important;
        margin: 0 0 1.5rem 0 !important;
        box-shadow: none !important;
        order: 1 !important; /* Renders tabs at the top */
    }

    /* Convert category selector buttons into horizontal scrolling chips */
    .retro-channel-selector {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.5rem !important;
        width: 100% !important;
        padding: 0.25rem 0.25rem 0.75rem 0.25rem !important;
        margin: 0 !important;
        scrollbar-width: none !important; /* Hide scrollbar on Firefox */
    }
    .retro-channel-selector::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar on Chrome/Safari */
    }

    .retro-channel-selector .stream-nav-btn {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 20px !important;
        padding: 0.5rem 1.25rem !important;
        height: auto !important;
        box-shadow: none !important;
        transform: none !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
    }
    
    .retro-channel-selector .stream-nav-btn.active {
        background: rgba(212, 175, 55, 0.15) !important;
        border-color: var(--accent-gold) !important;
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.25) !important;
    }
    
    .retro-channel-selector .stream-nav-btn .btn-lbl {
        color: rgba(255, 255, 255, 0.6) !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }
    
    .retro-channel-selector .stream-nav-btn.active .btn-lbl {
        color: var(--accent-gold) !important;
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
    }

    /* Screen box becomes a normal container, not clamped or recessed */
    .tv-screen-box {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        order: 2 !important; /* Renders stream UI below tabs */
    }

    .tv-screen {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Hide CRT TV overlays & dials */
    .tv-crt-glow, 
    .tv-scanlines, 
    .tv-glare,
    .dials-horizontal-row,
    .retro-switches,
    .retro-speaker-grille,
    .tv-bottom-strip,
    .warehouse-background,
    .tv-ambient-glow {
        display: none !important;
    }

    /* Stream UI flows naturally as block content */
    .stream-ui {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Hide streaming app header to avoid redundancy on mobile */
    .stream-header {
        display: none !important;
    }

    /* Hero Banner fitting mobile neatly */
    .stream-hero {
        position: relative !important;
        height: 200px !important;
        border-radius: 12px !important;
        margin-bottom: 2rem !important;
        overflow: hidden !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    .stream-hero-title {
        font-size: 1.25rem !important;
    }
    .stream-hero-meta {
        font-size: 0.75rem !important;
    }
    .stream-hero-play {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem !important;
    }

    /* Stream list rows */
    .stream-rows {
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .stream-row {
        margin-bottom: 0 !important;
    }
    .stream-row-header {
        padding: 0 0 0.5rem 0 !important;
    }
    .stream-row-label {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
    }
    /* Hide row scroll arrows since we'll use standard touch swipe */
    .stream-row-arrows {
        display: none !important;
    }

    /* Horizontal touch scroll track for category cards */
    .stream-row-track {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.75rem !important;
        padding: 0.25rem 0 0.75rem 0 !important;
        scrollbar-width: none !important;
    }
    .stream-row-track::-webkit-scrollbar {
        display: none !important;
    }

    .stream-card {
        flex: 0 0 150px !important; /* Fixed card width on mobile touch scroll */
        width: 150px !important;
    }
    .stream-card-media {
        height: 85px !important;
        border-radius: 8px !important;
    }
    .stream-card-title {
        font-size: 0.75rem !important;
        margin-top: 0.35rem !important;
        line-height: 1.3 !important;
    }
    
    /* Hide active indicator dot to maximize button space */
    .btn-plunger {
        display: none !important;
    }
}

