@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Palette */
    --canvas: #F5F5F3;
    --ink: #111111;
    --paper: #FFFFFF;

    /* New Identity Colors */
    --accent: #294896;
    /* Swiss Blue */
    --signature-green: #158A4A;
    /* Vivid Signature Green */
    --signature-green-dark: #14904A;

    --text-muted: #555555;
    /* Slightly darker for better legibility */
    --footer-bg: #101B33;
    --footer-text: #E6E6E6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --base-font-size: 16px;
    --h1-size: clamp(3rem, 8vw, 6rem);
    --h2-size: clamp(2rem, 5vw, 3.5rem);
    --body-size: 1.125rem;

    /* Grid & Spacing */
    --max-width: 1440px;
    --gap: 2rem;
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 8rem;

    /* Rhythm */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--canvas);
    color: var(--ink);
    line-height: 1.5;
    font-weight: 400;
    font-size: var(--body-size);
    overflow-x: hidden;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(0);
}

.animate-on-scroll.animated {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* Layout: Swiss Grid */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-s) 0;
    color: var(--ink);
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    letter-spacing: -0.02em;
}

.logo a,
.footer-brand .logo {
    display: inline-block;
    background: url("../img/logo-townproject.png") no-repeat center / contain;
    text-indent: -9999px;
    width: 140px;
    height: 34px;
    overflow: hidden;
}

.footer-brand .logo {
    width: 180px;
    height: 44px;
    margin-bottom: var(--space-xs);
    background-image: url("../img/logo-blanc.svg");
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-m);
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

@media (min-width: 769px) {
    .nav-links a[href="signature.html"] {
        font-size: 1rem;
        letter-spacing: 0.14em;
        font-weight: 600;
    }
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
    transition: all var(--transition-fast);
    transform-origin: center;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu .nav-links {
    flex-direction: column;
    gap: var(--space-l);
    align-items: center;
    list-style: none;
    margin-bottom: var(--space-xl);
}

.mobile-menu .nav-links a {
    font-size: 1.5rem;
    color: var(--ink);
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: var(--transition-fast);
}

.mobile-menu .nav-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.mobile-menu-cta {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
    width: 100%;
}

.mobile-menu-cta a {
    display: inline-block;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid currentColor;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    border-radius: 4px;
    font-weight: 500;
    min-width: 200px;
    text-align: center;
}

.mobile-menu-cta a:hover {
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-cta a {
    text-decoration: none;
    color: inherit;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid currentColor;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

.header-cta a:hover {
    background: var(--paper);
    color: var(--ink);
}

/* Intro Section */
.intro {
    min-height: 100vh;
    padding-top: var(--space-xl);
    display: flex;
    align-items: center;
    background-color: var(--paper);
}

.intro.hero {
    background: linear-gradient(120deg, rgba(0, 51, 102, 0.08), rgba(255, 255, 255, 0) 60%);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.intro-visual {
    grid-column: 1 / span 8;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.intro-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2);
    transition: var(--transition-slow);
}

.intro.hero .intro-visual {
    border-radius: 0;
}

.intro.hero .intro-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.intro.hero .intro-visual img {
    filter: contrast(1.05) saturate(1.1);
}

.intro-content {
    grid-column: 9 / span 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--space-l);
    position: relative;
    padding-left: var(--space-m);
}

.intro-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

.intro.mini {
    background: var(--paper);
    background-image: linear-gradient(135deg, rgba(41, 72, 150, 0.22) 0%, rgba(41, 72, 150, 0.08) 45%, transparent 100%);
}

body.signature-page .intro.mini {
    background: var(--paper);
    background-image: linear-gradient(135deg, rgba(21, 138, 74, 0.22) 0%, rgba(21, 138, 74, 0.08) 45%, transparent 100%);
}

.intro.mini .intro-content {
    grid-column: 1 / span 12;
}

.intro.mini .intro-content::before {
    display: none;
}

body.signature-page .intro-content::before {
    background: var(--signature-green);
}

body.signature-page .expertise-item {
    border-top-color: rgba(38, 198, 104, 0.6);
}

@media (max-width: 768px) {
    .intro-content::before {
        left: 0;
        width: 2px;
    }
    
    .intro.mini .intro-content::before {
        left: 0;
        width: 2px;
    }
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-s);
    color: var(--text-muted);
}

h1 {
    font-size: var(--h1-size);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-m);
}

