/* ==========================================================================
   THE WEB BRANDING - PREMIUM DESIGN SYSTEM
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Custom Variables & Tokens --- */
:root {
    /* Azza-inspired Cosmic Duality Palette (Luxury White & Violet Brand Colors) */
    --bg-dark: transparent; /* Changed to allow mesh body gradient */
    --bg-slate: rgba(16, 8, 29, 0.3); /* Transparent slate overlay */
    
    --bg-light: #f4f3f6; /* Pristine Azza-inspired light violet-grey */
    --bg-card-light: #ffffff; /* Crisp white card background */
    
    --primary: #5A2C89; /* Signature Royal Purple Accent (Azza Violet) */
    --primary-glow: rgba(90, 44, 137, 0.15);
    --secondary: #ffffff; /* Clean Pristine White Accent */
    --secondary-glow: rgba(255, 255, 255, 0.15);
    --accent-blue: #c084fc; /* Bright neon electric lavender */
    
    /* Text Contrast (Dark Background) */
    --text-white: #ffffff;
    --text-gray: #c5c0d0; /* Decreased shade for bright premium legibility */
    --text-faded: #968eab; /* Decreased shade for clean silver-purple readability */
    
    /* Text Contrast (Light Background) */
    --text-dark: #120626; /* Deep obsidian purple text */
    --text-dark-gray: #4d445e; /* Rich charcoal purple text */
    --text-dark-faded: #867d98; /* Muted lavender-grey text */
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%); /* Saturated cosmic violet gradient */
    --grad-glow: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    --grad-dark: linear-gradient(180deg, #10081d 0%, #06020e 100%);
    --grad-text: linear-gradient(135deg, #ffffff 40%, #d8b4fe 100%);
    --grad-neon-text: linear-gradient(135deg, #ffffff 50%, #d8b4fe 100%);
    
    /* Border & Glassmorphic Details */
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-light: rgba(90, 44, 137, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-light: 0 15px 30px rgba(90, 44, 137, 0.04);
    
    --radius-lg: 20px;
    --radius-md: 12px;
    
    /* Smooth Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Resets & Base Configuration --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #05010a; /* Deepest purple/black */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(90, 44, 137, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(200, 0, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 10%, rgba(100, 0, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 20% 90%, rgba(255, 0, 128, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-white);
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Base Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 120px 0;
    position: relative;
}

/* --- Elegant Glowing Aura Elements --- */
.glow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    will-change: transform;
}

.orb-primary {
    background: var(--primary);
    width: 450px;
    height: 450px;
    top: -100px;
    right: -100px;
}

.orb-secondary {
    background: var(--secondary);
    width: 350px;
    height: 350px;
    bottom: 20%;
    left: -150px;
}

.orb-accent {
    background: var(--accent-blue);
    width: 400px;
    height: 400px;
    top: 40%;
    right: 10%;
    opacity: 0.08;
}

/* --- Premium Typography Utilities --- */
.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-text {
    background: var(--grad-neon-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-white);
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.section-tag.no-dot::before {
    display: none;
}

.section-tag.center {
    margin: 0 auto;
    justify-content: center;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin-bottom: 60px;
}

/* Responsive visibility utilities */
.show-mobile {
    display: none !important;
}

/* --- Glassmorphic Premium Card Token --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255,255,255,0.02);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(90, 44, 137, 0.25);
    box-shadow: 0 20px 40px rgba(90, 44, 137, 0.05);
    transform: translateY(-5px);
}

/* Enable native vertical page scrolling while reserving horizontal custom swipe interactions for 3D card tilt */
.service-card,
.portfolio-card,
.founder-card-left,
.founder-card-right,
.visual-canvas {
    touch-action: pan-y;
}

/* Disable transform transitions during active hover and tactile mobile touch dragging to let real-time JS 3D tilt execute instantly at 60fps/120fps */
.service-card:hover,
.service-card:active,
.service-card.active-tilt,
.portfolio-card:hover,
.portfolio-card:active,
.portfolio-card.active-tilt,
.founder-card-left:hover,
.founder-card-left:active,
.founder-card-left.active-tilt,
.founder-card-right:hover,
.founder-card-right:active,
.founder-card-right.active-tilt,
.service-card:hover .service-icon-box,
.service-card:active .service-icon-box,
.service-card.active-tilt .service-icon-box,
.service-card:hover .service-card-num,
.service-card:active .service-card-num,
.service-card.active-tilt .service-card-num {
    transition: transform 0s !important;
}

/* Prevent CSS hover translateY from colliding with JS 3D tilts */
.service-card.glass-card:hover,
.founder-card-left:hover,
.founder-card-right:hover {
    transform: none;
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg) translate3d(-150%, 0, 0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn:hover::after {
    transform: skewX(-25deg) translate3d(150%, 0, 0);
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-white); /* Pure white text for pristine readability on violet background! */
    font-weight: 600;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(90, 44, 137, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(90, 44, 137, 0.05);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366; /* Authentic WhatsApp brand green background */
    color: #ffffff; /* Clean white text for perfect visual accessibility! */
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

header.scrolled {
    top: 20px;
    width: calc(100% - 40px);
    max-width: 1200px;
    background: linear-gradient(180deg, rgba(35, 15, 65, 0.94) 0%, rgba(18, 8, 32, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(90, 44, 137, 0.35); /* More vibrant purple border */
    border-radius: 100px; /* Fully curved pill design */
    box-shadow: 0 12px 40px rgba(90, 44, 137, 0.16), 0 4px 30px rgba(0, 0, 0, 0.40); /* Powerful violet glow */
}

header.scrolled nav {
    height: 68px; /* More compact header height in pill format */
}

header.scrolled .container {
    padding: 0 32px;
}

nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.nav-logo-img {
    height: 88px;
    display: block;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-logo-img {
    height: 140px;
    display: block;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.nav-logo-img:hover, .footer-logo-img:hover {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(140, 82, 255, 0.45));
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--text-white);
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(90, 44, 137, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.shapegrid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.55;
    border: none;
    display: block;
}

.hero-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}


@font-face {
    font-family: 'Compressa VF';
    src: url('https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 5% 200%;
    font-style: normal;
}

.hero-title {
    font-family: 'Compressa VF', 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* 40px - 72px */
    line-height: 1.05;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: -0.01em;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-title span {
    display: inline-block;
}

.pressure-word {
    display: inline-block;
    white-space: nowrap;
}

.pressure-char {
    display: inline-block;
    transition: font-variation-settings 0.12s ease-out;
}

.hero-disc {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding: 24px 48px;
    background: rgba(13, 9, 21, 0.45);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05),
                0 0 30px rgba(90, 44, 137, 0.03);
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.hero-stats:hover {
    border-color: rgba(90, 44, 137, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 40px rgba(90, 44, 137, 0.08);
    transform: translateY(-2px);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-faded);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Hero Illustration / Visual Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
}

.visual-canvas {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    background: radial-gradient(100% 100% at 0% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    overflow: visible; /* Let 3D elements pop out slightly if needed */
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: var(--transition-smooth);
}

.hero-visual-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    position: relative;
    z-index: 3;
    animation: floatVisual 8s ease-in-out infinite;
    will-change: transform;
    
    /* Radial masking to fade the rectangular borders organically */
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0) 95%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0) 95%);
    
    /* Deep cosmic blending integration */
    filter: brightness(0.9) contrast(1.1) saturate(1.1);
    mix-blend-mode: screen; /* Integrates perfectly with glowing elements and grid dots! */
}

.visual-mesh {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(rgba(90, 44, 137, 0.1) 1px, transparent 0),
        radial-gradient(rgba(3, 231, 139, 0.05) 1px, transparent 0);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    animation: rotateMesh 30s linear infinite;
    opacity: 0.5;
}

.visual-logo-glow {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background: var(--grad-primary);
    box-shadow: 0 0 60px rgba(90, 44, 137, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-white);
    position: relative;
    z-index: 3;
    animation: floatVisual 6s ease-in-out infinite;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: stretch;
}

.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    aspect-ratio: 16/11;
    background: var(--bg-slate);
    box-shadow: var(--shadow-premium);
}

/* --- Founder Spotlight Premium Cards --- */
.founder-card-left {
    background: linear-gradient(135deg, rgba(90, 44, 137, 0.22) 0%, rgba(6, 2, 14, 0.85) 100%);
    border: 1px solid rgba(90, 44, 137, 0.25);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    will-change: transform, box-shadow;
}

.founder-card-left:hover {
    border-color: rgba(90, 44, 137, 0.45);
    box-shadow: 0 20px 40px rgba(90, 44, 137, 0.12), var(--shadow-premium);
    transform: translateY(-4px);
}

.founder-card-right {
    background: #5A2C89; /* The original deep purple background from the live website! */
    background: linear-gradient(135deg, #5A2C89 0%, #30164e 100%); /* Brand purple-to-dark gradient */
    border: 1px solid rgba(90, 44, 137, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 450px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    will-change: transform, box-shadow;
}

.founder-card-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    z-index: 1;
}

.founder-card-right:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(90, 44, 137, 0.25);
    border-color: rgba(90, 44, 137, 0.35);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    display: block;
    will-change: transform;
}

.founder-card-right:hover .founder-img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .founder-card-left, .founder-card-right {
        min-height: 380px;
        padding: 36px;
    }
}

.about-map-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.2;
    filter: blur(40px);
}

.glow-dubai {
    top: 30%;
    right: 25%;
}

.glow-kerala {
    bottom: 25%;
    left: 30%;
    background: var(--secondary);
}

.about-map-container {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.map-connecting-line {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    height: 0;
    position: relative;
    margin: auto 0;
}

.map-location-tag {
    background: rgba(18, 20, 28, 0.85);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(4px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
}

.map-location-tag.loc-dubai {
    align-self: flex-end;
}

.loc-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-white);
}

.loc-desc {
    font-size: 0.75rem;
    color: var(--text-gray);
}

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

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.skill-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-name {
    color: var(--text-white);
}

.skill-percent {
    color: var(--primary);
}

.skill-track {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(90, 44, 137, 0.08);
    border: 1px solid rgba(90, 44, 137, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background: var(--grad-primary);
    color: var(--text-white);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.service-card-num {
    position: absolute;
    top: 30px;
    right: 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-num {
    color: rgba(90, 44, 137, 0.05);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.service-feat-item {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-feat-item svg {
    color: var(--secondary);
    flex-shrink: 0;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    box-shadow: var(--shadow-premium);
    cursor: pointer;
    will-change: transform, box-shadow;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    will-change: transform;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-smooth);
    z-index: 2;
}

.portfolio-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 11, 14, 0.95) 0%, rgba(10, 11, 14, 0.4) 60%, transparent 100%);
    z-index: -1;
    transition: opacity var(--transition-smooth);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-card:hover .portfolio-overlay::before {
    opacity: 0;
}

.port-cat {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
}

.port-title {
    font-size: 1.6rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.port-link-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
}

/* ==========================================================================
   INTERACTIVE BUDGET ESTIMATOR
   ========================================================================== */
.estimator-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

.estimator-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.estimator-group-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-white);
}

.estimator-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-checkbox {
    display: none;
}

.service-label {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    color: var(--text-gray);
}

.service-label:hover {
    background: rgba(90, 44, 137, 0.04);
    border-color: rgba(90, 44, 137, 0.25);
    color: var(--text-white);
}

.service-checkbox:checked + .service-label {
    background: rgba(90, 44, 137, 0.08);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(90, 44, 137, 0.1);
}

.label-check-indicator {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid var(--text-faded);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-checkbox:checked + .service-label .label-check-indicator {
    border-color: var(--primary);
    background: var(--primary);
}

.service-checkbox:checked + .service-label .label-check-indicator::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #ffffff; /* White dot inside purple checkmark indicator */
    border-radius: 50%;
}

/* Range Slider */
.slider-container {
    position: relative;
    width: 100%;
}

.slider-headers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.estimator-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    transition: var(--transition-smooth);
}

.estimator-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.estimator-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--text-white);
}

/* Contact Inputs */
.estimator-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    font-size: 1.25rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input::placeholder {
    color: var(--text-faded);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(90, 44, 137, 0.02);
    box-shadow: 0 0 15px rgba(90, 44, 137, 0.08);
}

/* Proposal Summary Panel */
.proposal-panel {
    background: radial-gradient(100% 100% at 0% 0%, rgba(90, 44, 137, 0.05) 0%, transparent 100%);
    border-color: rgba(90, 44, 137, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.proposal-head {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.proposal-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.proposal-subtitle {
    font-size: 0.8rem;
    color: var(--text-faded);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proposal-meta-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.proposal-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.meta-label {
    color: var(--text-gray);
}

.meta-val {
    font-weight: 600;
    color: var(--text-white);
}

.meta-val.val-scope {
    color: var(--secondary);
}

.meta-val.val-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--primary);
}

.proposal-terms {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.proposal-terms strong {
    color: var(--text-white);
}

/* ==========================================================================
   TESTIMONIALS & TRUST
   ========================================================================== */
/* Testimonials Infinite Marquee Slider */
.testimonial-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 24px 0;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee-slide 45s linear infinite;
}

/* Mathematically perfect trailing gap spacer to completely eliminate the loop reset jump glitch */
.marquee-track::after {
    content: '';
    width: 24px; /* Matches flex gap on desktop */
    flex-shrink: 0;
}

.testimonial-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* Base card width override for continuous line marquee */
.testimonial-marquee .test-card {
    flex-shrink: 0;
    width: 380px;
    white-space: normal;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 30px;
}

@keyframes marquee-slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .testimonial-marquee {
        mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
        padding: 16px 0;
    }
    
    .testimonial-marquee .test-card {
        width: 300px;
        padding: 20px;
    }
    
    .marquee-track {
        gap: 16px;
        animation: marquee-slide 30s linear infinite;
    }
    
    .marquee-track::after {
        width: 16px; /* Matches flex gap on mobile */
    }
}

.test-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-stars {
    display: flex;
    gap: 4px;
    color: #ffb800;
    margin-bottom: 20px;
}

.test-quote {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.test-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-slate);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.user-company {
    font-size: 0.75rem;
    color: var(--text-faded);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
    background: #05010a; /* Solid darkest purple to anchor the page */
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.footer-brand-disc {
    font-size: 0.9rem;
    color: var(--text-gray);
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-white);
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-menu-link {
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-menu-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

.social-circle:hover {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-contact-item {
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.footer-contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-faded);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.legal-link {
    font-size: 0.85rem;
    color: var(--text-faded);
    transition: var(--transition-smooth);
}

.legal-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   ANIMATIONS & SCROLL UTILITIES
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.fade-in-up.appeared {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* --- Premium 3D Scroll Reveal Utilities --- */
.reveal-3d-fold {
    opacity: 0;
    transform: perspective(1200px) rotateX(22deg) translate3d(0, 60px, 0) scale(0.96);
    transform-origin: top center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-3d-fold.appeared {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translate3d(0, 0, 0) scale(1);
}

.reveal-3d-flip-left {
    opacity: 0;
    transform: perspective(1200px) rotateY(-35deg) translate3d(-80px, 0, 0);
    transform-origin: left center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-3d-flip-left.appeared {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translate3d(0, 0, 0);
}

.reveal-3d-flip-right {
    opacity: 0;
    transform: perspective(1200px) rotateY(35deg) translate3d(80px, 0, 0);
    transform-origin: right center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-3d-flip-right.appeared {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translate3d(0, 0, 0);
}

.reveal-3d-pop {
    opacity: 0;
    transform: perspective(1200px) rotateX(-18deg) rotateY(8deg) scale(0.88) translate3d(0, 50px, 0);
    transition: opacity 1.1s cubic-bezier(0.34, 1.56, 0.64, 1), transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}
.reveal-3d-pop.appeared {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) scale(1) translate3d(0, 0, 0);
}

.reveal-3d-roll {
    opacity: 0;
    transform: perspective(1000px) rotateX(-75deg);
    transform-origin: top center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-3d-roll.appeared {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

@keyframes floatVisual {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotateMesh {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-disc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 32px;
        padding: 20px 36px;
        border-radius: 24px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-visual {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .estimator-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.mobile-only-cta {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(9, 7, 15, 0.96);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--border-glass);
        padding: 40px 30px;
        gap: 24px;
        z-index: 99;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDownMenu 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .mobile-only-cta {
        display: block;
    }
    
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: var(--text-white);
        cursor: pointer;
        width: 44px;
        height: 44px;
        border-radius: 50% !important;
        z-index: 100;
        position: relative;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        box-shadow: 0 0 0 0px rgba(90, 44, 137, 0);
    }
    
    .menu-toggle:hover {
        color: var(--primary);
        border-color: rgba(90, 44, 137, 0.25) !important;
        background: rgba(90, 44, 137, 0.05) !important;
    }

    .menu-toggle.active {
        background: rgba(90, 44, 137, 0.15) !important;
        border-color: rgba(90, 44, 137, 0.45) !important;
        box-shadow: 0 0 15px var(--primary-glow) !important;
        color: var(--primary);
    }

    .menu-toggle svg {
        position: absolute;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, color 0.4s ease !important;
    }

    .menu-toggle .menu-icon {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    .menu-toggle .close-icon {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }

    .menu-toggle.active .menu-icon {
        opacity: 0;
        transform: rotate(180deg) scale(0);
    }

    .menu-toggle.active .close-icon {
        transform: rotate(0deg) scale(1);
    }

    .menu-toggle.menu-tap-pulse {
        animation: menuButtonTap 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .menu-toggle.menu-tap-pulse::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 50%;
        border: 2px solid var(--primary);
        box-shadow: 0 0 10px var(--primary-glow);
        animation: menuRingPulse 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        pointer-events: none;
    }
    
    /* Hide desktop 'Get Started' button in navbar on small devices to avoid crowding */
    nav > .btn-primary {
        display: none;
    }
}

@keyframes menuButtonTap {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hide-mobile, .show-desktop {
        display: none !important;
    }
    
    .show-mobile {
        display: inline !important;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem); /* 32px - 48px */
        line-height: 1.1;
        margin-bottom: 18px;
    }
    
    .hero-stats {
        gap: 20px;
        padding: 16px 24px;
        border-radius: 20px;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(13, 9, 21, 0.96) !important;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .portfolio-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .estimator-layout {
        gap: 20px;
    }
    
    .estimator-form {
        gap: 16px;
    }
    
    .estimator-services {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .service-label {
        padding: 10px 14px;
        font-size: 0.82rem;
        gap: 8px;
    }
    
    .label-check-indicator {
        width: 14px;
        height: 14px;
    }
    
    .estimator-group-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .estimator-inputs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .estimator-inputs input:first-child {
        grid-column: span 2;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .btn-whatsapp {
        padding: 12px 16px !important;
        font-size: 0.92rem;
    }
    
    .proposal-panel {
        padding: 20px !important;
    }
    
    .proposal-head {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .proposal-title {
        font-size: 1.1rem;
    }
    
    .proposal-meta-list {
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .proposal-meta-item {
        font-size: 0.82rem;
    }
    
    .val-scope {
        font-size: 0.82rem !important;
    }
    
    .val-price {
        font-size: 1.1rem !important;
    }
    
    .proposal-terms {
        padding: 10px 12px;
        font-size: 0.72rem;
        margin-bottom: 16px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-grid > .footer-col:last-child {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-grid > .footer-col:last-child .footer-contact-item {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .nav-logo-img {
        height: 68px;
    }
    .footer-logo-img {
        height: 100px;
    }

    /* Mobile scroll case study focused card states */
    .portfolio-overlay {
        padding: 24px;
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(0deg, rgba(10, 11, 14, 0.95) 0%, rgba(10, 11, 14, 0.6) 70%, transparent 100%) !important;
    }

    .reveal-3d-roll {
        transform: none !important;
        transition: opacity 0.8s ease-out !important;
    }

    /* Mobile founder card layouts */
    .founder-card-left {
        min-height: auto;
        padding: 32px 24px;
    }
    .founder-card-right {
        min-height: 320px;
        padding: 24px;
    }
    /* Disable expensive backdrop blur effects on mobile scrolling card components to eliminate lag */
    .glass-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(13, 9, 21, 0.96) !important;
    }
}

/* --- Mobile Scroll Focus Highlight --- */
@media (max-width: 992px) {
    .service-card.viewport-focused, 
    .portfolio-card.viewport-focused, 
    .founder-card-right.viewport-focused, 
    .founder-card-left.viewport-focused {
        border-color: var(--primary) !important;
        box-shadow: 0 15px 35px var(--primary-glow), var(--shadow-premium) !important;
        transform: scale(1.03) !important;
    }
}

/* --- Light Theme Sections (Azza Duality Style) --- */
.theme-light {
    background-color: var(--bg-light) !important;
    color: var(--text-dark) !important;
    position: relative;
}

.theme-light .section-tag {
    background: rgba(90, 44, 137, 0.06);
    border: none;
    color: var(--primary);
}

.theme-light .section-title {
    background: linear-gradient(135deg, var(--text-dark) 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.theme-light .section-subtitle {
    color: var(--text-dark-gray);
}

/* Service Cards in Light Mode */
.theme-light .service-card.glass-card {
    background: var(--bg-card-light) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-light);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.theme-light .service-card.glass-card:hover {
    border-color: rgba(90, 44, 137, 0.25) !important;
    box-shadow: 0 20px 40px rgba(90, 44, 137, 0.08) !important;
}

.theme-light .service-icon-box {
    background: rgba(90, 44, 137, 0.06) !important;
    border-color: rgba(90, 44, 137, 0.15) !important;
    color: var(--primary) !important;
}

.theme-light .service-card:hover .service-icon-box {
    background: var(--grad-primary) !important;
    color: var(--text-white) !important;
}

.theme-light .service-title {
    color: var(--text-dark);
}

.theme-light .service-desc {
    color: var(--text-dark-gray);
}

.theme-light .service-feat-item {
    color: var(--text-dark-gray);
}

.theme-light .service-feat-item svg {
    color: var(--primary);
}

.theme-light .service-features {
    border-top: 1px solid rgba(90, 44, 137, 0.08);
}

.theme-light .service-card-num {
    color: rgba(90, 44, 137, 0.03);
}

.theme-light .service-card:hover .service-card-num {
    color: rgba(90, 44, 137, 0.06);
}

/* Testimonials / Reviews in Light Mode */
.theme-light .test-card.glass-card {
    background: var(--bg-card-light) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-light);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.theme-light .test-quote {
    color: var(--text-dark-gray) !important;
}

.theme-light .user-name {
    color: var(--text-dark) !important;
}

.theme-light .user-company {
    color: var(--text-dark-faded) !important;
}

.theme-light .user-avatar {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--primary) !important;
}

.theme-light .test-card.glass-card:hover {
    border-color: rgba(90, 44, 137, 0.25) !important;
    box-shadow: 0 20px 40px rgba(90, 44, 137, 0.08) !important;
    transform: translateY(-4px) !important;
}

/* ==========================================================================
   TILTED CARD TOOLTIP CAPTION (React Bits Port)
   ========================================================================== */
.tilted-card-caption {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 6px;
    background-color: var(--text-white) !important;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #12091c !important; /* Premium deep purple-black */
    opacity: 0;
    z-index: 99;
    will-change: transform, opacity;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s ease;
    transform: translateZ(50px);
}

@media (max-width: 640px) {
    .tilted-card-caption {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* ==========================================================================
   FLOATING PILL MOBILE HEADER
   ========================================================================== */

/* Main Header Container */
.ag-pill-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 999;
    display: none; /* Desktop hidden */
}

/* Main Pill Body */
.ag-pill-main {
    background: linear-gradient(180deg, rgba(35, 15, 65, 0.94) 0%, rgba(18, 8, 32, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(90, 44, 137, 0.35); /* Vibrant purple border */
    border-radius: 100px; /* Fully curved pill design */
    box-shadow: 0 12px 40px rgba(90, 44, 137, 0.16), 0 4px 30px rgba(0, 0, 0, 0.40); /* Powerful violet glow */
    position: relative;
    z-index: 20;
    overflow: hidden;
    transition: border-radius 0.3s, border-bottom-color 0.3s, box-shadow 0.3s;
}

/* Seamless Dropdown Morphs */
.ag-pill-header.menu-open .ag-pill-main {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    box-shadow: none; /* Remove bottom shadow so it doesn't cast on the dropdown */
}

.ag-pill-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem; /* 64px - Decreased height per request */
    padding: 0 1.5rem; /* 24px */
}

.ag-pill-content .nav-logo-img {
    height: 48px; /* Slightly increased logo size without expanding header */
}

/* Hamburger Button */
.ag-pill-btn {
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.ag-pill-btn.active {
    background: rgba(90, 44, 137, 0.15) !important;
    border-color: rgba(90, 44, 137, 0.45) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
    color: var(--primary);
}

.ag-pill-btn svg {
    position: absolute;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, color 0.4s ease;
}

.ag-pill-btn .ag-menu-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.ag-pill-btn .ag-close-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.ag-pill-btn.active .ag-menu-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

.ag-pill-btn.active .ag-close-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.ag-pill-btn.menu-tap-pulse {
    animation: menuButtonTap 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ag-pill-btn.menu-tap-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: menuRingPulse 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

/* Dropdown Container */
.ag-dropdown-wrapper {
    position: absolute;
    top: calc(4rem - 1.5px); /* Specifically overlap by 1.5px to completely hide the connecting border line */
    left: 0;
    width: 100%;
    z-index: -10;
    /* overflow removed so shadow doesn't get clipped into square corners */
}

.ag-dropdown-menu {
    background: linear-gradient(180deg, rgba(35, 15, 65, 0.96) 0%, rgba(18, 8, 32, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid transparent; /* Transparent when closed */
    border-top: none; /* Connects smoothly to the pill */
    border-bottom-left-radius: 2rem; /* 32px */
    border-bottom-right-radius: 2rem; /* 32px */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: none; /* Hidden when closed */
    width: 100%;
    max-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Moved here so children are clipped, but its own shadow isn't */
    /* Snappy cinematic container dropdown with a high-performance smooth curve */
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.ag-pill-header.menu-open .ag-dropdown-menu {
    border-color: rgba(90, 44, 137, 0.25);
    box-shadow: 0 12px 40px rgba(90, 44, 137, 0.16), 0 4px 30px rgba(0, 0, 0, 0.40);
}

.ag-dropdown-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0; /* 32px */
    gap: 1.5rem; /* 24px */
}

/* Cinematic 3D Reveal */
.ag-menu-item {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0;
    transform: perspective(500px) rotateX(-20deg) translateY(-10px) scale(0.95);
    filter: blur(4px);
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.ag-menu-item.active {
    color: var(--primary);
}

/* Active state when menu is open */
#ag-mobile-menu.is-open .ag-menu-item {
    opacity: 1;
    transform: perspective(500px) rotateX(0deg) translateY(0) scale(1);
    filter: blur(0px);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* Fast cascading delays for the waterfall effect (applied only during open) */
#ag-mobile-menu.is-open .ag-menu-item:nth-child(1) { transition-delay: 0.02s; }
#ag-mobile-menu.is-open .ag-menu-item:nth-child(2) { transition-delay: 0.04s; }
#ag-mobile-menu.is-open .ag-menu-item:nth-child(3) { transition-delay: 0.06s; }
#ag-mobile-menu.is-open .ag-menu-item:nth-child(4) { transition-delay: 0.08s; }
#ag-mobile-menu.is-open .ag-menu-item:nth-child(5) { transition-delay: 0.10s; }
#ag-mobile-menu.is-open .ag-menu-item:nth-child(6) { transition-delay: 0.12s; }
#ag-mobile-menu.is-open .ag-menu-item:nth-child(7) { transition-delay: 0.14s; }

/* Media Query to handle Desktop vs Mobile display */
@media (max-width: 768px) {
    .ag-pill-header {
        display: block;
    }
    #main-header {
        display: none !important;
    }
    /* Keep anchor targets (e.g. the Contact link jumping to #estimator)
       clear of the floating pill header */
    section[id] {
        scroll-margin-top: 110px;
    }
}

/* --- Interactive Mascot --- */
.mascot-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 100px;
    height: 120px;
    z-index: 1000;
    cursor: pointer;
    animation: mascot-float 3s ease-in-out infinite;
    perspective: 1000px;
    transition: top 0.8s cubic-bezier(0.16, 1, 0.3, 1), left 0.8s cubic-bezier(0.16, 1, 0.3, 1), width 0.8s cubic-bezier(0.16, 1, 0.3, 1), height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.mascot-container.in-hero {
    width: 120px;
    height: 120px;
    animation: none; /* Disable float animation when in hero */
}
.mascot-container.in-hero .mascot {
    transform: scale(1.1);
    transform-origin: center center;
}
.mascot-container.in-hero .mascot-shadow {
    transform: scale(1.1);
    transform-origin: center center;
}

.mascot-container.in-hero:hover .mascot {
    transform: scale(1.2) rotate(-3deg);
}

.mascot-container.in-sub-hero {
    width: 200px;
    height: 200px;
    animation: mascot-float 3s ease-in-out infinite;
}
.mascot-container.in-sub-hero .mascot {
    transform: scale(2.1);
    transform-origin: center center;
}
.mascot-container.in-sub-hero .mascot-shadow {
    transform: scale(2.1);
    transform-origin: center center;
}

.mascot-container.in-sub-hero:hover .mascot {
    transform: scale(2.2) rotate(-3deg);
}

@media (max-width: 992px) {
    .mascot-container.in-hero {
        width: 100px;
        height: 100px;
    }
    .mascot-container.in-hero .mascot {
        transform: scale(0.9);
    }
    .mascot-container.in-hero .mascot-shadow {
        transform: scale(0.9);
    }
    .mascot-container.in-hero:hover .mascot {
        transform: scale(1.0) rotate(-3deg);
    }

    .mascot-container.in-sub-hero {
        width: 120px;
        height: 120px;
    }
    .mascot-container.in-sub-hero .mascot {
        transform: scale(1.15);
    }
    .mascot-container.in-sub-hero .mascot-shadow {
        transform: scale(1.15);
    }
    .mascot-container.in-sub-hero:hover .mascot {
        transform: scale(1.25) rotate(-3deg);
    }
}

@media (max-width: 768px) {
    .mascot-container {
        animation: mascot-float-mobile 3s ease-in-out infinite;
        transform-origin: bottom right;
    }
    .mascot-container.in-hero,
    .mascot-container.in-sub-hero {
        animation: none;
    }
}

.mascot-hero-target {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    pointer-events: none;
}

@media (max-width: 992px) {
    .mascot-hero-target {
        width: 100px;
        height: 100px;
        margin: 20px auto;
    }
}

/* Mascot Speech Bubble */
.mascot-bubble {
    position: absolute;
    bottom: 110%;
    background: white;
    color: #05010a;
    padding: 10px 16px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: max-content;
    max-width: 220px;
    pointer-events: none;
    z-index: 1001;
    text-align: center;
    transform-origin: bottom center;
}

.mascot-bubble.bubble-right {
    right: -10px;
    left: auto;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 14px;
    transform-origin: bottom right;
}
.mascot-bubble.bubble-right::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 18px;
    left: auto;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.mascot-bubble.bubble-left {
    left: -10px;
    right: auto;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 14px;
    transform-origin: bottom left;
}
.mascot-bubble.bubble-left::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 18px;
    right: auto;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.mascot-bubble.bubble-center {
    left: 50%;
    right: auto;
    border-radius: 14px;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    transform-origin: bottom center;
}
.mascot-bubble.bubble-center::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.mascot-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mascot-bubble.bubble-center.show {
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Counteract parent scaling in hero so speech bubble remains crisp and human-sized */
.mascot-container.in-hero .mascot-bubble.show {
    transform: translateY(0) scale(var(--bh-mascot-inv-scale, 1));
}
.mascot-container.in-hero .mascot-bubble.bubble-center.show {
    transform: translateX(-50%) translateY(0) scale(var(--bh-mascot-inv-scale, 1));
}
.mascot-container.in-hero .mascot-bubble.bubble-left.show {
    transform: translateY(0) scale(var(--bh-mascot-inv-scale, 1));
}
.mascot-container.in-hero .mascot-bubble.bubble-right.show {
    transform: translateY(0) scale(var(--bh-mascot-inv-scale, 1));
}

.mascot {
    position: relative;
    width: 100px;
    height: 120px;
    margin: 0 auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.mascot-container:hover .mascot {
    transform: scale(1.1) rotate(-5deg);
}

.mascot-container:active .mascot {
    transform: scale(0.9) translateY(10px);
}

.mascot-head {
    width: 100px;
    height: 80px;
    background: linear-gradient(145deg, #b066ff, #5A2C89);
    border-radius: 35px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.3), inset 5px 5px 10px rgba(255,255,255,0.4), inset -5px -5px 15px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

.mascot-screen {
    width: 75px;
    height: 50px;
    background: linear-gradient(145deg, #2a2a35, #15151a);
    border-radius: 20px;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.8), 0 2px 4px rgba(255,255,255,0.2);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.mascot-screen::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-15deg);
    border-radius: 50%;
}

.mascot-eye {
    width: 16px;
    height: 18px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 10px #fff, 0 0 20px #b066ff;
    animation: mascot-blink 4s infinite;
    transition: transform 0.2s;
}

.mascot-container:hover .mascot-eye {
    transform: translate(var(--eye-x, 0px), var(--eye-y, 0px)) scaleY(1.2) scaleX(1.1);
    background: #ffbbf1;
    box-shadow: 0 0 10px #ffbbf1, 0 0 20px #ff66d9;
}

.mascot-body {
    width: 45px;
    height: 40px;
    background: linear-gradient(145deg, #9b4dff, #7a2be0);
    border-radius: 0 0 20px 20px;
    margin: -15px auto 0;
    position: relative;
    z-index: 1;
    box-shadow: inset -3px -3px 8px rgba(0,0,0,0.3), 0 5px 10px rgba(0,0,0,0.3);
    transform: translateZ(-10px);
}

.mascot-arm {
    width: 15px;
    height: 25px;
    background: #5A2C89;
    border-radius: 10px;
    position: absolute;
    top: 5px;
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.2);
}
.mascot-arm.left { left: -8px; transform: rotate(20deg); }
.mascot-arm.right { right: -8px; transform: rotate(-20deg); }

.mascot-container:hover .mascot-arm.left {
    animation: mascot-wave 0.5s infinite alternate;
}

.mascot-shadow {
    width: 60px;
    height: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    margin: 10px auto 0;
    animation: mascot-shadow 3s ease-in-out infinite;
}

@keyframes mascot-float {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1) translateY(-15px); }
}

@keyframes mascot-float-mobile {
    0%, 100% { transform: scale(0.65) translateY(0); }
    50% { transform: scale(0.65) translateY(-23px); }
}

@keyframes mascot-shadow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(0.8); opacity: 0.2; }
}

@keyframes mascot-blink {
    0%, 94%, 98%, 100% { transform: translate(var(--eye-x, 0px), var(--eye-y, 0px)) scaleY(1); }
    96% { transform: translate(var(--eye-x, 0px), var(--eye-y, 0px)) scaleY(0.1); }
}

@keyframes mascot-wave {
    0% { transform: rotate(20deg) translateY(0); }
    100% { transform: rotate(100deg) translateY(-5px); }
}
    .campaign-hero .hero-grid {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 50px;
        align-items: center;
        text-align: left;
    }

    .campaign-hero .hero-right-content {
        position: relative !important;
        width: 100% !important;
    }

    .campaign-hero .mascot-hero-target {
        position: absolute !important;
        top: -130px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 120px !important;
        height: 120px !important;
        z-index: 10 !important;
    }

    @media (max-width: 992px) {
        .campaign-hero .mascot-hero-target {
            position: relative !important;
            top: 0 !important;
            left: 0 !important;
            transform: none !important;
            margin: 20px auto !important;
            width: 100px !important;
            height: 100px !important;
        }
    }

    @media (max-width: 992px) {
        .campaign-hero .hero-grid {
            grid-template-columns: 1fr !important;
            gap: 0 !important;
        }
        .campaign-hero .hero-left-content {
            text-align: center !important;
            align-items: center !important;
            padding: 30px 20px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 20px 20px 0 0;
            backdrop-filter: blur(10px);
        }
        .campaign-hero .hero-subtitle-campaign {
            max-width: 100% !important;
            text-align: center !important;
        }
        .campaign-hero .hero-title-campaign {
            text-align: center !important;
        }
        .campaign-hero .hero-features {
            justify-content: center !important;
        }
        .campaign-hero .campaign-hero-buttons {
            flex-direction: column !important;
            align-items: stretch !important;
            width: 100% !important;
            gap: 12px !important;
        }
        .campaign-hero .campaign-hero-buttons .btn {
            width: 100% !important;
            text-align: center !important;
            box-sizing: border-box !important;
            padding: 14px 20px !important;
            font-size: 0.95rem !important;
            border-radius: 50px !important;
            display: block !important;
        }
        .campaign-hero .hero-right-content {
            width: 100%;
        }
        .campaign-hero .lead-form-card {
            max-width: 100%;
            border-radius: 0 0 20px 20px !important;
            border-top: none !important;
            background: rgba(90, 44, 137, 0.04) !important;
            border: 1px solid rgba(90, 44, 137, 0.15) !important;
            border-top: none !important;
        }
    }
    @media (max-width: 768px) {
        .campaign-hero .hero-grid {
            grid-template-columns: 1fr !important;
            gap: 0 !important;
        }
        .campaign-hero {
            padding: 20px 0 40px !important;
        }
        .campaign-hero .hero-title-campaign {
            font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
            text-align: center !important;
        }
        .campaign-hero .hero-subtitle-campaign {
            font-size: 0.95rem;
            max-width: 100% !important;
            text-align: center !important;
        }
        .campaign-hero .hero-left-content {
            padding: 24px 16px;
        }
        .campaign-hero .lead-form-card {
            padding: 20px 16px;
            max-width: 100%;
        }
        .campaign-hero .lead-form-card h3 {
            font-size: 1.2rem;
        }
        .campaign-hero .lead-form-card form > div[style*="display: flex"] {
            flex-direction: column !important;
        }
        .campaign-hero .hero-features {
            flex-direction: column;
            gap: 8px;
            align-items: center;
        }
        .campaign-hero .campaign-hero-buttons {
            flex-direction: column !important;
            align-items: stretch !important;
            width: 100% !important;
            gap: 12px !important;
            margin-top: 10px;
        }
        .campaign-hero .campaign-hero-buttons .btn {
            width: 100% !important;
            text-align: center !important;
            box-sizing: border-box !important;
            padding: 14px 20px !important;
            font-size: 0.95rem !important;
            border-radius: 50px !important;
            display: block !important;
        }
    }

/* Projects Marquee & Hover Effect */
.projects-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100vw;
    /* Use margin-left instead of left+transform so the animation's transform
       on .projects-track doesn't conflict with/override the positioning */
    margin-left: calc(50% - 50vw);
}
.projects-track {
    display: flex;
    width: max-content;
    gap: 20px;
    --track-shift: -4200px; /* 10 slides * 420px (400px + 20px gap) */
    animation: scroll-marquee 60s linear infinite;
    padding: 20px 0;
    will-change: transform;
}
.projects-track::after {
    content: '';
    width: 20px;
    flex-shrink: 0;
}
@keyframes scroll-marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(var(--track-shift), 0, 0); }
}

.project-slide {
    flex: 0 0 auto;
    width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: block;
}

.ig-project-card {
    height: 400px;
    width: 320px;
}

.ig-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 3s ease-in-out;
}

.ig-project-card:hover .ig-img,
.ig-project-card.scrolling-active .ig-img {
    transform: translateY(calc(-100% + 400px));
}

.project-overlay-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
}
.ig-project-card:hover .project-overlay-custom,
.ig-project-card.scrolling-active .project-overlay-custom {
    opacity: 0;
}
.project-cat {
    color: var(--accent-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.project-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

@media (max-width: 768px) {
    .project-slide { flex: 0 0 300px; }
    .projects-track { --track-shift: -3200px; /* 10 slides * 320px */ }
}

/* Custom Select Dropdown Styling */
.custom-select-container {
    position: relative;
    width: 100%;
    user-select: none;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 45px;
    box-sizing: border-box;
}

.custom-select-trigger:hover,
.custom-select-container.open .custom-select-trigger {
    border-color: #5A2C89;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(90, 44, 137, 0.25);
}

.custom-select-trigger span.placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.custom-select-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    margin-top: -3px;
    margin-right: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.custom-select-container.open .custom-select-arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
    border-color: #5A2C89;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(20, 10, 35, 0.98);
    border: 1px solid rgba(90, 44, 137, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(90, 44, 137, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.custom-select-container.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 12px 16px;
    color: #e5e7eb;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.custom-select-option:hover {
            box-sizing: border-box !important;
            padding: 14px 20px !important;
            font-size: 0.95rem !important;
            border-radius: 50px !important;
            display: block !important;
        }
    }

/* Projects Marquee & Hover Effect */
.projects-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100vw;
    /* Use margin-left instead of left+transform so the animation's transform
       on .projects-track does not conflict with/override the positioning */
    margin-left: calc(50% - 50vw);
}
.projects-track {
    display: flex;
    width: max-content;
    gap: 20px;
    --track-shift: -4200px; /* 10 slides * 420px (400px + 20px gap) */
    animation: scroll-marquee 60s linear infinite;
    padding: 20px 0;
    will-change: transform;
}
.projects-track::after {
    content: '';
    width: 20px;
    flex-shrink: 0;
}
@keyframes scroll-marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(var(--track-shift), 0, 0); }
}

.project-slide {
    flex: 0 0 auto;
    width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: block;
}

.ig-project-card {
    height: 400px;
    width: 320px;
}

.ig-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 3s ease-in-out;
}

.ig-project-card:hover .ig-img,
.ig-project-card.scrolling-active .ig-img {
    transform: translateY(calc(-100% + 400px));
}

.project-overlay-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 2;
}
.ig-project-card:hover .project-overlay-custom,
.ig-project-card.scrolling-active .project-overlay-custom {
    opacity: 0;
}
.project-cat {
    color: var(--accent-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.project-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

@media (max-width: 768px) {
    .project-slide { flex: 0 0 300px; }
    .projects-track { --track-shift: -3200px; /* 10 slides * 320px */ }
}

/* Custom Select Dropdown Styling */
.custom-select-container {
    position: relative;
    width: 100%;
    user-select: none;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 45px;
    box-sizing: border-box;
}

.custom-select-trigger:hover,
.custom-select-container.open .custom-select-trigger {
    border-color: #5A2C89;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(90, 44, 137, 0.25);
}

.custom-select-trigger span.placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.custom-select-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    margin-top: -3px;
    margin-right: 4px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.custom-select-container.open .custom-select-arrow {
    transform: rotate(-135deg);
    margin-top: 3px;
    border-color: #5A2C89;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(20, 10, 35, 0.98);
    border: 1px solid rgba(90, 44, 137, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(90, 44, 137, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.custom-select-container.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 12px 16px;
    color: #e5e7eb;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.custom-select-option:hover {
    background: rgba(90, 44, 137, 0.18);
    color: #ffffff;
    padding-left: 22px; /* Micro-animation */
}

.custom-select-option.selected {
    background: #5A2C89;
    color: #ffffff;
    font-weight: 600;
}

/* 3D Carousel Arch Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    perspective: 1000px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* High specificity to override inline/page .industry-card styles */
.carousel-container .carousel-track .industry-card.carousel-card {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 270px !important;
    height: 185px !important;
    margin-top: -92px !important;
    margin-left: -135px !important;
    border-radius: 16px !important;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1), filter 0.55s cubic-bezier(0.25, 1, 0.5, 1) !important;
    transform-origin: center center !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    cursor: pointer;
}

.carousel-container .carousel-track .industry-card.carousel-card::before,
.carousel-container .carousel-track .industry-card.carousel-card::after {
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.55s cubic-bezier(0.25, 1, 0.5, 1) !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    opacity: 1;
}

.carousel-container .carousel-track .industry-card.carousel-card:hover {
    transform: none; /* override .industry-card:hover */
}

/* Active State (Highest in Arch, Center) */
.carousel-container .carousel-track .industry-card.carousel-card.active {
    transform: translateX(0) translateY(-25px) translateZ(80px) rotateY(0deg) scale(1.1) !important;
    opacity: 1 !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    box-shadow: 0 25px 50px rgba(90, 44, 137, 0.4), 0 0 35px rgba(90, 44, 137, 0.3) !important;
    filter: brightness(1.1) !important;
}

/* Active card reveals full color image like hover state */
.carousel-container .carousel-track .industry-card.carousel-card.active::before {
    opacity: 0 !important;
}

.carousel-container .carousel-track .industry-card.carousel-card.active::after {
    transform: scale(1.05) !important;
}

/* Prev 1 (Left 1 - Arch curve down) */
.carousel-container .carousel-track .industry-card.carousel-card.prev-1 {
    transform: translateX(-180px) translateY(10px) translateZ(-40px) rotateY(20deg) rotateZ(-2deg) scale(0.88) !important;
    opacity: 0.75 !important;
    z-index: 15 !important;
    pointer-events: auto !important;
    filter: brightness(0.8) !important;
}

/* Next 1 (Right 1 - Arch curve down) */
.carousel-container .carousel-track .industry-card.carousel-card.next-1 {
    transform: translateX(180px) translateY(10px) translateZ(-40px) rotateY(-20deg) rotateZ(2deg) scale(0.88) !important;
    opacity: 0.75 !important;
    z-index: 15 !important;
    pointer-events: auto !important;
    filter: brightness(0.8) !important;
}

/* Prev 2 (Left 2 - Arch curve down further) */
.carousel-container .carousel-track .industry-card.carousel-card.prev-2 {
    transform: translateX(-330px) translateY(45px) translateZ(-130px) rotateY(35deg) rotateZ(-5deg) scale(0.72) !important;
    opacity: 0.45 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    filter: brightness(0.6) !important;
}

/* Next 2 (Right 2 - Arch curve down further) */
.carousel-container .carousel-track .industry-card.carousel-card.next-2 {
    transform: translateX(330px) translateY(45px) translateZ(-130px) rotateY(-35deg) rotateZ(5deg) scale(0.72) !important;
    opacity: 0.45 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    filter: brightness(0.6) !important;
}

/* Active Hover effect - slight lift */
.carousel-container .carousel-track .industry-card.carousel-card.active:hover {
    transform: translateX(0) translateY(-32px) translateZ(100px) rotateY(0deg) scale(1.13) !important;
}

/* Carousel Counter */
.carousel-counter {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    z-index: 30;
}
.carousel-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}
.carousel-total {
    font-size: 0.9rem;
    color: var(--text-faded);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    z-index: 30;
}
.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}
.carousel-dots {
    display: flex;
    gap: 8px;
}
.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel-container {
        height: 420px;
    }
    .carousel-container .carousel-track .industry-card.carousel-card {
        width: 220px !important;
        height: 150px !important;
        margin-top: -75px !important;
        margin-left: -110px !important;
    }
    .carousel-container .carousel-track .industry-card.carousel-card.prev-1 { transform: translateX(-110px) translateY(10px) translateZ(-40px) rotateY(20deg) scale(0.85) !important; }
    .carousel-container .carousel-track .industry-card.carousel-card.next-1 { transform: translateX(110px) translateY(10px) translateZ(-40px) rotateY(-20deg) scale(0.85) !important; }
    .carousel-container .carousel-track .industry-card.carousel-card.prev-2 { transform: translateX(-200px) translateY(35px) translateZ(-120px) rotateY(35deg) scale(0.7) !important; }
    .carousel-container .carousel-track .industry-card.carousel-card.next-2 { transform: translateX(200px) translateY(35px) translateZ(-120px) rotateY(-35deg) scale(0.7) !important; }
}

/* Expandable Horizontal Accordion Section */
.expand-accordion-container {
    display: flex;
    gap: 14px;
    height: 480px;
    width: 100%;
    max-width: 850px;
    margin: 30px auto 0;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.expand-card {
    flex: 0 0 98px;
    height: 100%;
    background: linear-gradient(180deg, rgba(30, 15, 55, 0.85) 0%, rgba(18, 8, 35, 0.95) 100%);
    border: 1px solid rgba(90, 44, 137, 0.25);
    border-radius: 26px;
    padding: 26px 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
}

/* Resting State: when nothing is hovered, all 5 cards rest compactly at 98px width */

/* Active Hovered Card Expands */
.expand-card.active-hover,
.expand-card.active-mobile {
    flex: 1 1 380px;
    max-width: 430px;
    background: linear-gradient(145deg, rgba(45, 18, 80, 0.95), rgba(18, 8, 35, 0.98));
    border-color: rgba(90, 44, 137, 0.7);
    box-shadow: 0 20px 50px rgba(90, 44, 137, 0.35), 0 0 30px rgba(90, 44, 137, 0.18);
}

/* Shrink non-active cards ONLY when container HAS an active hovered card */
.expand-accordion-container.has-active .expand-card:not(.active-hover):not(.active-mobile) {
    flex: 0 0 68px;
    max-width: 68px;
    background: rgba(15, 8, 28, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Vertical Label & Icon Wrapper (resting/collapsed view) */
.expand-vertical-label {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    opacity: 1;
    transition: opacity 0.2s ease 0.2s;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
    backface-visibility: hidden;
}

.expand-label-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

/* Resting Icon */
.expand-resting-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(90, 44, 137, 0.15);
    border: 1px solid rgba(90, 44, 137, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c49aff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(90, 44, 137, 0.2);
    transition: transform 0.3s ease;
}

/* Resting Vertical Title Text */
.expand-label-text {
    writing-mode: vertical-rl;
    transform-origin: center center;
    rotate: 180deg;
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Hide vertical label and icon INSTANTLY when card becomes active */
.expand-card.active-hover .expand-vertical-label,
.expand-card.active-mobile .expand-vertical-label {
    opacity: 0;
    transition: opacity 0.08s ease 0s;
    pointer-events: none;
}

/* Expanded Card Content */
.expand-card-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s, visibility 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    z-index: 3;
    width: 370px;
    min-width: 370px;
    box-sizing: border-box;
}

.expand-card.active-hover .expand-card-content,
.expand-card.active-mobile .expand-card-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.expand-goal-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(90, 44, 137, 0.18);
    border: 1px solid rgba(90, 44, 137, 0.35);
    border-radius: 20px;
    color: #c49aff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Center-aligned CTA button in expand cards */
.expand-card .btn-consultation {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
}

/* Chevron indicator for expandable cards */
.expand-chevron {
    display: none;
}

@media (max-width: 992px) {
    .expand-accordion-container {
        flex-direction: column !important;
        height: auto !important;
        gap: 12px !important;
        margin-top: 20px;
    }
    .expand-card {
        width: 100% !important;
        height: 72px !important;
        flex: none !important;
        max-width: 100% !important;
        border-radius: 20px !important;
        padding: 16px 20px !important;
        transition: height 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
        overflow: hidden;
    }
    .expand-card.active-hover, 
    .expand-card.active-mobile {
        height: auto !important;
        min-height: 370px !important;
        padding: 24px 20px 24px !important;
        overflow: visible !important;
    }
    .expand-accordion-container.has-active .expand-card:not(.active-hover):not(.active-mobile) {
        flex: none !important;
        max-width: 100% !important;
        height: 72px !important;
    }
    .expand-vertical-label {
        flex-direction: row !important;
        inset: auto !important;
        top: 36px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 0 20px !important;
        justify-content: space-between !important;
        transform: translateY(-50%) !important;
        box-sizing: border-box !important;
    }
    .expand-label-left {
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .expand-chevron {
        display: flex !important;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(90, 44, 137, 0.15);
        border: 1px solid rgba(90, 44, 137, 0.35);
        align-items: center;
        justify-content: center;
        color: #c49aff;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }
    .expand-resting-icon {
        width: 38px !important;
        height: 38px !important;
    }
    .expand-resting-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    .expand-label-text {
        writing-mode: horizontal-tb !important;
        rotate: 0deg !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        letter-spacing: 0.3px !important;
    }
    .expand-card-content {
        width: 100% !important;
        min-width: 0 !important;
    }
    .expand-goal-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }
    .expand-card .compare-pkg-title {
        font-size: 1.2rem !important;
    }
    .expand-card .compare-pkg-desc {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
    }
    .expand-card .btn-consultation {
        padding: 10px 16px !important;
        font-size: 0.88rem !important;
        gap: 8px !important;
    }
    .btn-consultation-arrow {
        width: 30px !important;
        height: 30px !important;
    }
    .btn-consultation-arrow svg {
        width: 15px !important;
        height: 15px !important;
    }
}

/* ==========================================================================
   FEATURED WORK — ONE STAGE, FIVE SELECTORS

   Replaces the old five-card grid. Three reasons it is built this way:
   a 3-column grid left two orphans on the last row; five videos autoplaying
   at once cost five decoders; and five equal cards give the eye nowhere to
   land. One large frame plays the active project, the rail below switches
   it, and only the on-screen active video ever runs.
   ========================================================================== */
.video-showcase-section {
    position: relative;
    background: var(--bg-slate);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}

/* Violet bloom sitting behind the frame so it reads as lit, not pasted on. */
.vs-aura {
    position: absolute;
    top: 14%;
    left: 50%;
    width: min(1180px, 130vw);
    height: min(640px, 78vw);
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
                rgba(90, 44, 137, 0.22) 0%,
                rgba(90, 44, 137, 0.08) 45%,
                transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.video-showcase-header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 44px auto;
}

.badge-pill-violet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(90, 44, 137, 0.12);
    border: 1px solid rgba(90, 44, 137, 0.3);
    color: #c49aff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(90, 44, 137, 0.15);
}

.badge-pill-violet svg {
    width: 14px;
    height: 14px;
    stroke: #c49aff;
}

.vs-showcase {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Stage ------------------------------------------------------------- */
.vs-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0b0518;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.62),
                0 0 0 1px rgba(90, 44, 137, 0.10),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vs-frame-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: linear-gradient(180deg, rgba(28, 14, 50, 0.95), rgba(18, 9, 34, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vs-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vs-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.vs-dots .dot-red { background: #ff5f56; }
.vs-dots .dot-yellow { background: #ffbd2e; }
.vs-dots .dot-green { background: #27c93f; }

.vs-frame-label {
    flex: 1;
    min-width: 0;
    max-width: 320px;
    margin: 0 auto;
    padding: 5px 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c49aff;
}

.vs-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #27c93f;
    animation: vs-pulse 2.4s ease-out infinite;
}

@keyframes vs-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(39, 201, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

.vs-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 1534 / 694;
    background: #000;
    overflow: hidden;
}

/* All five stay in the DOM and cross-fade; only the active one is playing. */
.vs-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.vs-video.is-active { opacity: 1; }

.vs-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 38%);
}

.vs-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 70px 28px 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 2, 14, 0.5) 45%, rgba(6, 2, 14, 0.92) 100%);
    pointer-events: none;
}

.vs-cap-sector {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c49aff;
}

.vs-cap-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.4vw, 2.1rem);
    line-height: 1.1;
    color: #ffffff;
}

.vs-count {
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vs-count b {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* ---- Selector rail ----------------------------------------------------- */
.vs-rail {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.vs-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: rgba(15, 8, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.vs-item:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 44, 137, 0.4);
}

.vs-item.is-active {
    border-color: rgba(90, 44, 137, 0.75);
    background: rgba(90, 44, 137, 0.1);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(90, 44, 137, 0.2);
}

.vs-item:focus-visible {
    outline: 2px solid #c49aff;
    outline-offset: 3px;
}

.vs-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1534 / 694;
    overflow: hidden;
    background: #000;
}

.vs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.55) brightness(0.6);
    transition: filter 0.35s ease, transform 0.5s ease;
}

.vs-item:hover .vs-thumb img,
.vs-item.is-active .vs-thumb img { filter: none; }
.vs-item:hover .vs-thumb img { transform: scale(1.04); }

.vs-item-num {
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.vs-item-text {
    display: block;
    padding: 10px 12px 12px;
}

.vs-item-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #ffffff;
}

.vs-item-sector {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
}

/* This bar is the rotation's clock, not a decoration — the script advances
   the stage on its animationend, so pausing the bar pauses the rotation. */
.vs-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 3;
    opacity: 0;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.vs-item.is-active .vs-bar { opacity: 1; }

.vs-bar i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left center;
}

.vs-item.is-active .vs-bar i {
    animation: vs-progress 7s linear forwards;
}

@keyframes vs-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Hovered, focused, or scrolled past — hold the rotation where it is. */
.vs-showcase.is-paused .vs-item.is-active .vs-bar i,
.vs-showcase.is-offscreen .vs-item.is-active .vs-bar i {
    animation-play-state: paused;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
    /* Five chips no longer divide the width sensibly, so the rail becomes a
       snap scroller rather than a 3 + 2 orphan row. */
    .vs-rail {
        display: flex;
        gap: 12px;
        margin-top: 14px;
        padding: 4px 4px 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(90, 44, 137, 0.5) transparent;
    }
    .vs-rail li {
        flex: 0 0 44%;
        scroll-snap-align: start;
    }
    .vs-rail::-webkit-scrollbar { height: 4px; }
    .vs-rail::-webkit-scrollbar-thumb {
        background: rgba(90, 44, 137, 0.5);
        border-radius: 4px;
    }
}

@media (max-width: 767px) {
    /* At this width the frame is ~160px tall — an overlaid caption would
       cover the work it is captioning, so it drops out to a footer bar. */
    .vs-caption {
        position: static;
        padding: 12px 14px 14px;
        background: rgba(12, 5, 24, 0.72);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        align-items: center;
    }
    .vs-cap-sector {
        margin-bottom: 3px;
        font-size: 0.66rem;
        letter-spacing: 0.1em;
    }
    .vs-cap-title { font-size: 1.1rem; }
    .vs-count { font-size: 0.8rem; }
    .vs-count b { font-size: 1.15rem; }
    .vs-frame { border-radius: 14px; }
    .vs-frame-bar { padding: 9px 12px; gap: 10px; }
    .vs-frame-label { font-size: 0.7rem; padding: 4px 10px; }
    .vs-live span { display: none; }
    .vs-dots .dot { width: 8px; height: 8px; }
    .vs-rail li { flex: 0 0 62%; }
    .vs-aura { top: 18%; }
}

@media (prefers-reduced-motion: reduce) {
    /* No animation means no animationend, which means no auto-advance —
       the rail still switches on click. */
    .vs-item.is-active .vs-bar i {
        animation: none;
        transform: scaleX(1);
    }
    .vs-live i { animation: none; }
    .vs-video { transition: none; }
    .vs-item, .vs-thumb img { transition: none; }
}

/* ==========================================================================
   Client Brands Marquee
   ========================================================================== */
.brands-marquee {
    padding: 40px 0;
    background: #ffffff;
    overflow: hidden;
}
.marquee-client-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 45px;
}
.marquee-client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}
.marquee-content {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: scroll 35s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}

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

/* ==========================================================================
   TEAM LANYARDS — hanging ID cards (physics in scripts/lanyard.js)
   ========================================================================== */

.lanyard-section {
    --lny-w: 190px;
    --lny-card-h: 252px;
    --lny-clip-h: 26px;
    --lny-stage-h: 470px;
    overflow: hidden;
}

.lanyard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 56px;
}

.lanyard-stage {
    position: relative;
    z-index: 1;
    height: var(--lny-stage-h);
    perspective: 950px;
    perspective-origin: 50% 32%;
}

/* A card being thrown around can cross its neighbours; keep it on top. */
.lanyard-stage.is-held {
    z-index: 5;
}

/* --- The strap ---------------------------------------------------------- */

.lanyard-band {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.lanyard-band-strap {
    fill: none;
    stroke-width: 15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sits under the strap purely for edge definition — no blur filter, which
   would be re-rasterised on every animation frame. */
.lanyard-band-shadow {
    fill: none;
    stroke: rgba(0, 0, 0, 0.5);
    stroke-width: 18;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lanyard-band-text {
    font-family: 'Outfit', sans-serif;
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    fill: rgba(255, 255, 255, 0.32);
    text-transform: uppercase;
    pointer-events: none;
}

/* --- The hanging assembly ----------------------------------------------- */

.lanyard-hanger {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--lny-w);
    transform-origin: 50% 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.lanyard-clip {
    position: relative;
    width: 40px;
    height: var(--lny-clip-h);
    margin: 0 auto;
    border-radius: 5px 5px 3px 3px;
    background: linear-gradient(100deg, #6b6f78 0%, #d8dde5 26%, #f2f5f9 44%, #9aa1ad 62%, #575b63 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Slot the strap feeds through. */
.lanyard-clip::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 5px;
    border-radius: 3px;
    background: #1b1024;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Hinge line where the clip grips the card. */
.lanyard-clip::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 6px;
    right: 6px;
    height: 2px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
}

/* --- The card ------------------------------------------------------------ */

.lanyard-card {
    position: relative;
    width: var(--lny-w);
    height: var(--lny-card-h);
    margin-top: -3px;
    transform-style: preserve-3d;
    cursor: grab;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    border-radius: 16px;
}

.lanyard-stage.is-held .lanyard-card {
    cursor: grabbing;
}

.lanyard-card:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 6px;
}

.lanyard-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, #1b0f2e 0%, #120725 55%, #0b0417 100%);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.lanyard-face-back {
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 38%, rgba(139, 61, 255, 0.28) 0%, transparent 62%),
        linear-gradient(160deg, #1b0f2e 0%, #120725 55%, #0b0417 100%);
}

/* Punch-slot strip at the top of the badge. */
.lanyard-slotbar {
    position: relative;
    flex: 0 0 26px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lanyard-slotbar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 7px;
    border-radius: 4px;
    background: #05010a;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.07);
}

.lanyard-photo {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
    background: var(--grad-primary);
}

.lanyard-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Initials stand in until a photo is dropped in (or if one fails to load). */
.lanyard-initials {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    background: var(--grad-primary);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.lanyard-stage.no-photo .lanyard-photo img {
    display: none;
}

.lanyard-stage.no-photo .lanyard-initials {
    display: flex;
}

.lanyard-meta {
    position: relative;
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, rgba(11, 4, 23, 0) 0%, rgba(11, 4, 23, 0.92) 42%, #0b0417 100%);
    margin-top: -46px;
    z-index: 2;
}

.lanyard-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-white);
}

.lanyard-role {
    display: block;
    margin-top: 3px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.lanyard-face-back .lanyard-back-logo {
    width: 92%;
    max-width: 158px;
    opacity: 0.95;
    pointer-events: none;
}

.lanyard-face-back .lanyard-back-text {
    position: relative;
    padding-top: 14px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faded);
    line-height: 1.8;
}

/* Hairline rule above the location line, so the reverse reads as a printed
   badge back rather than an empty panel. */
.lanyard-face-back .lanyard-back-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.65), transparent);
}

.lanyard-hint {
    margin-top: 34px;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--text-faded);
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 992px) {
    .lanyard-section {
        --lny-w: 168px;
        --lny-card-h: 224px;
        --lny-stage-h: 420px;
    }

    .lanyard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
}

@media (max-width: 560px) {
    .lanyard-section {
        --lny-w: 134px;
        --lny-card-h: 180px;
        --lny-clip-h: 20px;
        --lny-stage-h: 330px;
    }

    .lanyard-grid {
        margin-top: 36px;
    }

    .lanyard-clip {
        width: 32px;
    }

    .lanyard-band-strap {
        stroke-width: 11;
    }

    .lanyard-band-shadow {
        stroke-width: 13.5;
    }

    .lanyard-name {
        font-size: 0.82rem;
    }

    .lanyard-role {
        font-size: 0.56rem;
    }

    .lanyard-initials {
        font-size: 2.1rem;
    }

    .lanyard-meta {
        padding: 10px 12px 12px;
    }
}

/* Physics is skipped entirely in lanyard.js under this preference; the cards
   simply hang straight down and dragging is not wired up, so the prompt to
   drag them is withheld too. */
@media (prefers-reduced-motion: reduce) {
    .lanyard-hanger {
        will-change: auto;
    }

    .lanyard-card {
        cursor: default;
    }

    .lanyard-hint {
        display: none;
    }
}
