/* Color Palette as CSS variables */
:root {
    --header-bg-light: rgba(255, 255, 255, 0.72);
    --header-bg-dark: rgba(12, 12, 12, 0.75);
    --header-logo-light: #111111;
    --header-logo-dark: #fff8f3;
    
    --nav-link-light: rgba(93, 92, 91, 0.7);
    --nav-link-dark: rgba(247, 236, 225, 0.6);
    --nav-link-hover-light: #111111;
    --nav-link-hover-dark: #ffffff;
    
    --footer-bg-light: #f7ece1;
    --footer-bg-dark: #1a1a1a;
    --footer-link-color: #5d5c5b;

    --c-surface: #fff8f3;
    --c-on-surface: #1f1b14;
    --c-surface-container-lowest: #ffffff;
    --c-surface-container-low: #fcf2e7;
    --c-surface-container: #f7ece1;
    --c-surface-container-high: #f1e7db;
    --c-surface-container-highest: #ebe1d6;
    --c-surface-variant: #ebe1d6;
    --c-on-surface-variant: #4e453e;
    --c-primary: #5d5c5b;
    --c-on-primary: #ffffff;
    --c-secondary: #725a44;
    --c-on-secondary: #ffffff;
    --c-secondary-container: #fedcc1;
    --c-on-secondary-container: #78604a;
    --c-outline: #80756c;
    --c-outline-variant: #d2c4ba;

    /* Visual hierarchy pass */
    --vh-bg-hero: #050505;
    --vh-bg-main: #070708;
    --vh-bg-section: #0d0d11;
    --vh-bg-muted: #12100d;
    --vh-bg-trust: #101014;
    --vh-surface: rgba(255, 255, 255, 0.045);
    --vh-surface-strong: rgba(255, 255, 255, 0.075);
    --vh-border: rgba(255, 255, 255, 0.105);
    --vh-border-gold: rgba(193, 146, 93, 0.32);
    --vh-gold: #C1925D;
    --vh-text: #ffffff;
    --vh-muted: rgba(255, 255, 255, 0.62);
}

.dark {
    /* Navbar specific */
    --header-bg-dark: rgba(9, 9, 9, 0.85); /* Dark sleek glass */
    --header-logo-dark: #FFFFFF;
    --nav-link-dark: #9F9282; /* Warm beige-grey */
    --nav-link-hover-dark: #FFFFFF;
    
    /* Footer */
    --footer-bg-dark: #060606;
    --footer-link-color: #767065 !important;

    /* Base Surfaces */
    --c-surface: #060606; /* Pitch black / obsidian */
    --c-on-surface: #FAFAFA; /* Pure crisp white */
    
    /* Containers */
    --c-surface-container-lowest: #000000;
    --c-surface-container-low: #0A0A0A;
    --c-surface-container: #0E0E0E; /* subtle elevation */
    --c-surface-container-high: #121212; /* Cards */
    --c-surface-container-highest: #1A1A1A; /* Hovered cards */
    
    --c-surface-variant: #121212;
    --c-on-surface-variant: #9F9282; /* Muted warm text matching nav links */
    
    /* Primary (Button background) - Match the "Start Project" pill */
    --c-primary: #C5AF91; 
    --c-on-primary: #0F0D0B;
    
    /* Secondary (Accents/Highlights like "FEATURED WORK") */
    --c-secondary: #C1925D; 
    --c-on-secondary: #0A0A0A;
    
    --c-secondary-container: #1C1814; 
    --c-on-secondary-container: #E8DCCB;
    
    /* Outlines */
    --c-outline: #262626;
    --c-outline-variant: #1A1A1A;

    --vh-bg-hero: #050505;
    --vh-bg-main: #070708;
    --vh-bg-section: #0d0d11;
    --vh-bg-muted: #12100d;
    --vh-bg-trust: #101014;
    --vh-surface: rgba(255, 255, 255, 0.045);
    --vh-surface-strong: rgba(255, 255, 255, 0.075);
    --vh-border: rgba(255, 255, 255, 0.105);
    --vh-border-gold: rgba(193, 146, 93, 0.32);
    --vh-gold: #C1925D;
    --vh-text: #ffffff;
    --vh-muted: rgba(255, 255, 255, 0.62);
}

.dark .service-card {
    background-color: var(--c-surface-container-high);
    box-shadow: inset 0 0 0 1px var(--c-outline-variant);
}

.dark .service-card:hover {
    background-color: var(--c-surface-container-highest);
    box-shadow: inset 0 0 0 1px var(--c-outline), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.dark .grain-overlay {
    display: none;
}

/* Base Styles moved from HTML */
.grain-overlay {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--c-surface); 
}
::-webkit-scrollbar-thumb {
    background: var(--c-secondary); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--c-primary); 
}

/* Custom Text Selection */
::selection {
    background-color: var(--c-secondary);
    color: var(--c-on-secondary);
}
::-moz-selection {
    background-color: var(--c-secondary);
    color: var(--c-on-secondary);
}

/* Ensure no extra space below footer */
html, body {
    margin: 0;
    padding: 0;
}
#main-wrapper {
    overflow: clip;
}
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded' !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.glass-nav {
    background: rgba(255, 248, 243, 0.8);
    backdrop-filter: blur(32px);
}
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Animations */
@keyframes spin-circular {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.delay-100 {
    animation-delay: 0.1s !important;
}

.delay-300 {
    animation-delay: 0.3s !important;
}

/* Reusable Components & Classes */
.site-header {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}
.site-header.scrolled {
    width: max-content !important;
    max-width: 95% !important;
}
.site-header.scrolled #nav-glass-bg {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}
.site-header.scrolled #main-nav {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 1.5rem;
}
.site-header.scrolled #nav-left,
.site-header.scrolled #nav-right {
    flex: 0 0 auto !important;
}
.site-header.scrolled #magic-indicator {
    opacity: 0 !important;
    pointer-events: none;
}

/* Hide Center Nav & Disable Mask on scroll */
.site-header.scrolled #nav-center {
    width: 0 !important;
    flex: 0 0 0 !important;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding: 0;
    margin: 0;
}
.site-header.scrolled .search-container {
    width: 0 !important;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Hide Menu Toggle on scroll */
.site-header.scrolled #menu-toggle {
    width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    pointer-events: none;
}

.dark #nav-glass-bg {
    background-color: rgba(255, 255, 255, 0.09) !important; /* Elegant light-tinted dark glass */
    border: 1px solid rgba(255, 255, 255, 0.15) !important; /* Crisper border for better definition */
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* ======= MAGIC NAVIGATION ======= */
.magic-indicator {
    position: absolute;
    top: -20px;
    left: 0;
    width: 60px; /* Base width */
    height: 40px;
    display: flex;
    justify-content: center;
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    pointer-events: none;
}
.active-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--c-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0) scale(1);
}

.magic-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    height: 40px;
    border-radius: 20px;
    color: var(--c-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}
.dark .magic-nav-link {
    color: var(--nav-link-dark);
}
.magic-nav-link:hover {
    color: var(--nav-link-hover-light);
}
.dark .magic-nav-link:hover {
    color: var(--nav-link-hover-dark);
}
.magic-nav-link.active {
    color: var(--nav-link-hover-light) !important;
}
.dark .magic-nav-link.active {
    color: var(--nav-link-hover-dark) !important;
}

.site-header.scrolled #magic-indicator,
.site-header.scrolled #colored-notch-svg {
    opacity: 0;
    pointer-events: none;
}

.magic-nav-link::before {
    content: attr(data-icon);
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--c-secondary);
    color: #ffffff !important;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    position: absolute;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(193, 146, 93, 0.4);
}

.magic-text {
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0) scale(1);
    opacity: 1;
}

.magic-nav-link:hover .magic-text,
.magic-nav-link.active .magic-text,
.magic-nav-link.bubble-active .magic-text {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
    pointer-events: none;
}

.magic-nav-link:hover::before,
.magic-nav-link.active::before,
.magic-nav-link.bubble-active::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mobile-magic-link.bubble-active .mobile-icon {
    transform: scale(0.4);
    opacity: 0;
}

/* ======= EXPANDABLE SEARCH ======= */
.search-container {
    background: rgba(128, 128, 128, 0.1);
    border-radius: 9999px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px; 
    height: 44px;
    overflow: hidden;
    position: relative;
    border: 1px solid transparent;
}
.search-container.active {
    width: 220px;
    background: var(--c-surface-container-high);
    border-color: var(--c-outline-variant);
}
.search-input {
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    height: 100%;
    width: 100%;
    padding-left: 20px;
    padding-right: 48px;
    color: var(--c-on-surface);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.search-container.active .search-input {
    opacity: 1;
    pointer-events: auto;
}
.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--c-on-surface);
    transition: color 0.3s;
}
.search-container.active .search-btn {
    color: var(--c-secondary);
}

.site-footer {
    background-color: var(--footer-bg-light);
}
.dark .site-footer {
    background-color: var(--footer-bg-dark);
}

.logo-text {
    color: var(--header-logo-light);
}
.dark .logo-text {
    color: var(--header-logo-dark);
}

.logo-img {
    height: 38px;
    width: 172px;
    object-fit: contain;
    filter: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled .logo-img {
    height: 34px;
    width: 154px;
}
.dark .logo-img {
    filter: none !important;
}

.logo-img-mobile {
    width: 150px;
    height: 34px;
    object-fit: contain;
    filter: none !important;
}


/* Old nav-link classes kept for reference */
.nav-link {
    color: var(--nav-link-light);
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--nav-link-hover-light);
}
.dark .nav-link {
    color: var(--nav-link-dark);
}
.dark .nav-link:hover {
    color: var(--nav-link-hover-dark);
}

