/* ==========================================================================
   CHRISTA GROUP | DESIGN SYSTEM V6.0 — "DUAL REALITY"
   Aesthetic: 
     - Associates: Noir Luxe (Warm Amber, Deep Black, Refined)
     - Studio: Brutalist Editorial (Pure Red, Pure Black, Pure White, Harsh)
   ========================================================================== */

:root {
    /* --- Light Luxe Palette (Sign World) --- */
    --sign-bg: #F8F9FA;
    --sign-surface: #FFFFFF;
    --sign-amber: #B45309;
    --sign-amber-glow: rgba(180, 83, 9, 0.2);
    --sign-text: #1A1A1A;
    --sign-text-muted: rgba(26, 26, 26, 0.7);

    /* --- Organic / Natural Palette (Studio) --- */
    --studio-bg: #000000;
    --studio-chrome: linear-gradient(180deg, #FFFFFF 0%, #888888 100%);
    --studio-glass: rgba(255, 255, 255, 0.05);
    --studio-glass-border: rgba(255, 255, 255, 0.1);
    --studio-red-glow: rgba(255, 255, 255, 0.1);
    --studio-white: #FFFFFF; /* Primary Text */
    --studio-accent: #A0A0A0; /* Accent */

    /* --- Universal Colors --- */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* --- Typography Scale --- */
    --font-brutal: 'Space Grotesk', sans-serif;
    --font-elegant: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;

    --text-hero: clamp(4rem, 4rem + 7vw, 10rem);
    --text-h1: clamp(3rem, 2.5rem + 5vw, 7rem);
    --text-h2: clamp(2rem, 1.5rem + 3vw, 4rem);
    --text-h3: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    --text-h4: clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem);
    --text-body: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
    --text-caption: clamp(0.75rem, 0.7rem + 0.2vw, 0.9rem);
    --text-micro: 0.7rem;

    /* --- Spacing --- */
    --space-sm: clamp(1rem, 0.8vw, 1.5rem);
    --space-md: clamp(2rem, 1.5vw, 3rem);
    --space-lg: clamp(4rem, 3vw, 6rem);
    --space-xl: clamp(6rem, 5vw, 10rem);
    --space-2xl: clamp(3rem, 5vw, 8rem);
    --space-3xl: clamp(4rem, 6vw, 10rem);
    --space-4xl: clamp(6rem, 8vw, 14rem);

    /* --- Mobile Premium / Contemporary Tokens --- */
    --mob-space-4: 4px;
    --mob-space-8: 8px;
    --mob-space-12: 12px;
    --mob-space-16: 16px;
    --mob-space-24: 24px;
    --mob-space-32: 32px;
    --mob-radius-lg: 24px;
    --mob-radius-md: 16px;
    
    --mob-text-12: 12px;
    --mob-text-14: 14px;
    --mob-text-16: 16px;
    --mob-text-18: 18px;
    --mob-text-24: 24px;
    --mob-text-30: 30px;
    --mob-text-36: 36px;

    /* --- Z Stack --- */
    --z-base: 0;
    --z-canvas: 1;
    --z-ui: 10;
    --z-nav: 100;
    --z-loader: 9999;
}

/* ==========================================================================
   RESET & CORE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: #FFFFFF;
    color: #000000;
}

html {}

body {
    font-family: var(--font-body);
    background: #000000;
    color: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Film Grain for Cinematic Feel */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    /* just below loader */
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ==========================================================================
   LOADER & TRANSITIONS
   ========================================================================== */
#loader {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: var(--z-loader);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.loader-text {
    font-family: var(--font-serif);
    font-size: var(--text-h2);
    letter-spacing: 0.4em;
    font-weight: 400;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Progress track */
.loader-progress {
    width: min(240px, 70vw);
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

/* Subtle, minimal percentage display */
.loader-pct {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.25em;
    font-variant-numeric: tabular-nums;
    text-align: center;
    transition: none;
}

/* Animated fill bar */
.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: #FFFFFF;
    transition: none; /* JS controls this directly */
    will-change: width;
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
}

