/* Featured project label */
.featured-project-content .featured-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--color-light-grey);
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.01em;
}
/* Reset and Base Styles */
:root {
    /* Color Palette */
    --color-white: #ffffff;
    --color-dark-grey: #1a1a1a;
    --color-medium-grey: #333;
    --color-light-grey: #666;
    --color-lighter-grey: #999;
    --color-accent-cream: #f7eedf;
    --color-background: #fafafa;
    
    /* Spacing Scale */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Typography Scale */
    --font-size-body: 16px;
    --font-size-body-lg: 18px;
    --font-size-h3: 22px;
    --font-size-h2: 32px;
    --font-size-h1: 56px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

}

/* Ensure all logo canvases are non-clickable */
.logo-container canvas,
.rive-logo,
.hero-rive-logo {
    pointer-events: none !important;
    user-select: none !important;
    cursor: default !important;
}

/* Invisible Home Button */
.invisible-home-button {
    position: absolute;
    top: 0;
    left: 2rem;
    width: 175px; /* 1/2 of 350px (doubled from 1/4) */
    height: 202.5px; /* 1/2 of 405px (doubled from 1/4) */
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Above header z-index of 1000 */
    pointer-events: auto;
    text-decoration: none;
    display: block;
}

/* Ensure invisible home button doesn't interfere when mobile nav is active */
@media (max-width: 768px) {
    .mobile-nav-toggle.active ~ .invisible-home-button {
        pointer-events: none;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-dark-grey);
    background-color: var(--color-background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Persistent Header */
.persistent-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    pointer-events: none;
    height: 80px; /* Define header height to contain nav elements */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: flex-start;
    pointer-events: none;
    position: absolute;
    left: 2rem;
}

.rive-logo {
    width: 350px;
    height: 405px;
    transition: all 0.3s ease;
    display: block;
    cursor: default;
    pointer-events: none;
    user-select: none;
    /* Ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
    margin-left: auto;
    margin-top: 0.5rem;
    background: #333;
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    right: 2rem;
    pointer-events: auto;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    border-radius: 20px;
}

.nav-link:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.75rem;
    background: #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    right: 2rem;
    top: 0.5rem;
    pointer-events: auto;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    overflow: hidden;
    /* Ensure it stays within header bounds */
    max-height: 60px;
    max-width: 60px;
}

.mobile-nav-toggle:hover {
    background: #444;
}

.mobile-nav-toggle .hamburger-icon,
.mobile-nav-toggle .close-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    color: white;
    stroke: white;
    fill: white;
}

.mobile-nav-toggle .hamburger-icon {
    opacity: 1;
    transform: scale(1);
}

.mobile-nav-toggle .close-icon {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
}

.mobile-nav-toggle.active {
    background: #444;
}

.mobile-nav-toggle.active .hamburger-icon {
    opacity: 0;
    transform: scale(0.8);
}

.mobile-nav-toggle.active .close-icon {
    opacity: 1;
    transform: scale(1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    right: 0;
    background: #333;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 200px;
    pointer-events: none;
    margin-top: 0.5rem;
}

.mobile-nav-links .nav-link {
    pointer-events: none;
}

.mobile-nav-toggle.active + .mobile-nav-links {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.mobile-nav-toggle.active + .mobile-nav-links .nav-link {
    pointer-events: auto;
}

.mobile-nav-links .nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.mobile-nav-links .nav-link:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 1rem;
    }
    
    .rive-logo {
        width: 210px;
        height: 243px;
    }
    
    .logo-container {
        left: 1rem;
    }
    
    .invisible-home-button {
        left: 1rem;
        width: 105px; /* 1/2 of 210px (doubled from 1/4) */
        height: 121.5px; /* 1/2 of 243px (doubled from 1/4) */
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
        right: 1rem;
        top: 1rem;
    }
    
    /* Tighten container padding for mobile mode */
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 1rem;
    }
    
    .rive-logo {
        width: 140px;
        height: 162px;
    }
    
    .logo-container {
        left: 0.75rem;
    }
    
    .invisible-home-button {
        left: 0.75rem;
        width: 70px; /* 1/2 of 140px (doubled from 1/4) */
        height: 81px; /* 1/2 of 162px (doubled from 1/4) */
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
        right: 0.75rem;
        top: 0.75rem;
    }
}

/* Remove body padding since header will overlay content */
body {
    padding-top: 0;
}

/* Homepage Hero Styles */
.hero-container {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin-top: 0;
}

