/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    background-color: #c88b56;
    color: #ffffff;
}


/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #ffffff;
}
::-webkit-scrollbar-thumb {
    background: #fcdba5;
    border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}


/* ==========================================================================
   SCROLL
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Preloader body lock (replaces lenis.stop/start) */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
}

/* Overlay gets its own scroll */
.project-overlay {
    overscroll-behavior: contain;
}

/* ==========================================================================
   SMOOTH SCROLL WRAPPER
   ========================================================================== */

#smooth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#smooth-content {
    width: 100%;
    will-change: transform;
    background-color: #fcdba5; /* CRITICAL: Camouflages any 1px subpixel tears during scroll */
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200; /* Ensure header is above mobile overlay (150) */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.5rem 4vw;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-img {
    height: 70px;
    filter: brightness(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header.scrolled .logo-img {
    height: 35px;
}

.logo-img:hover {
    opacity: 0.6;
}

.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 3vw;
}

.main-nav a {
    color: #111111;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.email-link {
    color: #111111;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 1;
}

.ig-link {
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.ig-link:hover {
    opacity: 1;
    transform: scale(1.05);
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 5; /* Base z-index */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Parallax Layers (shared base) --- */

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    will-change: transform;
}


/* --- Sky Background --- */

.sky-bg-layer {
    z-index: 0;
    height: 120vh;
}

.sky-bg-image {
    width: 100%;
    height: 100%;
    background-image: url('assets/hero/bg.webp');
    background-size: cover;
    background-position: center center;
}


/* --- Stones --- */

.stones-layer {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100vh;
}

.stones-img {
    height: 65vh;
    width: 105%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    bottom: 0;
    left: -2.5%;
}


/* --- Clouds 1 --- */

.clouds-layer {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    mix-blend-mode: screen;
    opacity: 0.9;
    pointer-events: none;
}

.clouds-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    position: absolute;
    bottom: 25vh;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}


/* --- Typography Layer (Behind Building) --- */

.text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 10vh;
    z-index: 3;
    pointer-events: none;
}

.text-layer h1 {
    transform: translateY(-2rem);
}


/* --- Button Layer (In Front of Building) --- */

.btn-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 10vh;
    z-index: 7;
    pointer-events: none;
}

.btn-layer .hero-btn {
    transform: translateY(2rem);
}

.btn-layer .hero-btn:hover {
    transform: translateY(2rem) scale(1.05);
}


/* --- Desert 1 (Behind Building) --- */

.desert-layer {
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100vh;
}

.desert-img {
    height: 35vh;
    width: 105%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    bottom: 0;
    left: -2.5%;
}


/* --- Clouds 2 (Over Desert) --- */

.clouds-layer-2 {
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    mix-blend-mode: screen;
    opacity: 0.6;
    pointer-events: none;
}

.clouds-img-2 {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    position: absolute;
    bottom: 20vh;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
}


/* --- Building --- */

.building-layer {
    z-index: 6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.building-img {
    height: 65vh;
    width: auto;
    object-fit: contain;
    position: absolute;
    bottom: 0;
}


/* --- Parallax Content (Typography & Button shared) --- */

.parallax-content {
    position: relative;
    text-align: center;
    will-change: transform, opacity;
}

.text-content {
    width: 100%;
    margin-top: -25vh;
}

.btn-content {
    margin-top: -5vh;
}

.slogan-svg {
    width: 100%;
    height: clamp(80px, 12vw, 150px);
    display: block;
    overflow: visible;
}

.slogan-svg text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4.5vw, 5.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
}


/* --- Hero CTA Button --- */

.hero-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.6rem;
    border-radius: 100px;
    border: 1px solid #111111;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    background: #111111;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(17, 17, 17, 0.8);
    color: #ffffff;
    transform: scale(1.05);
}


/* --- Static Foreground Desert (No Parallax) --- */

.desert-layer-2 {
    z-index: 10;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

.desert-img-2 {
    width: 105%;
    height: auto;
    position: relative;
    bottom: -2vh;
}


/* --- Clouds 3 (Over Foreground Desert) --- */

.clouds-layer-3 {
    z-index: 11;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.8;
}

.clouds-img-3 {
    width: 100%;
    height: 40vh;
    object-fit: cover;
    position: relative;
    bottom: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%, black 60%, transparent 100%);
    filter: sepia(1) saturate(1.2) hue-rotate(-15deg) brightness(1.1);
}