.hidden-realm {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.active-realm {
    display: block;
    animation: fadeInRealm 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInRealm {
    from {
        opacity: 0;
        transform: scale(0.98);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.realm-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-nav);
    color: white;
}

.nav-logo {
    font-family: var(--font-brutal);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.btn-return {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--font-body);
    font-size: var(--text-micro);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-return:hover {
    background: rgba(255, 255, 255, 0.9);
    color: black;
}

/* ==========================================================================
   CINEMATIC PORTAL (INDEX)
   ========================================================================== */
#nexus-gateway {
    position: fixed;
    inset: 0;
    background: var(--brutal-bg);
}

#nexus-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.cinematic-portal {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000000;
}

/* --- Portal Center Logo Overlay */
.portal-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.portal-center-logo h1 {
    font-family: var(--font-serif);
    font-size: var(--text-hero);
    font-weight: 400;
    line-height: 0.9;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0;
}

.portal-center-logo p {
    font-family: var(--font-body);
    font-size: var(--text-caption);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

.cinematic-portal:has(.portal-panel:hover) .portal-center-logo {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

/* --- The Split Panels --- */
.portal-panel {
    position: absolute;
    inset: 0;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: clip-path 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portal-associates {
    clip-path: polygon(0 0, 52% 0, 48% 100%, 0 100%);
}

.portal-studio {
    clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%);
}

.cinematic-portal:has(.portal-associates:hover) .portal-associates {
    clip-path: polygon(0 0, 65% 0, 55% 100%, 0 100%);
    z-index: 2;
}

.cinematic-portal:has(.portal-associates:hover) .portal-studio {
    clip-path: polygon(65% 0, 100% 0, 100% 100%, 55% 100%);
}

.cinematic-portal:has(.portal-studio:hover) .portal-associates {
    clip-path: polygon(0 0, 45% 0, 35% 100%, 0 100%);
}

.cinematic-portal:has(.portal-studio:hover) .portal-studio {
    clip-path: polygon(45% 0, 100% 0, 100% 100%, 35% 100%);
    z-index: 2;
}

.cinematic-portal:has(.portal-panel:hover) .portal-center-logo {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

/* Background layers */
.portal-bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
    z-index: 0;
    filter: contrast(1.2) brightness(0.6);
}

.portal-panel:hover .portal-bg {
    transform: scale(1.05);
}

.portal-associates:hover .portal-bg {
    filter: contrast(1.2) brightness(0.8);
    /* Warm amber tint */
}

.portal-studio:hover .portal-bg {
    filter: contrast(1.5) brightness(0.5);
    /* Harsh contrast */
}

/* Overlays */
.portal-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: all 0.8s ease;
}

.portal-associates .portal-overlay {
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.5) 100%);
}

.portal-studio .portal-overlay {
    background: linear-gradient(225deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.portal-panel:hover .portal-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* Content */
.portal-content {
    position: absolute;
    top: 50%;
    z-index: 2;
    text-align: center;
    color: white;
    opacity: 0.3;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    width: 40%;
}

.portal-associates .portal-content {
    left: 25%;
    transform: translate(-50%, -30%);
}

.portal-studio .portal-content {
    left: 75%;
    transform: translate(-50%, -30%);
}

.portal-associates:hover .portal-content,
.portal-studio:hover .portal-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Associates Styling */
.portal-associates .portal-content h2 {
    font-family: var(--font-elegant);
    font-size: var(--text-h1);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--sign-amber);
    text-shadow: 0 0 40px var(--sign-amber-glow);
}

/* Studio Styling */
.portal-studio .portal-content h2 {
    font-family: var(--font-brutal);
    font-size: var(--text-h1);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #E63946;
    text-transform: uppercase;
}

.portal-content p {
    font-size: var(--text-body);
    color: var(--glass-border);
    margin-bottom: var(--space-md);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.portal-panel:hover .portal-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
.portal-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: var(--text-micro);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    background: transparent;
}

.portal-associates .portal-btn {
    border: 1px solid var(--sign-amber);
    color: var(--sign-amber);
}

.portal-associates:hover .portal-btn {
    background: var(--sign-amber);
    color: #FFFFFF;
    box-shadow: 0 0 30px var(--sign-amber-glow);
}

.portal-studio .portal-btn {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    border-radius: 100px;
}

.portal-studio:hover .portal-btn {
    background: #FFFFFF;
    color: #111111;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}


/* ==========================================================================
   ASSOCIATES REALM (NOIR LUXE)
   ========================================================================== */
#associates-scroll-wrapper {
    min-height: 100vh;
    background: var(--sign-bg);
    color: var(--sign-text);
}

.associates-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--space-lg);
    position: relative;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.4) 100%), url('assets/images/associates/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.associates-hero h1 {
    font-family: var(--font-elegant);
    font-size: var(--text-hero);
    font-weight: 600;
    line-height: 0.9;
    color: var(--sign-text);
    margin-bottom: var(--space-md);
}