/* Mobile: Ensure hero takes full viewport */
@media (max-width: 768px) {
    .hero-container {
        height: 100vh;
        height: 100dvh; /* Use dynamic viewport height for mobile */
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-section {
        margin-top: 0;
        padding-top: 0;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: default;
    transition: transform 0.3s ease;
}

/* Removed punch-in animation on hover */

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: object-fit 0.3s ease, object-position 0.3s ease;
    pointer-events: none; /* Prevent hover zoom extensions */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevent overlay from blocking clicks */
}

.hero-image:hover .hero-overlay {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    pointer-events: auto; /* Ensure CTA buttons are clickable */
}

.hero-image:hover .hero-content {
    transform: translateY(0);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-arrow {
    animation: bounce 2s infinite;
}



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

/* Project Page Styles */
.hero-section {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin-top: 0;
}

.hero-media {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Removed punch-in animation on hover */

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none; /* Prevent hover zoom extensions */
}

/* Content Section */
.content-section {
    padding: 120px 0;
    background-color: white;
}

.project-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-title {
    font-size: 4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.project-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.project-subtitle p {
    margin-bottom: 0.5rem;
}

.project-subtitle strong {
    color: #1a1a1a;
    font-weight: 600;
}

.project-underline {
    width: 60px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 0 auto;
    opacity: 0;
    transform: scaleX(0);
    animation: fadeInScale 0.8s ease 0.4s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Unified Image Array */
.image-array-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.image-array {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* Single-wide images */
.image-item.single-wide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Prefer uncropped singles on wide screens */
/* Single-wide: never crop top/bottom; fill width and grow height as needed */
.image-item.single-wide img.single-wide-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.image-item.single-wide:hover img {
    transform: scale(1.05);
}

/* Double-wide grid */
.image-item.double-wide .grid-pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.image-item.double-wide .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1; /* Square crop for 2-wide images */
}

.image-item.double-wide .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.image-item.double-wide .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item.double-wide .grid-item:hover img {
    transform: scale(1.1);
}

/* Triple-wide grid */
.image-item.triple-wide .grid-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-item.triple-wide .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1; /* Square crop for 3-wide images */
}

.image-item.triple-wide .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.image-item.triple-wide .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item.triple-wide .grid-item:hover img {
    transform: scale(1.1);
}

/* Quad-wide grid (4 images side by side) */
.image-item.quad-wide .grid-quad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.image-item.quad-wide .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1; /* Square crop for quad images */
}

.image-item.quad-wide .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.image-item.quad-wide .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item.quad-wide .grid-item:hover img {
    transform: scale(1.1);
}

/* Legacy styles for backward compatibility */
.image-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.single-image {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.single-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.single-image:hover img {
    transform: scale(1.05);
}

.image-grid-section {
    padding: 80px 0;
    background-color: white;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

/* Description Section */
.description-section {
    padding: 120px 0;
    background-color: #fafafa;
}

.project-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.project-description p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.project-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.project-links p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.project-links strong {
    color: #1a1a1a;
    font-weight: 600;
}

.project-link {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    transition: left 0.3s ease;
    z-index: -1;
}

.project-link:hover {
    color: white;
}

.project-link:hover::before {
    left: 0;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    position: static;
    right: auto;
}

.footer .nav-link {
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.copyright {
    font-size: 0.875rem;
    color: #666;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
}

.social-link:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    /* Touch gesture improvements */
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

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

.gallery-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    z-index: 1001;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Ensure container doesn't affect fixed positioned elements */
    transform-origin: center center;
}

.gallery-modal.active .gallery-container {
    transform: scale(1);
}

.gallery-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    pointer-events: none;
}

/* Image transition animations - Premium fade transitions */
.gallery-image.fade-out {
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image.fade-in {
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Touch gesture visual feedback - Premium subtle feedback */
.gallery-image.swiping {
    transition: transform 0.1s ease-out;
}

.gallery-image.swipe-left {
    transform: translateX(-10px);
    opacity: 0.9;
}

.gallery-image.swipe-right {
    transform: translateX(10px);
    opacity: 0.9;
}

.gallery-image.swipe-down {
    transform: translateY(10px);
    opacity: 0.8;
}

.gallery-image.swipe-up {
    transform: translateY(-10px);
    opacity: 0.8;
}

/* Enhanced touch feedback with smooth transitions */
.gallery-image {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Enhanced entrance/exit animations */
.gallery-image.entering {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
}

.gallery-image.exiting {
    transform: scale(1.1) translateY(-20px);
    opacity: 0;
}

/* Simple navigation zones at window edges */
.gallery-nav-zone {
    position: fixed;
    top: 100px; /* Increased to account for doubled counter padding */
    height: calc(100vh - 100px); /* Adjust height to account for increased top area */
    cursor: pointer;
    z-index: 1002;
    pointer-events: auto;
}

.gallery-nav-zone.left {
    left: 0;
    width: 35vw;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" style="filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));"><circle cx="12" cy="12" r="10" stroke="white" stroke-width="2" fill="rgba(0,0,0,0.3)"/><path d="M15 18l-6-6 6-6"/></svg>') 16 16, auto;
}

.gallery-nav-zone.right {
    right: 0;
    width: 35vw;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" style="filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));"><circle cx="12" cy="12" r="10" stroke="white" stroke-width="2" fill="rgba(0,0,0,0.3)"/><path d="M9 18l6-6-6-6"/></svg>') 16 16, auto;
}

.gallery-nav-zone.center {
    left: 35vw;
    width: 30vw;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" style="filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));"><circle cx="12" cy="12" r="10" stroke="white" stroke-width="2" fill="rgba(0,0,0,0.3)"/><line x1="12" y1="8" x2="12" y2="16"/></svg>') 16 16, auto;
}

/* Image counter with dynamic island style - anchored to window */
.gallery-counter {
    position: fixed;
    top: 40px; /* Doubled from 20px to 40px */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0,0,0,0.8);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1004;
    pointer-events: auto;
    /* Ensure it's anchored to viewport, not image */
    position: fixed !important;
    top: 40px !important; /* Doubled from 20px to 40px */
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Close button (cross) - anchored to window */
.gallery-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.8);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1004;
    pointer-events: auto;
    /* Ensure it's anchored to viewport, not image */
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
}

.gallery-close:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.gallery-close::before,
.gallery-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.gallery-close::before {
    transform: rotate(45deg);
}

.gallery-close::after {
    transform: rotate(-45deg);
}

.gallery-modal.active .gallery-close {
    opacity: 1;
    transition-delay: 0.2s;
}

.gallery-modal.active .gallery-counter {
    opacity: 1;
    transition-delay: 0.2s;
}

