/* =========================================================
   AMBIANCE BY EPISTLE — PROJECTS
========================================================= */

:root {
    --dark: #17191b;
    --dark-soft: #202326;
    --cream: #f6f3ed;
    --white: #ffffff;
    --text: #282a2c;
    --muted: #777875;
    --orange: #c96b3d;
    --yellow: #e6b84d;
    --blue: #3c7ea8;
    --green: #557b68;
    --purple: #76547e;
    --border: rgba(23, 25, 27, 0.12);

    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(92%, var(--container));
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(246, 243, 237, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: var(--dark);
    color: var(--cream);
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    letter-spacing: -0.5px;
}

.brand-text small {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav > a {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: 0.25s ease;
}

.main-nav > a:hover,
.main-nav > a.active {
    color: var(--dark);
}

.main-nav > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--orange);
}

.nav-cta {
    padding: 12px 18px;
    background: var(--dark);
    color: white !important;
}

.nav-cta:hover {
    background: var(--orange);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: var(--dark);
}


/* =========================================================
   HERO
========================================================= */

.projects-hero {
    position: relative;
    min-height: 720px;
    padding-top: 82px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--orange);
}

.hero-content h1 {
    max-width: 620px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(50px, 6vw, 86px);
    line-height: 0.98;
    letter-spacing: -4px;
}

.hero-content h1 span,
.brush-content h2 span,
.project-cta h2 span {
    display: block;
    color: var(--orange);
}

.hero-content p {
    max-width: 520px;
    margin-top: 30px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 16px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    padding: 15px 20px;
    background: var(--dark);
    color: white;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s ease;
}

.hero-button:hover {
    background: var(--orange);
    transform: translateY(-3px);
}


/* =========================================================
   HERO PAINT ART
========================================================= */

.hero-art {
    min-height: 500px;
    position: relative;
    display: grid;
    place-items: center;
}

.art-frame {
    width: min(100%, 560px);
    height: 470px;
    position: relative;
    overflow: hidden;
    background: #ded8cc;
    transform: rotate(2deg);
    box-shadow: 25px 30px 70px rgba(0, 0, 0, 0.14);
}

.brush {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.2px);
}

.brush-red {
    width: 520px;
    height: 145px;
    background: var(--orange);
    top: 45px;
    left: -70px;
    transform: rotate(-14deg);
}

.brush-yellow {
    width: 470px;
    height: 120px;
    background: var(--yellow);
    top: 170px;
    right: -100px;
    transform: rotate(17deg);
}

.brush-blue {
    width: 500px;
    height: 135px;
    background: var(--blue);
    bottom: 85px;
    left: -90px;
    transform: rotate(10deg);
}

.brush-green {
    width: 450px;
    height: 120px;
    background: var(--green);
    bottom: -10px;
    right: -80px;
    transform: rotate(-18deg);
}

.art-label {
    position: absolute;
    left: 45px;
    top: 48%;
    transform: translateY(-50%);
    background: var(--dark);
    color: white;
    padding: 24px 28px;
    z-index: 3;
}