.intro-content p {
    font-size: 1.25rem;
    max-width: 300px;
    color: var(--text-muted);
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    /* Visible by default for non-JS/local preview */
    transform: translateY(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-enabled .reveal:not(.active) {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle hover animations */
.expertise-item,
.project-card-premium,
.signature-project-card,
.feature-box {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.expertise-item:hover,
.feature-box:hover {
    transform: translateY(-4px);
}

/* Smooth scroll reveal with stagger */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover effects */
.intro-visual img,
.expertise-visual img,
.interlude img {
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.intro-visual:hover img,
.expertise-visual:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

/* Button animations */
.line-link,
.header-cta a,
.swiss-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.line-link::before,
.header-cta a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.line-link:hover::before,
.header-cta a:hover::before {
    left: 100%;
}


/* Expertise Section */
.expertise {
    padding: var(--space-xl) 0;
    background-color: var(--paper);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.expertise-grid.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.expertise-grid.projects-grid .expertise-item {
    grid-column: auto;
}

.expertise-grid.projects-grid-two {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (min-width: 1200px) {
    .expertise-grid.projects-grid-two {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .expertise-grid.projects-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .expertise-grid.projects-grid-two {
        grid-template-columns: 1fr;
    }
}

.expertise-grid.projects-grid-two .expertise-item {
    grid-column: span 2;
}

.expertise-grid.projects-grid-two .expertise-item:nth-child(8n + 4),
.expertise-grid.projects-grid-two .expertise-item:nth-child(8n + 5) {
    grid-column: span 3;
}

.expertise-grid.projects-grid-two .expertise-item:nth-last-child(-n + 2) {
    grid-column: span 3;
}

.expertise-header {
    grid-column: 1 / span 12;
    margin-bottom: var(--space-l);
}

.expertise-header h2 {
    font-size: var(--h2-size);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.expertise-item {
    grid-column: span 4;
    padding-top: var(--space-m);
    border-top: 1px solid var(--ink);
}

body.services-page .expertise-item {
    position: relative;
}

body.services-page .expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--accent);
}

@media (max-width: 768px) {
    body.services-page .expertise-item {
        padding-left: var(--space-m);
    }

    body.services-page .expertise-item::before {
        top: 10px;
        left: 0;
        width: 4px;
        height: 60%;
        border-radius: 2px;
    }
}

.num {
    display: block;
    font-size: 0.75rem;
    margin-bottom: var(--space-s);
    color: var(--text-muted);
}

.expertise-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.expertise-item p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 250px;
}

.expertise-visual {
    grid-column: 5 / span 8;
    grid-row: 2 / span 2;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.expertise-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Manifeste Section */
.manifeste {
    padding: var(--space-xl) 0;
    background-color: var(--canvas);
}

.manifeste-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
    text-align: center;
}

.manifeste p {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto var(--space-l);
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--ink);
    font-weight: 500;
}

.line-link {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
}

.line-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.line-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.line-link.accent-green {
    color: var(--signature-green);
}

.line-link.accent-green::after {
    background: var(--signature-green);
}

.line-link.accent-signature {
    color: var(--signature-green);
}

.line-link.accent-signature::after {
    background: var(--signature-green);
}

/* Interlude */
.interlude {
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.interlude img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Footer Finalized (Dark Theme) */
.footer {
    padding: var(--space-xl) 0 var(--space-m);
    background-color: var(--footer-bg);
    color: var(--footer-text);
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 0 var(--space-m);
}

.footer-brand {
    grid-column: 1 / span 5;
}

.footer-contact {
    grid-column: 6 / span 4;
}

.footer-social {
    grid-column: 10 / span 3;
}

.footer-brand .logo {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--paper);
    /* White logo */
}

.footer h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D7E4FF;
    /* Muted contrast */
    margin-bottom: var(--space-s);
}

.footer p,
.footer li {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-xs);
    color: var(--footer-text);
}

.footer-links a,
.footer-social a,
.footer-contact a,
.line-link {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover,
.footer-contact a:hover,
.line-link:hover {
    color: var(--paper);
}

.footer-bottom {
    grid-column: 1 / span 12;
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle divider */
}

.footer-legal-links {
    display: flex;
    gap: var(--space-s);
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: #888;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--paper);
}

.footer-credit {
    margin-top: var(--space-s);
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.02em;
}

.footer-credit a {
    color: #999;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--paper);
}

.back-to-top {
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #888;
}

.back-to-top:hover {
    color: var(--paper);
}

.legal-content {
    border-top: none;
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: var(--space-l);
    margin-bottom: var(--space-s);
    color: var(--ink);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    max-width: none;
    margin-bottom: var(--space-s);
    line-height: 1.8;
}

.legal-content ul {
    padding-left: var(--space-m);
    margin-bottom: var(--space-s);
}

.legal-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.8;
    color: var(--text-muted);
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-content a:hover {
    color: var(--ink);
}

@media (max-width: 992px) {

    .footer-brand,
    .footer-contact,
    .footer-social {
        grid-column: span 6;
        margin-bottom: var(--space-m);
    }
}

@media (max-width: 768px) {

    .footer-brand,
    .footer-contact,
    .footer-social {
        grid-column: span 12;
    }
}

/* Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.2) 0%, transparent 50%);
    animation: fadeIn 2s ease-out;
}

/* Signature page specific gradient - Noir et Vert */
.signature-header {
    background: linear-gradient(135deg, #111111 0%, var(--signature-green-dark) 100%) !important;
}

.signature-header::before {
    background: radial-gradient(circle at 30% 50%, rgba(38, 198, 104, 0.35) 0%, transparent 60%) !important;
}

/* Signature page - Green accents instead of blue */
body.signature-page .process-step:hover {
    border-color: rgba(38, 198, 104, 0.3) !important;
}

body.signature-page .feature-box:hover {
    border-color: rgba(38, 198, 104, 0.3) !important;
}

body.signature-page .signature-cta {
    background: linear-gradient(135deg, var(--signature-green) 0%, var(--signature-green-dark) 100%) !important;
}

body.signature-page .signature-btn:hover {
    background: #f0fff5 !important;
    color: var(--signature-green-dark) !important;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-content {
    padding: 4rem 0;
    animation: fadeIn 0.8s ease-out;
}

/* Service List */
.service-list {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Intro Mini Variant */
.intro.mini {
    min-height: 50vh;
    padding-top: var(--space-xl);
}

.intro.mini h1 {
    font-size: var(--h2-size);
}

/* Detailed Grid */
.expertise.detailed {
    background-color: var(--paper);
}

.expertise.detailed .expertise-item {
    grid-column: span 4;
    margin-bottom: var(--space-l);
}

@media (max-width: 992px) {
    .expertise.detailed .expertise-item {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .expertise.detailed .expertise-item {
        grid-column: span 12;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        padding: var(--space-s) 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: var(--ink);
        mix-blend-mode: normal;
    }

    .main-nav .nav-links {
        display: none;
    }

    .header-cta {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .logo a {
        font-size: 1.125rem;
        width: 140px;
        height: 34px;
    }

    .footer-brand .logo {
        width: 160px;
        height: 40px;
    }

    .intro-visual {
        grid-column: 1 / span 12;
    }

    .intro-content {
        grid-column: 1 / span 12;
    }

    .intro.mini {
        padding-top: var(--space-l);
        min-height: auto;
    }

    .intro.mini .intro-content {
        padding-bottom: var(--space-m);
    }

    body.signature-page .intro.mini {
        padding-top: calc(var(--space-l) + 1.5rem);
        padding-bottom: var(--space-m);
    }

    .expertise-item {
        grid-column: 1 / span 12;
    }

    .expertise-visual {
        grid-column: 1 / span 12;
        grid-row: auto;
    }

    .footer-brand,
    .footer-contact,
    .footer-nav {
        grid-column: 1 / span 12;
    }

    .expertise-grid .expertise-item[style*="grid-column: span 4"],
    .expertise-grid .expertise-item[style*="grid-column: span 3"],
    .expertise-grid .expertise-item[style*="grid-column: span 6"],
    .expertise-grid .expertise-item[style*="grid-column: span 8"] {
        grid-column: 1 / span 12 !important;
    }

    .expertise-item {
        border-top: none;
        padding-top: 0;
    }

    .project-card-premium,
    .signature-project-card {
        border: none;
    }
}

@media (max-width: 768px) {
    body.contact-page .intro.mini {
        padding-top: calc(var(--space-l) + 2.5rem);
        min-height: auto;
    }
}

@media (max-width: 768px) {
    body.realisation-page .intro.mini,
    body.services-page .intro.mini {
        padding-top: calc(var(--space-l) + 2.5rem);
        min-height: auto;
    }

    body.legal-page .intro.mini {
        padding-top: calc(var(--space-l) + 4.5rem);
        min-height: auto;
    }
}


/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Project Card Premium for Realisations */
.project-card-premium {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all var(--transition-slow);
    animation: fadeInUp 0.6s ease-out;
}

.project-card-premium::after,
.signature-project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.08), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.project-card-premium:hover::after,
.signature-project-card:hover::after {
    opacity: 1;
}

.project-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    border-color: var(--accent);
}

.project-visual-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.project-visual-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-visual-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card-premium:hover .project-visual-wrapper img {
    transform: scale(1.1);
}

.project-info-premium {
    padding: var(--space-m);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.project-info-premium .num {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.project-card-premium {
    border-color: rgba(0, 51, 102, 0.15);
}

.project-card-premium:hover {
    border-color: var(--accent);
}

.project-info-premium h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    color: var(--ink);
    transition: color var(--transition-fast);
}

.project-card-premium:hover .project-info-premium h3 {
    color: var(--accent);
}

.project-info-premium p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.project-info-premium .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 51, 102, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    margin-top: var(--space-xs);
    width: fit-content;
}

/* Signature Projects - Balanced Grid Layout */
.signature-projects-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-m);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
}

@media (min-width: 1200px) {
    .signature-projects-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
@media (max-width: 992px) {
    .signature-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .signature-projects-grid {
        grid-template-columns: 1fr;
    }
}

.signature-projects-grid .signature-project-card {
    grid-column: span 2;
}

.signature-projects-grid .signature-project-card:nth-child(8n + 4),
.signature-projects-grid .signature-project-card:nth-child(8n + 5) {
    grid-column: span 3;
}

@media (max-width: 992px) {
    .signature-projects-grid .signature-project-card,
    .expertise-grid.projects-grid-two .expertise-item {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .signature-projects-grid .signature-project-card,
    .expertise-grid.projects-grid-two .expertise-item {
        grid-column: span 1;
    }
}

.signature-project-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: var(--paper);
    border: 2px solid rgba(38, 198, 104, 0.2);
    transition: all var(--transition-slow);
    animation: fadeInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.signature-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(38, 198, 104, 0.2);
    border-color: var(--signature-green);
}

.signature-project-visual {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.signature-project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.signature-project-card:hover .signature-project-visual img {
    transform: scale(1.1);
}

.signature-project-info {
    padding: var(--space-m);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    background: var(--paper);
}

.signature-project-info .num {
    font-size: 0.75rem;
    color: var(--signature-green);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.signature-project-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    color: var(--ink);
    transition: color var(--transition-fast);
}

.signature-project-card:hover .signature-project-info h3 {
    color: var(--signature-green);
}

.signature-project-info p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.signature-project-info .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(38, 198, 104, 0.1);
    color: var(--signature-green);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    margin-top: var(--space-xs);
    width: fit-content;
}

@media (max-width: 768px) {
    .signature-projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    gap: var(--space-m);
    overflow-x: auto;
    padding: 0 var(--space-m) var(--space-s);
    max-width: var(--max-width);
    margin: 0 auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.project-gallery-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-s);
}

.project-gallery-title + p {
    margin-top: 0;
}

.project-gallery.is-dragging {
    cursor: grabbing;
}

.project-gallery-item {
    scroll-snap-align: start;
}

.project-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.project-hero-carousel {
    max-width: 1100px;
    margin: 0 auto var(--space-l);
    padding: 0 var(--space-m);
}

.project-hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    background: #0f1524;
}

.project-hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-hero-frame img.is-fading {
    opacity: 0;
    transform: scale(0.98);
}

.project-hero-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: var(--space-s);
}

.project-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.project-hero-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.15);
}

body.signature-page .project-hero-dot.active {
    background: var(--signature-green);
    border-color: var(--signature-green);
}

.project-hero-controls {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-s);
    pointer-events: none;
}

