:root {
    --font-main: "Inter Tight", sans-serif;
    --color-bg: #ffffff;
    /* Global white */
    --color-text: #050505;
    --color-text-light: #555555;
    --color-accent: #000000;

    --spacing-unit: 1rem;
    --header-height: 100px;
    --container-width: 100%;
    --max-width: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    /* scroll-behavior: smooth; Removed for Lenis JS smooth scroll */
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* overflow-x: hidden; Removed to fix sticky behavior on desktop */
}

body {
    width: 100%;
    /* overflow-x: hidden; Removed to fix sticky behavior */
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    background-color: rgba(244, 244, 244, 0.1);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
    /* mix-blend-mode: difference; Removed for glass effect */
}

.logo {
    font-weight: 900;
    font-size: 64px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 4rem;
}

.site-nav a {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
}

/* Main Layout */


section {
    width: 100%;
    min-height: 80vh;
    padding: 4rem 5vw;
    display: flex;
    flex-direction: column;
}



.content-wrapper {
    max-width: 1000px;
    /* Keep text somewhat contained for readability */
    margin: 0 auto;
    text-align: center;
}

.contact-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 0;
    padding-right: 0;
    background-color: #e6e6e6;
    min-height: 100vh;
    /* Ensure full height for scrolling on large screens */
    /* Distinct light gray */
}

.contact-section h2 {
    display: none;
    /* Hide default title if still present or for safety */
}

.contact-marquee {
    width: 100%;
    /* Was 100vw, caused overflow. Section has 0 padding so 100% is full width. */
    margin-left: 0;
    /* Break out NOT needed as section has 0 padding */
    overflow: hidden;
    margin-bottom: 4rem;
    position: relative;
    /* mix-blend-mode removed to ensure true white color */
}

.marquee-inner {
    display: flex;
    width: max-content;
    /* Ensure it takes full width of text */
    will-change: transform;
    animation: marquee-scroll 80s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.marquee-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 500px;
    line-height: 0.8;
    /* Tight fit */
    color: #ffffff;
    white-space: nowrap;
    padding-right: 2rem;
    letter-spacing: -2rem;
    /* Tighten letter spacing */
}

.about-marquee {
    width: auto;
    /* Allow auto width to fill with negative margins */
    margin-left: -5vw;
    margin-right: -5vw;
    /* Pull right side too */
    /* Counteract section padding (5vw) to go full width */
    /* Full width */
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    mix-blend-mode: normal;
    z-index: 0;
    /* Ensure it stays below hero */
}

.about-marquee .marquee-inner {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marquee-scroll 60s linear infinite;
    /* Slightly faster or different speed if desired */
}

.about-marquee .marquee-text {
    font-family: 'Inter', sans-serif;
    /* Keep consistent font */
    font-weight: 900;
    font-size: 250px;
    /* Requested size */
    /* Requested size */
    line-height: 1.2;
    /* Increased to ensure descenders (g, j, p) are fully visible */
    padding-bottom: 2rem;
    /* Extra safety buffer */
    color: #000000;
    /* Requested Black */
    white-space: nowrap;
    padding-right: 4rem;
    /* More spacing for larger text */
    letter-spacing: -0.04em;
}

@media (max-width: 900px) {
    .marquee-text {
        font-size: 200px;
        /* Reduced from 500px */
        letter-spacing: -0.5rem;
    }

    .about-marquee .marquee-text {
        font-size: 120px;
        /* Reduced from 250px */
        padding-right: 2rem;
    }
}

/* New Contact Snippet Styles */
.contact-section .content-wrapper {
    width: 100%;
    margin-left: 35%;
    /* Align with projects images column */
    max-width: 800px;
    padding-right: 5vw;
    text-align: left;
}

.contact-group {
    margin-bottom: 3rem;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 200;
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    letter-spacing: 0.05em;
}