/* Gallery hover cursor for images */
.gallery-trigger {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" style="filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));"><circle cx="12" cy="12" r="10" stroke="white" stroke-width="2" fill="rgba(0,0,0,0.3)"/><line x1="12" y1="8" x2="12" y2="16"/><line x1="8" y1="12" x2="16" y2="12"/></svg>') 16 16, zoom-in !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .gallery-container {
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .gallery-image {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .gallery-nav-zone {
        width: 40%;
    }
    
    .gallery-nav-zone.center {
        left: 30%;
        width: 40%;
    }
    
    .gallery-counter {
        top: 40px !important;
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .gallery-close {
        top: 40px !important;
        right: 20px !important;
        width: 44px;
        height: 44px;
    }
    
    /* Mobile navigation zones - adjust for mobile top area */
    .gallery-nav-zone {
        top: 100px; /* Start below the mobile close button and counter area */
        height: calc(100vh - 100px); /* Adjust height for mobile */
    }
    
    .gallery-nav-zone.left {
        width: 35vw;
    }

    .gallery-nav-zone.right {
        width: 35vw;
    }

    .gallery-nav-zone.center {
        left: 35vw;
        width: 30vw;
    }
}

/* Smart Responsive Hero Behavior - Consolidated at 768px breakpoint */
@media (max-width: 768px) {
    /* Hero container adjustments */
    .hero-container,
    .hero-section {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero media adjustments */
    .hero-media {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }
    
    /* Hero image adjustments - all changes happen simultaneously */
    .hero-image img,
    .hero-media img,
    .hero-media video {
        width: 100%; /* Full width - no cropping */
        height: auto; /* Maintain aspect ratio */
        max-height: 80vh; /* Limit height to prevent overflow */
        object-fit: contain; /* Change from cover to contain */
        object-position: center;
        margin-top: 0; /* No top margin - let flexbox center it */
    }
    
    /* Better content flow on mobile */
    .hero-overlay {
        justify-content: center;
        align-items: center;
        padding-top: 0;
        padding-bottom: 2rem;
    }
    
    /* Reduce white space under hero on mobile */
    .content-section {
        padding-top: 60px; /* More padding to make headings more visible like Atmos page */
    }
}

/* Mobile hero content and visual adjustments */
@media (max-width: 768px) {
    /* Fullscreen centered hero on mobile */
    .hero-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        height: 100vh;
    }
    
    .hero-content {
        text-align: center;
        transform: none;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Adjust hero visual positioning on mobile */
    .hero-visual {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 2;
    }
    
    .hero-logo-animation {
        width: 150px; /* Smaller on mobile */
        height: 150px;
    }
    

}

/* For ultra-wide screens - full height, center aligned */
@media (min-aspect-ratio: 21/9) {
    .hero-image img,
    .hero-media img,
    .hero-media video {
        object-fit: contain;
        object-position: center;
    }
    
    /* Home page specific ultra-wide behavior */
    .hero-section .hero-container {
        height: 100vh;
    }
    
    .hero-section .hero-media {
        height: 100vh;
    }
    
    /* Hero replacement ultrawide */
    .hero-replacement {
        padding-top: 160px; /* Extra padding for ultrawide to account for larger header */
        min-height: 50vh; /* Ensure minimum height for proper spacing */
    }
    
    .hero-replacement .section-header {
        padding-top: var(--space-3xl);
        margin-bottom: var(--space-3xl);
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .content-section {
        padding: 80px 0; /* More padding on mobile to match Atmos page */
    }
    
    .image-section {
        padding: 40px 0; /* Reduce padding on mobile */
    }
    
    .image-grid-section {
        padding: 40px 0; /* Reduce padding on mobile */
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Mobile responsive for image array */
    .image-array {
        gap: 15px; /* Reduce gap on mobile */
    }
    
    .image-item.double-wide .grid-pair {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .image-item.double-wide .grid-item {
        aspect-ratio: 1/1; /* Keep square crop on mobile */
    }
    
    .nav-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Better mobile spacing */
    .section-header {
        margin-bottom: 2rem; /* Reduce margin on mobile */
    }
    
    .section-header h2 {
        font-size: 2rem; /* Smaller on mobile */
    }
    
    .section-header p {
        font-size: 1rem; /* Smaller on mobile */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .project-title {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .project-subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .image-section {
        padding: 30px 0;
    }
    
    .image-grid-section {
        padding: 30px 0;
    }
    
    .description-section {
        padding: 60px 0;
    }
    
    .footer {
        padding: 30px 0 20px;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .image-array {
        gap: 12px;
    }
    
    .image-item.double-wide .grid-pair {
        gap: 8px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== NEW HOME PAGE STYLES ===== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--color-dark-grey);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: var(--font-size-body-lg);
    color: var(--color-light-grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Hero Section Updates */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-container {
    position: relative;
    height: 100%;
}

.hero-media {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-2xl);
}

.hero-content {
    max-width: 600px;
    color: var(--color-white);
    z-index: 2;
}

.hero-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: var(--font-size-body-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
    max-width: 500px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-logo-animation {
    width: 300px;
    height: 350px;
}

.hero-rive-logo {
    width: 100%;
    height: 100%;
    transition: all var(--transition-normal);
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero-overlay {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 var(--space-xl);
    }
    
    .hero-content {
        margin-bottom: var(--space-2xl);
    }
    
    .hero-title {
        font-size: calc(var(--font-size-h1) * 0.8);
    }
}

/* No-media Hero Variant */
.hero-section.no-media {
    height: 60vh;
    background: var(--color-background);
}

.hero-section.no-media .hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--space-2xl);
}

.hero-section.no-media .hero-content {
    color: var(--color-dark-grey);
    max-width: 800px;
}

.hero-section.no-media .hero-title {
    color: var(--color-dark-grey);
}

.hero-section.no-media .hero-subtitle {
    color: var(--color-light-grey);
}

/* Hero Replacement Sections */
.hero-replacement {
    background: var(--color-background);
    padding-top: 140px; /* Add top padding to account for fixed header and prevent overlap */
    min-height: 50vh; /* Ensure minimum height for proper spacing */
}

/* Blog Featured Header (mirrors featured project layout) */
.blog-featured {
    padding-top: 180px;
    padding-bottom: var(--space-3xl);
}

.blog-featured-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-2xl);
    align-items: stretch;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-featured-image {
    position: relative;
    overflow: hidden;
    background: #101010;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-featured-container:hover .blog-featured-image img {
    transform: scale(1.05);
}

.blog-featured-content {
    padding: var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
}

.blog-breadcrumb a {
    display: inline-block;
    color: var(--color-light-grey);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.blog-breadcrumb a:hover {
    color: var(--color-dark-grey);
}

.blog-featured-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--color-light-grey);
    font-weight: 600;
}

.blog-post-title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-dark-grey);
}

.blog-post-date {
    font-size: 1rem;
    color: var(--color-lighter-grey);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.blog-post-excerpt {
    font-size: 1.2rem;
    color: var(--color-medium-grey);
    line-height: 1.6;
    max-width: 540px;
}

@media (max-width: 1024px) {
    .blog-featured-container {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 320px;
    }

    .blog-featured {
        padding-top: 160px;
    }
}

@media (max-width: 640px) {
    .blog-featured {
        padding-top: 140px;
    }

    .blog-featured-content {
        padding: var(--space-2xl) var(--space-xl);
        gap: var(--space-md);
    }

    .blog-post-excerpt {
        font-size: 1.05rem;
    }
}

/* Blog Content Styling */
.blog-content-section {
    background: var(--color-background);
    color: var(--color-dark-grey);
    padding: clamp(80px, 12vw, 140px) 0;
    position: relative;
}

.blog-content-wrapper {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 36px);
    font-size: 1.125rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

.blog-paragraph {
    color: var(--color-medium-grey);
    font-weight: 400;
}

.blog-heading {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--color-dark-grey);
    letter-spacing: -0.02em;
    margin-top: clamp(32px, 6vw, 56px);
    margin-bottom: clamp(16px, 3vw, 24px);
}

.blog-quote {
    border-left: 4px solid var(--color-dark-grey);
    padding-left: clamp(18px, 3vw, 28px);
    margin-left: clamp(-20px, -2vw, -8px);
    color: var(--color-medium-grey);
    font-style: italic;
    font-weight: 400;
    line-height: 1.7;
}

.blog-list {
    padding-left: clamp(20px, 4vw, 36px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--color-medium-grey);
}

.blog-list li {
    position: relative;
}

.blog-list li::marker {
    color: var(--color-dark-grey);
    font-size: 1.2em;
}

.blog-link {
    color: var(--color-dark-grey);
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.15);
    transition: all var(--transition-fast);
}

.blog-link:hover {
    border-color: var(--color-dark-grey);
}

.blog-code {
    background: rgba(26, 26, 26, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: 'Fira Code', 'SFMono-Regular', monospace;
    font-size: 0.95rem;
}

/* Inline images */
.blog-inline-figure {
    background: #fff;
    border-radius: 16px;
    padding: clamp(12px, 2vw, 18px);
    margin: clamp(24px, 4vw, 40px) auto;
    max-width: 620px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.blog-inline-image {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.blog-caption {
    margin-top: 12px;
    color: var(--color-light-grey);
    font-size: 0.9rem;
    text-align: center;
}

/* Gallery Heading */
.gallery-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark-grey);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Gallery grid */
.blog-gallery-section {
    background: var(--color-background);
    padding: clamp(80px, 10vw, 140px) 0;
}

.blog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(18px, 3vw, 28px);
}

.blog-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.blog-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.05) 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .blog-content-wrapper {
        font-size: 1.05rem;
        gap: 22px;
    }

    .blog-inline-figure {
        margin-inline: -6px;
    }

    .blog-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.hero-replacement .section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding-top: var(--space-2xl);
}

.hero-replacement .hero-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--color-dark-grey);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.hero-replacement .hero-subtitle {
    font-size: var(--font-size-body-lg);
    color: var(--color-light-grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .hero-logo-animation {
        width: 250px;
        height: 290px;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        padding: 0 var(--space-lg);
    }
    
    .hero-title {
        font-size: calc(var(--font-size-h1) * 0.5);
        margin-bottom: var(--space-sm);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
        line-height: 1.4;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-logo-animation {
        width: 180px;
        height: 210px;
    }
    
    /* Hero replacement responsive */
    .hero-replacement {
        padding-top: max(100px, 35vh); /* Use viewport height to center content on mobile mode */
        min-height: 50vh; /* Ensure minimum height for proper centering */
    }
    
    .hero-replacement .section-header {
        padding-top: var(--space-md);
        margin-bottom: var(--space-xl);
    }
    
    .hero-replacement .hero-title {
        font-size: calc(var(--font-size-h1) * 0.6);
        line-height: 1.1;
    }
    
    .hero-replacement .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: calc(var(--font-size-h1) * 0.4);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    /* Hero replacement mobile */
    .hero-replacement {
        padding-top: max(80px, 30vh); /* Use viewport height to center content on mobile screens */
        min-height: 60vh; /* Ensure minimum height for proper centering */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
    }
    
    .hero-replacement .section-header {
        padding-top: var(--space-sm);
        margin-bottom: var(--space-lg);
    }
    
    .hero-replacement .hero-title {
        font-size: calc(var(--font-size-h1) * 0.5);
        line-height: 1.1;
    }
    
    .hero-replacement .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-body);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    min-width: 140px;
}

.cta-button.primary {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    border-color: var(--color-dark-grey);
}

.cta-button.primary:hover {
    background-color: var(--color-medium-grey);
    border-color: var(--color-medium-grey);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--color-dark-grey);
    border-color: var(--color-dark-grey);
}

.cta-button.secondary:hover {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Contact CTA specific styles */
.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: var(--font-size-body-lg);
    color: var(--color-light-grey);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* Credibility Section */
.credibility-section {
    padding: 6rem 0;
    background: white;
}

.credibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.credibility-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.credibility-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.credibility-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.credibility-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.credibility-item p {
    color: #666;
    line-height: 1.6;
}

/* Portfolio Section Updates */
.portfolio-section {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

/* Featured Project Section */
.featured-project-section {
    margin-bottom: var(--space-2xl);
    cursor: pointer;
}

.featured-project-container {
    display: flex;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.featured-project-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.featured-project-image {
    flex: 1;
    aspect-ratio: 16/10; /* Fixed aspect ratio for consistent container size */
    position: relative;
    overflow: hidden;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-normal);
}

.featured-project-container:hover .featured-project-image img {
    transform: scale(1.05);
}

.featured-project-content {
    flex: 1;
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-project-content h3 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--color-dark-grey);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.featured-project-content p:first-of-type {
    font-size: var(--font-size-body-lg);
    color: var(--color-light-grey);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.featured-project-content p:last-of-type {
    font-size: var(--font-size-body);
    color: var(--color-medium-grey);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.blog-card {
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
}

.blog-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark-grey);
    letter-spacing: -0.01em;
}

.blog-card-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-light-grey);
}

.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-medium-grey);
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item.blog-card {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .portfolio-item.blog-card .portfolio-image {
        aspect-ratio: 16 / 10;
    }

    .portfolio-item.blog-card .portfolio-overlay {
        display: none;
    }

    .portfolio-item.blog-card .blog-card-body {
        padding: var(--space-lg) var(--space-md) var(--space-xl);
    }

    /* Blog list: show only title and date on narrow screens */
    .portfolio-item.blog-card .blog-card-excerpt {
        display: none;
    }
}