.project-hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.25);
    color: var(--paper);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    pointer-events: auto;
}

.project-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--paper);
}

@media (max-width: 768px) {
    .project-hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .project-hero-carousel {
        margin-bottom: var(--space-m);
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(13, 15, 18, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 2000;
    padding: var(--space-l);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(90vw, 1200px);
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.lightbox img.is-swiping-out {
    opacity: 0;
    transform: translateX(var(--swipe-out, 120px)) scale(0.98);
}

.lightbox img.is-swiping-in {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    color: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--paper);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.2);
    color: var(--paper);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--paper);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 38px;
        height: 38px;
    }
}

.form-submit {
    align-self: flex-start;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: var(--paper);
    border: 2px solid var(--accent);
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--space-xs);
}

.form-submit:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.project-hidden {
    display: none !important;
}

.scroll-hint {
    color: var(--text-muted);
    margin-bottom: var(--space-m);
}

@media (min-width: 769px) {
    .scroll-hint {
        display: none;
    }

    .project-gallery {
        scrollbar-width: none;
    }

    .project-gallery::-webkit-scrollbar {
        display: none;
    }
}

.projects-toolbar {
    max-width: var(--max-width);
    margin: 0 auto var(--space-l);
    padding: 0 var(--space-m);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    align-items: center;
    justify-content: space-between;
}