/* ======= MENU TOGGLE BUTTON ======= */
.nav-menu-toggle {
    width: 34px; height: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--c-surface-container-high);
    border: 1px solid var(--c-outline-variant);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    padding: 0;
}
.nav-menu-toggle:hover {
    background: var(--c-surface-container-highest);
    transform: scale(1.05);
}
.dark .nav-menu-toggle {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.dark .nav-menu-toggle:hover {
    background: rgba(255,255,255,0.08);
}

.menu-bar {
    display: block;
    width: 16px; height: 2px;
    background: var(--c-on-surface);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68,-0.55,0.265,1.55);
}
.nav-menu-toggle.active .bar-1 {
    transform: translateY(7px) rotate(45deg);
}
.nav-menu-toggle.active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}
.nav-menu-toggle.active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* ======= DROPDOWN PANEL ======= */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 18px;
    width: 260px;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    transform-origin: top left;
    transform: translateY(-12px) scale(0.95);
    filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dropdown.open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

.nav-dropdown-inner {
    background: var(--c-surface-container-lowest);
    border: 1px solid var(--c-outline-variant);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.18), 0 8px 16px rgba(0,0,0,0.06);
    backdrop-filter: blur(20px);
}
.dark .nav-dropdown-inner {
    background: rgba(18, 18, 18, 0.95);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 16px 48px -12px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* Menu Items */
.nav-menu-item {
    border-radius: 10px;
    overflow: hidden;
}
.nav-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-on-surface);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}
.nav-menu-link:hover {
    background: var(--c-surface-container-high);
}
.dark .nav-menu-link:hover {
    background: rgba(255,255,255,0.05);
}

/* Chevron rotation */
.nav-chevron {
    margin-left: auto;
    opacity: 0.3;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-menu-item.expanded .nav-chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}

/* Sub-menus */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
    padding: 0 0 0 38px;
}
.nav-menu-item.expanded .nav-submenu {
    max-height: 300px;
    padding: 4px 0 12px 38px;
}

.nav-sub-link {
    display: block;
    padding: 7px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--c-on-surface-variant);
    text-decoration: none;
    transition: all 0.2s, transform 0.2s, opacity 0.2s;
    transform: translateY(-6px);
    opacity: 0;
}
.nav-menu-item.expanded .nav-sub-link {
    transition: all 0.2s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    transform: translateY(0);
    opacity: 1;
}

/* Stagger transition delay for sub links on enter */
.nav-menu-item.expanded .nav-sub-link:nth-child(1) { transition-delay: 0s, 0.05s, 0.05s; }
.nav-menu-item.expanded .nav-sub-link:nth-child(2) { transition-delay: 0s, 0.1s, 0.1s; }
.nav-menu-item.expanded .nav-sub-link:nth-child(3) { transition-delay: 0s, 0.15s, 0.15s; }
.nav-menu-item.expanded .nav-sub-link:nth-child(4) { transition-delay: 0s, 0.2s, 0.2s; }

.nav-sub-link:hover {
    background: var(--c-surface-container-high);
    color: var(--c-on-surface);
    transform: translateX(4px);
}
.dark .nav-sub-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* ======= MOBILE SIDEBAR ======= */
.mobile-sidebar {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
}
.mobile-sidebar.open {
    pointer-events: auto;
}
.mobile-sidebar.open #mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}
.mobile-sidebar-inner {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-sidebar.open .mobile-sidebar-inner {
    transform: translateX(0);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    opacity: 0;
}
.mobile-side-item.expanded .mobile-submenu {
    max-height: 400px;
    opacity: 1;
}
.mobile-side-item.expanded .mobile-chevron {
    transform: rotate(180deg);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.footer-subtitle {
    color: var(--footer-link-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.dark .footer-subtitle {
    color: #f7ece1;
}

.footer-link {
    color: var(--footer-link-color);
    opacity: 0.6;
    transition: opacity 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; 
    letter-spacing: 0.1em; 
    text-transform: uppercase;
}
.footer-link:hover {
    opacity: 1;
}

.service-card {
    padding: 3rem; 
    background-color: var(--c-surface); 
    border-radius: 0.5rem; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.5s;
}
.service-card:hover {
    background-color: var(--c-surface-container-lowest); 
    transform: translateY(-1rem); 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1); 
}

/* Animated Theme Toggle */
.theme-toggle-btn {
    width: 48px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--c-surface-container-high);
    border: 1px solid var(--c-outline-variant);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-btn:hover {
    transform: scale(1.05);
    background: var(--c-surface-container-highest);
}
.theme-toggle-btn .icon-container {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.theme-toggle-btn .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--c-secondary);
}
.theme-toggle-btn .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
    color: var(--c-on-surface);
}

.dark .theme-toggle-btn .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
.dark .theme-toggle-btn .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ============================================
   HERO SECTION — Premium Software House Style  
   ============================================ */

/* --- Animated Gradient Mesh Background --- */
.hero-bg-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.mesh-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: meshFloat 15s ease-in-out infinite;
}
.mesh-1 {
    width: 600px; height: 600px;
    background: var(--c-secondary);
    top: -15%; right: -5%;
    animation-delay: 0s;
}
.mesh-2 {
    width: 500px; height: 500px;
    background: #725a44;
    bottom: -10%; left: 10%;
    animation-delay: -5s;
}
.mesh-3 {
    width: 400px; height: 400px;
    background: var(--c-primary);
    top: 30%; right: 25%;
    animation-delay: -10s;
}
.dark .mesh-gradient { opacity: 0.08; }

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* --- Subtle Grid Pattern --- */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: 
        linear-gradient(var(--c-outline-variant) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-outline-variant) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.06;
}
.dark .hero-grid-overlay { opacity: 0.04; }

/* --- Hero Text Column --- */
.hero-text-col {
    position: relative;
    z-index: 5;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--c-surface-container-high);
    border: 1px solid var(--c-outline-variant);
    margin-bottom: 2rem;
    opacity: 0;
    animation: heroFadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.dark .hero-badge {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-secondary);
    animation: pulse 2s ease-in-out infinite;
}

/* Title */
.hero-title {
    color: var(--c-on-surface);
    opacity: 0;
    animation: heroFadeUp 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-title-accent {
    color: var(--c-secondary);
    font-style: italic;
    position: relative;
}
.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0;
    width: 100%; height: 6px;
    background: var(--c-secondary);
    opacity: 0.15;
    border-radius: 3px;
}

/* Subtitle */
.hero-subtitle {
    opacity: 0;
    animation: heroFadeUp 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* CTA */
.hero-cta {
    opacity: 0;
    animation: heroFadeUp 0.9s 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--c-primary);
    color: var(--c-on-primary);
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 24px -4px rgba(0,0,0,0.15);
    text-decoration: none;
}
.hero-btn-primary:hover {
    box-shadow: 0 8px 32px -4px rgba(0,0,0,0.25);
}
.hero-btn-secondary {
    display: inline-flex; align-items: center;
    color: var(--c-on-surface);
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--c-outline-variant);
    transition: all 0.3s;
    text-decoration: none;
}
.hero-btn-secondary:hover {
    background: var(--c-surface-container-high);
    border-color: var(--c-outline);
}
.dark .hero-btn-secondary {
    border-color: rgba(255,255,255,0.1);
}
.dark .hero-btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Trust */
.hero-trust {
    display: flex; align-items: center; gap: 12px;
    margin-top: 2.5rem;
    opacity: 0;
    animation: heroFadeUp 0.9s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-trust-avatars {
    display: flex;
}
.hero-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    margin-left: -8px;
    border: 2px solid var(--c-surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-avatar:first-child { margin-left: 0; }

/* --- Visual Column --- */
.hero-visual-col {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    transform-style: preserve-3d;
}

/* --- Glassmorphic Cards --- */
.hero-card {
    background: var(--c-surface-container-high);
    border: 1px solid var(--c-outline-variant);
    border-radius: 14px;
    box-shadow: 0 8px 32px -8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    font-family: 'Inter', sans-serif;
    color: var(--c-on-surface);
}
.dark .hero-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px -8px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
}

/* Main code card */
.hero-card-main {
    opacity: 0;
    animation: heroCardPop 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-outline-variant);
}
.dark .hero-card-header {
    border-color: rgba(255,255,255,0.06);
}
.hero-card-body {
    padding: 16px 18px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.85;
}
.hero-code-line {
    white-space: nowrap;
    min-height: 1.85em;
}