.parallax-content p {
    margin-top: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.4em;
    color: #ffffff;
    opacity: 0.9;
}


/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    position: relative;
    width: 100%;
    z-index: 10; /* Guaranteed to sit OVER #hero (5) */
    background: linear-gradient(to bottom, #fcdba5 0%, #ffffff 100%);
    color: #111111;
    padding: 150px 4vw 40px; /* Increased top padding so parallax text doesn't hit the border */
    margin-top: -10px; /* Massive overlap to brutally hide any hero artifacts */
    overflow: visible;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.about-bg-clip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.about-bg-text {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translateY(-50%);
    font-size: 35vw;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    pointer-events: none;
}

.about-container {
    position: relative;
    z-index: 1; /* Goes under #hero so text nicely hides under the desert when scrolling */
    width: 60%; /* Content takes approx 2/3 */
    will-change: transform;
}

.about-video-container {
    position: absolute;
    top: -600px; /* Pulled much higher up so it doesn't get cut off too much by the works section */
    bottom: auto;
    left: 60%; /* Positioned on the right */
    z-index: 12; /* Sits above clients (11) but below works (13) */
    width: 45%; /* Much larger initial size */
    aspect-ratio: 4 / 5;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    will-change: transform;
}

/* Safari/iOS fix: transparent WebM is not supported and renders with a black background.
   Using mix-blend-mode: screen filters out the black background, restoring transparency. */
.safari-video-fix .about-video-container,
.safari-video-fix #aboutVideoSource {
    mix-blend-mode: screen;
}

#aboutVideoSource {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.about-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4vh;
}

.about-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #111111;
}

.about-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(17, 17, 17, 0.2);
}

.about-main {
    margin-bottom: 5vh;
}

.about-statement {
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #111111;
    margin-bottom: 2rem;
}

.about-substatement {
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    font-weight: 300;
    line-height: 1.4;
    color: #555555;
}

.about-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
}

.about-col p {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.8;
    color: #555555;
}


/* ==========================================================================
   CLIENTS SECTION
   ========================================================================== */

.clients-section {
    position: relative;
    width: 100%;
    z-index: 11; /* Increased above about-section so text slides over it */
    background: #ffffff;
    padding: 40px 0 0px 0; /* Drastically reduced top padding */
    margin-top: -2px; /* Fix sub-pixel hardware acceleration gaps */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible; /* CRITICAL: Allows parallax text to escape boundaries without getting sliced */
}

.clients-bg-text {
    position: absolute;
    top: 20%;
    left: -5%;
    transform: translateY(-50%);
    font-size: 14vw;
    font-weight: 700;
    color: #fcdba5;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    will-change: transform;
}

.clients-title {
    text-align: left;
    font-size: clamp(0.6rem, 0.8vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #888888;
    margin: 0;
    padding: 0;
    margin-bottom: 4vh;
}

.clients-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 for video landing zone, 2/3 for content */
    gap: 4vw;
    width: 100%;
    padding: 0 4vw;
    align-items: flex-start;
}

.clients-col-left {
    height: 30vh; /* Reduced from 60vh to prevent forcing empty height below content */
}

.clients-col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    will-change: transform;
}

.clients-list {
    text-align: left;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.8;
    text-transform: uppercase;
    color: #111111;
}

.clients-list span {
    display: inline-block;
    padding: 0 0.2vw;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.clients-list span:not(.clients-bullet):hover {
    opacity: 1;
    color: #000000;
}

.clients-bullet {
    display: inline-block;
    font-size: 0.5em;
    vertical-align: middle;
    opacity: 0.3;
    padding: 0 0.5vw;
}



/* ==========================================================================
   WORKS SECTION
   ========================================================================== */

.works-section {
    position: relative;
    width: 100%;
    z-index: 13; /* Increased above video (12) so it slices the video */
    background: #f5f0ea;
    padding: 120px 4vw 140px; /* Fixed vertical pixels instead of vh */
    margin-top: -2px; /* Fix sub-pixel hardware acceleration gaps */
    overflow: hidden; /* Important for marquee */
}

.works-bg-marquee {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg); /* Rotate the whole container */
    width: 300vh; /* Make it very long to cover all scrolling */
    height: 100vw; /* Spans the full width of the screen (since it's rotated) */
    pointer-events: none;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Keep the 2 lines clustered in the center */
    gap: 2vw; /* Slight gap between the two lines */
}