.projects-search {
    flex: 1 1 240px;
    display: flex;
    gap: var(--space-s);
    align-items: center;
}

.projects-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: var(--paper);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.projects-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.filter-button {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    color: var(--ink);
    padding: 0.5rem 0.9rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 999px;
}

.filter-button:hover,
.filter-button.is-active {
    background: var(--accent);
    color: var(--paper);
    border-color: var(--accent);
}

body.signature-page .filter-button:hover,
body.signature-page .filter-button.is-active {
    background: var(--signature-green);
    color: var(--paper);
    border-color: var(--signature-green);
}

body.signature-page .projects-search input:focus {
    border-color: var(--signature-green);
    box-shadow: 0 0 0 3px rgba(21, 138, 74, 0.1);
}

@media (max-width: 768px) {
    .projects-toolbar {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: var(--space-m);
    }
}


/* Project Cards & Blog Cards */
.project-card,
.blog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.project-link:hover {
    text-decoration: none;
}

.project-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
    opacity: 1;
    visibility: visible;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    opacity: 1;
    visibility: visible;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 1;
    visibility: visible;
}

.project-tag {
    opacity: 1;
    visibility: visible;
}

.project-image {
    opacity: 1;
    visibility: visible;
}

.project-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-card::before,
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before,
.blog-card:hover::before {
    opacity: 1;
}