/* Syntax Colors - Light */
.code-kw { color: #8b5cf6; font-weight: 600; }
.code-fn { color: #d97706; }
.code-str { color: #059669; }

/* Syntax Colors - Dark */
.dark .code-kw { color: #c084fc; font-weight: 600; }
.dark .code-fn { color: #fbbf24; }
.dark .code-str { color: #34d399; }

/* Blinking cursor */
.hero-code-cursor {
    width: 8px; height: 16px;
    background: var(--c-secondary);
    display: inline-block;
    animation: blink 1s step-end infinite;
    border-radius: 1px;
    margin-top: 4px;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Floating cards */
.hero-card-float {
    position: absolute;
    padding: 12px 16px;
    min-width: 160px;
}
.hero-float-1 {
    top: -20px; right: -30px;
    opacity: 0;
    animation: heroFloatIn 0.8s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-float-2 {
    bottom: 40px; right: -40px;
    opacity: 0;
    animation: heroFloatIn 0.8s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-float-3 {
    bottom: -15px; left: -20px;
    min-width: 200px;
    opacity: 0;
    animation: heroFloatIn 0.8s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating hover animation */
.hero-float-1 { animation: heroFloatIn 0.8s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatY 6s 2s ease-in-out infinite; }
.hero-float-2 { animation: heroFloatIn 0.8s 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatY 5s 2.5s ease-in-out infinite; }
.hero-float-3 { animation: heroFloatIn 0.8s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatY 7s 3s ease-in-out infinite; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Tech Marquee --- */
.hero-marquee-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 5;
    border-top: 1px solid var(--c-outline-variant);
    overflow: hidden;
    padding: 14px 0;
}
.dark .hero-marquee-wrap {
    border-color: rgba(255,255,255,0.06);
}
.hero-marquee {
    width: 100%;
    overflow: hidden;
}
.hero-marquee-track {
    display: flex;
    gap: 24px;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--c-on-surface-variant);
    opacity: 0.5;
}
.hero-marquee-track span {
    flex-shrink: 0;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Hero Animations --- */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroCardPop {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes heroFloatIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-visual-col { display: none; }
    .hero-float-1, .hero-float-2, .hero-float-3, .hero-float-4 { display: none; }
}

/* --- Hero Glow Backdrop --- */
.hero-glow {
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c-secondary) 0%, transparent 70%);
    opacity: 0.1;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}
.dark .hero-glow { opacity: 0.06; }

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.15; }
}
.dark @keyframes glowPulse {
    50% { opacity: 0.08; }
}

/* --- Live Dot --- */
.hero-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 6px #28c840;
    animation: pulse 2s ease-in-out infinite;
}

/* --- SVG Chart Theming --- */
.chart-stop-1 { stop-color: var(--c-secondary); stop-opacity: 0.3; }
.chart-stop-2 { stop-color: var(--c-secondary); stop-opacity: 0.02; }
.hero-chart-line { stroke: var(--c-secondary); }
.hero-chart-dot { fill: var(--c-secondary); }
.hero-chart-pulse {
    fill: var(--c-secondary);
    opacity: 0.3;
    animation: chartPulse 2s ease-in-out infinite;
}
.hero-chart-area {
    opacity: 0;
    animation: chartReveal 1.5s 0.8s ease-out forwards;
}
.hero-chart-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: chartDraw 2s 0.6s ease-out forwards;
}

@keyframes chartPulse {
    0%, 100% { r: 4; opacity: 0.3; }
    50% { r: 10; opacity: 0; }
}
@keyframes chartReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes chartDraw {
    to { stroke-dashoffset: 0; }
}

/* --- Mini Bar Chart --- */
.hero-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}
.hero-mini-bars > div {
    width: 4px;
    border-radius: 2px;
    background: var(--c-secondary);
    opacity: 0.6;
    animation: barGrow 0.6s ease-out forwards;
    transform-origin: bottom;
}
@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* --- Deploy Icon --- */
.hero-deploy-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-secondary), #8a6e4a);
    color: #fff;
    flex-shrink: 0;
}

/* --- 4th Float Card Position --- */
.hero-float-4 {
    top: 50%; left: -30px;
    padding: 8px 14px;
    min-width: auto;
    opacity: 0;
    animation: heroFloatIn 0.8s 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatY 8s 3.5s ease-in-out infinite;
}

/* --- Browser URL Bar --- */
.hero-browser-url {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--c-surface-container);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--c-outline-variant);
}
.dark .hero-browser-url {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

/* --- Code Editor Behind Layer --- */
.hero-card-behind {
    position: absolute;
    top: 30px; right: -18px;
    width: 92%;
    z-index: 1;
    background: var(--c-surface-container-high);
    border: 1px solid var(--c-outline-variant);
    border-radius: 14px;
    box-shadow: 0 8px 32px -8px rgba(0,0,0,0.08);
    opacity: 0;
    animation: heroCardPop 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.dark .hero-card-behind {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 8px 40px -8px rgba(0,0,0,0.3);
}

/* --- App Preview Layout --- */
.hero-app-preview {
    display: flex;
    min-height: 220px;
}
.hero-app-sidebar {
    width: 44px;
    border-right: 1px solid var(--c-outline-variant);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 6px;
    flex-shrink: 0;
}
.dark .hero-app-sidebar { border-color: rgba(255,255,255,0.06); }

.hero-sidebar-logo {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--c-secondary), #8a6e4a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 8px;
}
.hero-sidebar-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-on-surface-variant);
    opacity: 0.35;
    transition: all 0.2s;
}
.hero-sidebar-icon.active {
    background: var(--c-surface-container-highest);
    opacity: 0.9;
    color: var(--c-secondary);
}
.dark .hero-sidebar-icon.active {
    background: rgba(255,255,255,0.06);
}

.hero-app-content {
    flex: 1;
    padding: 10px 14px;
    min-width: 0;
}
.hero-app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.hero-app-greeting {
    font-size: 11px;
    color: var(--c-on-surface);
    opacity: 0.7;
}
.hero-app-search {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--c-surface-container);
    border: 1px solid var(--c-outline-variant);
}
.dark .hero-app-search {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
}

.hero-app-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}
.hero-app-mini-card {
    padding: 8px;
    border-radius: 8px;
    background: var(--c-surface-container);
    border: 1px solid var(--c-outline-variant);
}
.dark .hero-app-mini-card {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.05);
}

.hero-app-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hero-app-line {
    height: 6px;
    border-radius: 3px;
    background: var(--c-outline-variant);
    opacity: 0.25;
}
.dark .hero-app-line {
    background: rgba(255,255,255,0.06);
}

/* --- Capability Tags --- */
.hero-cap-tag {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: var(--c-surface-container-high);
    border: 1px solid var(--c-outline-variant);
    color: var(--c-on-surface-variant);
}
.dark .hero-cap-tag {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

/* --- Stack Tags --- */
.hero-stack-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    background: var(--c-surface-container);
    border: 1px solid var(--c-outline-variant);
    color: var(--c-on-surface-variant);
    letter-spacing: 0.02em;
}
.dark .hero-stack-tag {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

/* =========================================
   NEW CONTINUOUS 3D CAROUSEL HERO SECTION
========================================= */
.carousel-container {
    perspective: 1200px;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Javascript handles continuous physics spin now */
.carousel-spinner {
    position: relative;
    width: 240px;
    height: 320px;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    width: 240px;
    height: 320px;
    left: 0;
    top: 0;
    border-radius: 32px;
    transform-style: preserve-3d;
    /* Prevent the back of the cards from looking weird if they flip, though we want them visible as they rotate away */
    backface-visibility: visible;
}

/* 
  5 Cards Math: 360 / 5 = 72 degrees each.
  TranslateZ pushes them outwards into a cylinder shape.
*/
.carousel-card.card-item-1 { transform: rotateY(0deg) translateZ(280px); }
.carousel-card.card-item-2 { transform: rotateY(72deg) translateZ(280px); }
.carousel-card.card-item-3 { transform: rotateY(144deg) translateZ(280px); }
.carousel-card.card-item-4 { transform: rotateY(216deg) translateZ(280px); }
.carousel-card.card-item-5 { transform: rotateY(288deg) translateZ(280px); }

@media (min-width: 768px) {
    .carousel-spinner { width: 260px; height: 360px; }
    .carousel-card { width: 260px; height: 360px; }
    .carousel-card.card-item-1 { transform: rotateY(0deg) translateZ(320px); }
    .carousel-card.card-item-2 { transform: rotateY(72deg) translateZ(320px); }
    .carousel-card.card-item-3 { transform: rotateY(144deg) translateZ(320px); }
    .carousel-card.card-item-4 { transform: rotateY(216deg) translateZ(320px); }
    .carousel-card.card-item-5 { transform: rotateY(288deg) translateZ(320px); }
}

.card-inner {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid var(--c-outline-variant);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    overflow: hidden;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0) scale(1);
}
.carousel-card:hover .card-inner {
    border-color: var(--c-secondary);
    box-shadow: 0 0 40px rgba(193, 146, 93, 0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    transform: translateY(-15px) scale(1.02);
}

.dark .card-inner {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.2));
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}
.dark .carousel-card:hover .card-inner {
    border-color: var(--c-secondary);
    box-shadow: 0 0 50px rgba(193, 146, 93, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-15px) scale(1.02);
    background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(0,0,0,0.1));
}

.card-icon-bg {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c-outline-variant) 0%, transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}
.dark .card-icon-bg {
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.card-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-on-surface);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.card-text {
    font-size: 0.85rem;
    color: var(--c-on-surface-variant);
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.card-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    mix-blend-mode: overlay;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .hero-visual-col { display: flex !important; }
}

@media (max-width: 576px) {
    /* Need tighter radius on mobile to avoid horizontal scrolling */
    .carousel-spinner { width: 200px; height: 280px; }
    .carousel-card { width: 200px; height: 280px; }
    .carousel-card.card-item-1 { transform: rotateY(0deg) translateZ(220px); }
    .carousel-card.card-item-2 { transform: rotateY(72deg) translateZ(220px); }
    .carousel-card.card-item-3 { transform: rotateY(144deg) translateZ(220px); }
    .carousel-card.card-item-4 { transform: rotateY(216deg) translateZ(220px); }
    .carousel-card.card-item-5 { transform: rotateY(288deg) translateZ(220px); }
}