.associates-hero p {
    font-family: var(--font-body);
    font-size: var(--text-h3);
    font-weight: 300;
    color: var(--sign-amber);
    max-width: 600px;
    line-height: 1.4;
}

.associates-about {
    padding: var(--space-xl) var(--space-lg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.about-img-placeholder {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: var(--space-md);
    filter: grayscale(50%) contrast(1.1);
}

.about-col h3 {
    font-family: var(--font-elegant);
    font-size: var(--text-h2);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--sign-amber);
}

.about-col p {
    font-size: var(--text-body);
    line-height: 1.8;
    color: var(--sign-text-muted);
    font-weight: 300;
}

.associates-gallery-container {
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--sign-surface);
}

.gallery-track {
    display: flex;
    height: 80vh;
    padding: 0 var(--space-lg);
    gap: 3rem;
    width: max-content;
    padding-right: 10vw;
}

.gallery-item {
    width: 80vw;
    height: 100%;
    flex-shrink: 0;
    background: var(--sign-bg);
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.title-plate {
    width: 40vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-lg);
}

.title-plate h2 {
    font-family: var(--font-elegant);
    font-size: var(--text-h1);
    font-weight: 600;
    line-height: 1;
    color: var(--sign-text);
}

.split-item {
    display: flex;
    width: 70vw;
}

.split-item.reverse {
    flex-direction: row-reverse;
}

.item-half {
    flex: 1;
    height: 100%;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-half.img-half {
    padding: 0;
}

.item-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) sepia(20%) contrast(1.2);
    transition: filter 0.5s ease;
}

.item-half img:hover {
    filter: grayscale(0%) contrast(1.1);
}

.service-block h3 {
    font-family: var(--font-elegant);
    font-size: var(--text-h3);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--sign-amber);
}

.service-block li,
.service-block p {
    font-size: var(--text-body);
    line-height: 1.8;
    color: var(--sign-text-muted);
    font-weight: 300;
}



/* ==========================================================================
   STUDIO REALM (CYBER-GLASS & LIQUID CHROME)
   ========================================================================== */
#realm-studio {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--studio-bg);
    color: var(--studio-white);
}

#studio-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-canvas);
    pointer-events: none;
}

.studio-hero-organic {
    position: relative;
    z-index: var(--z-ui);
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10vh var(--space-xl);
    overflow: hidden;
    background: transparent;
}

.organic-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.organic-sub {
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-caption);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--studio-accent);
    margin-bottom: 2rem;
}

.organic-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-micro);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.organic-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--text-h1);
    font-weight: 300;
    font-style: italic;
    line-height: 1.1;
    color: var(--studio-white);
    margin-bottom: 2rem;
}

.organic-desc {
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-h3);
    font-weight: 300;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin-bottom: 4rem;
}

.organic-services {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4rem;
}

.organic-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.organic-hero-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

.organic-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.organic-hero-scroll {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--studio-accent);
}

.organic-hero-scroll .scroll-line {
    width: 50px;
    height: 1px;
    background: var(--studio-accent);
}

.studio-about-organic {
    position: relative;
    z-index: var(--z-ui);
    background: transparent;
    padding: var(--space-xl) 0;
    overflow: hidden;
    min-height: 80vh;
}

.organic-section-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: 0;
}

.organic-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    padding: var(--space-xl);
    background: var(--studio-glass);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--studio-glass-border);
}

.organic-section-wrapper.right-aligned {
    justify-content: flex-end;
}