.project-card:hover,
.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.project-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.blog-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.project-image,
.blog-image {
    position: relative;
    overflow: hidden;
}

.project-image::after,
.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-image::after,
.blog-card:hover .blog-image::after {
    opacity: 1;
}

/* Feature Boxes */
.feature-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

.feature-box {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Contact Form Modern Style */
.swiss-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    padding: var(--space-l);
    background: var(--paper);
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
    transition: all var(--transition-fast);
    animation: fadeInUp 0.6s ease-out;
}

.swiss-form:hover {
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.12);
    border-color: rgba(0, 51, 102, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    font-weight: 500;
}

.swiss-form input,
.swiss-form select,
.swiss-form textarea {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    transition: all var(--transition-fast);
    width: 100%;
}

.swiss-form input:focus,
.swiss-form select:focus,
.swiss-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    transform: translateY(-2px);
}

.swiss-form textarea {
    resize: vertical;
    min-height: 150px;
    font-family: var(--font-primary);
}

.swiss-form button[type="submit"] {
    align-self: flex-start;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: var(--paper);
    border: 2px solid var(--accent);
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--space-xs);
}

.swiss-form button[type="submit"]:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.contact-card-premium {
    padding: var(--space-l);
    background: var(--paper);
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
    animation: fadeInUp 0.8s ease-out;
    transition: all var(--transition-fast);
}