.portfolio-cta {
    text-align: center;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

/* Portfolio Item Base Styles */
.portfolio-item {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Mobile: Change portfolio item layout */
@media (max-width: 768px), (hover: none) {
    .portfolio-item:not(.featured-case) {
        display: flex;
        flex-direction: column;
        background: var(--color-white);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .portfolio-item:not(.featured-case) .portfolio-image {
        position: relative;
    }

    .portfolio-item:not(.featured-case) .portfolio-overlay {
        position: static;
        background: transparent;
        opacity: 1;
        padding: var(--space-md);
        color: var(--color-dark-grey);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-item:not(.featured-case) .portfolio-content h3 {
        color: var(--color-dark-grey);
        font-size: var(--font-size-h3);
        margin-bottom: var(--space-sm);
        font-weight: 600;
    }

    .portfolio-item:not(.featured-case) .portfolio-content p {
        color: var(--color-light-grey);
        margin-bottom: 0;
        line-height: 1.4;
    }
}

.portfolio-content h3 {
    color: var(--color-white);
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.portfolio-content p {
    color: #ccc;
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.project-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Featured Project Responsive */
@media (max-width: 768px) {
    .featured-project-container {
        flex-direction: column;
    }

    .featured-project-image {
        min-height: 250px;
        flex: none;
    }

    .featured-project-content {
        padding: var(--space-lg);
        flex: none;
    }

    .featured-project-content h3 {
        font-size: var(--font-size-h3);
    }

    .featured-project-content p:first-of-type {
        font-size: var(--font-size-body);
    }

    .featured-project-content p:last-of-type {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .featured-project-content {
        padding: var(--space-md);
    }

    .featured-project-content h3 {
        font-size: var(--font-size-h3);
    }

    .featured-project-content p:last-of-type {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

/* Responsive Portfolio Grid */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .portfolio-image {
        aspect-ratio: 16/10 !important;
        height: auto !important;
    }
}

/* About Section */
.about-section {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white); /* Make white to match FAQ styling */
    position: relative;
}

/* Add content-width border to about sections (not used for FAQ anymore) */
.about-section .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
}


.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(247, 238, 223, 0.1) 0%, rgba(247, 238, 223, 0.05) 100%);
    pointer-events: none;
}

/* General about-content rule */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text h2 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--color-dark-grey);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.about-description {
    font-size: var(--font-size-body-lg);
    color: var(--color-dark-grey);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.about-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.about-features li {
    position: relative;
    padding-left: var(--space-lg);
    color: var(--color-dark-grey);
    font-weight: 500;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-medium-grey);
    font-weight: bold;
}

.about-visual {
    position: relative;
}

.about-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Override for FAQ images specifically */
.faq-qa .about-visual img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: unset !important;
}

/* About Photo Specific Styling */
.about-photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 3/2;
}

/* Remove drop shadow from FAQ images and override aspect ratio */
.faq-qa .about-photo {
    box-shadow: none;
    aspect-ratio: unset !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (max-width: 960px) {
    .about-section .about-content {
        display: flex;
        flex-direction: column;
        gap: var(--space-xl);
    }

    .about-section .about-content > * {
        width: 100%;
    }

    .about-section .about-visual {
        width: 100%;
        max-width: none;
        display: flex;
        justify-content: center;
    }

    .about-section .about-visual picture,
    .about-section .about-visual img,
    .about-section .about-visual .about-photo {
        width: 100% !important;
        height: auto !important;
        max-width: none;
    }
}

/* FAQ: simple alternating layout using flexbox */
.faq-qa {
    display: flex;
    flex-direction: row;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

/* FAQ text-left pattern: Text on left, Image on right */
.faq-text-left {
    flex-direction: row;
}

/* FAQ text-right pattern: Image on left, Text on right */
.faq-text-right {
    flex-direction: row-reverse;
}

/* Add horizontal dividers between FAQ sections on large screens */
.faq-qa:not(:first-child) {
    border-top: 1px solid #e0e0e0;
    padding-top: var(--space-3xl);
    margin-top: var(--space-3xl);
}

/* FAQ text container (question + answer) - flex item */
.faq-text-container {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-md);
    align-items: stretch; /* Let question and answer fill available width */
    min-width: 0; /* Prevent flex overflow when columns tighten */
}

.faq-text-container > * {
    width: 100%;
}

/* Ensure question box aligns to top of its container */
.faq-question {
    align-self: flex-start;
    width: 100%;
}

/* FAQ image container - fixed size */
.faq-qa .about-visual {
    width: 400px;
    height: 400px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Don't shrink */
    align-self: flex-start; /* Align to top of flex container */
}

/* Make the image fill its 400x400 container completely */
.faq-qa .about-visual img,
.faq-qa .about-visual .about-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important; /* Align to top for question alignment */
    border-radius: 16px !important;
    aspect-ratio: unset !important;
}

/* Ensure picture element fills the container */
.faq-qa .about-visual picture {
    width: 100% !important;
    height: 100% !important;
}

/* FAQ content within hero section - add proper spacing and styling */
.services-overview-section .faq-qa {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    background-color: var(--color-white);
    position: relative;
    text-align: left; /* Ensure left alignment */
}

/* Spacing is now handled by the main FAQ divider rule above */

/* Remove the gradient background effect from all FAQ sections */
.services-overview-section .faq-qa::before {
    display: none;
}

/* Mobile responsive: hide images and show full-width Q&A with horizontal dividers */
@media (max-width: 960px) {

    .services-overview-section.hero-replacement .faq-qa {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        gap: var(--space-xl);
    }

    .services-overview-section.hero-replacement .faq-qa .about-visual {
        display: none;
    }

    /* Override large screen dividers with mobile-specific spacing */
    .faq-qa:not(:first-child) {
        border-top: 1px solid #e0e0e0;
        padding-top: var(--space-2xl);
        margin-top: var(--space-2xl);
    }
}

/* FAQ Question Speech Bubbles */

/* FAQ question box - separate from answer */
.faq-question h2 {
    background: #333;
    color: var(--color-white);
    padding: var(--space-lg) var(--space-xl);
    margin: 0;
    border-radius: 16px 16px 16px 2px; /* lower-left sharp corner */
    border: none;
    box-shadow: none; /* Remove drop shadow */
    font-weight: 600;
    font-size: var(--font-size-h3);
    letter-spacing: -0.02em;
}

/* FAQ answer box - separate from question */
.faq-qa .about-text {
    background-color: #f8f9fa;
    padding: var(--space-lg) var(--space-xl);
    border-radius: 16px; /* All corners rounded */
    color: var(--color-dark-grey);
    line-height: 1.6;
    box-shadow: none; /* Remove drop shadow */
    width: 100%;
}

/* Reset paragraph styling within answer boxes */
.faq-qa .about-text p {
    margin-bottom: var(--space-md);
    color: var(--color-dark-grey);
}

/* Remove margin from last paragraph in each answer */
.faq-qa .about-text p:last-child {
    margin-bottom: 0;
}

/* Remove alternation: all bubbles use lower-left sharp */

/* Mobile responsive adjustments for speech bubbles */
@media (max-width: 768px) {
    .faq-question h2 {
        padding: var(--space-md) var(--space-lg);
        border-radius: 12px 12px 12px 2px; /* keep lower-left sharp on tablet */
    }
    
    /* Adjust answer text boxes for tablet */
    .faq-qa .about-text {
        padding: var(--space-md) var(--space-lg);
        border-radius: 12px; /* Match the question box radius */
    }
    
    /* Mobile spacing is handled by the main responsive section above */
}

@media (max-width: 480px) {
    .faq-question h2 {
        padding: var(--space-md);
        border-radius: 10px 10px 10px 2px; /* keep lower-left sharp on mobile */
    }
    
    /* Adjust answer text boxes for mobile */
    .faq-qa .about-text {
        padding: var(--space-md);
        border-radius: 10px; /* Match the question box radius */
    }
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: white;
}

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

.service-item {
    padding: 2.5rem;
    border-radius: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: white;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.service-item p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-item ul {
    list-style: none;
    padding: 0;
}

.service-item li {
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.service-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-medium-grey);
    font-weight: bold;
}

.service-item li:last-child {
    border-bottom: none;
}

/* Services Overview Section */
.services-overview-section {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    justify-items: center;
}

.service-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent-cream);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent-cream);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--color-dark-grey);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.service-benefit {
    font-size: var(--font-size-body-lg);
    color: var(--color-light-grey);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.service-bullets {
    list-style: none;
    padding: 0;
}

.service-bullets li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-dark-grey);
    font-size: var(--font-size-body);
    line-height: 1.4;
}