.organic-section-wrapper.left-aligned {
    justify-content: flex-start;
}

.organic-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 1rem + 2.5vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--studio-white);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.organic-content p {
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-h4);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

#studio-gallery-trigger {
    position: relative;
    z-index: var(--z-ui);
    height: 100vh;
    width: 100%;
    border-top: 1px solid var(--studio-glass-border);
    border-bottom: 1px solid var(--studio-glass-border);
}

#studio-3d-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.studio-plane-text {
    position: absolute;
    top: 50%;
    transform: translateY(-40%);
    width: 450px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    background: var(--studio-glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--studio-glass-border);
    border-radius: 24px;
    padding: var(--space-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 0 20px rgba(0, 0, 0, 0.02);
    will-change: transform, opacity;
}

.studio-plane-text.text-left {
    left: 10%;
}

.studio-plane-text.text-right {
    left: 65%;
}

.studio-plane-text.visible {
    opacity: 1;
    transform: translateY(-50%);
}

.mobile-service-img {
    display: none;
}

.studio-plane-text h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--studio-white);
    word-break: break-word;
    hyphens: auto;
}

.studio-plane-text ul {
    list-style: none;
}

.studio-plane-text li {
    font-size: var(--text-body);
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--studio-glass-border);
    font-weight: 400;
    transition: color 0.3s ease;
}

.studio-plane-text li:hover {
    color: var(--studio-white);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: var(--text-micro);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--studio-white);
    background: var(--studio-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--studio-glass-border);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(0, 0, 0, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); }
    100% { box-shadow: 0 0 10px rgba(0, 0, 0, 0); }
}

/* Studio Showcase Grid */
.studio-showcase {
    position: relative;
    z-index: var(--z-ui);
    background: transparent;
    width: 100%;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 300px;
    gap: var(--space-md);
    width: 100%;
}

.showcase-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--studio-glass-border);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
    filter: brightness(0.6) grayscale(0.5);
}

.showcase-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) grayscale(0);
}

@media (min-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .showcase-item.tall {
        grid-row: span 2;
    }
    .showcase-item.wide {
        grid-column: span 2;
    }
}

/* Universal Premium Footer */
/* Universal Premium Footer */
.christa-footer {
    padding: var(--space-4xl) var(--space-2xl) var(--space-xl);
    margin-top: 15vh;
    background: #050505;
    color: var(--studio-white);
    position: relative;
    z-index: var(--z-ui);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.footer-main-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    padding-bottom: var(--space-4xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 992px) {
    .footer-main-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-left {
        flex: 1;
        max-width: 50%;
    }
    
    .footer-right {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

.footer-left h2 {
    font-family: var(--font-elegant);
    font-style: normal;
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.footer-left h2 i {
    font-family: var(--font-elegant);
    font-style: normal;
    font-weight: 700;
    color: var(--studio-white);
    display: inline-block;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--studio-bg);
    background: var(--studio-white);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
}

.footer-btn span {
    transition: transform 0.3s ease;
}

.footer-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255,255,255,0.15);
}

.footer-btn:hover span {
    transform: translateX(5px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    width: 100%;
    max-width: 600px;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-col h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li, .footer-col p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--studio-white);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    gap: var(--space-md);
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--studio-white);
}


/* ==========================================================================
   SHARED UI ELEMENTS
   ========================================================================== */
/* Custom Cursor (Only for Studio & Associates realms — Home page uses normal browser cursor) */
@media (pointer: fine) {
    .studio-realm *,
    .associates-realm * {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    width: 28px;
    height: 28px;
    color: var(--sign-amber);
    filter: drop-shadow(0 0 8px rgba(255, 126, 71, 0.8));
    opacity: 0; /* Hidden until first mousemove */
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    width: 6px;
    height: 6px;
    background: var(--sign-amber);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--sign-amber);
    opacity: 0; /* Hidden until first mousemove */
}

.studio-realm .custom-cursor {
    color: var(--studio-white);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.studio-realm .cursor-trail {
    background: var(--studio-white);
    box-shadow: 0 0 8px var(--studio-white);
}

/* WhatsApp CTA */
.whatsapp-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer !important;
}