.art-label small {
    display: block;
    color: #ccc;
    font-size: 9px;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.art-label strong {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    line-height: 0.95;
    letter-spacing: -1px;
}

.paint-drop {
    position: absolute;
    border-radius: 50%;
    z-index: 4;
}

.drop-one {
    width: 35px;
    height: 35px;
    background: var(--yellow);
    top: 30px;
    right: 70px;
}

.drop-two {
    width: 18px;
    height: 18px;
    background: var(--blue);
    bottom: 70px;
    right: 50px;
}

.drop-three {
    width: 25px;
    height: 25px;
    background: var(--orange);
    bottom: 35px;
    left: 45%;
}


/* =========================================================
   INTRO
========================================================= */

.project-intro {
    padding: 120px 0;
    background: white;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 100px;
}

.intro-grid h2,
.section-heading h2,
.brush-content h2,
.project-cta h2 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.intro-grid h2 span {
    display: block;
    color: var(--orange);
}

.intro-text {
    padding-top: 25px;
}

.intro-text p {
    margin-bottom: 22px;
    color: var(--muted);
    line-height: 1.8;
}


/* =========================================================
   SHOWCASE
========================================================= */

.showcase {
    padding: 130px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 70px;
}

.section-heading p {
    margin-top: 20px;
    color: var(--muted);
}


/* PROJECT */

.visual-project {
    position: relative;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    min-height: 560px;
    margin-bottom: 100px;
    background: white;
    overflow: hidden;
}

.visual-project.reverse {
    grid-template-columns: 1.2fr 0.8fr;
}

.project-number {
    position: absolute;
    top: 25px;
    left: 30px;
    z-index: 5;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.project-copy {
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-copy > span {
    margin-bottom: 20px;
    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.project-copy h3 {
    font-family: "Manrope", sans-serif;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1;
    letter-spacing: -2px;
}

.project-copy h3 em {
    display: block;
    color: var(--orange);
    font-style: normal;
}

.project-copy p {
    max-width: 400px;
    margin-top: 25px;
    color: var(--muted);
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin-top: 30px;
    font-weight: 700;
    font-size: 13px;
}

.text-link span {
    transition: 0.3s ease;
}

.text-link:hover span {
    transform: translateX(7px);
}


/* =========================================================
   PAINT CANVAS
========================================================= */

.paint-canvas {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}

.canvas-one {
    background: #ebe3d5;
}

.stroke {
    position: absolute;
    border-radius: 100px;
}

.stroke-1 {
    width: 600px;
    height: 110px;
    background: var(--orange);
    top: 70px;
    left: -90px;
    transform: rotate(-12deg);
}

.stroke-2 {
    width: 570px;
    height: 105px;
    background: var(--yellow);
    top: 190px;
    left: -50px;
    transform: rotate(10deg);
}

.stroke-3 {
    width: 650px;
    height: 115px;
    background: var(--blue);
    top: 300px;
    left: -120px;
    transform: rotate(-8deg);
}

.stroke-4 {
    width: 580px;
    height: 105px;
    background: var(--purple);
    bottom: -10px;
    left: 40px;
    transform: rotate(12deg);
}

.canvas-word {
    position: absolute;
    right: 40px;
    top: 40px;
    writing-mode: vertical-rl;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    letter-spacing: 5px;
    font-weight: 800;
}


/* =========================================================
   SWATCHES
========================================================= */

.swatches {
    display: flex;
    margin-top: 35px;
}

.swatches span {
    width: 42px;
    height: 42px;
    margin-right: -7px;
    border: 3px solid white;
    border-radius: 50%;
}

.swatch-a {
    background: var(--orange);
}

.swatch-b {
    background: var(--yellow);
}

.swatch-c {
    background: var(--blue);
}

.swatch-d {
    background: var(--green);
}


/* =========================================================
   PROTECTION CANVAS
========================================================= */

.canvas-two {
    background: #202c31;
    position: relative;
}

.wall-layer {
    position: absolute;
    border-radius: 50%;
}

.layer-one {
    width: 600px;
    height: 260px;
    background: var(--green);
    left: -160px;
    top: 60px;
    transform: rotate(-20deg);
}

.layer-two {
    width: 620px;
    height: 250px;
    background: #879b8d;
    right: -180px;
    top: 180px;
    transform: rotate(20deg);
}

.layer-three {
    width: 550px;
    height: 220px;
    background: #d9d2c5;
    left: -100px;
    bottom: -60px;
    transform: rotate(-10deg);
}

.protection-badge {
    position: absolute;
    right: 50px;
    top: 50px;
    width: 135px;
    height: 135px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: var(--dark);
    color: white;
    border: 5px solid var(--cream);
    text-align: center;
    transform: rotate(8deg);
}

.protection-badge strong {
    font-size: 15px;
    letter-spacing: 2px;
}

.protection-badge small {
    margin-top: 5px;
    font-size: 7px;
    letter-spacing: 2px;
    color: #aaa;
}


/* =========================================================
   FLOORING
========================================================= */

.floor-canvas {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #d7d0c3;
    perspective: 700px;
}

.floor-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg,
            transparent 49.5%,
            rgba(0,0,0,.12) 50%,
            transparent 50.5%),
        linear-gradient(20deg,
            transparent 49.5%,
            rgba(0,0,0,.08) 50%,
            transparent 50.5%);
    background-size: 110px 110px;
    transform: scale(1.5) rotateX(45deg);
}

.floor-piece {
    position: absolute;
    width: 250px;
    height: 120px;
    transform: rotate(-25deg);
    box-shadow: 20px 20px 30px rgba(0,0,0,.12);
}

.piece-one {
    background: var(--orange);
    top: 60px;
    left: 50px;
}

.piece-two {
    background: var(--blue);
    top: 160px;
    right: 30px;
}

.piece-three {
    background: var(--yellow);
    bottom: 100px;
    left: 100px;
}

.piece-four {
    background: var(--purple);
    bottom: 20px;
    right: 90px;
}

.floor-detail {
    display: flex;
    margin-top: 35px;
}

.floor-detail span {
    width: 45px;
    height: 5px;
    margin-right: 6px;
}

.floor-detail span:nth-child(1) {
    background: var(--orange);
}

.floor-detail span:nth-child(2) {
    background: var(--blue);
}

.floor-detail span:nth-child(3) {
    background: var(--yellow);
}


/* =========================================================
   BRUSH SECTION
========================================================= */

.brush-section {
    padding: 130px 0;
    background: var(--dark);
    color: white;
    overflow: hidden;
}

.brush-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.brush-art {
    min-height: 500px;
    position: relative;
}

.real-brush {
    position: absolute;
    width: 430px;
    height: 80px;
    top: 200px;
    left: 20px;
    transform: rotate(-25deg);
    z-index: 5;
}

.handle {
    position: absolute;
    width: 280px;
    height: 24px;
    top: 28px;
    left: 100px;
    background: #b77b45;
    border-radius: 30px;
}

.metal {
    position: absolute;
    left: 70px;
    top: 18px;
    width: 70px;
    height: 44px;
    background: #aaa69d;
    border-radius: 5px;
}

.bristles {
    position: absolute;
    left: 0;
    top: 0;
    width: 90px;
    height: 80px;
    background: var(--cream);
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
}

.bristles span {
    display: inline-block;
    height: 70px;
    width: 2px;
    margin-left: 10px;
    background: rgba(0,0,0,.12);
}

.brush-stroke {
    position: absolute;
    height: 75px;
    border-radius: 100px;
    opacity: .9;
}

.stroke-orange {
    width: 480px;
    background: var(--orange);
    top: 100px;
    left: 20px;
    transform: rotate(10deg);
}

.stroke-purple {
    width: 440px;
    background: var(--purple);
    top: 250px;
    left: 60px;
    transform: rotate(-12deg);
}

.stroke-teal {
    width: 500px;
    background: var(--green);
    top: 340px;
    left: -20px;
    transform: rotate(8deg);
}

.brush-content p {
    max-width: 520px;
    margin-top: 25px;
    color: #aaa;
    line-height: 1.8;
}

.approach-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 45px;
    border-top: 1px solid rgba(255,255,255,.15);
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.approach-list div {
    padding: 20px 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.approach-list strong {
    font-size: 10px;
    color: var(--orange);
}

.approach-list span {
    font-size: 13px;
}


/* =========================================================
   CTA
========================================================= */

.project-cta {
    position: relative;
    padding: 140px 0;
    text-align: center;
    overflow: hidden;
    background: var(--cream);
}

.cta-content {
    position: relative;
    z-index: 5;
}

.project-cta h2 {
    max-width: 800px;
    margin: auto;
}

.project-cta p {
    max-width: 620px;
    margin: 25px auto;
    color: var(--muted);
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    padding: 16px 25px;
    background: var(--dark);
    color: white;
    font-weight: 700;
    transition: .3s ease;
}

.cta-button:hover {
    background: var(--orange);
    transform: translateY(-3px);
}

.cta-shape {
    position: absolute;
    width: 280px;
    height: 90px;
    border-radius: 100px;
    opacity: .7;
}

.shape-one {
    background: var(--yellow);
    top: 80px;
    left: -90px;
    transform: rotate(25deg);
}

.shape-two {
    background: var(--blue);
    right: -80px;
    bottom: 80px;
    transform: rotate(-20deg);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--dark);
    color: white;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr 1fr;
    gap: 70px;
    padding-bottom: 70px;
}

.footer-brand p {
    max-width: 360px;
    margin-top: 25px;
    color: #999;
    line-height: 1.7;
    font-size: 13px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-column a,
.footer-column p {
    color: #999;
    font-size: 13px;
    line-height: 1.7;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom p,
.footer-bottom a {
    font-size: 11px;
    color: #777;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: 0;
    background: var(--dark);
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: .3s ease;
    z-index: 100;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--orange);
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .main-nav {
        position: absolute;
        top: 82px;
        left: 0;
        width: 100%;
        padding: 25px;
        background: var(--cream);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-grid,
    .intro-grid,
    .brush-grid {
        grid-template-columns: 1fr;
    }

    .projects-hero {
        padding: 120px 0 80px;
    }

    .hero-art {
        min-height: 400px;
    }

    .art-frame {
        height: 390px;
    }

    .visual-project,
    .visual-project.reverse {
        grid-template-columns: 1fr;
    }

    .paint-canvas,
    .floor-canvas {
        min-height: 430px;
    }

    .project-copy {
        padding: 80px 35px;
    }

    .brush-art {
        min-height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


@media (max-width: 600px) {

    .nav-container {
        height: 72px;
    }

    .main-nav {
        top: 72px;
    }

    .hero-content h1 {
        font-size: 52px;
        letter-spacing: -3px;
    }

    .hero-art {
        min-height: 330px;
    }

    .art-frame {
        height: 310px;
    }

    .brush-red {
        width: 350px;
    }

    .brush-yellow {
        width: 350px;
    }

    .brush-blue {
        width: 350px;
    }

    .brush-green {
        width: 350px;
    }

    .art-label {
        left: 25px;
        padding: 18px 20px;
    }

    .art-label strong {
        font-size: 21px;
    }

    .project-intro,
    .showcase,
    .brush-section,
    .project-cta {
        padding: 90px 0;
    }

    .intro-grid {
        gap: 35px;
    }

    .visual-project {
        margin-bottom: 60px;
    }

    .project-copy h3 {
        font-size: 40px;
    }

    .paint-canvas,
    .floor-canvas {
        min-height: 350px;
    }

    .stroke-1,
    .stroke-2,
    .stroke-3,
    .stroke-4 {
        width: 420px;
    }

    .layer-one,
    .layer-two,
    .layer-three {
        width: 430px;
    }

    .floor-piece {
        width: 180px;
        height: 90px;
    }

    .real-brush {
        width: 350px;
        transform: rotate(-25deg) scale(.8);
        left: -20px;
    }

    .brush-stroke {
        width: 350px;
    }

    .approach-list {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}