.works-bg-marquee .marquee-line {
    white-space: nowrap;
    font-weight: 700;
    color: #e8e2da;
    will-change: transform;
    line-height: 0.9;
}

/* Slower line (in the background) */
.works-bg-marquee .marquee-line-1 {
    font-size: clamp(15rem, 25vw, 25rem);
    opacity: 0.6; /* Slightly faded to push it back */
}

/* Faster line (in the foreground) */
.works-bg-marquee .marquee-line-2 {
    font-size: clamp(25rem, 45vw, 45rem);
    opacity: 1;
}

.works-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 8vh;
}

.works-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #111111;
    white-space: nowrap;
}

.works-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(17, 17, 17, 0.15);
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
}

/* Alternate rows: swap large/small every 2 items */
.works-grid .work-card:nth-child(4n+3) {
    grid-column: 1;
}
.works-grid .work-card:nth-child(4n+4) {
    grid-column: 2;
}



.work-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.work-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
}

.work-card__img img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card__img img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.work-card__info {
    padding: 1.5rem 0.5rem 1rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.work-card__client {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999999;
    flex-shrink: 0;
}

.work-card__title {
    font-size: clamp(1rem, 1.8vw, 1.6rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #111111;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.work-card:hover .work-card__title {
    color: #c88b56;
}

.work-card__year {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #bbbbbb;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    position: relative;
    width: 100%;
    z-index: 14; /* Increased above works-section (13) */
    display: flex;
    flex-direction: column;
    margin-top: -2px; /* Fix sub-pixel hardware acceleration gaps */
}

.footer__container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.footer__top {
    display: flex;
    flex-direction: column;
    gap: 6vh;
    padding: 12vh 4vw 10vh 4vw;
    background: #e8e2d5; /* sandy, ecru */
    color: #111111;
}

.footer__headline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 80%;
}

.footer__links {
    display: flex;
    gap: 4vw;
    flex-wrap: wrap;
}

.footer__link {
    color: #111111;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.2rem;
    transition: opacity 0.3s ease;
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: #111111;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__link:hover::after {
    width: 100%;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111111;
    padding: 4vh 4vw;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__copyright,
.footer__rights {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
}

.footer__copyright {
    text-align: left;
}

.footer__rights {
    text-align: right;
}

.footer__logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__logo-img {
    height: 40px;
    width: auto;
    filter: invert(1) brightness(2); /* Ensures it's white on dark background */
}


/* ==========================================================================
   PROJECT OVERLAY (Fullscreen detail page)
   ========================================================================== */

.project-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.project-overlay__close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(17, 17, 17, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #111111;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-overlay__close:hover {
    background: #111111;
    color: #ffffff;
    transform: scale(1.1);
}

.project-overlay__nav-panel {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    border-radius: 100px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.project-overlay__prev,
.project-overlay__next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border: none;
    background: transparent;
    color: #111111;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.25s ease;
    white-space: nowrap;
}

.project-overlay__prev {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.project-overlay__prev:hover,
.project-overlay__next:hover {
    background: #f5f5f5;
}

.project-overlay__prev span,
.project-overlay__next span {
    color: #555555;
}

.project-overlay__content {
    padding: 0;
}

.project-overlay__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    padding: 10vh 4vw 6vh;
}

.project-overlay__intro-left {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.project-overlay__hero-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f5f0ea;
    overflow: hidden;
    border-radius: 4px;
}

.project-overlay__hero-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-overlay__intro-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.project-overlay__meta {
    display: flex;
    flex-direction: column;
    gap: 3vh;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-overlay__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 0.75rem;
}

.project-overlay__client {
    font-size: 1.1rem;
    font-weight: 400;
    color: #111111;
}

.project-overlay__title {
    font-size: clamp(1.8rem, 3vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #111111;
    line-height: 1.15;
}

.project-overlay__service {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    color: #555555;
}

.project-overlay__year {
    font-size: 0.85rem;
    font-weight: 400;
    color: #555555;
}

.project-overlay__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1vw;
    padding: 4vh 4vw 10vh;
}

.project-overlay__gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

.project-overlay__gallery img:first-child {
    grid-column: 1 / -1;
}


/* ==========================================================================
   ANIMATIONS (Intersection Observer driven)
   ========================================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================================
   MOBILE MENU & RESPONSIVE
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    position: relative;
    padding: 0;
    color: #111111;
}

.mobile-menu-btn .icon-menu,
.mobile-menu-btn .icon-close {
    position: absolute;
    width: 28px;
    height: 28px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Default state: Menu visible, Close hidden */
.mobile-menu-btn .icon-close {
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
}
.mobile-menu-btn .icon-menu {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Active state: Close visible, Menu hidden */
.mobile-menu-btn.is-active .icon-menu {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
}
.mobile-menu-btn.is-active .icon-close {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #fcdba5 0%, #ffffff 100%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-overlay.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0 0 5vh 0;
}

.mobile-nav-link {
    font-size: 3rem;
    font-weight: 200;
    color: #111111;
    text-decoration: none;
    display: block;
    margin-bottom: 2vh;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-overlay.is-active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.is-active .mobile-nav-link:nth-child(1) { transition-delay: 0.2s; }
.mobile-menu-overlay.is-active .mobile-nav-link:nth-child(2) { transition-delay: 0.3s; }
.mobile-menu-overlay.is-active .mobile-nav-link:nth-child(3) { transition-delay: 0.4s; }
.mobile-menu-overlay.is-active .mobile-nav-link:nth-child(4) { transition-delay: 0.5s; }

.mobile-menu-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    opacity: 0;
    transition: opacity 0.4s ease;
    transition-delay: 0.6s;
}

.mobile-menu-overlay.is-active .mobile-menu-bottom {
    opacity: 1;
}

.mobile-email {
    font-size: 1rem;
    color: #111111;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.mobile-ig {
    color: #111111;
}

@media (max-width: 1024px) {
    .main-nav, .header-right {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .about-bottom {
        grid-template-columns: 1fr;
    }
    .about-section {
        flex-direction: column-reverse;
        padding: 5vh 5vw;
    }
    .about-container {
        width: 100%;
        margin-bottom: 0;
    }
    .about-video-container {
        display: none; /* User requested removal on mobile */
    }
    .clients-section {
        min-height: auto;
        padding: 5vh 0;
    }
    .clients-layout {
        grid-template-columns: 1fr;
    }
    .clients-col-left {
        display: none;
    }
    .clients-col-right {
        padding: 5vh 4vw;
    }
    .works-section {
        padding: 5vh 4vw 10vh;
    }
    .works-grid {
        grid-template-columns: 1fr;
    }
    .works-grid .work-card:nth-child(4n+3),
    .works-grid .work-card:nth-child(4n+4) {
        grid-column: auto;
    }
    .work-card--small {
        margin-top: 0;
    }
    .project-overlay__intro {
        grid-template-columns: 1fr;
        gap: 4vh;
        padding: 4vw 4vw 6vh;
    }
    .project-overlay__gallery {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #fcdba5 0%, #ffffff 100%);
    z-index: 9999;
    padding: 2.5rem 4vw;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #111111;
}

.preloader.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5%);
}

.preloader__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    position: relative;
}

.preloader__logo {
    width: 60px;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: top right;
    animation: pulseLogoCorner 2s infinite alternate ease-in-out;
    filter: brightness(0);
}

.preloader__slogan {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 200;
    letter-spacing: 0.02em;
    color: #111111;
    text-align: left;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUpSlogan 1.5s ease-out forwards;
    animation-delay: 0.2s;
    line-height: 0.95;
    margin-bottom: 2.5rem;
}

.preloader__bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@keyframes fadeUpSlogan {
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes pulseLogoCorner {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

.preloader__progress-container {
    width: 100%;
    height: 1px;
    background-color: rgba(17, 17, 17, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.preloader__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #111111;
    transition: width 0.3s ease-out;
}

.preloader__footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.7);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #111111;
    color: #ffffff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #c88b56;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}