/* =========================================
   MAGIC BUTTONS (Interactive Pill CTA)
========================================= */
.magic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--c-surface-container-highest);
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.12) 0%, transparent 100%);
    color: var(--c-on-surface);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 150px;
    border: 1px solid rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.4);
    border-bottom: 3px solid rgba(0,0,0,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1;
}

.magic-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--c-secondary);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: inherit;
}

.dark .magic-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 3px solid rgba(0,0,0,0.8);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* 3D Click / Active State */
.magic-btn:active {
    transform: translateY(3px) !important; /* Forces it down */
    border-bottom-width: 1px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Secondary / Outline variant */
.magic-btn.magic-secondary {
    background-color: transparent;
    border: 1px solid var(--c-outline-variant);
    padding: 5px 5px 5px 19px; /* Adjust for border */
    box-shadow: none;
}
.dark .magic-btn.magic-secondary {
    border-color: rgba(255,255,255,0.15);
}

/* On hover, background sweeps to Theme Base/Secondary color */
.magic-btn:hover {
    color: var(--c-on-primary);
    border-bottom-color: rgba(0,0,0,0.4);
    box-shadow: 0 6px 20px rgba(193, 146, 93, 0.4); /* Glow matching accent */
}
.magic-btn:hover::before {
    transform: scaleX(1);
}
.magic-btn.magic-secondary:hover {
    border-color: var(--c-secondary);
}

/* Text Container */
.magic-btn-content {
    position: relative;
    height: 1.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.magic-txt-default {
    position: relative;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    white-space: nowrap;
}
.magic-txt-hover {
    position: absolute;
    left: 0;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    white-space: nowrap;
}

.magic-txt-default {
    transform: translateX(0);
    opacity: 1;
}

.magic-txt-hover {
    transform: translateX(-150%); /* Start below */
    opacity: 0;
}

/* Text slides */
.magic-btn:hover .magic-txt-default {
    transform: translateX(150%);
    opacity: 0;
}
.magic-btn:hover .magic-txt-hover {
    transform: translateX(0);
    opacity: 1;
}

/* =========================================
   FRAMER-LIKE LUXURY SYSTEM
========================================= */
.lux-main {
    position: relative;
}

.lux-section {
    position: relative;
    isolation: isolate;
}

/* Floating luxury highlights similar to high-end Framer templates */
.lux-hero::after,
.lux-portfolio::after,
.lux-services::after {
    content: "";
    position: absolute;
    width: min(44vw, 560px);
    height: min(44vw, 560px);
    border-radius: 999px;
    pointer-events: none;
    filter: blur(70px);
    z-index: 0;
}

.lux-hero::after {
    right: -8%;
    top: -14%;
    background: radial-gradient(circle, rgba(193, 146, 93, 0.24) 0%, rgba(193, 146, 93, 0) 68%);
}

.lux-portfolio::after {
    left: -10%;
    top: 12%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 72%);
}

.lux-services::after {
    right: -12%;
    bottom: -8%;
    background: radial-gradient(circle, rgba(193, 146, 93, 0.2) 0%, rgba(193, 146, 93, 0) 70%);
}

.dark .lux-portfolio::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 72%);
}

.selected-work-lab {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    grid-template-rows: minmax(620px, auto) auto;
    gap: 18px;
    z-index: 1;
}

.selected-work-lab::before {
    content: "";
    position: absolute;
    inset: -18px;
    border: 1px solid rgba(193, 146, 93, 0.16);
    border-radius: 28px;
    pointer-events: none;
}

.work-feature-card,
.work-rail-card {
    position: relative;
    overflow: hidden;
    display: block;
    color: #fff;
    background: #08080a;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 26px 80px -42px rgba(0, 0, 0, 0.72);
    isolation: isolate;
}

.work-feature-card {
    min-height: 620px;
    border-radius: 26px;
}

.work-feature-card img,
.work-rail-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.work-feature-card img {
    opacity: 0.76;
}

.work-feature-card:hover img,
.work-rail-card:hover img {
    transform: scale(1.055);
    opacity: 0.95;
}

.work-feature-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.08) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 62%);
}

.work-feature-index {
    position: absolute;
    top: 28px;
    right: 30px;
    z-index: 2;
    font-family: var(--font-headline, serif);
    font-size: clamp(4rem, 9vw, 8.5rem);
    line-height: 0.8;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
}

.work-feature-content {
    position: absolute;
    left: clamp(24px, 5vw, 70px);
    bottom: clamp(28px, 5vw, 70px);
    width: min(620px, calc(100% - 48px));
    z-index: 2;
}

.work-kicker,
.work-rail-card span:not(.work-rail-number),
.work-proof-strip span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.work-kicker {
    display: inline-flex;
    color: #c1925d;
    margin-bottom: 18px;
}

.work-feature-content h3 {
    font-family: var(--font-headline, serif);
    font-size: clamp(3.2rem, 7vw, 7.25rem);
    font-weight: 800;
    line-height: 0.9;
    margin: 0 0 22px;
    max-width: 760px;
}

.work-feature-content p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.work-open-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.work-open-link .material-symbols-rounded {
    font-size: 18px;
    transition: transform 0.35s ease;
}

.work-feature-card:hover .work-open-link .material-symbols-rounded,
.work-rail-card:hover .work-rail-number {
    transform: translateX(4px);
}

.work-side-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.work-rail-card {
    min-height: 143px;
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    align-items: flex-end;
}

.work-rail-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.44) 58%, rgba(0, 0, 0, 0.14));
}

.work-rail-card > div {
    position: relative;
    z-index: 2;
    max-width: 78%;
}

.work-rail-card span:not(.work-rail-number) {
    color: #c1925d;
}

.work-rail-card h3 {
    font-family: var(--font-headline, serif);
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    line-height: 1;
    margin: 8px 0;
    font-weight: 800;
}

.work-rail-card p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
}

.work-rail-number {
    position: absolute;
    right: 22px;
    top: 20px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.28);
    font-family: var(--font-headline, serif);
    font-size: 1.25rem;
    font-weight: 800;
    transition: transform 0.35s ease, color 0.35s ease;
}

.work-rail-card:hover .work-rail-number {
    color: #c1925d;
}

.work-proof-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.08);
}

.work-proof-strip span {
    display: grid;
    place-items: center;
    min-height: 76px;
    color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 1024px) {
    .selected-work-lab {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .work-feature-card {
        min-height: 560px;
    }

    .work-side-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .selected-work-lab {
        gap: 14px;
    }

    .selected-work-lab::before {
        inset: -10px;
        border-radius: 22px;
    }

    .work-feature-card {
        min-height: 520px;
        border-radius: 22px;
    }

    .work-feature-shade {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.26) 72%);
    }

    .work-feature-index {
        top: 22px;
        right: 22px;
        font-size: 4.5rem;
    }

    .work-feature-content {
        left: 22px;
        bottom: 28px;
        width: calc(100% - 44px);
    }

    .work-feature-content h3 {
        font-size: clamp(2.8rem, 18vw, 4.2rem);
    }

    .work-side-rail,
    .work-proof-strip {
        grid-template-columns: 1fr;
    }

    .work-rail-card {
        min-height: 176px;
        padding: 20px;
    }
}

.work-command {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
    gap: 22px;
    padding: clamp(10px, 2vw, 18px);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015)),
        linear-gradient(180deg, rgba(193,146,93,0.08), rgba(0,0,0,0));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 34px 120px -60px rgba(0,0,0,0.85);
    overflow: hidden;
}

.work-command::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(135deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    opacity: 0.42;
}

.work-command-main,
.work-command-panel {
    position: relative;
    z-index: 1;
}

.work-browser-frame {
    min-height: 650px;
    border-radius: 24px;
    background: #09090c;
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 26px 80px -44px rgba(0,0,0,0.9);
}

.work-browser-top {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
}

.work-browser-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
}

.work-browser-top span:first-child {
    background: #c1925d;
}

.work-browser-top strong {
    margin-left: 10px;
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.work-browser-screen {
    position: relative;
    min-height: 596px;
    display: block;
    overflow: hidden;
    color: #fff;
}

.work-browser-screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.01);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}

.work-browser-screen:hover img {
    opacity: 0.95;
    transform: scale(1.06);
}

.work-browser-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.92), rgba(0,0,0,0.54) 45%, rgba(0,0,0,0.14)),
        linear-gradient(0deg, rgba(0,0,0,0.75), transparent 58%);
}

.work-screen-copy {
    position: absolute;
    left: clamp(24px, 5vw, 64px);
    bottom: clamp(28px, 5vw, 64px);
    width: min(620px, calc(100% - 48px));
    z-index: 2;
}

.work-screen-copy span,
.work-panel-heading span,
.work-command-strip span,
.work-panel-note span {
    color: #c1925d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.work-screen-copy h3 {
    font-family: var(--font-headline, serif);
    font-size: clamp(3.4rem, 8vw, 7.6rem);
    line-height: 0.88;
    font-weight: 900;
    margin: 18px 0 24px;
    letter-spacing: -0.045em;
}

.work-screen-copy p {
    max-width: 560px;
    color: rgba(255,255,255,0.72);
    font-size: 1.08rem;
    line-height: 1.7;
}

.work-screen-arrow {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 3;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #c1925d;
    color: #08080a;
    transition: transform 0.35s ease;
}

.work-browser-screen:hover .work-screen-arrow {
    transform: rotate(8deg) scale(1.06);
}