.service-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-medium-grey);
    font-weight: bold;
}

.services-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Selected Clients Section */
.clients-section {
    padding: var(--space-2xl) 0;
    background-color: var(--color-background);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.clients-content {
    text-align: center;
}

.clients-content h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--color-dark-grey);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.clients-caption {
    font-size: var(--font-size-body-lg);
    color: var(--color-light-grey);
    margin-bottom: var(--space-xl);
    font-weight: 500;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    transition: opacity 0.3s;
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) opacity(0.8);
    transition: opacity 0.3s;
    pointer-events: none; /* Prevent hover zoom extensions */
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Mobile: 4-across grid for all mobile screens */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xs);
    }

    .client-logo {
        padding: var(--space-xs);
    }

    .client-logo img {
        filter: none;
        opacity: 1;
    }

    .client-logo:hover img {
        transform: none;
    }
}

/* Very small mobile: 1x8 grid */
@media (max-width: 320px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* Contact CTA Section Updates */
.contact-cta-section {
    padding: var(--space-3xl) 0;
    background-color: var(--color-accent-cream);
    border-top: 1px solid #e0e0e0;
}

.contact-cta-section .cta-content h2 {
    color: var(--color-dark-grey);
}

.contact-cta-section .cta-content p {
    color: var(--color-dark-grey);
}

/* Footer */
.footer {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid #333;
}

.footer-brand h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: var(--color-lighter-grey);
    line-height: 1.6;
}