/* Interactive Email Component */
.contact-interactive {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

@media (min-width: 1024px) {
    .contact-interactive {
        padding: 2rem 0;
    }
}



.email-link {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 200;
    line-height: 1.1;
    transition: opacity 200ms ease;
    text-decoration: none;
    color: currentColor;
    font-size: 1.875rem;
    /* text-3xl */
    display: block;
    width: fit-content;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

@media (min-width: 768px) {
    .email-link {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .email-link {
        font-size: 3rem;
    }

}

@media (min-width: 1280px) {
    .email-link {
        font-size: 3.75rem;
    }
}

.email-link.inactive {
    opacity: 0.2;
}

.email-suffix {
    padding-left: 0.5rem;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-size: 1.25rem;
    z-index: 1;
}

.email-suffix.with-transition {
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Matching sizes for suffix */
.email-link-size {
    font-size: 1.875rem;
}

@media (min-width: 768px) {
    .email-link-size {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .email-link-size {
        font-size: 3rem;
    }
}

@media (min-width: 1280px) {
    .email-link-size {
        font-size: 3.75rem;
    }
}


.phone-link {
    color: currentColor;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .phone-link {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .phone-link {
        font-size: 2.25rem;
    }
}

/* Projects Footer / See More */
.see-more-container {
    margin-top: -8rem;
    /* Counteract the 10rem gap from parent to bring it closer */
    text-align: left;
    /* Aligned with images */
}

.see-more-link {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 200;
    text-transform: none;
    border-bottom: none;
    padding-bottom: 0.2rem;
    transition: opacity 0.3s;
    text-decoration: none;
    color: #808080;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.see-more-link svg {
    width: 2.5rem;
    height: 2.5rem;
}

/* Project Overlay */
.project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    display: none;
    /* Hidden by default */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

.project-overlay.active {
    display: block;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

.overlay-content {
    min-height: 100%;
    padding: 6rem 5vw 4rem;
    max-width: 75%;
    margin: 0 auto;
}

.overlay-main-title {
    font-size: 6rem;
    /* 96px */
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4rem;
    text-align: left;
    /* Or center? but left is sober */
}

.project-details-split {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 4rem;
    max-width: none;
    /* Full width */
    margin: 0;
}

.project-info-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-meta p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 2rem;
    white-space: pre-line;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.slider-container img {
    width: 100%;
    height: auto;
    /* Removed object-fit: cover to prevent cropping */
    display: block;
}

@media (max-width: 900px) {
    .project-details-split {
        grid-template-columns: 1fr;
    }

    .overlay-content {
        padding-top: 5rem;
    }
}

/* --- Typography Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--color-text, #050505);
}

h1,
.text-h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

h2,
.text-h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

h3,
.text-h3 {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
}

h4,
.text-h4 {
    font-size: 1.25rem;
}

h5,
.text-h5 {
    font-size: 1.125rem;
}

h6,
.text-h6 {
    font-size: 1rem;
}

/* Special Typography Classes */
.text-hero {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.text-section-title {
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    position: relative;
    padding: 0;
    /* Full screen, no padding on container */
    background-color: #ffffff;
    /* Prevent marquee seeing through */
    z-index: 10;
    /* Keep on top of parallax elements coming from below */
}

.hero-content {
    z-index: 2;
    /*mix-blend-mode: difference;*/
    color: #000000;
    padding-bottom: 8rem;
    padding-left: 5vw;
    width: 100%;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* About */
.about-section {
    justify-content: center;
    background-color: #ffffff;
}

.about-section h2 {
    margin-bottom: 5rem;
}

.about-content {
    max-width: 1200px;
    /* Increased from 900px */
    margin: 0 auto;
    text-align: left;
}

.about-intro {
    font-size: 1.8rem;
    /* Increased from 1.4rem */
    line-height: 1.4;
    margin-bottom: 4rem;
    font-weight: 300;
    color: #000;
    text-align: center;
    /* Intro centered for impact */
    max-width: 1000px;
    /* Increased to match container scale */
    margin-left: auto;
    margin-right: auto;
}

.about-intro strong {
    font-weight: 600;
}

.about-details {
    column-count: 2;
    column-gap: 4rem;
    /* Reduced from 6rem */
    margin-bottom: 4rem;
    text-align: justify;
    text-justify: auto;
}

.services-details {
    column-count: 2;
    column-gap: 4rem;
    margin-bottom: 4rem;
    text-align: justify;
    text-justify: none;
}

.about-image {
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid;
    break-after: avoid;
    display: block;
}

.service-intro {
    margin-top: 3rem;
    margin-bottom: 3rem;
    /* font-weight: 500; Removed to match body text */
}

.service-block {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.service-block h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
}

.service-block p {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.service-block ul {
    list-style: none;
    padding-left: 0;
}

.service-block li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
    font-size: 1.35rem;
    /* Matched to .about-details p */
    color: var(--color-text-light);
    line-height: 1.6;
    /* Matched to .about-details p */
}

.service-block li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-text-light);
    font-size: 1.35rem;
    /* Ensure bullet matches text */
}

.about-details p {
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
    /* Increased from 1.25rem */
    line-height: 1.6;
    color: var(--color-text-light);
    break-inside: avoid;
}

.section-separator {
    width: 100%;
    height: 1px;
    background-color: #000;
    margin: 4rem 0;
    opacity: 0.1;
    /* Thin and subtle */
}

.about-outro {
    font-size: 2.2rem;
    /* Increased from 1.5rem */
    text-align: center;
    font-weight: 200;
    margin-top: 3rem;
    letter-spacing: -0.02em;
}

.reveal-text {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(8px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out, filter 1.5s ease-out;
    will-change: opacity, transform, filter;
}

.reveal-text.visible {
    opacity: 1;
    transform: scale(1.1);
    filter: blur(0);
}

@media (max-width: 768px) {

    .about-details,
    .services-details {
        column-count: 1;
        text-align: left;
    }

    .about-intro {
        text-align: left;
        font-size: 1.5rem;
    }

    .about-content {
        padding: 0 5vw;
    }
}

/* --- Mobile overflow & marquee size fixes --- */
@media (max-width: 1023px) {

    html,
    body {
        overflow-x: hidden;
    }

    .about-marquee .marquee-text {
        font-size: 80px;
        letter-spacing: -0.02em;
        padding-bottom: 0.5rem;
        padding-right: 2rem;
    }

    .about-marquee {
        margin-bottom: 0;
    }

    .marquee-text {
        font-size: 150px;
        letter-spacing: -0.5rem;
    }

    .contact-section {
        overflow-x: hidden;
    }
}

/* --- Narrow screen email component fix --- */
@media (max-width: 480px) {

    .email-link,
    .email-link-size,
    .email-suffix {
        font-size: 1.3rem;
    }

    .phone-link {
        font-size: 1.1rem;
    }
}

/* Contact Section */
.contact-section {
    padding-left: 0;
    /* Reset padding-left */
    padding-right: 0;
    /* Reset padding-right */
}

.contact-section .content-wrapper {
    margin-left: 35%;
    /* Align to 35% on desktop */
}

.contact-marquee {
    margin-left: 0;
    /* Remove margin-left */
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .contact-section .content-wrapper {
        margin-left: 0;
        padding-left: 5vw;
        padding-right: 5vw;
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        text-align: center;
        /* Center info on mobile as per design vibe */
    }

    .contact-form-container {
        padding: 0 1rem;
    }
}

/* Projects */
/* Projects Split Layout */
.projects-section {
    min-height: auto;
    position: relative;
    /* margin-top: 20vh; Removed for packed layout */
    padding-top: 10rem;
    /* Add padding instead for internal spacing */
    background-color: #ffffff;
    scroll-margin-top: 150px;
    z-index: 10;
    /* Ensure it sits on top */
    position: relative;
    /* offset for fixed header */
}

.sticky-title-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Unstick very early */
    pointer-events: none;
    z-index: 30;
}

.projects-sticky-title {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    margin-left: 5vw;
    margin-top: 140px;
    /* Push start position down */
    margin-bottom: 0;
    color: #000;
    pointer-events: none;
    line-height: 0.7;
    /* Tight fit for better top alignment */
    letter-spacing: -0.03em;
    background-color: #ffffff;
    /* Mask content behind */
    padding: calc(1rem + 40px) 2rem 1rem 0;
    /* Add top padding to reach header */
    width: calc(35% - 5vw);
    /* Mask full column width */
    height: auto;
    /* Allow background to show */
    overflow: visible;
}

.projects-split-layout {
    display: grid;
    grid-template-columns: 35% 65%;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Left Column: Sticky Titles */
.projects-titles {
    position: sticky;
    top: 100px;
    /* Aligned below header */
    height: calc(100vh - 100px);
    /* Adjust height to fit visible area */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5vw;
    /* Limit height to show approx 4 items */
    max-height: 100vh;
    overflow: hidden;
    /* Mask others */
}

.title-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    will-change: transform;
    /* transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); Removed for JS scroll sync */
}

.project-link {
    font-size: clamp(1.25rem, 2vw, 2.5rem);
    /* Scaled more aggressively to fit long titles */
    white-space: nowrap;
    /* Prevent wrapping */
    font-weight: 200;
    color: #e6e6e6;
    /* Initial light color */
    cursor: pointer;
    transition: background-color 0.3s ease, padding 0.3s ease;
    display: inline-block;
    text-decoration: none;
    padding-left: 0.5rem;
    /* Standard separation or keep 0 initially? Let's give it structure */
    padding-right: 0.5rem;
}

.project-link:hover {
    color: #000 !important;
    /* Force priority over JS inline style */
    background-color: #e6e6e6;
    /* light grey background */
    /* Padding already set in base class or increased here? */
}

.project-link.active {
    font-weight: 200;
    /* Color handled by JS transition */
    /* No bg change unless hover */
}

/* Right Column: Scrolling Images */
.projects-images {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    padding-top: 0;
    /* Title margin handles the spacing now */
    /* Reduced from 20vh to clear header only */
    /* Start slightly down */
    padding-bottom: 20vh;
    padding-right: 5vw;
}

.project-item-preview {
    width: 100%;
    height: 80vh;
    /* Almost full screen per image */
    position: relative;
}

.project-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* transition: transform 0.5s ease; Optional scale effect */
}

/* Logo Group */
.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    /* Since it's now an anchor */
    color: inherit;
    cursor: pointer;
}

.logo-group:hover {
    opacity: 1;
}

.logo-subtitle {
    font-size: 2.0rem;
    font-weight: 200;
    color: #000000;
}

/* Mobile Project Titles (Hidden on Desktop) */
.mobile-project-title {
    display: none;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-align: center;
    color: #000;
    text-transform: uppercase;
}

/* Responsive adjustment */
/* Extended Mobile Header for Intermediate Screens (prevent wrapping) */
@media (max-width: 1200px) {
    .site-header {
        height: auto;
        padding: 1rem 5vw;
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-group {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .logo {
        font-size: 3rem;
        line-height: 1;
    }

    .logo-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 0;
    }

    .site-nav a {
        font-size: 0.75rem;
    }
}

@media (max-width: 900px) {
    .projects-split-layout {
        display: block;
        /* Stack layout */
    }

    /* Rest of existing 900px media query content... */
    .projects-titles {
        display: block;
        /* Show container for main title */
        height: auto;
        position: relative;
        top: auto;
        padding-left: 0;
        margin-bottom: 3rem;
        text-align: center;
    }

    .title-list,
    .active-tab {
        display: none;
        /* Hide sidebar list/tab */
    }

    .projects-section-title {
        display: block;
        font-family: var(--font-main);
        font-size: 3rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #000;
        text-decoration: none;
        margin-bottom: 2rem;
    }

    /* Clean up old selectors */
    .sticky-title-wrapper,
    .projects-sticky-title {
        display: none;
    }

    .projects-images {
        padding-top: 0;
        /* Adjusted for mobile: no extra padding needed if section has margin */
        padding-right: 0;
        /* Remove side padding */
        gap: 4rem;
        /* Reduce gap between projects */
        padding-bottom: 6rem;
        /* Ensure space before "See More" link */
    }

    .project-item-preview {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .project-item-preview .image-wrapper {
        height: 50vh;
        /* Controlled height for mobile images */
        width: 100%;
        aspect-ratio: auto;
        /* Override default aspect ratio */
    }

    .project-item-preview img {
        /* height: 50vh; Removed - handled by wrapper + parallax class */
        width: 100%;
        object-fit: cover;
    }

    .mobile-project-title {
        display: block;
        /* Show on mobile */
    }


    .site-header {
        height: auto;
        padding: 1rem 5vw;
        flex-direction: column;
        gap: 0.5rem;
        /* Reduced uniform gap */
        background-color: rgba(244, 244, 244, 0.1);
        /* Glass effect restored */
        /* backdrop-filter inherits from desktop rule */
    }

    .logo-group {
        flex-direction: column;
        align-items: center;
        gap: 0;
        /* Removed gap to bring title and subtitle closer */
    }

    .logo {
        font-size: 3rem;
        /* Scaled down from 64px */
        line-height: 1;
        /* Tight line height */
    }

    .logo-subtitle {
        font-size: 1.2rem;
        /* Scaled down */
        margin-bottom: 0;
        /* Remove extra margin */
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        /* Smaller gap */
        margin-top: 0;
    }

    .site-nav a {
        font-size: 0.75rem;
        /* Smaller text to fit one line */
    }

    .overlay-main-title {
        font-size: 3rem;
        word-wrap: break-word;
    }

    .see-more-container {
        margin-top: 8rem !important;
        /* Force space */
        padding-bottom: 4rem;
        position: relative;
        z-index: 10;
        text-align: center;
    }
}

/* Active Tab Indicator */
.active-tab {
    position: absolute;
    left: 4vw;
    /* Slightly less than padding-left 5vw to sit to the left of text */
    top: 50%;
    transform: translateY(-50%);
    /* Centered relative to list item */
    width: 6px;
    height: 3rem;
    /* Match approx line-height of 2.5rem font */
    background-color: #fcdedc;

    z-index: 10;
}

/* Site Footer */
.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    /* 20% opacity for subtle line */
    background-color: #e6e6e6;
    /* Match contact background for seamless look */
    text-align: center;
    padding: 2rem 0;
    font-size: 0.8rem;
    /* Petit texte */
    text-transform: none;
    /* Pas de majuscules */
    color: var(--color-text-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--color-text-light);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Space between icon and text */
}

.social-links a:hover {
    color: #000;
    transform: translateY(-2px);
}

.social-links svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Legal Page Styles */
.legal-section {
    padding-top: calc(var(--header-height) + 4rem);
    background-color: var(--color-bg);
}

.legal-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 4rem;
    text-transform: uppercase;
    text-align: center;
}

.legal-block {
    margin-bottom: 3rem;
    text-align: left;
}

.legal-block h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.legal-block p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.legal-link {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #000;
}

.footer-separator {
    color: var(--color-text-light);
    margin: 0 0.5rem;
}

/* --- Parallax & Reveal Styles --- */

.image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    width: 100%;
    height: 100%;
}

.image-wrapper .parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure the wrapper respects the aspect ratio of the parent or establishes one */
.project-item-preview .image-wrapper {
    width: 100%;
    height: 100%;
    /* If the parent .project-item-preview has specific sizing, this inherits it.
       If .project-item-preview relies on img size, we need to enforce ratio.
       Currently .project-item-preview img has no specific height, naturally takes width.
       We might need to enforce an aspect ratio on .image-wrapper to hold space.
    */
    aspect-ratio: 4/3;
    /* Standard default, can be overridden */
}

/* Project Overlay Styles */
.project-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    /* Enable scrolling within overlay */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding-bottom: 4rem;
    /* Bottom spacing */
}

.project-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: sticky;
    /* Sticky positioning */
    top: 2rem;
    /* Stick to top */
    margin-left: auto;
    /* Push to right */
    margin-right: 2rem;
    display: block;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    color: #000;
}

.overlay-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.project-details-split {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 4rem;
    margin-top: 4rem;
    align-items: start;
    /* Crucial for sticky to work if items stretch by default */
}

.project-info-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (max-width: 900px) {
    .project-details-split {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 20001;
    line-height: 1;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 4rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 20001;
    transition: transform 0.2s;
    user-select: none;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Hide nav on mobile if needed, or adjust size */
@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 2.5rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
}

/* --- HORIZONTAL SCROLL TRANSITION (Desktop Only) --- */
@media (min-width: 1024px) {

    /* 1. Create a tall track for scrolling */
    .projects-section {
        height: 600vh;
        /* Determines length of scroll */
        padding-top: 0;
        /* Removing top padding since we pin content */
        position: relative;
    }

    /* 2. Pin the content window */
    .projects-split-layout {
        position: sticky;
        top: 0;
        height: 100vh;
        width: 100%;
        overflow: hidden;
        /* Hide horizontal overflow */
        display: grid;
        grid-template-columns: 35% 65%;
        align-items: center;
        /* Vertical alignment */
        margin: 0;
        padding-top: 0;
        /* Clear offset */
    }

    /* 3. Left Column: Titles (Fixed in place) */
    .projects-titles {
        height: 100vh;
        position: relative;
        top: auto;
        justify-content: center;
        padding-left: 5vw;
        z-index: 20;
        background-color: #ffffff;
    }



    /* Add "Projets" title back into .projects-titles via clickable link */
    .projects-section-title {
        font-family: var(--font-main);
        font-size: clamp(3rem, 6vw, 6rem);
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1;
        display: block;
        margin-bottom: 4rem;
        text-decoration: none;
        color: #000;

        /* Masking properties */
        position: relative;
        z-index: 50;
        background-color: #ffffff;
        width: 100%;
        padding-bottom: 2rem;
        /* Extend mask upwards */
        padding-top: 50vh;
        margin-top: -50vh;
    }

    /* 4. Right Column: Horizontal Images Row */
    .projects-images {
        display: flex;
        flex-direction: row;
        width: max-content;
        height: 100vh;
        padding: 0;
        gap: 5vw;
        align-items: center;
        transform: translateX(0);
        will-change: transform;
        padding-left: 0;
        /* Align first image flush with column start */
        padding-bottom: 0;
        padding-right: 15vw;
    }

    .project-item-preview {
        width: 58vw;
        /* Reduced to ensure it fits within 65% col minus scrollbar (Safe Zone) */
        height: 70vh;
        flex-shrink: 0;
        position: relative;
    }

    .project-item-preview img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

/* Project Close Button */
.project-close-btn {
    position: fixed;
    top: 120px;
    /* Below header (100px) */
    right: 5vw;
    font-size: 3rem;
    line-height: 1;
    color: #000;
    text-decoration: none;
    z-index: 10000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.project-close-btn:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}

/* --- All Projects Grid (projets.html) --- */
.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 150px 5vw 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item {
    cursor: pointer;
    transition: opacity 0.3s;
}

.grid-item:hover {
    opacity: 0.8;
}

.grid-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

.grid-item h3 {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .all-projects-grid {
        grid-template-columns: 1fr;
        padding-top: 140px;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .grid-image-wrapper {
        height: 300px;
    }

    .project-close-btn {
        top: 110px;
        right: 1rem;
        font-size: 2.5rem;
    }
}

/* GDPR Popup */
.gdpr-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 300px;
    /* Smaller width */
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    /* More transparent */
    backdrop-filter: blur(15px);
    /* Stronger blur for glass effect */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items */
    gap: 1rem;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    /* Center text */
}

.gdpr-popup.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.gdpr-text {
    font-size: 0.9rem;
    /* Slightly smaller text */
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    font-weight: 500;
}

.gdpr-btn {
    /* align-self: flex-end; Removed to allow centering */
    background-color: var(--color-text);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    /* Rounder button */
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gdpr-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

@media (max-width: 600px) {
    .gdpr-popup {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ============================================
   SERVICES PAGE
   ============================================ */

.services-page {
    background-color: var(--color-bg, #ffffff);
    min-height: 100vh;
}

.services-page section {
    min-height: auto;
    display: block;
}

.services-page h2 {
    font-size: unset;
    line-height: unset;
    margin-bottom: 0;
}

/* --- Section 1: Hero éditorial --- */
/* ============================================
   SERVICES PAGE
   ============================================ */

/* --- Section 1: Hero --- */
.srv-hero {
    min-height: 85vh;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 8vw;
    padding-top: calc(var(--header-height, 100px) + 12rem);
    padding-bottom: 4rem;
    position: relative;
}

.srv-hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2.5rem;
}

.srv-hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.6rem;
    height: 1px;
    background: var(--color-text-light);
}

.srv-hero-title {
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.045em;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.srv-hero-subtitle {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.7;
    font-weight: 300;
    color: var(--color-text-light);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.srv-hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.srv-hero-scroll-line {
    display: block;
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, transparent, var(--color-text-light));
    animation: srv-scroll-pulse 2s ease-in-out infinite;
}

@keyframes srv-scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* --- Section 2: Timeline --- */
.srv-timeline-section {
    padding: 8rem 8vw 10rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.srv-timeline-header {
    text-align: center;
    margin-bottom: 6rem;
}

.srv-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.srv-section-title {
    font-size: clamp(1.75rem, 4vw, 3.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

.srv-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 5rem;
}

/* Vertical line */
.srv-timeline::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.04));
}

.srv-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 4.5rem;
}

.srv-step:last-child {
    padding-bottom: 0;
}

/* Marker */
.srv-step-marker {
    position: absolute;
    left: -5rem;
    top: 0.1rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.srv-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--color-text);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Content */
.srv-step-content {
    flex: 1;
    padding-top: 0;
}

.srv-step-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    line-height: 1.3;
}

.srv-step-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.srv-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.srv-step-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-light);
}

.srv-step-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(0, 0, 0, 0.18);
    font-weight: 400;
}

/* --- Section 3: Expertise (image + texte) --- */
.srv-expertise-section {
    padding: 0;
}

.srv-expertise-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.srv-expertise-row--reverse {
    direction: rtl;
}

.srv-expertise-row--reverse > * {
    direction: ltr;
}

.srv-expertise-image {
    position: relative;
    overflow: hidden;
}

.srv-expertise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.srv-expertise-row:hover .srv-expertise-image img {
    transform: scale(1.03);
}

.srv-expertise-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 6vw;
}