.work-command-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.work-command-strip span {
    min-height: 72px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.66);
    background: rgba(0,0,0,0.2);
}

.work-command-panel {
    border-radius: 24px;
    background: rgba(8,8,10,0.78);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px;
    align-self: stretch;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.work-panel-heading {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.work-panel-heading strong {
    font-family: var(--font-headline, serif);
    font-size: 4.4rem;
    line-height: 0.85;
    color: rgba(255,255,255,0.14);
}

.work-index-row {
    display: grid;
    grid-template-columns: 42px 86px minmax(0, 1fr) 34px;
    gap: 14px;
    align-items: center;
    min-height: 112px;
    padding: 15px 6px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.work-index-row img {
    width: 86px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.work-index-row:hover img {
    transform: scale(1.04);
    opacity: 1;
}

.work-index-number {
    color: rgba(255,255,255,0.24);
    font-family: var(--font-headline, serif);
    font-size: 1.35rem;
    font-weight: 800;
}

.work-index-text {
    min-width: 0;
}

.work-index-text strong {
    display: block;
    font-family: var(--font-headline, serif);
    font-size: 1.45rem;
    line-height: 1;
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-index-text small {
    display: block;
    color: rgba(255,255,255,0.48);
    font-size: 0.78rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-index-row > .material-symbols-rounded {
    color: rgba(255,255,255,0.32);
    transition: transform 0.35s ease, color 0.35s ease;
}

.work-index-row:hover > .material-symbols-rounded {
    color: #c1925d;
    transform: translate(3px, -3px);
}

.work-panel-note {
    padding: 18px 6px 4px;
}

.work-panel-note span {
    color: rgba(255,255,255,0.38);
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .work-command {
        grid-template-columns: 1fr;
    }

    .work-command-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }

    .work-panel-heading,
    .work-panel-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .work-command {
        padding: 8px;
        border-radius: 24px;
    }

    .work-browser-frame,
    .work-command-panel {
        border-radius: 20px;
    }

    .work-browser-frame {
        min-height: 540px;
    }

    .work-browser-screen {
        min-height: 486px;
    }

    .work-screen-copy {
        left: 22px;
        bottom: 26px;
    }

    .work-screen-copy h3 {
        font-size: clamp(2.75rem, 17vw, 4.3rem);
    }

    .work-screen-copy p {
        font-size: 0.95rem;
        padding-right: 52px;
    }

    .work-screen-arrow {
        width: 48px;
        height: 48px;
        right: 20px;
        bottom: 20px;
    }

    .work-command-strip,
    .work-command-panel {
        grid-template-columns: 1fr;
    }

    .work-command-strip span {
        min-height: 54px;
    }

    .work-index-row {
        grid-template-columns: 34px 72px minmax(0, 1fr) 26px;
        min-height: 96px;
        gap: 10px;
    }

    .work-index-row img {
        width: 72px;
        height: 60px;
    }

    .work-index-text strong {
        font-size: 1.18rem;
    }
}

.work-wall {
    position: relative;
    z-index: 1;
}

.work-wall-stage {
    position: relative;
    min-height: 720px;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 24% 18%, rgba(193,146,93,0.18), transparent 28%),
        linear-gradient(135deg, #171719 0%, #08080a 54%, #15110d 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 42px 120px -62px rgba(0,0,0,0.95);
}

.work-wall-stage::before {
    content: "SELECTED / WORK";
    position: absolute;
    left: 32px;
    top: 28px;
    color: rgba(255,255,255,0.13);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.32em;
}

.work-wall-stage::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}

.work-wall-card {
    position: absolute;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #050506;
    border: 1px solid rgba(255,255,255,0.13);
    color: #fff;
    box-shadow: 0 32px 70px -34px rgba(0,0,0,0.92);
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), z-index 0.2s ease, border-color 0.35s ease;
}

.work-wall-card:nth-child(1) {
    width: 52%;
    height: 420px;
    left: 6%;
    top: 18%;
    z-index: 5;
    transform: rotate(-5deg);
}

.work-wall-card:nth-child(2) {
    width: 38%;
    height: 290px;
    right: 8%;
    top: 10%;
    z-index: 4;
    transform: rotate(4deg);
}

.work-wall-card:nth-child(3) {
    width: 34%;
    height: 250px;
    left: 18%;
    bottom: 8%;
    z-index: 3;
    transform: rotate(6deg);
}

.work-wall-card:nth-child(4) {
    width: 37%;
    height: 280px;
    right: 13%;
    bottom: 13%;
    z-index: 6;
    transform: rotate(-3deg);
}

.work-wall-card:nth-child(5) {
    width: 26%;
    height: 210px;
    left: 44%;
    top: 7%;
    z-index: 2;
    transform: rotate(9deg);
}

.work-wall-card:hover {
    z-index: 12;
    border-color: rgba(193,146,93,0.52);
    transform: rotate(0deg) translateY(-10px) scale(1.035);
}

.work-wall-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 0.65s ease, opacity 0.65s ease;
}

.work-wall-card:hover img {
    transform: scale(1.07);
    opacity: 1;
}

.work-wall-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.82), rgba(0,0,0,0.05) 58%);
}

.work-wall-card span,
.work-wall-card strong {
    position: absolute;
    z-index: 2;
}

.work-wall-card span {
    top: 18px;
    left: 18px;
    color: #c1925d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.work-wall-card strong {
    left: 20px;
    bottom: 18px;
    max-width: calc(100% - 40px);
    font-family: var(--font-headline, serif);
    font-size: clamp(1.45rem, 2.5vw, 2.8rem);
    line-height: 0.95;
}

.work-wall-ledger {
    margin-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.work-ledger-row {
    display: grid;
    grid-template-columns: 58px minmax(180px, 0.9fr) minmax(130px, 0.55fr) minmax(260px, 1.35fr) 40px;
    gap: 18px;
    align-items: center;
    min-height: 92px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.28s ease, padding-left 0.28s ease;
}

.work-ledger-row:hover {
    background: rgba(193,146,93,0.07);
    padding-left: 14px;
}

.work-ledger-row span {
    color: rgba(255,255,255,0.28);
    font-family: var(--font-headline, serif);
    font-size: 1.45rem;
    font-weight: 900;
}

.work-ledger-row strong {
    font-family: var(--font-headline, serif);
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    line-height: 1;
}

.work-ledger-row small {
    color: #c1925d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.work-ledger-row em {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    line-height: 1.55;
    font-style: normal;
}

.work-ledger-row i {
    color: rgba(255,255,255,0.36);
    font-style: normal;
    transition: transform 0.28s ease, color 0.28s ease;
}

.work-ledger-row:hover i {
    color: #c1925d;
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .work-wall-stage {
        min-height: auto;
        display: grid;
        gap: 14px;
        padding: 58px 14px 14px;
    }

    .work-wall-card,
    .work-wall-card:nth-child(n) {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        height: 310px;
        transform: none;
    }

    .work-wall-card:hover {
        transform: translateY(-6px);
    }

    .work-ledger-row {
        grid-template-columns: 42px minmax(0, 1fr) 32px;
        gap: 12px;
        min-height: auto;
        padding: 20px 0;
    }

    .work-ledger-row small,
    .work-ledger-row em {
        grid-column: 2 / 3;
    }

    .work-ledger-row i {
        grid-column: 3 / 4;
        grid-row: 1 / 4;
    }
}

@media (max-width: 560px) {
    .work-wall-stage {
        border-radius: 24px;
    }

    .work-wall-card,
    .work-wall-card:nth-child(n) {
        height: 245px;
        border-radius: 18px;
    }

    .work-ledger-row strong {
        font-size: 1.35rem;
    }

    .work-ledger-row em {
        font-size: 0.84rem;
    }
}

.lux-portfolio {
    background: #0a0a0b !important;
}

.reference-work-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(44px, 7vw, 74px);
}

.reference-work-head h2 {
    color: #f7f4ef;
    font-size: clamp(4rem, 8vw, 7.8rem);
    font-weight: 500;
    line-height: 0.86;
    letter-spacing: -0.055em;
    margin: 0;
}

.reference-work-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    padding-top: 4px;
}

.reference-work-link span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.reference-work-link i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    font-style: normal;
    transition: transform 0.32s ease, border-color 0.32s ease, color 0.32s ease;
}

.reference-work-link:hover i {
    transform: translateX(4px);
    border-color: rgba(193,146,93,0.55);
    color: #c1925d;
}

.reference-work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
    position: relative;
    z-index: 1;
}

.reference-work-card {
    position: relative;
    min-height: clamp(360px, 43vw, 540px);
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, #191a1a, #101111);
    color: #fff;
    isolation: isolate;
}

.reference-work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.08) 44%, rgba(0,0,0,0.82) 100%),
        linear-gradient(90deg, rgba(255,255,255,0.06), transparent 36%, rgba(0,0,0,0.2));
}

.reference-work-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: grayscale(0.15) contrast(1.04);
    transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}

.reference-work-card:hover img {
    opacity: 0.78;
    filter: grayscale(0) contrast(1.08);
    transform: scale(1.055);
}

.reference-card-index {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.reference-card-copy {
    position: absolute;
    left: 20px;
    right: 70px;
    bottom: 22px;
    z-index: 3;
}

.reference-card-copy strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reference-card-copy small {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.34);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.reference-card-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.82);
    transition: transform 0.32s ease, border-color 0.32s ease, color 0.32s ease;
}

