/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    /* Restore solid backgrounds on mobile/tablet when active */
    body.has-inquire.inquire-active .inquire-form {
        background: white !important;
    }

    body.has-inquire.inquire-active .inquire-form .consultation-form.wizard-mode,
    body.has-inquire.inquire-active .inquire-form .consultation-form.full-mode {
        background: white !important;
    }
}

/* Desktop: remove card container around forms */
@media (min-width: 1024px) {
    .consultation-form.wizard-mode,
    .consultation-form.full-mode {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Align wizard form content flush with the header title on desktop */
    .inquire-form .wizard-mode .step-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Keep the close button visible while scrolling on mobile */
    .inquire-close-btn {
        position: sticky;
        top: 0.5rem;
        z-index: 11000;
    }

    /* Ensure the form aligns to the panel's left edge rather than centering */
    .inquire-form .wizard-mode {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* (Removed maps from DOM) — keep classes for future use */

/* Hide audio navigation link */
.hide-audio {
    display: none !important;
}





:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --font-size-base: 11px;
    --font-size-h1: 24px;
    --font-size-h2: 18px;
    --font-size-h3: 16px;
    --line-height-base: 1.5;
    /* Shared offset to align left sticky preview and right list */
    --projects-sticky-offset: 84px;
    
    /* Unified Design System */
    --border-radius-xs: 2px;
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 50%;
    
    --padding-xs: 0.25rem;
    --padding-sm: 0.5rem;
    --padding-md: 0.75rem;
    --padding-lg: 1rem;
    --padding-xl: 1.5rem;
    --padding-2xl: 2rem;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 3rem;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Unified Colors */
    --bg-primary: #ffffff;
    --bg-secondary: rgba(255, 255, 255, 0.2);
    --bg-hover: rgba(0, 0, 0, 0.05);
    --bg-active: rgba(0, 0, 0, 0.1);
    
    --border-light: rgba(0, 0, 0, 0.1);
    --border-medium: rgba(0, 0, 0, 0.2);
    --border-white: rgba(255, 255, 255, 0.4);
    
    --text-primary: #000000;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --yellow: #FFD700;
}

body {
    font-family: 'OnsiteStandard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: var(--line-height-base);
    color: var(--text-color);
    font-size: var(--font-size-base);
    background: #ffffff; /* unify base background */
}

/* Typography */
h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-bottom: 1rem;
}

/* Custom Fonts */
@font-face {
    font-family: 'OnsiteStandard';
    src: url('/fonts/OnsiteStandardTRIAL-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OnsiteStandard';
    src: url('/fonts/OnsiteStandardTRIAL-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OnsiteStandard';
    src: url('/fonts/OnsiteStandardTRIAL-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OnsiteStandard';
    src: url('/fonts/OnsiteStandardTRIAL-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OnsiteStandard';
    src: url('/fonts/OnsiteStandardTRIAL-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OnsiteStandard';
    src: url('/fonts/OnsiteStandardTRIAL-Extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Navigation */
header {
    position: static;
    width: 100%;
    padding-top: 0.54rem;
    z-index: 15000;
}

/* Disable header blur when the nav overlay is open to avoid stacking issues */
body.nav-open header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
}

/* Prevent layout jank during mobile rubber-band and bottom reveal */
@media (max-width: 1023px) {
    /* Optimize mobile scrolling performance */
    * {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Prevent rubber band scrolling on iOS */
        overscroll-behavior-y: contain;
    }
    
    header {
        position: sticky;
        top: 0;
        will-change: auto;
        padding-top: 0.58rem;
        transform: none !important;
        z-index: 15000;
        /* Improve mobile scroll performance */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    header.header-hidden { transform: none !important; }
    
    /* Optimize main content scrolling */
    main {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Prevent scroll chaining */
        overscroll-behavior-y: contain;
    }
    
    /* Optimize gallery and form sections */
    .gallery-container,
    .gallery,
    form,
    .consultation-form {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Force hardware acceleration for smooth scrolling */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Reduce scroll jank on mobile */
    .gallery-slide,
    .project-item,
    .nav-links {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

header.header-hidden {
    transform: none;
    opacity: 1;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem; /* tightened to reduce header-to-gallery space */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 15000;
}

.logo {
    font-size: 16px;
    padding-right: 12px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    /* Ensure logo is always crisp and bypasses blur effects */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    position: relative;
    z-index: 15000;
}

.nav-links {
    list-style: none;
}

.nav-links a {
    font-size: var(--font-size-base);
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger menu - Apple style with two lines */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    gap: 3px;
    /* Ensure hamburger menu is always crisp and bypasses blur effects */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    z-index: 15000;
    box-shadow: none;
    border-radius: 0;
}

/* Ensure hamburger menu is always visible on mobile */
@media (max-width: 1023px) {
    .hamburger-menu {
        display: flex !important;
        z-index: 15000 !important;
        position: relative !important;
    }
}

.hamburger-menu span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #000 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.hamburger-menu:hover:not(.active) span {
    background-color: #000;
}

.hamburger-menu:focus {
    outline: none;
}

.hamburger-menu:focus span {
    background-color: #000;
}

/* Clean gapped X - override all conflicts */
.hamburger-menu.active span {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1px;
    margin-left: -9px;
    width: 18px !important;
    height: 2px !important;
    border-radius: 1px;
}

.hamburger-menu.active span:first-child {
    transform: rotate(45deg) !important;
    background: linear-gradient(to right, #000 0px, #000 6px, transparent 6px, transparent 12px, #000 12px, #000 18px) !important;
    z-index: 15001 !important;
}

.hamburger-menu.active span:last-child {
    transform: rotate(-45deg) !important;
    background: linear-gradient(to right, #000 0px, #000 6px, transparent 6px, transparent 12px, #000 12px, #000 18px) !important;
    z-index: 15001 !important;
}

/* Apply subtle blur/glass effect to active hamburger button */
.hamburger-menu.active {
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 12px !important;
}

/* Show hamburger on all devices, hide regular nav links */
.hamburger-menu {
    display: flex !important;
    position: relative;
    z-index: 15000;
}

/* Mobile Navigation Overlay */
.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.18);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease-out, backdrop-filter 0.35s ease-out, -webkit-backdrop-filter 0.35s ease-out, background-color 0.35s ease-out;
    will-change: opacity, backdrop-filter, background-color;
    display: flex !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    backface-visibility: hidden;
    transform: translateZ(0);
    contain: paint;
}

/* Prevent submenu card flash while closing/hidden */
.nav-links.mobile-closing .nav-submenu,
.nav-links:not(.mobile-active) .nav-submenu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
}

/* Utility to disable all transitions for instant close */
.nav-links.no-animate, .nav-links.no-animate *, .nav-submenu.no-animate, .nav-submenu.no-animate * {
    transition: none !important;
    animation: none !important;
}

.nav-links.mobile-active {
    opacity: 1 !important;
    visibility: visible !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    /* keep blur/background steady; opacity handles the perceived change */
    transition: opacity 0.35s ease-out;
}

/* Ensure overlay stacks above header while open */
body.nav-open .nav-links {
    z-index: 12000 !important; /* ensure menu overlays the inquire panel on desktop */
}

/* When menu/submenu is open, lock body scroll (paired with JS) */
.scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden !important;
    top: var(--scroll-lock-top, auto); /* maintained by JS */
}

/* Ensure the hamburger/X sits above the overlay and is reachable */
body.nav-open .hamburger-menu {
    position: relative !important; /* keep original layout position */
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: 15001 !important; /* above .nav-links (12000) */
    pointer-events: auto !important;
}

/* Keep the logo visible above the overlay when menu is open */
body.nav-open .logo {
    position: relative !important;
    z-index: 15001 !important; /* above .nav-links (12000) */
}

/* Mobile Navigation Menu Container */
.nav-menu-container {
    position: relative;
    z-index: 2500;
    /* Remove container chrome so buttons float on the overlay */
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0.5rem 0.75rem; /* even spacing inside shared card */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* Single shared background card behind Info & Clients */
.nav-menu-container::before {
    content: "";
    position: absolute;
    inset: -10px; /* extend slightly beyond inner padding */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.6);
    z-index: -1;
}

/* Prevent glass card flash when closing/hiding the overlay */
.nav-links.mobile-closing .nav-menu-container::before,
.nav-links:not(.mobile-active) .nav-menu-container::before {
    display: none !important;
}

/* Projects Submenu (mobile overlay) */
.nav-submenu {
    display: none;
    position: relative;
    z-index: 2500;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.6);
    padding: 1rem;
    width: min(560px, 92vw);
    max-height: 50vh;
    overflow: auto;
    /* Make submenu animations GPU-friendly and avoid Safari blur ghosting */
    will-change: transform, opacity;
    contain: paint;
    transform: translateZ(0);
    transition: opacity 180ms ease, transform 180ms ease;
}

/* Smoothly animate submenu out before swapping views */
.nav-submenu.closing {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
}

/* Submenu scrollbar: square corners and black thumb */
.nav-submenu {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #000 rgba(0,0,0,0.1); /* thumb, track */
}
.nav-submenu::-webkit-scrollbar { width: 6px; height: 6px; }
.nav-submenu::-webkit-scrollbar-thumb { background: #000; border-radius: 0; }
.nav-submenu::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 0; }

/* Global scrollbar style: apply everywhere for consistency */
* {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #000 rgba(0,0,0,0.1);
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: #000; border-radius: 0; }
*::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 0; }

.nav-submenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem 0.75rem 0.5rem;
}

.nav-submenu-title { font-weight: 700; font-size: 1rem; }

.nav-submenu-back {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.nav-submenu-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.nav-submenu-list a {
    display: block;
    padding: 0.85rem 1rem;
    min-height: 88px;
    border-radius: 10px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.06);
    color: #000;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    /* Match main menu button chrome */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

/* Force consistent text color in submenu across states (prevent blue) */
.nav-submenu-list a,
.nav-submenu-list a:link,
.nav-submenu-list a:visited,
.nav-submenu-list a:active,
.nav-submenu-list a:hover,
.nav-submenu-label {
    color: #000 !important;
    text-decoration: none !important;
}

.nav-submenu-list a:hover {
    /* Match main menu hover state */
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

/* Selected/active state to mirror menu press/selection */
.nav-submenu-list a:active,
.nav-submenu-list a[aria-current="page"],
.nav-submenu-list a.is-active {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-md);
    transform: translateY(0);
}

/* Reveal submenu items with the same entrance animation */
.nav-links.submenu-active .nav-submenu-list a { opacity: 1; transform: translateY(0); }

/* Sequential delays for submenu items (up to 12 items) */
.nav-links.submenu-active .nav-submenu-list a:nth-child(1) { transition-delay: 0.06s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(2) { transition-delay: 0.10s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(3) { transition-delay: 0.14s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(4) { transition-delay: 0.18s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(5) { transition-delay: 0.22s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(6) { transition-delay: 0.26s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(7) { transition-delay: 0.30s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(8) { transition-delay: 0.34s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(9) { transition-delay: 0.38s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(10) { transition-delay: 0.42s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(11) { transition-delay: 0.46s; }
.nav-links.submenu-active .nav-submenu-list a:nth-child(12) { transition-delay: 0.50s; }

/* Focus/active accessibility states */
.nav-submenu-list a:focus { outline: none !important; }

/* Thumbnail layout inside submenu items */
.nav-submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-submenu-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-submenu-thumb {
    width: 112px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

/* Responsive sizing for cleaner mobile submenu items */
@media (max-width: 1023px) {
    .nav-submenu-list a { 
        min-height: 70px; 
        padding: 0.7rem 0.8rem; 
        border-radius: 8px;
        background: rgba(255,255,255,0.6);
        border: 1px solid rgba(0,0,0,0.08);
    }
    .nav-submenu-item { gap: 12px; }
    .nav-submenu-thumb { 
        width: 88px; 
        height: 56px; 
        border-radius: 6px;
        border: 1px solid rgba(0,0,0,0.1);
    }
    .nav-submenu-label { 
        font-size: 14px; 
        font-weight: 500;
    }
    .nav-submenu-list {
        gap: 0.4rem;
    }
}

/* Mobile submenu/menu behavior */
@media (max-width: 1023px) {
    /* Keep main menu (Info/Clients) centered when overlay is open */
    .nav-links.mobile-active:not(.submenu-active) {
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
    }

    /* Ensure hidden submenu never affects layout until activated */
    .nav-links:not(.submenu-active) .nav-submenu {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Cleaner, more compact mobile submenu */
    .nav-submenu {
        width: 90vw !important;
        max-width: 90vw !important;
        height: auto;
        max-height: min(75vh, calc(100dvh - 120px));
        margin-bottom: 4vh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        padding: 0.75rem;
        /* Simplified glass effect - remove the ::before pseudo-element */
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.4);
    }
    .nav-submenu-header { 
        flex: 0 0 auto; 
        padding: 0.5rem 0.25rem 0.75rem 0.25rem;
    }
    .nav-submenu-list {
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-right: 2px; /* space for scrollbar */
    }

    /* Center submenu vertically within overlay */
    .nav-links.submenu-active {
        justify-content: center !important;
        align-items: center !important;
        padding: 0 12px !important;
    }
    .nav-submenu { margin-top: 0 !important; }
}

@media (max-width: 375px) {
    .nav-submenu-list a { 
        min-height: 65px; 
        padding: 0.6rem 0.7rem; 
    }
    .nav-submenu-thumb { 
        width: 80px; 
        height: 50px; 
    }
    .nav-submenu-label { 
        font-size: 13px; 
    }
}

/* Desktop: taller nav-submenu */
@media (min-width: 1024px) {
    .nav-submenu {
        max-height: 77vh;
        height: auto;
        overflow-y: auto;
    }
}

.nav-links.submenu-active .nav-menu-container { display: none; }
.nav-links.submenu-active .nav-submenu { display: block; }

/* Mobile Navigation Links - Square Format */
@media (max-width: 1023px) {
    .nav-menu-container a {
        aspect-ratio: 1 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 1.25rem !important;
    }
}

.nav-links a {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
    will-change: transform, opacity;
}

.nav-links.mobile-active a {
    opacity: 1;
    transform: translateY(0);
}

/* Sequential animation delays for menu items */
.nav-links.mobile-active .nav-menu-container a:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-links.mobile-active .nav-menu-container a:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-links.mobile-active .nav-menu-container a:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-links.mobile-active .nav-menu-container a:nth-child(4) {
    transition-delay: 0.25s;
}

/* Closing animation with reverse delays */
.nav-links.mobile-closing {
    opacity: 0;
    /* keep element visible for the fade; clicks disabled */
    pointer-events: none;
    /* mirror open: ease blur/background down while fading out */
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.35s ease-out, backdrop-filter 0.35s ease-out, -webkit-backdrop-filter 0.35s ease-out, background-color 0.35s ease-out;
}

.nav-links.mobile-closing .nav-menu-container a:nth-child(1) {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0.1s;
}

.nav-links.mobile-closing .nav-menu-container a:nth-child(2) {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0.06s;
}

.nav-links.mobile-closing .nav-menu-container a:nth-child(3) {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0.03s;
}

.nav-links.mobile-closing .nav-menu-container a:nth-child(4) {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0s;
}

.nav-menu-container a {
    padding: 0.85rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 10px;
    background: rgba(255,255,255,0.38);
    border: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all var(--transition-normal);
    text-align: center;
    box-shadow: var(--shadow-sm);
    text-shadow: none;
    font-size: 14px;
    aspect-ratio: auto;
    width: 96px; /* ensure Info and Clients buttons match width */
    position: relative;
    margin: 0; /* spacing handled by container gap/padding */
}

/* Force consistent text color on menu links across states (prevent blue) */
.nav-menu-container a,
.nav-menu-container a:link,
.nav-menu-container a:visited,
.nav-menu-container a:active,
.nav-menu-container a:hover {
    color: #000 !important;
    text-decoration: none !important;
}

/* Remove blue selection/highlight and tap highlights on menu/buttons */
.nav-menu-container a,
.hamburger-menu,
.hero .inquire-button,
.hero .clients-button,
.gallery-nav,
.prev-btn,
.next-btn,
button,
a {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.nav-menu-container a::selection,
.hamburger-menu::selection,
.hero .inquire-button::selection,
.hero .clients-button::selection,
.gallery-nav::selection,
.prev-btn::selection,
.next-btn::selection,
button::selection,
a::selection {
    background: transparent;
    color: inherit;
}

.nav-menu-container a:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

/* Mobile specific adjustments */
@media (max-width: 1023px) {
    nav {
        padding: 0rem;
    }
    
    /* Keep header blurred transparent on mobile as well */
    header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3000;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: none;
    }
    
    nav {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    main {
        margin-top: 1rem;
    }
    
    .logo {
        position: relative;
        z-index: 15000;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: transparent;
        filter: none !important;
        margin-left: 1rem;
        margin-right: 1rem; /* keep comfortable spacing from right edge */
        transition: none;
    }
    
    .hamburger-menu {
        position: relative;
        z-index: 15000;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-left: 1rem; /* match logo right margin for balanced inset */
    }
}

/* Ultra-small devices (iPhone SE width and similar) */
@media (max-width: 375px) {
    nav {
        padding: 0rem; /* 4px */
    }
    .logo {
        margin-left: 0.5rem;
        margin-right: 0.5rem; /* match left padding on very small screens */
    }
    .hamburger-menu {
        margin-left: 0.5rem; /* mirror ultra-small logo right margin */
    }
    main {
        margin-top: 0.125rem;
    }
    .nav-menu-container a {
        padding: 0.6rem 1rem;
        font-size: 13px;
    }
}

/* Main content */
main {
    margin-top: 0;
    transition: margin-top 0.3s ease;
}

/* Projects page: use normal spacing below fixed header */
.projects-main {
    margin-top: 3rem;
}

section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 0 0 5rem 0;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero h1 {
    font-size: var(--font-size-h1);
    margin-bottom: 0.75rem;
}

/* Projects section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: block;
}

/* Contact form */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
} 

#contact-form input,
#contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: transparent; /* remove debug color */
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer map */
.footer-map,
.embed-map {
    margin-top: 1rem;
}
.footer-map iframe,
.embed-map iframe {
    width: 100%;
    height: 180px;
    border: 0;
    filter: grayscale(0%);
}

.footer-address {
    margin-bottom: 1rem;
}

.footer-address p {
    font-size: var(--font-size-base);
    line-height: 1.5;
    margin: 0;
}

.footer-copyright p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    transition: opacity 0.5s ease-out;
}

/* Fade out effect for copyright text on scroll */
.footer-copyright.fade-out p {
    opacity: 0 !important;
    transition: opacity 0.8s ease-out !important;
}

/* Responsive design */
@media (max-width: 1023px) {
    main {
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 20px;
    }
    
    section {
        padding: 2rem 1rem;
    }

    .gallery-container {
        max-width: 1200px;
        padding-bottom: 0; /* align buttons directly under image */
        position: relative; /* create stacking context for buttons */
        z-index: 1;
    }
    
    /* Pull hero up and limit gallery height so CTA is visible */
    .hero {
        min-height: auto;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 0 1.25rem 0;
    }

    .gallery {
        height: 50vh;
    }
    
    .gallery-nav,
    .prev-btn,
    .next-btn {
        display: none !important;
    }
    
    .gallery-dots {
        display: none !important;
    }

    /* Place Inquire text where the icon is: bottom center overlay */
    .hero { position: relative; }
    .hero-buttons {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 36px;
        margin: 0;
        width: auto;
        z-index: 5;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
    }
    
    .gallery-dots::-webkit-scrollbar {
        display: none;
    }
    
    .dot {
        width: 3px;
        height: 2px;
        flex-shrink: 0;
        min-width: 3px;
    }
    
    .dot.active {
        width: 6px;
        min-width: 6px;
    }

    :root {
        --font-size-h1: 20px;
        --font-size-h2: 16px;
        --font-size-h3: 14px;
    }
}

/* When header hides, let content take full viewport smoothly */
header.header-hidden + main {
    margin-top: -40px;
}

/* Gallery styles */
.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--white);
    padding: 0;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery {
    position: relative;
    width: 100%;
    height: 660px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 90%;
    max-height: 90%;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #000000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    display: none !important; /* hide arrows on all viewports */
}

.gallery-nav.visible {
    opacity: 1;
    visibility: visible;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.1);
}

.gallery-nav i {
    font-size: 20px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.gallery-dots {
    display: none !important;
}

.dot {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: #9CA3AF; /* Grey color for inactive state */
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #000000; /* Black color for active state */
    width: 30px;
}

/* Consultation Form Styles */
#info {
    padding: 4rem 1rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

#info h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 1rem;
}

#info p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: #4b5563;
    margin-bottom: 2rem;
}

form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

form h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

/* Form Sections */
form > * {
    margin-bottom: 1rem;
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: var(--text-color);
    font-size: 11px;
    letter-spacing: 0.25px;
}

/* Inputs and Selects */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
    font-family: inherit;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    height: 32px;
}

/* Make placeholder text use the same font as the site */
input::placeholder,
textarea::placeholder {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: 300;
    color: #9ca3af;
    opacity: 1; /* ensure visible on Safari */
}
::-webkit-input-placeholder { font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 300; }
::-moz-placeholder { font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 300; }
:-ms-input-placeholder { font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 300; }
:-moz-placeholder { font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 300; }

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: var(--white);
}

/* Multiple Select */
select[multiple] {
    height: 80px;
}

/* Textareas */
textarea {
    min-height: 80px;
    resize: vertical;
    height: auto;
}

/* Fieldset Styling */
fieldset {
    border: none !important;
    border-radius: 4px;
    padding: 1rem 1rem 1.25rem 1rem; /* extra bottom padding so content clears the legend border */
    margin-bottom: 1rem;
}

/* Extra spacing between legend and checkbox grid inside fieldsets */
fieldset .checkbox-grid {
    margin-top: 0.25rem; /* keep internal spacing independent of fieldset padding */
}

legend {
    font-weight: 700;
    color: var(--text-color);
    padding: 0 0.5rem;
    font-size: 12px;
    letter-spacing: 0.25px;
    text-align: left;
}

/* Checkbox and Radio Labels */
fieldset label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
    text-transform: none;
}

fieldset input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    cursor: pointer;
}

/* File Upload */
input[type="file"] {
    padding: 0.35rem;
    background-color: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
   
    font-size: 12px;
}

/* Submit Button */
button[type="submit"] {
    background-color: #000000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;

    letter-spacing: 0.25px;

}

button[type="submit"]:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

/* Required Field Indicator */
label[for*="name"]::after,
label[for*="email"]::after {
    content: "*";
    color: #ef4444;
    margin-left: 0.25rem;
}

/* Form Grid Layout */
@media (min-width: 1024px) {
    form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Full width elements */
    form h2,
    textarea,
    fieldset,
    button[type="submit"] {
        /* grid-column: 1 / -1; */
    }
}

.form-header {
    grid-column: 1 / -1;
    text-align: left;
    margin-bottom: 2rem;
}

.form-header h2 {
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-header p {
    margin-bottom: 0;
    color: #4b5563;
    text-align: left;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.project-list li {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: left;
    color: #111;
}

/* Projects Page Layout */
.projects-section {
    padding: 0 1rem 2rem 1rem;
    min-height: 100vh;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 700;
}

.projects-grid {
    display: block;
    padding: 0 2rem;
    max-width: none;
    margin: 0 auto;
    width: 100%;
}

/* Mobile thumbnails container (hidden by default; shown on mobile) */
.projects-thumbs {
    display: none;
}

.project-item {
    background: transparent;
    overflow: visible;
    box-shadow: none;
    transition: none;
    border: none;
    text-decoration: none;
    display: block;
    color: inherit;
    margin-bottom: 2rem;
}

.project-meta {
    padding: 0;
    background: transparent;
    color: #4b5563;
}

.project-meta p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.project-meta strong {
    color: #111827;
    font-weight: 700;
}

/* Optional clamp for descriptions to keep cards uniform */
.project-info-description {
    color: #374151;
    margin-bottom: 0.5rem;
    display: none; /* hidden on desktop */
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
    text-decoration: none;
    color: inherit;
}

.project-title {
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    border-bottom: none;
    background: transparent;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    width: 100%;
}

.project-image-placeholder {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    background: transparent;
    margin-bottom: 1rem;
}

.project-image-placeholder img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: none;
    filter: none;
}

.project-item:hover .project-image-placeholder img {
    transform: none;
    filter: none;
}

/* Mobile responsive for projects page */
@media (max-width: 1024px) {
    .projects-grid {
        padding: 0 0.75rem;
    }
    
    .project-image-placeholder {
        height: auto;
        padding-top: 0;
    }

    .project-image-placeholder img {
        object-fit: contain;
        filter: none;
    }
}

/* Mobile/tablet: show preview at top, list below */
@media (max-width: 1023px) {
    .current-project {
        display: block;
        position: static;
        top: auto;
        align-self: start;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    .current-project-media {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        box-shadow: none;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }
    .current-project-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .projects-list {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 1023px) {
    .projects-section {
        padding: 0 0.5rem 2rem 0.5rem;
    }
    
    .projects-container h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .projects-grid {
        /* Keep as block layout on mobile */
        display: block;
        padding: 0 0.5rem;
    }
    
    .projects-grid .project-item {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 0.75rem;
        align-items: center;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.5rem 0;
        margin: 0;
    }

    .projects-grid .project-title {
        font-size: 1rem;
        margin: 0;
        padding: 0;
    }

    .project-meta {
        padding: 0;
        display: block;
    }

    /* Hide long meta in list on mobile for compactness */
    .projects-grid .project-meta,
    .projects-list .project-meta {
        display: none !important;
    }

    .project-info-description {
        display: -webkit-box; /* visible on mobile and clamped */
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }



    .project-image-placeholder {
        height: auto;
        padding-top: 0;
    }

    .project-image-placeholder img {
        object-fit: contain;
    }

    /* Thumbnail sizing */
    .project-thumb {
        width: 56px;
        height: 56px;
        border-radius: 6px;
        overflow: hidden;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
    }
    .project-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .project-item {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    .project-title {
        padding: 1rem 1rem 0.75rem 1rem;
        font-size: 1rem;
        background: #fafafa;
    }
    
    .project-image-placeholder {
        height: 42vh;
    }
    
    .project-item:hover {
        transform: translateY(-2px);
    }

    /* Mobile thumbnails below carousel - single horizontal row */
    .projects-thumbs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 0.5rem;
        margin-top: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .projects-thumbs::-webkit-scrollbar { display: none; }

    .projects-thumb {
        display: block;
        flex: 0 0 auto;
        width: 72px;
        height: 72px;
        overflow: hidden;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        background: #f3f4f6;
        scroll-snap-align: start;
    }

    .projects-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: none;
        transition: transform 0.2s ease, filter 0.2s ease;
    }

    .projects-thumb.active img {
        filter: grayscale(0%);
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .projects-section {
        padding: 0 0.25rem 1.5rem 0.25rem;
    }
    
    .projects-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .projects-grid {
        display: flex;
        overflow-x: auto;
        gap: 0.75rem;
        padding: 0 0.25rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .projects-grid .project-item {
        flex: 0 0 88%;
        scroll-snap-align: start;
    }
    
    .project-title {
        padding: 0.75rem 0.75rem 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .project-meta {
        padding: 0.6rem 0.75rem 0.9rem 0.75rem;
        display: flex;
        flex-direction: column;
    }

    .project-info-description {
        line-clamp: 2;
        -webkit-line-clamp: 2;
        display: -webkit-box; /* visible on small mobile too */
    }

    .project-meta .project-client { order: 1; }
    .project-meta .project-services { order: 2; }
    .project-meta .project-timeline { order: 3; }
    .project-meta .project-info-description { order: 4; }
    .project-image-placeholder {
        height: 56vh;
        padding-top: 0; /* ensure full image is visible */
    }

    .project-image-placeholder img {
        object-fit: contain;
        filter: grayscale(0%);
    }
    
    .project-image-placeholder {
        height: 56vh;
    }

    .projects-thumbs {
        gap: 6px;
        padding: 0.25rem;
    }

    .projects-thumb {
        width: 60px;
        height: 60px;
        border-radius: 6px;
    }
}

/* Project Detail Pages */
.project-detail-section {
    min-height: 100vh;
}

.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 3rem;
    padding: 2rem;
}

.info-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.info-button:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Project Info Modal */
.project-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-info-modal.active {
    display: flex;
    opacity: 1;
}

.project-info-content {
    background: #f5f5f5;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-info-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-info-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
    display:block;
}

.project-info-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-info-tag {
    background: #333;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-info-credits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.credit-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credit-section li {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.project-info-close {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.project-info-close:hover {
    color: #000;
}

/* Mobile responsive for project info modal */
@media (max-width: 1023px) {
    .project-header {
        padding: 1rem;
    }
    
    .info-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
    
    .project-info-content {
        max-width: 95%;
        width: 95%;
        max-height: 85vh;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .project-info-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .project-info-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .project-info-tags {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }
    
    .project-info-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .project-info-credits {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .credit-section h4 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .credit-section li {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .project-info-close {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        background: #333;
        color: white;
        border-radius: 6px;
        font-weight: 600;
    }
    
    .project-info-close:hover {
        background: #000;
        color: white;
    }
}

@media (max-width: 480px) {
    .project-header {
        padding: 0.75rem;
    }
    
    .info-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .project-info-content {
        max-width: 98%;
        width: 98%;
        max-height: 90vh;
        padding: 1.25rem;
        margin: 0.5rem;
    }
    
    .project-info-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .project-info-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .project-info-tags {
        gap: 0.3rem;
        margin-bottom: 1.25rem;
    }
    
    .project-info-tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .project-info-credits {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .credit-section h4 {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .credit-section li {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }
    
    .project-info-close {
        padding: 0.6rem;
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

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

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

.project-content {
    display: grid;
    gap: 3rem;
}

.project-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.project-hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.project-hero:hover .project-hero-image {
    filter: grayscale(0%);
}

.project-info {
    display: grid;
    gap: 3rem;
    padding-left: 10px;
}

.project-details h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-details h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-color);
}

.project-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-details li {
    padding: 0.25rem 0;
    color: #6b7280;
}

.project-gallery h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    justify-content: center;
    gap: 4.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* Modal Gallery */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100svh; /* iOS 15+ small viewport unit */
    height: 100dvh; /* modern dynamic viewport */
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    filter: grayscale(0%);
}

.modal-close {
    position: absolute;
    top: -40px;
    right:-60px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.modal-nav:hover {
    background: transparent;
    transform: translateY(-50%);
}

.modal-prev {
    left: -60px;
}

.modal-next {
    right: -60px;
}

.modal-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Mobile responsive for project detail pages */
@media (max-width: 1023px) {
    .project-detail-section {
        padding: 4rem 0.5rem 2rem 0.5rem;
    }
    
    .project-header h1 {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .project-hero {
        height: 220px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 180px));
        justify-content: center;
        gap: 6rem;
        padding: 0 3rem;
    }
    
    .gallery-grid img {
        /* Prevent cropping on small screens */
        width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: contain;
    }
    
    .modal-nav {
        padding: 0.75rem 0.5rem;
        font-size: 1.25rem;
    }
    
    .modal-prev {
        left: -50px;
    }
    
    .modal-next {
        right: -50px;
    }
    
    .modal-close {
        top: -35px;
        font-size: 1.75rem;
    }
}

/* Mobile: arrange controls as Prev | Counter | Next in one row below image */
@media (max-width: 1023px) {
    .modal-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0.5rem 0.75rem;
    }
    .modal-image { grid-column: 1 / -1; grid-row: 1; order: initial; max-height: 82svh; }
    .modal-counter {
        grid-column: 2;
        grid-row: 2;
        order: initial;
        margin-top: 0;
        position: static;
        transform: none;
    }
    .modal-nav {
        order: initial;
        position: static;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0.6rem;
        margin-top: 0;
    }
    /* Remove zoom/lift on tap */
    .modal-nav:hover,
    .modal-nav:active {
        transform: none;
        background: transparent;
    }
    .modal-prev { left: auto; right: auto; grid-column: 1; grid-row: 2; justify-self: end; }
    .modal-next { left: auto; right: auto; grid-column: 3; grid-row: 2; justify-self: start; }

    /* Counter: remove glass/background on mobile */
    .modal-counter {
        background: transparent;
        padding: 0;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .project-detail-section {
        padding: 3.5rem 0.25rem 1.5rem 0.25rem;
    }
    
    .project-header h1 {
        font-size: 1.75rem;
    }
    
    .project-hero {
        height: 180px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8rem;
        padding: 0 3.5rem;
    }
    
    .gallery-grid img {
        /* Ensure full image is visible on very small screens */
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: contain;
    }
}

/* Desktop and ultrawide styles */
@media (min-width: 1024px) {
    nav {
        max-width: none;
        padding: 0rem 0.75rem; /* remove vertical gap on desktop */
    }
    
    section {
        max-width: none;
        padding: 4rem 1rem;
    }
    
    .gallery-container {
        max-width: none;
        padding: 0 0.75rem; /* no extra top space above gallery */
    }
    
    /* Make individual project pages full-width like index/projects */
    .project-detail-container {
        max-width: none;
        margin: 0;
    }

    /* Product pages: tighten top spacing and align back arrow with hamburger */
    .project-detail-section {
        padding: 0.75rem 1rem 2rem 1rem;
    }

    .project-header {
        padding: 1rem 0 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    form {
        max-width: none;
        margin: 0;
        padding: 2rem 0;
    }
    
    /* Full width consultation section on desktop */
    #consultation-section {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 6rem 1rem 2rem 1rem !important;
    }
    
    /* About content styling for full width layout */
    .about-content {
        text-align: center !important;
        margin-bottom: 3rem !important;
    }
    
    .about-content p {
        /* font-size: 1rem !important; */
        line-height: 1.4 !important;
        margin: 0 !important;
        margin-bottom: 2rem !important;
    }
    
    /* Desktop-only illustration under about copy */
    .about-illustration {
        display: none;
        width: 100%;
    }
    .about-illustration img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    .about-illustration .thank-you-text {
        text-justify: center;
        margin-top: 4rem;
        margin-left: 2rem;
        font-size: 2rem;
        color: #333;
        font-weight: 400;
        display: block;
        width: 100%;
    }
    @media (min-width: 1024px) {
        .about-illustration .thank-you-text {
            text-align: center;
            justify-content: center;
        }
    }
    @media (max-width: 1023px) {
        .about-illustration { display: none !important; }
    }
    @media (min-width: 1024px) {
        .about-illustration.desktop-only { display: block; }
        /* Visual sizing/placement to match mock */
        .inquire-active .about-illustration { margin-top: 1rem; }
    }
    
    /* Desktop: ensure the left column ends with the illustration centered */
    @media (min-width: 1024px) {
        .inquire-active main { 
            padding-bottom: 8rem !important; /* allow more scrolling above illustration */
        }
        .inquire-active .about-illustration.desktop-only {
            display: flex !important;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 12rem); /* center within viewport */
            margin: 0;/
            margin-top: -2rem;
            /* natural scroll; no snap */
        }
        .inquire-active .about-illustration.desktop-only img {
            max-height: 80vh; /* allow larger image while keeping padding around */
            width: auto;
        }
    }
    
    .info-button {
        background: none !important;
        border: none !important;
        color: #000000 !important;
        font-size: .7rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        padding: 0.5rem 1rem !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
    }
    
    .info-button:hover,
    .inquire-button:hover {
        background: rgba(0, 0, 0, 0.05) !important;
    }
    
    .inquire-button {
        background: none !important;
        border: none !important;
        color: #000000 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        padding: 0.5rem 1rem !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
    }
    
    /* Hero section buttons positioning */
    .hero-buttons {
        display: flex !important;
        gap: 2rem !important;
        margin: 2rem auto 0 auto !important;
        z-index: 20 !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero .info-button,
    .hero .inquire-button,
    .hero .clients-button {
        position: relative !important;
        display: block !important;
        z-index: 20 !important;
        width: fit-content !important;
        text-align: center !important;
        line-height: 1 !important;
        vertical-align: baseline !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0.5rem 1rem !important;
        margin: 0 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        background: none !important;
        border: none !important;
        color: #000000 !important;
        border-radius: 4px !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        font-family: inherit !important;
        font-style: normal !important;
        font-variant: normal !important;
        text-transform: none !important;
    }
    
    /* Ensure hero section has proper layout */
    .hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center !important;
        position: relative !important;
        z-index: 1 !important;
        padding-top: 4rem !important;
        /* removed debug background */
        background: transparent !important;
    }
    
    /* Hero slide animation when modal is open */
    .hero.slide-left {
        transform: translateX(-20%) !important;
        overflow-y: auto !important;
        height: 100vh !important;
        padding-bottom: 80vh !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Ensure hero content is visible when modal is open */
    .hero.slide-left .gallery-container,
    .hero.slide-left .hero-buttons {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* Force hero content to be visible */
    .hero.slide-left > * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure left side is scrollable when modal is open */
    .hero.slide-left {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        /* removed debug background */
        background: transparent !important;
    }
    
    /* REMOVED: These rules conflict with inquire-active styles */
    /* .inquire-modal.active ~ .hero,
    .inquire-modal.active + .hero {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(-20%) !important;
        overflow-y: scroll !important;
        height: 100vh !important;
        padding-bottom: 80vh !important;
        position: relative !important;
        z-index: 2 !important;
    } */
    
    /* REMOVED: These rules conflict with inquire-active styles */
    /* .inquire-modal.active ~ .hero::after,
    .inquire-modal.active + .hero::after {
        content: "Scissor is a creative agency focused on progressive programming in the fine arts.\A NYC";
        position: relative;
        display: block;
        margin-top: 60vh;
        white-space: pre-line;
        text-align: left;
        font-size: 1.5rem;
        line-height: 1.4;
        color: #000;
        max-width: 80%;
        padding: 1rem;
    } */
    
    /* About text below hero when modal is open */
    .hero.slide-left::after {
        content: "Scissor is a creative agency focused on progressive programming in the fine arts.\A NYC";
        position: relative;
        display: block;
        margin-top: 40vh;
        white-space: pre-line;
        text-align: left;
        font-size: 1.5rem;
        line-height: 1.4;
        color: #000;
        max-width: 80%;
        padding: 1rem;
    }
    
    /* Form styling for centered layout */
    .form-header {
        text-align: center !important;
        margin-bottom: 2rem !important;
    }
    
    .consultation-form {
        max-width: 600px !important;
        width: auto !important;
        margin: 0 auto !important;
    }
    
    /* REMOVED: These rules conflict with inquire-active styles */
    /* .inquire-modal.active ~ #consultation-section {
        display: none !important;
    } */
    
    /* Hide consultation section on desktop by default */
    @media (min-width: 1024px) {
        #consultation-section {
            display: none !important;
            position: absolute !important;
            left: -9999px !important;
            visibility: hidden !important;
            opacity: 0 !important;
            z-index: -1 !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
        }
    }

    /* Hide consultation section on mobile as well */
    @media (max-width: 1023px) {
        #consultation-section {
            display: none !important;
            position: absolute !important;
            left: -9999px !important;
            visibility: hidden !important;
            opacity: 0 !important;
            z-index: -1 !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
        }
    }
    
    /* REMOVED: These rules conflict with inquire-active styles */
    /* .inquire-modal.active ~ #consultation-section,
    .inquire-modal.active + #consultation-section,
    .inquire-modal.active ~ section,
    .inquire-modal.active + section {
        display: none !important;
        position: absolute !important;
        left: -9999px !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: -1 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    } */
    
    /* REMOVED: These rules conflict with inquire-active styles */
    /* .inquire-modal.active ~ *:not(.hero),
    .inquire-modal.active + *:not(.hero),
    .inquire-modal.active ~ footer,
    .inquire-modal.active + *:not(.hero),
    .inquire-modal.active ~ footer,
    .inquire-modal.active + footer,
    .inquire-modal.active ~ #consultation-section,
    .inquire-modal.active + #consultation-section {
        display: none !important;
        position: absolute !important;
        left: -9999px !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: -1 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    } */
    
    /* Ensure modal overlay covers properly */
    .inquire-modal .modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 10000 !important;
        pointer-events: none !important;
    }
    
    .inquire-modal .modal-overlay:hover {
        pointer-events: auto !important;
    }
    
    /* Ensure gallery is centered */
    .gallery-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Modal Styles */
    .inquire-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        pointer-events: none;
    }
    
    .inquire-modal.active {
        display: block !important;
        pointer-events: auto !important;
    }
    
    .inquire-modal .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }
    
    .inquire-modal .modal-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 65%;
        height: 100vh;
        background: white;
        overflow-y: auto;
        padding: 2rem;
        box-sizing: border-box;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10001;

    }
    
    .inquire-modal.active .modal-content {
        right: 0 !important;
    }
    
    /* Ensure the form inside the inquire panel can use the full width */
    .inquire-modal .modal-content .consultation-form {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .inquire-modal .modal-content .wizard-mode {
        max-width: none !important;
    }
    
    /* Mobile: full width panel */
    @media (max-width: 1023px) {
        .inquire-modal .modal-content {
            width: 100%;
            background: white;
        }

        /* Mobile: wizard/full forms use solid white without blur inside the inquire modal */
        .inquire-modal .modal-content .consultation-form.wizard-mode,
        .inquire-modal .modal-content .consultation-form.full-mode {
            background: white !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }
    }
    
    /* Force left side to be scrollable container when modal is active */
    /* REMOVED: These rules conflict with inquire-active styles */
    /*     /* REMOVED: These rules conflict with inquire-active styles */
    /* .inquire-modal.active ~ .hero,
    .inquire-modal.active + .hero {
        width: 50% !important;
        height: 100vh !important;
        overflow-y: scroll !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        background: white !important;
        z-index: 1 !important;
        padding: 2rem !important;
    } */ */
    

    
    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #666;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .modal-close:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #000;
    }
    
    .modal-header {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .modal-header h2 {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }
    
    .modal-header p {
        color: #666;
        margin: 0;
    }
    
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .hero {
        padding: 0 1rem 5rem 1rem;
    }
    
    /* Smaller gallery navigation buttons on desktop */
    .gallery-nav {
        width: 36px;
        height: 36px;
        opacity: 0;
        visibility: hidden;
    }
    
    .gallery-nav.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .gallery-nav i {
        font-size: 18px;
    }
    

    

    

    
    /* Simple desktop navigation - just fix positioning */
    .nav-links {
        display: flex;
        flex-direction: row;
        gap: 3rem;
        align-items: center;
    }
    
    .nav-menu-container {
        /* Desktop: keep container invisible as well */
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        background: transparent;
        border: 0;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
    }
    
    .nav-menu-container a {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #000;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .nav-menu-container a:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: scale(1.02);
    }
    

    

    

    

    

    

    

    

    /* Full-width projects layout on desktop */
    .projects-section {
        padding-left: 0;
        padding-right: 0;
    }

    .projects-container {
        max-width: none;
        margin: 0;
    }

    .projects-grid {
        max-width: none;
        margin: 0;
        padding: 0 1rem;
    }

    /* Hide mobile thumbnails on desktop */
    .projects-thumbs { display: none; }
} 

/* Desktop 50/50 split layout for projects page */
@media (min-width: 1024px) {
    .projects-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: start;
        padding: 0 1rem;
    }

    .current-project {
        position: sticky;
        top: var(--projects-sticky-offset);
        align-self: start;
        padding-right: 1rem;
        cursor: pointer;
    }

    .current-project-media {
        display: block;
        width: 100%;
        aspect-ratio: 3 / 2; /* slightly taller */
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        margin-bottom: 0.75rem;
        text-decoration: none;
        cursor: pointer;
        pointer-events: none; /* let parent capture clicks anywhere including image */
    }

    .current-project-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: grayscale(0%);
        transition: transform 0.3s ease;
        pointer-events: none; /* ensure image doesn't swallow events */
    }

    .current-project-media:hover img {
        transform: scale(1.01);
    }

    .current-project-info h2 {
        font-size: 1.5rem;
        margin: 0.25rem 0 0.5rem 0;
    }

    .current-project-info {
        color: #4b5563;
    }

    .projects-list {
        padding-left: 1rem;
        padding-top: var(--projects-sticky-offset); /* align with left sticky preview top offset */
        border-left: 1px solid #e5e7eb;
    }

    .projects-list .projects-grid {
        display: block;
        padding: 0;
        max-width: none;
    }

    /* Make right column a minimal list with small thumbs */
    .projects-list .project-item {
        display: grid;
        grid-template-columns: 96px 1fr;
        gap: 0.75rem;
        align-items: center;
        padding: 0.25rem 0.25rem;
        margin: 0 0 0.5rem 0;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: none;
        background: transparent;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    .projects-list .project-item.selected {
        background: #f8fafc;
    }

    .projects-list .project-item + .project-item {
        margin-top: 0.75rem;
    }

    .projects-list .project-item:hover {
        background: #fafafa;
    }

    .projects-list .project-title {
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 1rem;
        margin: 0;
    }

    .projects-list .project-thumb {
        width: 96px;
        height: 66px;
        border-radius: 6px;
        overflow: hidden;
        margin: 0;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
    }
    .projects-list .project-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .projects-list .project-meta {
        display: none;
    }
}

/* Form Mode Toggle - Matching Navigation Style */
.form-mode-toggle {
    display: none;
}

.toggle-btn {
    display: none;
}

.toggle-btn span {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.toggle-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.02);
}

.toggle-btn.active {
    display: none;
}

.toggle-btn i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.toggle-btn:hover i {
    transform: scale(1.05);
}

.toggle-btn.active i {
    transform: scale(1.05);
}

/* Wizard Form Styles */
.wizard-mode {
    max-width: 800px;
    margin: 0 auto;
}

/* New Form Tabs */
.form-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 480px;
    margin: 1.5rem auto 1.75rem auto;
}

.form-tab {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    font-weight: 700;
    color: #111;
    cursor: pointer;
}

.form-tab:focus { outline: none; }

.form-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 50%;
    background: #111;
    transition: transform 0.3s ease;
    transform: translateX(0%);
}

.form-tabs.full-active .form-tab-indicator { transform: translateX(100%); }

.wizard-progress {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: var(--border-radius-xs);
    margin-bottom: var(--spacing-2xl);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #000000;
    border-radius: var(--border-radius-xs);
    transition: width var(--transition-slow);
    width: 16.67%; /* 1/6 steps */
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.step { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; flex: 1; position: relative; }

.step-number { display: none !important; }

.step.active .step-number { display: none !important; }

.step.completed .step-number { display: none !important; }

.step-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding-bottom: 6px;
    border-bottom: 3px solid transparent; /* underline indicator */
}

.step.active .step-title {
    color: #000000;
    font-weight: 600;
    border-bottom-color: #000000; /* active underline */
}

.step.completed .step-title {
    color: #000000 !important;
}

/* Guard against mobile overrides */
.progress-steps .step.completed .step-number { color: #000000 !important; }
.progress-steps .step.completed .step-title { color: #000000 !important; }

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
    margin-top: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    margin-bottom: 0.5rem;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 0.5rem;
    color: #111827;
}

.step-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 11px;
    line-height: 1.6;
}

/* Form Grid for Wizard */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    min-width: 0; /* Allow shrinking */
    overflow: visible; /* Allow content to overflow if needed */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #374151;
    font-size: 11px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--padding-md);
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
}

.form-group select {
    width: 100%;
    padding: var(--padding-sm) 2rem var(--padding-sm) var(--padding-md); /* Custom padding for selects */
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
}

/* Select-specific styling to prevent text truncation */
.form-group select {
    padding: 0.5rem 2rem 0.5rem 0.75rem !important; /* Reduced vertical padding, extra right padding for arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 0; /* Allow shrinking */
    max-width: none; /* Allow expanding */
    line-height: 1.2; /* Tighter line height for better text fit */
    height: auto; /* Allow natural height */
    min-height: 2.5rem; /* Minimum height for consistency */
}

/* Ensure dropdown options are fully visible */
.form-group select option {
    padding: 0.5rem;
    white-space: normal;
    word-wrap: break-word;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Underline style for inputs, textareas, and single-selects */
.form-group input:not([type="file"]),
.form-group textarea,
.form-group select:not([multiple]) {
    border: none !important;
    border-bottom: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: none !important;
}

/* Keep right padding for single-select to avoid arrow overlap */
.form-group select:not([multiple]) {
    padding-right: 2rem !important;
}

/* Ensure single-select height matches text input height */
.form-group select:not([multiple]) {
    min-height: 0 !important;
    height: 40px !important;
    line-height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Unify height of underline inputs and single selects */
.form-group input:not([type="file"]),
.form-group select:not([multiple]) {
    height: 40px !important;
    line-height: 40px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Focus states for underline fields */
.form-group input:not([type="file"]):focus,
.form-group textarea:focus,
.form-group select:not([multiple]):focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom-color: #000000 !important;
}

/* Error state for underline fields */
.form-group input.error:not([type="file"]),
.form-group select.error:not([multiple]),
.form-group textarea.error {
    border-bottom-color: #ef4444 !important;
    box-shadow: none !important;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    justify-items: start;
    align-items: start;
    
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
    padding: 0.125rem 0;
}

.checkbox-grid input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Step Actions */
.step-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
    justify-items: stretch; /* ensure children fill columns on first paint */
    padding-top: 1rem;
    border-top: none;
}

/* Subtle text-only close button below actions */
.btn-close-text {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: #9ca3af; /* light gray */
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.25rem;
    text-align: center;
    cursor: pointer;
}
.btn-close-text:hover { color: #6b7280; }

/* Hide the text Close on desktop */
@media (min-width: 1024px) {
    .btn-close-text { display: none !important; }
}

/* Add more breathing room on mobile */
@media (max-width: 1023px) {
    .btn-close-text { margin-top: 1.25rem; }
}

/* Hide scrollbars globally but keep scrolling functional */
html, body { -ms-overflow-style: none; scrollbar-width: none; }
* { scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

/* Remove potential gutter causing white gap on mobile when scrollbars are hidden */
@media (max-width: 1023px) {
    html, body { 
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch; 
        overscroll-behavior-y: none; 
        background-color: #ffffff; /* match app bg to hide gutter */
    }
    .hero, main, .nav-links, .inquire-form, .nav-submenu-list { scrollbar-gutter: auto; background-color: #ffffff; }
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: var(--padding-md) var(--padding-xl);
    border: 1px solid transparent; /* align heights with bordered sibling */
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0; /* allow grid to size columns evenly on first paint */
    min-width: 0;
}

/* Ensure step buttons stretch equally inside grid columns */
.step-actions > button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    justify-self: stretch;
}

/* New: reveal button beside next */
.btn-additional-info {
    padding: var(--padding-md) var(--padding-xl);
    border: 1px solid transparent; /* match height with primary button */
    background: #f3f4f6; /* match .btn-prev */
    color: #374151;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0; /* allow grid to size columns evenly on first paint */
}
.btn-additional-info:hover { background: #e5e7eb; }

.btn-prev {
    background: #f3f4f6;
    color: #374151;
}

.btn-prev:hover {
    background: #e5e7eb;
}

.btn-next,
.btn-submit {
    background: #000000;
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background: #333333;
    transform: translateY(-1px);
}

/* Glass style buttons to match menu/submenu */
.btn-prev,
.btn-next,
.btn-submit,
.btn-additional-info {
    background: rgba(255, 255, 255, 0.35);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-prev:hover,
.btn-next:hover,
.btn-submit:hover,
.btn-additional-info:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Submit should look identical to Next Step */

/* Full Form Mode */
.full-mode {
    display: none !important;
}

.full-mode.active {
    display: block !important;
}

/* Wizard Form Mode */
.wizard-mode {
    display: block;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .form-mode-toggle {
        flex-direction: column;
        max-width: 300px;
    }
    /* Keep titles aligned tightly below the progress bar on mobile */
    .wizard-step.active { margin-top: 0.25rem !important; }
    .step-content h3 { margin-top: 0 !important; }
    
    .toggle-btn {
        justify-content: center;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step {
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .step-title {
        font-size: 0.7rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions { grid-template-columns: 1fr; justify-items: stretch; }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        flex: 0 0 auto;
    }
    
    .step-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        flex: none;
        width: 100%;
    }
    
    .step-title {
        font-size: 0.8rem;
    }
}

/* Wizard Form Specific Styles */
.consultation-form.wizard-mode {
    background: white;
    padding: 2rem;
    /* border-radius: 12px; */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: block !important;
}

.consultation-form.full-mode {
    background: white;
    padding: 2rem;
    /* border-radius: 12px; */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Required field indicator */
.form-group label[for*="name"]::after,
.form-group label[for*="email"]::after {
    content: "*";
    color: #ef4444;
    margin-left: 0.25rem;
}

/* File upload styling */
.form-group input[type="file"] {
    padding: 0.5rem;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #000000;
    background: #f3f4f6;
}

/* Multiple select styling */
.form-group select[multiple] {
    height: 120px;
}

/* Fieldset styling for wizard */
.form-group fieldset {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group legend {
    font-weight: 600;
    color: #374151;
    padding: 0 .75rem;
    font-size: 0.9rem;
    margin-left: 0.25rem;
    margin-bottom: 0rem;
    background: #ffffff;
    line-height: 1.35;
    position: relative;
    top: 0px;
    text-align: left;
}

/* Additional Wizard Form Improvements */
.wizard-step .form-group input[type="file"] {
    padding: 1rem;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-step .form-group input[type="file"]:hover {
    border-color: #000000;
    background: #f3f4f6;
}

.wizard-step .form-group select[multiple] {
    height: 120px;
    padding: 0.5rem;
}

/* Step content spacing */
.step-content {
    padding: 0 1rem;
}

/* Progress bar improvements */
.progress-bar {
    position: relative;
    background: linear-gradient(90deg, #e5e7eb 0%, #d1d5db 100%);
}

.progress-fill {
    background: linear-gradient(90deg, #000000 0%, #000000 100%);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: #000000;
    border-radius: 50%;
    transform: translateX(50%);
}

/* Step number improvements */
.step-number {
    position: relative;
    z-index: 2;
}

.step.completed .step-number {
    color: #6b7280;
}

.step.completed .step-number::after {
    content: none;
}

/* Form validation improvements */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Success message improvements */
.success-message {
    animation: slideIn 0.5s ease;
}

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

/* Mobile improvements */
@media (max-width: 640px) {
    .form-mode-toggle {
        max-width: 100%;
        margin: 1.5rem 0;
        gap: 0.5rem;
    }

    .toggle-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; max-width: none; }
    .toggle-btn span { gap: 0.375rem; }

    .wizard-progress { margin-bottom: 1.5rem; }

    /* Compact numeric stepper in a single horizontal row */
    .progress-steps {
        display: flex !important;
        flex-direction: row !important;
        gap: 0;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap !important;
        padding: 0 6px;
    }
    .step { flex: 1 1 auto !important; width: auto !important; align-items: center; padding: 4px 2px; min-width: 0; }
    .step-number { width: auto; height: auto; font-size: 0.9rem; margin-bottom: 0; }
    .step-title { display: none; }

    .step-content { padding: 0 0.5rem; }
    .step-content h3 { font-size: 1.125rem; }

    .form-grid { gap: 1rem; grid-template-columns: 1fr; }
    .checkbox-grid { gap: 0.75rem; }
    .form-group select { font-size: 1rem; padding: 0.75rem 2rem 0.75rem 0.75rem; }
}

/* Accessibility improvements */
.toggle-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    background: rgba(0, 0, 0, 0.05);
}

.btn-prev:focus,
.btn-next:focus,
.btn-submit:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.step:focus-within .step-number {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .form-mode-toggle,
    .wizard-progress,
    .step-actions {
        display: none !important;
    }
    
    .wizard-step {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .consultation-form {
        box-shadow: none !important;
        border: 1px solid #000000 !important;
    }
}



/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .hero,
.inquire-modal.active + .hero {
    width: 50% !important;
    height: 100vh !important;
    overflow-y: auto !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    background: white !important;
    z-index: 1 !important;
    padding: 2rem !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
} */

/* Global square corners override */
:root {
    --border-radius-xs: 0;
    --border-radius-sm: 0;
    --border-radius-md: 0;
    --border-radius-lg: 0;
    --border-radius-xl: 0;
    --border-radius-full: 0;
}
*, *::before, *::after { border-radius: 0 !important; }

/* Remove form tab/toggle UI for this release */
.form-tabs,
.form-mode-toggle,
.form-tab,
.form-tab-indicator,
.toggle-btn {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    border: 0 !important;
}

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .gallery-container,
.inquire-modal.active + .gallery-container {
    width: 100% !important;
    max-width: none !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .gallery,
.inquire-modal.active + .gallery {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .gallery-slide,
.inquire-modal.active + .gallery-slide {
    justify-content: flex-start !important;
    align-items: flex-start !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .gallery-slide img,
.inquire-modal.active + .gallery-slide img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .hero-buttons,
.inquire-modal.active + .hero-buttons {
    justify-content: flex-start !important;
    margin-top: 2rem !important;
    width: 100% !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .about-content,
.inquire-modal.active + .hero-buttons {
    text-align: left !important;
    margin-top: 2rem !important;
    width: 100% !important;
    padding: 0 !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ footer,
.inquire-modal.active + footer {
    position: fixed !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 50% !important;
    height: auto !important;
    background: var(--yellow) !important;
    z-index: 2 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    box-sizing: border-box !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active .modal-content {
    right: 0 !important;
    width: 50% !important;
    height: 100vh !important;
    overflow-y: auto !important;
    padding: 2rem !important;
    box-sizing: border-box !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ #consultation-section,
.inquire-modal.active + #consultation-section {
    display: none !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active .modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 9999 !important;
    pointer-events: none !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .gallery-nav,
.inquire-modal.active + .gallery-nav {
    position: relative !important;
    margin: 0 1rem !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .gallery-dots,
.inquire-modal.active + .gallery-nav {
    justify-content: flex-start !important;
    margin-top: 1rem !important;
    width: 100% !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ section,
.inquire-modal.active + section {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .hero,
.inquire-modal.active + .hero {
    max-width: none !important;
    margin: 0 !important;
} */

/* About content - hidden by default, shown when modal is active */
.about-content {
    display: none;
    text-align: left;
    margin-top: 2rem;
    width: 100%;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1.4;
    color: #000;
}

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .about-content,
.inquire-modal.active + .about-content {
    display: block !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ section,
.inquire-modal.active + section {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
} */

/* REMOVED: These rules conflict with inquire-active styles */
/* .inquire-modal.active ~ .hero,
.inquire-modal.active + .hero {
    max-width: none !important;
    margin: 0 !important;
} */

/* Page Shift Layout - When Inquire is clicked */
body.inquire-active {
    overflow: hidden; /* Prevent background scrolling */
}

/* Mobile scroll lock: prevent body from scrolling and keep position */
@media (max-width: 1023px) {
    .scroll-lock {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        overflow: hidden !important;
    }
    .scroll-lock .inquire-form {
        overflow: visible !important; /* allow form-body to handle scrolling */
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }
    .inquire-form {
        overflow: visible; /* allow form-body to handle scrolling */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Left column: make main the fixed, scrollable container (includes footer) */
.inquire-active main {
    position: fixed;
    top:-80px;
    left: 0;
    width: 45vw;
    height: 100vh;
    overflow-y: auto;
    padding: 0 3rem 10rem 3rem; /* raise further to align with right heading */
    box-sizing: border-box;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.inquire-active main::-webkit-scrollbar { display: none; } /* WebKit */

/* Form appears on the right side */
.inquire-form {
    position: fixed;
    top: 0;
    right: -55vw;
    width: 55vw;
    height: 100vh;
    background: white;
    overflow-y: auto;
    padding: 6rem 2rem 2rem 2rem;
    z-index: 6000; /* below nav-links (12000) and hamburger (5001) */
    transition: right 0.85s cubic-bezier(0.33, 1, 0.68, 1);
    box-sizing: border-box;
    will-change: right;
}

.inquire-active .inquire-form {
    right: 0;
}

/* Close button for inquire form - now using hamburger menu structure */
.inquire-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #000;
    font-size: 22px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 10001;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0;
}

/* Style the hamburger spans for the close button */
.inquire-close-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #000 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
    margin: 0;
}

/* Transform to X when active (always active for close button) */
.inquire-close-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -1px;
    margin-left: -9px;
    width: 18px !important;
    height: 2px !important;
    border-radius: 1px;
}

.inquire-close-btn span:first-child {
    transform: rotate(45deg) !important;
    background: linear-gradient(to right, #000 0px, #000 6px, transparent 6px, transparent 12px, #000 12px, #000 18px) !important;
}

.inquire-close-btn span:last-child {
    transform: rotate(-45deg) !important;
    background: linear-gradient(to right, #000 0px, #000 6px, transparent 6px, transparent 12px, #000 12px, #000 18px) !important;
}

.inquire-close-btn:hover { background: none; }
.inquire-close-btn:active { transform: scale(0.96); }

/* Desktop-only: gentle pre-reveal (peek) state before fully opening */
@media (min-width: 1024px) {
    body.inquire-peek:not(.inquire-active) .inquire-form {
        right: -35vw; /* show ~20vw as a teaser */
    }
}

/* Desktop: align inquire form header with main image top edge */
@media (min-width: 1024px) {
    .inquire-form {
        padding-top: 5.75rem; /* reduce top spacing for better balance */
    }
}

/* Glass card around inquiry form (matches nav menu card) */
.inquire-form .inquire-card {
    position: relative;
    margin: 0; /* full-bleed on mobile */
    padding: 0.5rem 0.75rem; /* even spacing inside card, like menu */
    border-radius: 16px;
}

.inquire-form .inquire-card::before {
    content: "";
    position: absolute;
    inset: -10px; /* extend slightly beyond inner padding, like menu */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.6);
    border-radius: 20px; /* a bit larger than inner radius to envelop */
    z-index: -1;
}

@media (min-width: 1024px) {
    .inquire-form .inquire-card {
        margin: 0 2rem; /* more room on desktop */
        padding: 0.75rem 1rem;
        border-radius: 16px;
    }
    /* Keep the header inside the card padding on desktop */
    .inquire-form .inquire-card .form-header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Ensure inner form uses transparent background so glass shows */
.inquire-form .consultation-form.wizard-mode,
.inquire-form .consultation-form.full-mode {
    background: transparent !important;
    box-shadow: none !important;
}

/* Hero section inside left column (not fixed; flows within main) */
.inquire-active .hero {
    width: 100%;
    max-width: none;
    margin: 0;
    margin-top: -1rem;
    padding: 0 !important;
    min-height: auto !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Smooth scaling and movement animation */
    transform: scale(0.972) translateX(0%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

/* Remove extra bottom padding added by slide-left on desktop when inquire is active */
.inquire-active .hero.slide-left {
    padding-bottom: 0 !important;
}

/* Gallery container centered when inquire is active */
.inquire-active .gallery-container {
    width: 100%;
    max-width: none;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Gallery centered when inquire is active */
.inquire-active .gallery {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

/* Gallery slides centered when inquire is active */
.inquire-active .gallery-slide {
    justify-content: center;
    align-items: center;
}

/* Gallery slides images centered when inquire is active */
.inquire-active .gallery-slide img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Hero buttons centered when inquire is active */
.inquire-active .hero-buttons {
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* About content centered when inquire is active */
.inquire-active .about-content {
    display: block;
    text-align: left; /* left-justify about text */
    margin-top: 0.5rem; /* moved up */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    padding: 0 0 2rem 0;
    font-size: 2.75rem; /* larger */
    line-height: 1.4;
    color: #000;
    position: relative;
    z-index: 15000;
}

.inquire-active .about-content p { text-align: left; margin: 0; }

/* Ensure About content stays visible above nav overlays on desktop */
@media (min-width: 1024px) {
    body.nav-open .about-content {
        position: relative !important;
        z-index: 15001 !important;
    }
}

/* Desktop: footer only on left side during inquire view; hidden on index */
@media (min-width: 1024px) {
    /* Hide footer on index state (desktop) when page has inquire */
    body.has-inquire:not(.inquire-active) footer {
        display: none !important;
    }

    /* Show footer fixed at bottom of left column during inquire */
    body.has-inquire.inquire-active footer {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 45vw;
        height: auto;
        background: transparent;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        box-sizing: border-box;
        transform: translateY(100%); /* hidden until scrolled to bottom */
        transition: transform 0.3s ease;
        text-align: left;
    }
}

/* Let the form use the full panel width when in inquire panel */
.inquire-form .consultation-form { max-width: none !important; width: 100% !important; }
.inquire-form .wizard-mode { max-width: none !important; }

/* Reveal footer when left column has reached bottom */
body.inquire-active.footer-visible footer {
    transform: translateY(0);
}

/* Clients button styling (replaces Info/Inquire buttons) */
.clients-button {
    background: none;
    border: none;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clients-button:hover { background: rgba(0, 0, 0, 0.05); }

/* Button visibility: show Inquire by default; hide Clients on left side */
.hero .clients-button { display: none !important; }
body.inquire-active .hero .inquire-button { display: none !important; }

/* Show Inquire only on mobile, hide on desktop */
@media (min-width: 1024px) {
    .hero .inquire-button { display: none !important; }
}

/* Mobile: show about text under the main gallery */
@media (max-width: 1023px) {
    .hero .about-content {
        display: block !important;
        margin-top: -7.24rem;
        margin-bottom: 3rem;
        padding: 2rem 2rem 2rem 2rem;
        text-align: left;
        position: relative;
        z-index: 2;
    }
    .hero .about-content p { margin: 0; }
}
@media (max-width: 1023px) {
    .hero .inquire-button { display: inline-block !important; }
}

/* Gallery navigation arrows positioned on left and right of the left column when inquire is active */
.inquire-active .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.inquire-active .prev-btn {
    left: 1rem;
}

.inquire-active .next-btn {
    right: 1rem;
}

/* Gallery dots centered when inquire is active */
.inquire-active .gallery-dots {
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

/* When menu is open, de-prioritize inquire panel so menu can open atop it */
body.nav-open .inquire-form {
    z-index: 3000 !important; /* below nav-links (12000) */
    pointer-events: none; /* avoid capturing clicks while menu is open */
}

/* Ensure hamburger/logo stay clickable above left column when form is open (desktop) */
@media (min-width: 1024px) {
    body.inquire-active .hamburger-menu,
    body.inquire-peek .hamburger-menu,
    body.inquire-active .logo,
    body.inquire-peek .logo {
        position: relative !important;
        z-index: 15001 !important;
        pointer-events: auto !important;
    }
}

/* Form styling */
.inquire-form .form-header {
    text-align: left;
    margin-bottom: 2rem;
}

/* Inquire form typography: align with project page hierarchy */
.inquire-form h1,
.inquire-form h2,
.inquire-form h3 {
    font-weight: 600;
    color: var(--text-color);
}

/* Panel title */
.inquire-form .form-header h2 {
    font-size: 1.5rem; /* match .project-details h2 */
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.inquire-form .form-header p {
    font-size: var(--font-size-base);
    color: #4b5563; /* match project meta tone */
    margin: 0;
}

/* Field labels: reduce weight to align with project text rhythm */
.inquire-form .form-group label,
.inquire-form label {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.inquire-form .consultation-form {
    max-width: 600px;
    width: auto;
    margin: 0 auto;
}

/* Form close button */
.form-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.form-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Explicitly hide the in-page consultation section on mobile so the page ends at Inquire */
@media (max-width: 1023px) {
    #consultation-section {
        display: none !important;
        position: absolute !important;
        left: -9999px !important;
        visibility: hidden !important;
        opacity: 0 !important;
        z-index: -1 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Mobile override: disable 50/50 split and restore single scroll */
@media (max-width: 1023px) {
    /* Return main flow to normal on mobile when inquire is active */
    .inquire-active main {
        position: static;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 0;
    }

    /* Make inquire form a full-width overlay panel on mobile */
    .inquire-form {
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        right: -100% !important;
        padding: 0 !important; /* full-bleed */
        z-index: 10000 !important;
        overflow: visible; /* allow form-body to scroll properly */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .inquire-active .inquire-form {
        right: 0 !important;
    }

    /* Make the inquire panel background slightly transparent on mobile when active */
    .has-inquire.inquire-active .inquire-form {
        background: rgba(255, 255, 255, 0.96) !important;
    }

    /* Footer should not be fixed on mobile in inquire-active state */
    .inquire-active footer {
        position: static;
        width: 100%;
        transform: none;
        left: auto;
        bottom: auto;
        padding: 1rem;
    }

    /* Fixed close button at top, scrollable form content below */
    .inquire-form {
        display: flex;
        flex-direction: column;
        padding-top: 0;
    }

    .inquire-close-btn {
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 10001;
        display: none; /* Hidden by default */
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Show close button only when mobile inquiry form is active */
    body.inquire-active .inquire-close-btn {
        display: flex !important;
        opacity: 1;
        transition-delay: 0.85s; /* Wait for form opening animation to complete */
    }

    .inquire-form .form-header {
        margin-bottom: 1rem;
        margin-top: 0;
        padding: 1rem 0 0 0; /* align title closer to progress bar and close button */
    }

    .inquire-form .form-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 calc(6rem + env(safe-area-inset-bottom, 0px)) 0; /* increased space for buttons and safe area */
        margin: 0;
        min-height: 0; /* allow flex item to shrink below content size */
        max-height: calc(100vh - 5.5rem); /* reduced header space to allow more content */
        /* Hide scrollbar but keep scroll functionality */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* Internet Explorer 10+ */
    }
    
    .inquire-form .form-body::-webkit-scrollbar { 
        display: none; /* WebKit */
    }

    /* Mobile: remove the card around the form and align content to header */
    .inquire-form .consultation-form.wizard-mode,
    .inquire-form .consultation-form.full-mode {
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Mobile: wizard/full forms use solid white without blur */
    .inquire-form .consultation-form.wizard-mode,
    .inquire-form .consultation-form.full-mode {
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .inquire-form .wizard-mode {
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .inquire-form .wizard-mode .step-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fix mobile dropdown positioning in inquire form */
    .inquire-form .form-group {
        position: relative;
        z-index: 1;
        isolation: isolate; /* Create new stacking context */
    }

    .inquire-form .form-group select {
        position: relative;
        z-index: 2;
        /* Ensure select dropdown appears above other elements */
        transform: translateZ(0); /* Force hardware acceleration */
    }

    /* Ensure dropdown options appear above other content */
    .inquire-form .form-group select option {
        position: relative;
        z-index: 10;
    }

    /* Fix for mobile native dropdown positioning */
    .inquire-form .form-group select:focus {
        z-index: 1000;
        position: relative;
    }

    /* Ensure hero stacks vertically so buttons appear below gallery */
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative; /* ensure absolute-positioned buttons anchor to hero */
    }

    .hero-buttons {
        /* Overlay bottom-center on mobile to match desktop */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 24px;
        margin: 0;
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 5;
    }

    /* Make Inquire button appear as plain text on mobile */
    .hero .inquire-button {
        background: none !important;
        border: none !important;
        color: #000 !important;
        padding: 0.5rem 0.75rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        height: auto !important;
        min-height: 0 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        position: relative !important;
        top: -6px; /* nudge inquire up a bit more */
    }
}

/* Temporarily hide the site footer */
footer {
    display: none !important;
    visibility: hidden !important;
}

/* Mobile active inquire (homepage): force semi-transparent backgrounds */
@media (max-width: 1023px) {
    body.has-inquire.inquire-active.scroll-lock.footer-visible .inquire-form {
        background: white !important;
    }

    body.has-inquire.inquire-active.scroll-lock.footer-visible .inquire-form .consultation-form.wizard-mode,
    body.has-inquire.inquire-active.scroll-lock.footer-visible .inquire-form .consultation-form.full-mode {
        background: white !important;
    }
}

@media (min-width: 1024px) {
    .inquire-close-btn { display: none !important; }
    /* Increase gap between panel title and first step heading on desktop */
    .inquire-form .form-header { margin-top: -2.5rem; }
}

/* Ensure the about illustration never appears on mobile */
@media (max-width: 1023px) {
    .about-illustration,
    .about-illustration.desktop-only {
        display: none !important;
    }
}