.footer-contact p {
    margin-bottom: var(--space-md);
}

.footer-contact a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-accent-cream);
}

.social-links {
    display: flex;
    gap: var(--space-lg);
}

.social-links a {
    color: var(--color-lighter-grey);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-accent-cream);
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid #333;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--color-lighter-grey);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--color-accent-cream);
}

.footer-separator {
    color: var(--color-lighter-grey);
    font-weight: 300;
    user-select: none;
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    color: var(--color-lighter-grey);
    font-size: 14px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-container {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .hero-visual {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .hero-logo-animation {
        width: 180px;
        height: 180px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .portfolio-item.hero-style,
    .portfolio-item.feature-style {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    /* Reduce general text sizes and spacing */
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: var(--space-sm);
    }
    
    .section-header p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .service-card h3,
    .portfolio-content h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .service-benefit,
    .portfolio-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .credibility-grid,
    .portfolio-grid,
    .services-grid {
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

/* Responsive Styles for New Sections */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .about-content {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    /* FAQ content should remain left-aligned and preserve flexbox layout */
    .faq-qa .about-content {
        text-align: left !important;
        /* Preserve FAQ flexbox layout */
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .about-content {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    /* FAQ content should remain left-aligned and preserve flexbox layout */
    .faq-qa .about-content {
        text-align: left !important;
        /* Preserve FAQ flexbox layout - this is overridden by mobile rule below */
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-overview-section {
        padding: var(--space-2xl) 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .service-card {
        padding: var(--space-md);
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
    }
    
    .service-benefit {
        font-size: 0.9rem;
        margin-bottom: var(--space-sm);
        line-height: 1.3;
    }
    
    .service-bullets li {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
        padding-left: var(--space-md);
    }
    
    /* Hide the last bullet point on narrow screens to reduce vertical space */
    .service-bullets li:last-child {
        display: none;
    }
    
    .clients-section {
        padding: var(--space-xl) 0;
    }
    
    
    .about-section {
        padding: var(--space-2xl) 0;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .contact-cta-section {
        padding: var(--space-2xl) 0;
    }
    
    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
    
    .footer-main {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: var(--space-md);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: var(--space-md);
    }
    
    .about-features {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .portfolio-item:hover,
    .client-logo:hover img,
    
    .scroll-indicator::after {
        animation: none;
    }
}

/* Focus States for Accessibility */
.service-card:focus-within,
.portfolio-item:focus-within {
    outline: 2px solid var(--color-accent-cream);
    outline-offset: 2px;
}

.nav-link:focus,
.cta-button:focus,
.footer a:focus {
    outline: 2px solid var(--color-accent-cream);
    outline-offset: 2px;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .footer-nav {
        flex-direction: row;
        gap: var(--space-sm);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-separator {
        display: none;
    }
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--color-dark-grey);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: var(--font-size-body);
    font-family: inherit;
    transition: border-color var(--transition-fast);
    background-color: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-cream);
    box-shadow: 0 0 0 3px rgba(247, 238, 223, 0.1);
}

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

.form-submit {
    text-align: center;
    margin-top: var(--space-xl);
}

.form-submit .cta-button {
    min-width: 200px;
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: var(--space-md);
    }
    
    /* Keep 4-wide grid on standard mobile */
    .selection-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xs);
    }
    
    .selection-box {
        aspect-ratio: 1;
        min-height: auto;
        padding: var(--space-xs);
        min-width: 60px;
        max-width: 80px;
    }
    
    .selection-label {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .selection-desc {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    /* Tighten side padding for mobile */
    .container {
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: var(--space-sm);
    }
    
    .form-submit .cta-button {
        width: 100%;
        min-width: auto;
    }
    
    /* Keep 4-wide grid even on very narrow screens */
    .selection-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }
    
    .selection-box {
        padding: 2px;
        min-width: 55px;
        max-width: 75px;
    }

    .selection-label {
        font-size: 0.65rem;
        line-height: 1.1;
    }

    .selection-desc {
        font-size: 0.5rem;
        line-height: 1.1;
    }
    
    /* Even tighter padding for very narrow screens */
    .container {
        padding: 0 0.5rem;
    }
    
    /* Continue button styling for very narrow screens */
    #continue-btn {
        width: 100%;
        max-width: none;
        margin: var(--space-xl) 0 0;
        display: block;
        min-width: 140px;
    }
}

/* Selection Grid Styles (Budget & Timeline) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.selection-box {
    position: relative;
    padding: var(--space-lg) var(--space-md);
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.selection-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-cream);
    transition: left var(--transition-normal);
    z-index: -1;
}

.selection-box:hover {
    color: var(--color-dark-grey);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.selection-box:hover::before {
    left: 0;
}

.selection-box.selected {
    background: var(--color-accent-cream);
    border-color: #d4a574;
    color: var(--color-dark-grey);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
}

.selection-box.selected::before {
    display: none;
}

.selection-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark-grey);
    margin-bottom: var(--space-xs);
    display: block;
}

.selection-desc {
    font-size: 0.85rem;
    color: var(--color-medium-grey);
    font-weight: 400;
}

.selection-box.selected .selection-label,
.selection-box.selected .selection-desc {
    color: var(--color-dark-grey);
}



/* File Upload Styles */
.file-upload-container {
    position: relative;
}

.file-upload-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1; /* place below remove buttons */
}

.file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-normal);
    background: #fafafa;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-cream);
    transition: left var(--transition-normal);
    z-index: -1;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #d4a574;
    color: var(--color-dark-grey);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.file-upload-area:hover::before,
.file-upload-area.dragover::before {
    left: 0;
}

.upload-icon {
    margin-bottom: var(--space-xs);
    color: var(--color-light-grey);
    transition: all var(--transition-normal);
}

.file-upload-area:hover .upload-icon,
.file-upload-area.dragover .upload-icon {
    color: var(--color-dark-grey);
    transform: scale(1.1);
}

.upload-text {
    font-weight: 500;
    color: var(--color-dark-grey);
    margin: 0;
    font-size: 0.9rem;
}

.file-list {
    margin-top: var(--space-md);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 2; /* ensure remove button is clickable above invisible input */
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.file-name {
    font-weight: 500;
}

.file-size {
    font-size: 0.875rem;
    color: var(--color-light-grey);
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    padding: var(--space-xs);
    border-radius: 4px;
}

.file-remove:hover {
    background: #f8d7da;
}

/* Form Messages */
.form-messages {
    margin-top: var(--space-xl);
}

.message {
    padding: var(--space-xl);
    border-radius: 8px;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-h3);
}

.message p {
    margin-bottom: var(--space-md);
}

/* Responsive Selection Grid */
@media (max-width: 768px) {
    .selection-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }
    
    .selection-box {
        padding: var(--space-md) var(--space-sm);
        min-height: 70px;
    }
    
    .selection-label {
        font-size: 1rem;
    }
    
    .selection-desc {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .selection-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }

    .selection-box {
        min-height: 60px;
        padding: 2px;
        min-width: 50px;
        max-width: 70px;
    }
}

@media (max-width: 480px) {
    .file-upload-area {
        padding: var(--space-lg);
    }
    
    .upload-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .file-info {
        width: 100%;
    }
    
    .budget-slider-wrapper {
        padding: var(--space-sm) 0;
    }
    
    .budget-markers {
        top: -30px;
        padding: 0 15px;
    }
    
    .budget-slider-track {
        margin: 0 15px;
    }
    
    .budget-range-input {
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
    }
    
    .budget-symbol {
        font-size: 1rem;
    }
}

/* Schedule a Call Section Styles */
.form-section-title {
    font-size: var(--font-size-h2);
    font-weight: 600;
    color: var(--color-dark-grey);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.schedule-call-section {
    margin-bottom: var(--space-3xl);
}

.location-message {
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.location-restricted {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
}

.location-restricted p {
    color: #856404;
    margin: 0;
    font-size: var(--font-size-body);
}

.call-scheduler {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.scheduler-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    position: relative;
}

.scheduler-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.scheduler-step::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent-cream);
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.scheduler-step.active::before {
    opacity: 1;
}

.scheduler-step#contact-details-step::before {
    background: var(--color-accent-cream);
}

.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-xl);
    gap: var(--space-sm);
}

.step-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.step-indicator.active {
    background: var(--color-dark-grey);
    border-color: var(--color-dark-grey);
    transform: scale(1.3);
}

.step-indicator.completed {
    background: #999;
    border-color: #999;
}

.step-instruction {
    text-align: center;
    color: var(--color-medium-grey);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-body-lg);
}

/* Time Grid Styles */
.time-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.time-day {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.time-day:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.day-header {
    background: var(--color-dark-grey);
    color: white;
    padding: var(--space-sm);
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.day-date {
    padding: var(--space-xs) var(--space-sm);
    text-align: center;
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.875rem;
}

.time-slots {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-slot {
    background: #f7eedf;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: var(--space-xs);
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.time-slot:hover {
    background: var(--color-accent-cream);
    transform: scale(1.02);
}

.time-slot.selected {
    background: var(--color-dark-grey);
    color: white;
    border-color: var(--color-accent-cream);
    transform: scale(1.05);
}

.time-slot.selected.first {
    background: #28a745;
    border-color: #28a745;
}

.time-slot.selected.second {
    background: #17a2b8;
    border-color: #17a2b8;
}

/* Selected Times Summary */
.selected-times-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-normal);
}

.selected-times-summary.show {
    background: var(--color-accent-cream);
    border-color: var(--color-accent-cream);
}

.selected-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.selected-time-item:last-child {
    margin-bottom: 0;
}

.time-label {
    font-weight: 600;
    color: var(--color-dark-grey);
}

/* Short labels for narrow screens */
@media (max-width: 768px) {
    .choice-first {
        font-size: 0;
    }

    .choice-first::after {
        content: "1st Choice: ";
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--color-dark-grey);
    }

    .choice-second {
        font-size: 0;
    }

    .choice-second::after {
        content: "2nd Choice: ";
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--color-dark-grey);
    }
}

.selected-time-display {
    background: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid #e0e0e0;
    white-space: pre-line;
    line-height: 1.3;
}

/* Form Styles */
.schedule-form {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

.form-actions .cta-button {
    min-width: 140px;
    max-width: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .time-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-xs);
    }
    
    .time-day {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .day-header {
        min-height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: initial;
        font-size: 0.7rem;
        padding: var(--space-xs);
    }
    
    .day-date {
        min-height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: none;
        border-right: none;
        font-size: 0.65rem;
        padding: var(--space-xs);
    }
    
    .time-slots {
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 2px;
        align-items: stretch;
        gap: 1px;
        justify-content: flex-start;
    }
    
    .time-slot {
        flex: none;
        width: 100%;
        min-width: auto;
        max-width: none;
        margin: 1px 0;
        font-size: 0.6rem;
        padding: 8px 2px;
        border-radius: 4px;
        min-height: 32px;
    }
    
    .selected-time-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: var(--space-xs);
    }
    
    /* Keep outer box but ensure single box for contact details form */
    .call-scheduler {
        padding: var(--space-md);
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        background: var(--color-white);
    }
    
    .schedule-form {
        padding: var(--space-md);
        background: transparent;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .cta-button {
        width: 100%;
        max-width: none;
    }
    
    /* Continue button styling to match form actions */
    #continue-btn {
        width: 100%;
        max-width: none;
        margin: var(--space-xl) 0 0;
        display: block;
        min-width: 140px;
    }
    
    /* Tighten side padding for mobile */
    .container {
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    .schedule-call-section {
        margin-bottom: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
    
    .time-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
    }
    
    .time-slot {
        font-size: 0.55rem;
        width: 100%;
        min-width: auto;
        max-width: none;
        padding: 6px 1px;
        border-radius: 3px;
        flex: none;
        min-height: 28px;
    }
    
    .day-header {
        min-height: 30px;
        font-size: 0.6rem;
        padding: 1px;
    }
    
    .day-date {
        min-height: 20px;
        font-size: 0.55rem;
        padding: 1px;
    }
    
    /* Keep outer box but ensure single box for contact details form on very narrow screens */
    .call-scheduler {
        padding: var(--space-sm);
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        background: var(--color-white);
    }
    
    .schedule-form {
        padding: var(--space-sm);
        background: transparent;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }
    
    /* Even tighter padding for very narrow screens */
    .container {
        padding: 0 0.5rem;
    }
}

/* Process Images Section */
.process-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.process-heading {
    font-size: var(--font-size-h2);
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-dark-grey);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 2rem;
}

.process-thumbnail {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 240px;
    height: 240px;
}

.process-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.process-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.process-thumbnail:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments for process grid */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
        padding: 0 1rem;
    }
    .process-thumbnail {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
        padding: 0 0.5rem;
    }
    .process-thumbnail {
        width: 110px;
        height: 110px;
    }
}


/* --- PR: Footer project navigation combined bar, equal widths, divider --- */
.footer .nav-links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: var(--color-medium-grey);
  border-radius: 12px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}
.footer .nav-link {
  flex: 1 1 0;
  text-align: center;
  color: var(--color-white);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.footer .nav-link .nav-label,
.footer .nav-link .nav-title { color: var(--color-white); }

/* Create a proper divider using a pseudo-element */
.footer .nav-link:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: var(--color-accent-cream);
}

@media (max-width: 480px) {
  .footer .nav-links { flex-direction: column; }
  .footer .nav-link:first-child::after {
    display: none;
  }
  .footer .nav-link:first-child::before {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 0;
    height: 2px;
    background: var(--color-accent-cream);
  }
}

/* --- PR: Center sparse process grids --- */
.process-grid--center {
  width: auto;
  margin-left: 0;
  max-width: 980px;
  margin-inline: auto;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