.reference-card-arrow .material-symbols-rounded {
    font-size: 17px;
}

.reference-work-card:hover .reference-card-arrow {
    transform: translateX(5px);
    border-color: rgba(193,146,93,0.6);
    color: #c1925d;
}

@media (max-width: 1180px) {
    .reference-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .reference-work-head {
        align-items: flex-end;
        margin-bottom: 34px;
    }

    .reference-work-link span {
        display: none;
    }

    .reference-work-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reference-work-card {
        min-height: 430px;
    }
}

@media (max-width: 520px) {
    .reference-work-head h2 {
        font-size: clamp(3.3rem, 20vw, 5.2rem);
    }

    .reference-work-card {
        min-height: 390px;
    }
}

/* Higher-end heading feel */
.lux-main h1,
.lux-main h2 {
    letter-spacing: -0.03em;
}

.lux-main h1 span,
.lux-main h2 span {
    filter: saturate(1.08) contrast(1.06);
}

/* Keep gradient gold text always visible */
.text-transparent.bg-clip-text {
    display: inline-block;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* Framer-like panel framing for sections */
.lux-process .max-w-7xl,
.lux-testimonials .max-w-\[1300px\],
.lux-cta .max-w-4xl {
    position: relative;
}

.lux-cta .max-w-4xl::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 30px;
    border: 1px solid rgba(193, 146, 93, 0.18);
    box-shadow: 0 18px 65px -38px rgba(193, 146, 93, 0.32);
    pointer-events: none;
    z-index: -1;
}

/* Premium polish for sticky project containers */
.premium-project-card {
    overflow: hidden;
}

.premium-project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.04) 100%);
}

.premium-project-card:hover::before {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.06) 100%);
}

/* Buttons feel more “product luxury” */
.magic-btn {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



/* Premium heading scroll reveal */
.heading-lux-reveal {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(0.985);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    transition:
        opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.heading-lux-reveal.heading-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

/* Premium grain texture balance */
.grain-overlay {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22) 0.5px, transparent 0.8px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.18) 0.5px, transparent 0.8px);
    background-size: 3px 3px, 4px 4px;
    mix-blend-mode: soft-light;
}

.dark .grain-overlay {
    display: block;
    opacity: 0.08;
    mix-blend-mode: overlay;
}

/* Cursor v2 aesthetic */
#cursor-dot {
    mix-blend-mode: normal;
    box-shadow: 0 0 18px rgba(193, 146, 93, 0.55), 0 0 38px rgba(193, 146, 93, 0.28);
}
#cursor-ring {
    box-shadow: 0 0 24px rgba(193, 146, 93, 0.22);
}
#cursor-aura {
    filter: blur(1px);
}

/* Icon Container Region */
.magic-btn-icon {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

/* Icon Container fills to dark circle */
.magic-btn:hover .magic-btn-icon {
    background-color: var(--c-surface-container-highest);
}
.dark .magic-btn:hover .magic-btn-icon {
    background-color: #000000;
}

/* The Blinking Dot */
.magic-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--c-secondary); 
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: aggressiveBlink 1.2s ease-in-out infinite;
    position: absolute;
}
.magic-btn.magic-secondary .magic-dot {
    background-color: var(--c-primary);
}
.dark .magic-btn.magic-secondary .magic-dot {
    background-color: var(--c-secondary);
}

@keyframes aggressiveBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(0.6); }
}

/* Dot shrinks away */
.magic-btn:hover .magic-dot {
    opacity: 0;
    transform: scale(0);
    animation: none;
}

/* The Arrow */
.magic-arrow {
    position: absolute;
    color: var(--c-on-surface);
    font-size: 20px !important;
    font-variation-settings: 'wght' 300, 'opsz' 24;
    opacity: 0;
    transform: translateX(-15px) scale(0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, color 0.4s;
}
.dark .magic-arrow {
    color: #ffffff;
}

/* Arrow shoots in */
.magic-btn:hover .magic-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
    color: #ffffff; /* Use white to guarantee visibility against the dark circle background */
}

/* =========================================
   HERO TEXT ANIMATIONS & GRADIENT FLOW
========================================= */
.bg-300\% {
    background-size: 300% 300%;
}

.animate-gradient-flow {
    animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-text-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: smoothReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
}

@keyframes smoothReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   MEGA DROPDOWN NAVIGATION (BENTO STYLE)
========================================= */
.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    padding-top: 16px; /* Offset for hover bridge */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    pointer-events: none;
}

.group\/nav:hover .mega-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    z-index: 100;
    pointer-events: auto;
}

.mega-menu-glass {
    background: rgba(12, 12, 14, 0.85); /* Deep dark glass */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* faint rim */
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    border-radius: 32px;
    width: 680px; /* Large width for Bento */
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Left links, right featured */
    gap: 24px;
    padding: 28px;
}

.mega-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 16px;
    transition: background 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.mega-item:hover {
    background: rgba(255,255,255,0.06); 
}

.mega-item:hover .mega-icon-box {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.15);
}

.mega-featured-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    height: 190px;
}

.mega-stack-box {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.02);
}

.mega-stack-pill {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 11px;
    color: #cbd5e1;
    transition: background 0.3s;
    background: rgba(255,255,255,0.02);
}
.mega-stack-pill:hover {
    background: rgba(255,255,255,0.1);
}

/* =========================================
   SCREENSHOT TESTIMONIALS LAYOUT GEOMETRY
========================================= */

.testi-container-bg { background-color: var(--c-surface-container-low); }

/* Text Block Cutout over Image */
.testi-text-block {
    background-color: var(--c-surface-container-low);
    border-bottom-right-radius: 32px;
}
.testi-text-block::before {
    content: "";
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border-top-left-radius: 24px;
    box-shadow: -8px -8px 0 8px var(--c-surface-container-low);
    pointer-events: none;
}
.testi-text-block::after {
    content: "";
    position: absolute;
    right: -24px;
    top: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border-top-left-radius: 24px;
    box-shadow: -8px -8px 0 8px var(--c-surface-container-low);
    pointer-events: none;
}

/* Card Arrow Cutout inside Right Stack */
.testi-card-cutout {
    position: absolute;
    bottom: -1px; /* -1px to prevent subpixel rendering gaps */
    right: -1px;
    width: 70px;
    height: 70px;
    background-color: var(--c-surface-container-low);
    border-top-left-radius: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testi-card-cutout::before {
    content: "";
    position: absolute;
    top: -24px;
    right: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border-bottom-right-radius: 24px;
    box-shadow: 8px 8px 0 8px var(--c-surface-container-low);
    pointer-events: none;
}
.testi-card-cutout::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -24px;
    width: 24px;
    height: 24px;
    background: transparent;
    border-bottom-right-radius: 24px;
    box-shadow: 8px 8px 0 8px var(--c-surface-container-low);
    pointer-events: none;
}



/* =========================================
   BUILT DIFFERENT / DNA GRID
========================================= */
.dna-grid-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.02));
    border: 1px solid var(--c-outline-variant);
    border-radius: 24px;
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}
.dark .dna-grid-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(0,0,0,0.15));
    border-color: rgba(255,255,255,0.08);
}
.dna-grid-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--c-secondary);
    box-shadow: 0 15px 40px -10px rgba(193, 146, 93, 0.3), inset 0 0 20px rgba(193, 146, 93, 0.05);
}

.dna-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(193, 146, 93, 0.1);
    color: var(--c-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}
.dna-grid-card:hover .dna-card-icon {
    background: var(--c-secondary);
    color: #fff;
    box-shadow: 0 0 20px var(--c-secondary);
}

.dna-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(193, 146, 93, 0.15) 0%, transparent 50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.dna-grid-card:hover .dna-card-glow {
    opacity: 1;
}

/* =========================================
   PREMIUM 4K VISUAL PASS (SAFE LAYER)
========================================= */
:root {
    --premium-shadow-soft: 0 18px 50px -22px rgba(0, 0, 0, 0.22);
    --premium-shadow-strong: 0 30px 90px -30px rgba(0, 0, 0, 0.45);
    --premium-ring: rgba(193, 146, 93, 0.28);
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle cinematic depth behind all sections */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}
body::before {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(193, 146, 93, 0.13), transparent 62%),
        radial-gradient(700px 420px at -10% 40%, rgba(93, 92, 91, 0.11), transparent 65%);
}
body::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.06));
}

.dark body::before {
    background:
        radial-gradient(900px 500px at 90% -8%, rgba(193, 146, 93, 0.14), transparent 62%),
        radial-gradient(700px 420px at -12% 42%, rgba(255, 255, 255, 0.06), transparent 65%);
}

/* Premium type rhythm */
h1, h2, h3 {
    letter-spacing: -0.02em;
}
p {
    line-height: 1.75;
}

/* Hero polish */
#hero {
    isolation: isolate;
}
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 600px at 50% 8%, rgba(193, 146, 93, 0.12), transparent 58%);
    z-index: 0;
}

/* Premium project cards */
.premium-project-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: var(--premium-shadow-strong);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.premium-project-card:hover {
    transform: translateY(-6px);
    border-color: var(--premium-ring);
    box-shadow: 0 34px 95px -34px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(193, 146, 93, 0.22);
}
.premium-project-card .premium-glass-card {
    border: 1px solid rgba(193, 146, 93, 0.22);
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.42));
    box-shadow: 0 22px 70px -24px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Service / DNA cards sharper premium feel */