.srv-expertise-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-light);
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 2.5rem;
}

.srv-expertise-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.6rem;
    height: 1px;
    background: var(--color-text-light);
}

.srv-expertise-title {
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 1.8rem;
    color: var(--color-text);
}

.srv-expertise-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
}

.srv-expertise-text p strong {
    color: var(--color-text);
    font-weight: 600;
}

.srv-expertise-sub {
    font-weight: 600;
    color: var(--color-text) !important;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.srv-expertise-text .srv-step-list {
    margin-top: 0.2rem;
}

.srv-expertise-text .srv-step-list li {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

/* --- CTA de clôture --- */
.srv-cta {
    padding: 10rem 5vw;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.srv-cta-text {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: 2.5rem;
}

.srv-cta-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    padding: 1.1rem 3.5rem;
    transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.srv-cta-link:hover {
    background: var(--color-text);
    color: #fff;
    opacity: 1;
}

/* --- Scroll Reveal Animation --- */
.srv-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.srv-reveal.srv-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive: Services Page --- */
@media (max-width: 1024px) {
    .srv-expertise-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .srv-expertise-row--reverse {
        direction: ltr;
    }

    .srv-expertise-image {
        height: 50vw;
        min-height: 300px;
        max-height: 500px;
    }

    .srv-expertise-text {
        padding: 3.5rem 6vw 4.5rem;
    }
}

@media (max-width: 768px) {
    .srv-hero {
        min-height: auto;
        padding-top: calc(var(--header-height, 100px) + 6rem);
        padding-bottom: 4rem;
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .srv-hero-scroll {
        display: none;
    }

    .srv-timeline-section {
        padding: 5rem 6vw 6rem;
    }

    .srv-timeline-header {
        margin-bottom: 4rem;
    }

    .srv-timeline {
        padding-left: 3.5rem;
    }

    .srv-step-marker {
        left: -3.5rem;
        width: 1.8rem;
        height: 1.8rem;
    }

    .srv-step-number {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.6rem;
    }

    .srv-step {
        padding-bottom: 3rem;
    }

    .srv-step-title {
        font-size: 1.15rem !important;
    }

    .srv-expertise-image {
        height: 60vw;
        min-height: 250px;
    }

    .srv-expertise-text {
        padding: 2.5rem 6vw 3.5rem;
    }

    .srv-cta {
        padding: 6rem 6vw;
    }
}