.contact-card-premium:hover {
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.12);
    border-color: rgba(0, 51, 102, 0.2);
    transform: translateY(-4px);
}

.contact-card-premium h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-s);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.contact-card-premium p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-xs);
}

.contact-card-premium a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-card-premium a:hover {
    color: var(--ink);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Section Animations */
.services-section,
.about-section {
    position: relative;
}

.services-section::before,
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.services-section>.container,
.about-section>.container {
    position: relative;
    z-index: 1;
}

/* Logo Animation */
.logo a {
    position: relative;
    transition: var(--transition);
}

.logo a:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Footer Glass Effect */
.footer {
    background: linear-gradient(135deg, var(--footer-bg) 0%, #243A64 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(41, 72, 150, 0.14) 0%, transparent 55%);
    pointer-events: none;
}

body.signature-page .footer {
    background: linear-gradient(135deg, #0F6B38 0%, #0A5128 100%);
}

body.signature-page .footer::before {
    background: radial-gradient(circle at 30% 20%, rgba(21, 138, 74, 0.2) 0%, transparent 55%);
}

@media (max-width: 768px) {
    body.signature-page .expertise.detailed {
        padding-bottom: var(--space-m);
    }

    body.signature-page .expertise.detailed + .expertise.detailed {
        padding-top: var(--space-m);
    }
}

.footer-content {
    position: relative;
    z-index: 1;
}

/* CTA Sections */
.cta-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

/* Smooth transitions for all interactive elements */
a,
button {
    transition: var(--transition);
}

/* Cursor effects for interactive elements */
a,
button,
/* Navigation Active State */
.nav-links a.active {
    color: var(--ink);
    font-weight: 500;
}

/* Footer Link Interaction */
.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--ink);
}

/* Project grid patterns: always 2 or 3 per row */
.expertise-grid.projects-grid-two {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.expertise-grid.projects-grid-two .expertise-item {
    grid-column: span 2;
}

.expertise-grid.projects-grid-two .expertise-item:nth-child(8n + 4),
.expertise-grid.projects-grid-two .expertise-item:nth-child(8n + 5) {
    grid-column: span 3;
}

@media (max-width: 992px) {
    .expertise-grid.projects-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .expertise-grid.projects-grid-two .expertise-item {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .expertise-grid.projects-grid-two {
        grid-template-columns: 1fr;
    }

    .expertise-grid.projects-grid-two .expertise-item {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .expertise-grid.projects-grid-two .expertise-item,
    .expertise-grid.projects-grid-two .expertise-item:nth-child(8n + 4),
    .expertise-grid.projects-grid-two .expertise-item:nth-child(8n + 5),
    .expertise-grid.projects-grid-two .expertise-item:nth-last-child(-n + 2) {
        grid-column: 1 / -1 !important;
        width: 100%;
    }

    .signature-projects-grid {
        grid-template-columns: 1fr !important;
    }

    .signature-projects-grid .signature-project-card {
        grid-column: 1 / -1 !important;
        width: 100%;
    }

    .project-card-premium,
    .signature-project-card {
        width: 100%;
    }

    .project-visual-wrapper img,
    .signature-project-visual img {
        display: block;
        width: 100%;
        height: 100%;
    }
}