.service-card,
.dna-grid-card {
    box-shadow: var(--premium-shadow-soft);
}
.service-card:hover,
.dna-grid-card:hover {
    box-shadow: var(--premium-shadow-strong);
}

/* Smooth premium transitions globally on core interactive elements */
a, button, .service-card, .magic-btn, .magic-nav-link, .mobile-magic-link {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Force bottom space to be completely removed */
html, body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
footer {
    margin-bottom: 0 !important;
}

/* FAQ Section */
.faq-item { transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.icon-plus { display: inline-block !important; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease !important; }
.faq-item.active { border-bottom-color: rgba(193, 146, 93, 0.4) !important; }
.faq-item.active .faq-content { max-height: 400px; }
.faq-item.active .icon-plus { transform: rotate(135deg) !important; color: #C1925D !important; }
.faq-item.active .w-8 { border-color: rgba(193, 146, 93, 0.4) !important; }
.faq-item.active .font-mono { opacity: 1 !important; }
.faq-item button span.font-headline { font-size: 1.1rem !important; font-weight: 500 !important; }
@media (max-width: 768px) {
    .faq-item button span.font-headline { font-size: 0.95rem !important; }
}
.faq-item .faq-content div { font-size: 0.92rem !important; line-height: 1.7 !important; }

/* Visual hierarchy experiment - remove this block to return to the flatter dark theme */
body {
    background: var(--vh-bg-main) !important;
}

#hero,
.lux-hero,
.vh-hero {
    background:
        radial-gradient(900px 520px at 18% 22%, rgba(193, 146, 93, 0.16), transparent 62%),
        radial-gradient(760px 460px at 78% 18%, rgba(110, 149, 255, 0.07), transparent 64%),
        linear-gradient(180deg, #050505 0%, #070708 78%, #0d0d11 100%) !important;
}

.lux-portfolio,
.vh-proof {
    background:
        linear-gradient(180deg, #0d0d11 0%, #09090b 100%) !important;
    border-top: 1px solid var(--vh-border);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lux-services,
.vh-services {
    background:
        radial-gradient(800px 420px at 88% 8%, rgba(193, 146, 93, 0.09), transparent 58%),
        linear-gradient(180deg, #111115 0%, #0d0d11 100%) !important;
    border-top: 1px solid rgba(193, 146, 93, 0.12);
}

.lux-process,
.vh-process {
    background:
        radial-gradient(780px 360px at 8% 20%, rgba(193, 146, 93, 0.09), transparent 64%),
        linear-gradient(180deg, var(--vh-bg-muted) 0%, #0d0c0a 100%) !important;
    border-block: 1px solid rgba(193, 146, 93, 0.13);
}

#testimonials,
.vh-testimonials {
    background:
        radial-gradient(680px 380px at 72% 18%, rgba(255, 255, 255, 0.045), transparent 66%),
        linear-gradient(180deg, var(--vh-bg-trust) 0%, #0a0a0c 100%) !important;
    border-block: 1px solid var(--vh-border);
}

#faq,
.vh-faq {
    background: #060607 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lux-cta,
.vh-cta {
    background:
        radial-gradient(740px 380px at 50% 0%, rgba(193, 146, 93, 0.15), transparent 64%),
        linear-gradient(180deg, #070708 0%, #050505 100%) !important;
}

#hero h1,
.vh-hero h1 {
    text-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lux-portfolio h2,
.lux-services h2,
.lux-process h2,
#testimonials h2,
#faq h2,
.vh-section-title {
    color: #fff !important;
}

.reference-work-card,
.service-card,
.review-track > div > div,
.vh-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)) !important;
    border-color: var(--vh-border) !important;
    box-shadow: 0 26px 80px -44px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.service-card {
    border-color: var(--vh-border-gold) !important;
}

.vh-services .rounded-\[1\.5rem\],
.vh-process .grid > div,
.vh-faq details {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)) !important;
    border-color: var(--vh-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.vh-process .grid > div {
    border-left: 1px solid rgba(193, 146, 93, 0.28) !important;
}

.reference-work-card:hover,
.service-card:hover,
.review-track > div > div:hover,
.vh-card:hover {
    border-color: rgba(193, 146, 93, 0.42) !important;
    box-shadow: 0 34px 90px -42px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(193, 146, 93, 0.12) !important;
}

#testimonials .review-track > div > div {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.035)) !important;
}

#faq .faq-item {
    border-color: rgba(255, 255, 255, 0.105) !important;
}

#faq .faq-item button {
    padding-block: 2rem !important;
}

#faq .faq-item button span.font-headline {
    color: rgba(255, 255, 255, 0.86) !important;
}

#faq .faq-content div {
    color: rgba(255, 255, 255, 0.58) !important;
}

@media (max-width: 768px) {
    .lux-portfolio,
    .lux-services,
    .lux-process,
    #testimonials,
    #faq,
    .lux-cta,
    .vh-section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Premium Icon Animations */
@keyframes icon-spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes icon-pulse-star {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}
@keyframes icon-rotate-flip {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes icon-shake-soft {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) rotate(-5deg); }
    75% { transform: translateX(2px) rotate(5deg); }
}

/* Desktop Magic Nav Animations */
.magic-nav-link:hover::before, .magic-nav-link.active::before {
    animation: icon-rotate-flip 0.8s ease-in-out forwards;
}

/* Mobile Nav Animations */
.mobile-magic-link:hover .mobile-icon, .mobile-magic-link.bubble-active .mobile-icon {
    animation: icon-rotate-flip 0.8s ease-in-out forwards;
}

/* Global Icon Hover Animations */
.material-symbols-rounded, .material-symbols-outlined {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover .material-symbols-rounded,
button:hover .material-symbols-rounded,
.group:hover .material-symbols-rounded,
.service-card:hover .material-symbols-rounded,
.dna-grid-card:hover .material-symbols-rounded,
.mega-item:hover .material-symbols-rounded {
    transform: rotate(360deg);
}

/* Typography hierarchy experiment - display type for headings, clean sans for reading/UI */
:root {
    --type-display: 'Gambetta', 'Fraunces', Georgia, serif;
    --type-body: 'Plus Jakarta Sans', 'DM Sans', Arial, sans-serif;
}

body,
p,
li,
input,
textarea,
select,
button,
.font-sans,
.magic-nav-link,
.nav-sub-link,
.mobile-magic-link,
.mobile-side-link,
.mega-item,
.magic-btn,
.reference-work-link,
footer a,
footer p {
    font-family: var(--type-body) !important;
    letter-spacing: 0 !important;
}

h1,
h2,
h3,
.font-headline,
.card-title,
.reference-work-head h2,
.service-card h4,
.dna-grid-card h3,
.vh-section-title {
    font-family: var(--type-display) !important;
    letter-spacing: 0 !important;
    font-weight: 700;
}

/* Keep small navigation/card labels crisp instead of overly decorative */
.mega-item .font-headline,
.mobile-side-link,
footer h5.font-headline,
footer a.font-headline,
.review-track h4.font-headline,
.nav-sub-link,
.magic-btn .magic-btn-content,
.reference-card-copy,
.reference-card-index,
.reference-card-arrow {
    font-family: var(--type-body) !important;
    letter-spacing: 0 !important;
}

#hero h1,
.lux-hero h1,
.vh-hero h1 {
    font-weight: 800;
    line-height: 0.98;
}

.lux-services h2,
.lux-process h2,
.lux-portfolio h2,
#testimonials h2,
#faq h2,
.lux-cta h2,
.vh-services h2,
.vh-process h2,
.vh-proof h2,
.vh-faq h2,
.vh-cta h2 {
    font-weight: 750;
    line-height: 1.04;
}

.service-card h4,
.dna-grid-card h3,
.reference-work-head h2 {
    line-height: 1.02;
}

#testimonials blockquote,
#testimonials .font-headline.text-2xl,
.vh-card .font-headline.text-2xl,
.vh-card .font-headline.text-3xl {
    font-family: var(--type-display) !important;
    font-weight: 650;
    line-height: 1.16;
}

p,
.card-text,
.faq-content,
.review-track p {
    font-weight: 400;
}

/* Micro-interactions pass - subtle lift/scale/shadow for perceived polish */
.reference-work-card,
.service-card,
.premium-project-card,
.dna-grid-card,
.vh-card,
.mega-item,
.magic-btn,
.review-track > div > div {
    transform: translateZ(0);
    will-change: transform, box-shadow, border-color;
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 320ms ease,
        border-color 320ms ease,
        background-color 320ms ease,
        opacity 320ms ease !important;
}

.reference-work-card:hover,
.premium-project-card:hover,
.vh-card:hover {
    transform: translateY(-8px) scale(1.012);
}

.service-card:hover,
.dna-grid-card:hover {
    transform: translateY(-6px) scale(1.008);
}

.review-track > div > div:hover,
.mega-item:hover {
    transform: translateY(-3px);
}

.magic-btn:hover {
    transform: translateY(-2px);
}

.reference-work-card img,
.premium-project-card img,
.vh-card img,
.service-card img {
    transition:
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 420ms ease,
        filter 420ms ease !important;
    will-change: transform;
}

.reference-work-card:hover img,
.premium-project-card:hover img,
.vh-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04);
}

.service-card:hover .card-title,
.service-card:hover h4,
.reference-work-card:hover .reference-card-copy strong,
.vh-card:hover h3 {
    color: #ffffff !important;
}

.reference-work-card:hover .reference-card-arrow,
.service-card:hover .material-symbols-rounded,
.vh-card:hover .material-symbols-rounded {
    color: var(--vh-gold) !important;
}

.reference-work-card:focus-visible,
.service-card:focus-visible,
.premium-project-card:focus-visible,
.vh-card:focus-visible,
.magic-btn:focus-visible,
.mega-item:focus-visible {
    outline: 2px solid rgba(193, 146, 93, 0.72);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .reference-work-card,
    .service-card,
    .premium-project-card,
    .dna-grid-card,
    .vh-card,
    .mega-item,
    .magic-btn,
    .review-track > div > div,
    .reference-work-card img,
    .premium-project-card img,
    .vh-card img,
    .service-card img {
        transition: none !important;
        transform: none !important;
    }
}

.vh-process .grid {
    position: relative;
}

.vh-process .grid::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: -1.5rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(193, 146, 93, 0.25), rgba(193, 146, 93, 0.8), rgba(193, 146, 93, 0.25));
    border-radius: 999px;
}

/* Contact hero improvement */
.contact-hero-pro {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12.5rem !important;
}

.contact-hero-stat {
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
    padding: 1rem;
}

.contact-hero-stat strong {
    display: block;
    color: #fff;
    font-family: var(--type-display);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1;
}

.contact-hero-stat span {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
}

.contact-hero-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(193, 146, 93, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    box-shadow: 0 34px 100px -54px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: clamp(1.25rem, 3vw, 2rem);
    overflow: hidden;
}

.contact-hero-card::before {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(193, 146, 93, 0.12);
    border-radius: 1.45rem;
    pointer-events: none;
}

.contact-hero-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
}

.contact-hero-card-head strong {
    color: #C1925D;
}

.contact-info-grid {
    display: grid;
    gap: 0.85rem;
}

.contact-info-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    background: rgba(0, 0, 0, 0.18);
    padding: 1rem;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms ease, background 280ms ease;
}