.whatsapp-cta:hover {
    transform: scale(1.1);
}

.whatsapp-cta svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Scroll Progress */
.gallery-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--sign-amber);
    z-index: 9000;
    transition: width 0.1s linear;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    border-color: white;
    background: white;
    color: black;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .studio-plane-text {
        width: 320px;
    }

    .studio-plane-text.text-right {
        left: 55%;
    }
}

@media (max-width: 768px) {
    /* ==============================================
       GATEWAY (HOME) - PREMIUM SPLIT
       ============================================== */
    .cinematic-portal {
        display: flex;
        flex-direction: column;
        padding: var(--mob-space-16);
        gap: var(--mob-space-16);
        background: #000000;
    }

    .portal-panel {
        position: relative;
        flex: 1;
        clip-path: none !important;
        border-radius: var(--mob-radius-lg);
        border: 1px solid var(--studio-glass-border);
        inset: auto;
        height: auto;
        overflow: hidden;
    }

    /* Reset hover clip-paths */
    .cinematic-portal:has(.portal-associates:hover) .portal-associates,
    .cinematic-portal:has(.portal-associates:hover) .portal-studio,
    .cinematic-portal:has(.portal-studio:hover) .portal-associates,
    .cinematic-portal:has(.portal-studio:hover) .portal-studio {
        clip-path: none !important;
    }

    /* Premium floating center logo */
    .portal-center-logo {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: var(--mob-space-16) var(--mob-space-24);
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.2);
        box-shadow: 0 0 30px rgba(180, 83, 9, 0.3), inset 0 0 20px rgba(255,255,255,0.05);
        opacity: 1 !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    .portal-center-logo h1 {
        font-size: var(--mob-text-24);
        line-height: 1;
        background: linear-gradient(90deg, #fff, #a0a0a0);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 20px rgba(255,255,255,0.2);
    }
    
    .portal-center-logo p {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        margin-top: 0.5rem;
        color: #e63946;
        text-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
    }

    /* Content inside panels */
    .portal-content {
        position: relative;
        inset: auto;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 1 !important;
        transform: none !important;
        padding: var(--mob-space-24);
        background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
        z-index: 2;
        border-radius: var(--mob-radius-lg);
    }
    
    .portal-associates .portal-content,
    .portal-studio .portal-content {
        left: auto;
        top: auto;
        transform: none !important;
    }

    .portal-associates .portal-content h2 {
        font-size: var(--mob-text-30);
        color: var(--sign-amber);
        text-shadow: 0 0 20px var(--sign-amber-glow);
    }

    .portal-studio .portal-content h2 {
        font-size: var(--mob-text-30);
        color: #e63946;
        text-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
    }

    .portal-content p {
        font-size: var(--mob-text-12);
        margin-bottom: var(--mob-space-16);
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .portal-btn {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    }

    /* Fix background overlays */
    .portal-bg {
        filter: brightness(0.7) contrast(1.2) !important;
        transform: scale(1.1);
    }

    /* ==============================================
       SIGN WORLD - CONTEMPORARY BENTO GRID
       ============================================== */
    .associates-gallery-container {
        height: auto;
        overflow: hidden;
        padding: calc(var(--mob-space-32) + 60px) 0 var(--mob-space-32) 0;
        background: var(--sign-bg);
    }

    .gallery-track {
        display: flex;
        flex-direction: row;
        gap: var(--mob-space-16);
        width: 100vw;
        height: auto;
        padding: 0 var(--mob-space-16);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }
    .gallery-track::-webkit-scrollbar {
        display: none;
    }

    .title-plate {
        width: 100%;
        min-height: auto;
        padding: var(--mob-space-24);
        background: var(--sign-surface);
        border-radius: var(--mob-radius-lg);
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .title-plate h2 {
        font-size: var(--mob-text-36);
    }

    .gallery-item {
        width: 85vw;
        flex-shrink: 0;
        scroll-snap-align: center;
        min-height: auto;
        background: transparent;
        border: none;
        flex-direction: column;
    }

    .split-item {
        width: 100%;
        min-height: auto;
        flex-direction: column !important;
        background: var(--sign-surface);
        border-radius: var(--mob-radius-lg);
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }

    .item-half {
        padding: var(--mob-space-24);
        width: 100%;
        height: auto;
    }

    .item-half.img-half {
        padding: 0;
        height: 250px;
    }

    .item-half img {
        border-radius: var(--mob-radius-lg) var(--mob-radius-lg) 0 0;
        filter: grayscale(0%) contrast(1.1);
    }

    /* For reverse items, keep image on top in mobile */
    .split-item.reverse .item-half.img-half {
        order: -1;
    }
    
    .split-item.reverse .item-half:not(.img-half) {
        order: 1;
    }

    /* ==============================================
       DESIGN STUDIO - PREMIUM SPATIAL UI
       ============================================== */
    #studio-canvas {
        display: none !important;
    }

    .studio-hero-organic {
        padding: calc(var(--mob-space-32) + 60px) var(--mob-space-16);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Bottom anchor */
    }

    .organic-hero-content {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        padding: var(--mob-space-24);
        border-radius: var(--mob-radius-lg);
        border: 1px solid var(--studio-glass-border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        margin-bottom: var(--mob-space-24);
    }

    .organic-title {
        font-size: var(--mob-text-36);
        margin-bottom: var(--mob-space-16);
    }

    .organic-desc {
        font-size: var(--mob-text-16);
        margin-bottom: var(--mob-space-24);
    }

    .studio-about-organic {
        padding: var(--mob-space-32) var(--mob-space-16);
    }

    .studio-plane-text {
        position: relative !important;
        width: 100%;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        background: rgba(10, 10, 10, 0.7);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: var(--mob-space-24);
        border-radius: var(--mob-radius-lg);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 2px 20px rgba(255, 255, 255, 0.05);
        margin-bottom: var(--mob-space-24);
        overflow: hidden;
        opacity: 0;
    }
    .studio-plane-text::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
        opacity: 0.5;
    }
    .mobile-service-img {
        display: block !important;
        width: 100%;
        height: 240px;
        background-size: cover;
        background-position: center;
        border-radius: var(--mob-radius-md);
        margin-bottom: var(--mob-space-16);
        border: 1px solid var(--studio-glass-border);
    }
    
    .organic-services-grid {
        grid-template-columns: 1fr;
        gap: var(--mob-space-16);
    }

    .organic-service-item {
        background: rgba(255, 255, 255, 0.03);
        padding: var(--mob-space-24);
        border-radius: var(--mob-radius-md);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .studio-hero-image::after {
        display: none;
    }

    /* Common */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--mob-space-16);
    }
}

@media (max-width: 480px) {
    .whatsapp-cta {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-cta svg {
        width: 24px;
        height: 24px;
    }
}

@media (pointer: coarse) {

    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }
}

/* --- Accessibility & Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .marquee-track {
        animation: none !important;
    }
    
    .outline-text::before {
        transition: none !important;
    }
}

/* ==========================================================================
   ACCESSIBILITY — FOCUS STATES
   ========================================================================== */

/* Restore outline for keyboard users, hidden for mouse users */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--sign-amber);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Override for dark / studio pages */
.dark-mode :focus-visible,
#realm-studio :focus-visible {
    outline-color: #FFFFFF;
}

/* Ensure touch targets are large enough (WCAG 2.5.8) */
button,
a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Exception: inline links in paragraphs don't need min-height */
p a,
li a,
.footer-legal a,
.social-links a {
    min-height: unset;
    min-width: unset;
    display: inline;
}

/* Skip-to-content link for keyboard users (hidden off-screen until Tab focus) */
.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: var(--sign-amber);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 100000;
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 33.33%;
        height: 100%;
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .nav-item svg {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .nav-item span {
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }
    
    .nav-item.active {
        color: #ffffff;
    }
    
    .nav-item.active svg {
        transform: translateY(-2px) scale(1.1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
    
    /* Subtle glow line for active tab */
    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff;
    }

    /* Adjust main content padding to account for bottom nav on mobile */
    body {
        padding-bottom: 70px;
    }

    /* Move WhatsApp CTA above bottom nav */
    .whatsapp-cta {
        bottom: 90px;
    }
}