.contact-info-item:hover {
    transform: translateY(-3px);
    border-color: rgba(193, 146, 93, 0.34);
    background: rgba(193, 146, 93, 0.065);
}

.contact-info-item > span {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #050505;
    font-size: 1.15rem;
}

.contact-info-item h3 {
    margin: 0 0 0.25rem;
    color: #fff;
    font-size: 1.15rem;
}

.contact-info-item p,
.contact-info-item a,
.contact-info-item small {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.55;
}

.contact-info-item a:hover {
    color: #fff;
}

.contact-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.contact-socials a {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #050505;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-socials a:hover {
    background: #C1925D;
    color: #fff;
}

@media (max-width: 768px) {
    .contact-hero-pro {
        padding-top: 8.5rem !important;
        min-height: auto;
    }

    .contact-hero-stat {
        padding: 0.8rem;
    }

    .contact-hero-stat span {
        font-size: 0.58rem;
    }
}

/* Fix stacked service cards: keep each sticky card opaque so lower cards do not show through */
.service-card {
    background:
        radial-gradient(760px 280px at 100% 0%, rgba(193, 146, 93, 0.10), transparent 54%),
        linear-gradient(145deg, #171619 0%, #0c0c0f 100%) !important;
    border-color: rgba(193, 146, 93, 0.34) !important;
    isolation: isolate;
    overflow: hidden;
    backdrop-filter: none !important;
    min-height: 225px !important;
    max-height: 285px;
    justify-content: flex-start;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006));
    pointer-events: none;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card h4 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    margin-bottom: 0.45rem !important;
}

.service-card p {
    color: rgba(255, 255, 255, 0.64) !important;
    line-height: 1.55 !important;
}

.service-card > span:last-child {
    color: rgba(255, 255, 255, 0.045) !important;
}

.service-card-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.service-card-points span {
    border: 1px solid rgba(193, 146, 93, 0.24);
    border-radius: 999px;
    background: rgba(193, 146, 93, 0.075);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.55rem 0.72rem;
}

#testimonials .group\/card h4,
#testimonials .group\/card p,
#testimonials .group\/card img {
    transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1), filter 360ms ease;
}

#testimonials .group\/card.featured-story-changing h4,
#testimonials .group\/card.featured-story-changing p {
    opacity: 0;
    transform: translateY(8px);
}

#testimonials .group\/card.featured-story-changing > img {
    opacity: 0.28 !important;
    filter: blur(2px) saturate(0.8);
}

.lux-services .service-card {
    padding: 1.35rem !important;
}

@media (max-width: 768px) {
    .service-card {
        min-height: 235px !important;
        max-height: none;
    }
}

/* Keep the oversized footer brand readable instead of clipped at the edges. */
footer .footer-big-word,
footer .pointer-events-none.select-none.overflow-hidden.relative {
    height: clamp(72px, 9.4vw, 128px) !important;
}

footer .footer-big-word-text,
footer .pointer-events-none.select-none.overflow-hidden.relative h1.absolute.bottom-0,
footer .pointer-events-none.select-none.overflow-hidden.relative div.absolute.bottom-0 {
    left: 50% !important;
    right: auto !important;
    bottom: -0.03em !important;
    transform: translateX(-50%) !important;
    width: max-content;
    max-width: none;
    font-size: clamp(4rem, 8.2vw, 8.15rem) !important;
    line-height: 0.84 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 768px) {
    footer .footer-big-word,
    footer .pointer-events-none.select-none.overflow-hidden.relative {
        height: clamp(58px, 15vw, 90px) !important;
    }

    footer .footer-big-word-text,
    footer .pointer-events-none.select-none.overflow-hidden.relative h1.absolute.bottom-0,
    footer .pointer-events-none.select-none.overflow-hidden.relative div.absolute.bottom-0 {
        font-size: clamp(3rem, 13vw, 5rem) !important;
    }
}

/* Portfolio polish - richer case-study cards with clearer hierarchy. */
.lux-portfolio {
    background:
        radial-gradient(circle at 12% 0%, rgba(193, 146, 93, 0.12), transparent 30%),
        linear-gradient(180deg, #08080a 0%, #111114 48%, #08080a 100%) !important;
}

.reference-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(16px, 1.7vw, 24px) !important;
}

.reference-work-card {
    min-height: clamp(360px, 30vw, 460px) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    background: #08080a !important;
    box-shadow: 0 22px 70px -42px rgba(0, 0, 0, 0.9) !important;
}

.reference-work-card::before {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.1) 34%, rgba(0, 0, 0, 0.88) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 44%, rgba(0, 0, 0, 0.22)) !important;
}

.reference-work-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 3;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.reference-work-card img {
    opacity: 0.58 !important;
    filter: saturate(0.96) contrast(1.06) brightness(0.74) !important;
}

.reference-work-card:hover img {
    opacity: 0.86 !important;
    filter: saturate(1.08) contrast(1.08) brightness(0.9) !important;
}

.reference-card-index {
    z-index: 5 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.45rem 0.6rem;
    line-height: 1;
}

.reference-card-copy {
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 5 !important;
    max-width: calc(100% - 36px);
}

.reference-card-copy small {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-bottom: 0.65rem;
    padding: 0.38rem 0.58rem;
    border: 1px solid rgba(193, 146, 93, 0.34);
    border-radius: 999px;
    background: rgba(193, 146, 93, 0.12);
    color: rgba(245, 220, 188, 0.9) !important;
    font-family: var(--type-body) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

.reference-card-copy strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #fff !important;
    font-family: var(--type-display) !important;
    font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
    line-height: 0.98 !important;
}

.reference-card-copy em {
    display: block;
    max-width: 92%;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--type-body);
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.45;
}

.reference-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.reference-card-tags b {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--type-body);
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.48rem 0.62rem;
}

.reference-card-arrow {
    z-index: 6 !important;
    background: rgba(8, 8, 10, 0.68) !important;
    backdrop-filter: blur(10px);
}

@media (max-width: 1180px) {
    .reference-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .reference-work-grid {
        grid-template-columns: 1fr !important;
    }

    .reference-work-card {
        min-height: 380px !important;
    }

    .reference-card-copy em {
        max-width: 100%;
    }
}

/* CTA contrast fix - keeps outline buttons readable on dark hero areas. */
.magic-btn.magic-secondary {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.36) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(10, 10, 10, 0.44) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.magic-btn.magic-secondary .magic-txt-default,
.magic-btn.magic-secondary .magic-txt-hover {
    color: rgba(255, 255, 255, 0.92) !important;
}

.magic-btn.magic-secondary .magic-dot {
    background-color: #c1925d !important;
    box-shadow: 0 0 14px rgba(193, 146, 93, 0.55);
}

.magic-btn.magic-secondary .magic-arrow {
    color: #ffffff !important;
}

.magic-btn.magic-secondary:hover {
    color: #0a0a0a !important;
    border-color: rgba(193, 146, 93, 0.72) !important;
    box-shadow: 0 10px 28px rgba(193, 146, 93, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.magic-btn.magic-secondary:hover .magic-txt-default,
.magic-btn.magic-secondary:hover .magic-txt-hover {
    color: #0a0a0a !important;
}

/* Hide the extra hamburger inside the desktop pill navbar; logo stays visible. */
#main-header #menu-toggle {
    display: none !important;
}

/* Let the home hero continue behind the floating navbar. */
body:has(#hero) main.lux-main {
    padding-top: 0 !important;
}
@media (min-width: 1024px) {
    #hero .hero-text-col {
        margin-top: 5rem !important;
    }

    #hero #hero-carousel {
        transform: translateY(3rem) scale(0.93);
        transform-origin: center;
    }
}