* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
    font-family: 'Geist', sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site { width: 90%; max-width: 1600px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; }

/* Header */

.footer-logo img {
    /* height: 300px; */
    width: auto;
    display: block;
}



header {
    width: 100%;
    margin: 20px auto 0;
    padding: 12px 24px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfdfd;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 530px;
}
.logo { font-size: 26px; font-weight: 900; color: #ed5138; letter-spacing: -2px; display: flex; align-items: center; width: 30px;}
.logo svg { width: 32px; height: 32px; }
nav { display: flex; gap: 28px; font-size: 18px; font-weight: 500; flex-wrap: wrap; }
nav a { transition: color .2s ease; }
nav a:hover, nav a.active { color: #ed5138; }


.logo img {
    height: 32px;
    width: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 6px; background: #ed5138; color: #fff;
    font-size: 18px; font-weight: 600; border: 0; cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: #d9432c; }
.footer-btn { background: #fff; color: #000; }
.footer-btn:hover { background: #fff; opacity: .95; }

main { flex: 1; padding: 20px 0 100px; width: 100%; }

/* Hero (home) */
.hero { text-align: center; padding: 100px 0; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
/* .hero h1 { font-size: clamp(48px, 9vw, 130px); font-weight: 700; letter-spacing: 0px; line-height: 1; margin-bottom: 40px; text-transform: uppercase; } */
.hero h1 { font-size: clamp(48px, 11vw, 155px); font-weight: 700; letter-spacing: 0px; line-height: 1; margin-bottom: 40px; text-transform: uppercase; color: #e5e5e5;}
.hero h2 { font-size: clamp(22px, 4vw, 52px); font-weight: 500; margin-bottom: 4px; }
.hero p {  font-size: clamp(15px, 1.5vw, 24px); color: #444; margin: 0 auto 10px; line-height: 1.6; }
/* .hero p { max-width: 680px; font-size: clamp(15px, 1.5vw, 24px); color: #444; margin: 0 auto 10px; line-height: 1.6; } */
.hero .sub-text { color: #888; font-size: 18px; margin-bottom: 36px; }

/* Hero (work/branding listing pages) */
.page-hero { text-align: center; margin-bottom: 60px; padding: 40px 10px 0; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 56px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.page-hero p { max-width: 700px; font-size: clamp(14px, 1.6vw, 18px); color: #555; margin: 0 auto; line-height: 1.5; }

/* Category filter pills */
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 50px; }
.category-filter a {
    padding: 10px 20px; border-radius: 30px; font-size: 13px; font-weight: 600;
    background: #f4f4f4; color: #333; transition: .2s ease;
}
.category-filter a:hover { background: #fde2dc; color: #ed5138; }
.category-filter a.active { background: #ed5138; color: #fff; }

/* Work Cards */
.work-section, .work-grid { display: flex; flex-direction: column; gap: clamp(30px, 5vw, 60px); width: 100%; }
.project-card, .project { width: 100%; display: flex; flex-direction: column; }
.project-image { width: 100%; border-radius: 14px; overflow: hidden; background: #f4ece1; box-shadow: 0 4px 20px rgba(0,0,0,.03); position: relative; }
.project-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-image img, .project-image:hover img { transform: scale(1.02); }
.project-title { margin-top: 14px; font-size: 24px; font-weight: 500; }
.project-category-tag { margin-top: 4px; font-size: 12px; color: #999; }

.project-full .project-image, .work-grid .project-image { aspect-ratio: 16 / 7.5; }
.work-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.work-grid-2 .project-image { aspect-ratio: 16 / 10; }

/* Branding 2-column grid */
.branding-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 30px; width: 100%; }
.branding-grid .project-image { aspect-ratio: 16 / 10; border-radius: 12px; }

.selected-work-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.selected-work-row .project-image { aspect-ratio: 16 / 10; }
.selected-work-info { padding-left: 80px; }
.selected-work-info h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 500; margin-bottom: 16px; }
.selected-work-info p { font-size: 20px; color: #555; line-height: 1.6; margin-bottom: 24px; max-width: fit-content; }

/* Story */
.story-section { text-align: center; padding: 100px 0 40px; margin: 0 auto; }
.story-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; margin-bottom: 20px; }
.story-section p { font-size: 20px; color: #444; line-height: 1.6; margin-bottom: 30px; }

/* Work detail page */
.project-intro { margin-bottom: 50px; }
.project-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 20px; flex-wrap: wrap; }
.project-detail-title { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.project-category { text-align: right; font-size: clamp(13px, 1.2vw, 15px); color: #666; }
.project-category span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 4px; }
.project-description { max-width: 780px; font-size: clamp(15px, 1.4vw, 18px); color: #444; line-height: 1.6; }
.showcase-gallery { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 50px); width: 100%; }
.showcase-item { width: 100%; aspect-ratio: 16 / 8.5; border-radius: 14px; overflow: hidden; background: #f4ece1; box-shadow: 0 4px 20px rgba(0,0,0,.03); }
.showcase-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-size: 14px; font-weight: 600; color: #666; }
.back-link:hover { color: #ed5138; }

/* Footer */
footer { width: 100%; background: #ed5138; color: #fff; padding: 80px 5% 50px; margin-top: auto; }
/* .footer-grid { display: grid; grid-template-columns: 1.8fr .8fr .8fr; gap: 50px; max-width: 1600px; margin: 0 auto; width: 90%; } */
.footer-grid { display: grid; grid-template-columns: 1.8fr .8fr .8fr; gap: 50px; max-width: 1600px; margin: 0 auto; }
.footer-label { font-size: 14px; margin-bottom: 24px; opacity: .9; }
.footer-title { font-size: clamp(26px, 3.2vw, 46px); line-height: 1.15; font-weight: 500; max-width: 440px; margin-bottom: 32px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 20px; }
.footer-links a { opacity: .9; transition: opacity .2s ease; }
.footer-links a:hover { opacity: 1; }
.footer-logo { margin-top: 60px; font-size: clamp(50px, 6vw, 80px); line-height: .8; font-weight: 900; letter-spacing: -6px; text-align: right; grid-column: 1 / -1; }


/* Responsive */
@media (max-width: 900px) {
    .work-grid-2, .branding-grid { grid-template-columns: 1fr; gap: 30px; }
    .selected-work-row { grid-template-columns: 1fr; gap: 30px; }
    .selected-work-info { padding-left: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-logo { text-align: left; margin-top: 30px; }
    .project-image, .showcase-item { aspect-ratio: 16 / 9; }
    .project-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
    .project-category { text-align: left; }
}
@media (max-width: 850px) {
    .hero { min-height: auto; padding: 80px 0; }
}
@media (max-width: 650px) {
    .site { width: 94%; }
    header { padding: 8px 16px; }
    nav { gap: 14px; font-size: 11px; }
    .project-image, .showcase-item, .branding-grid .project-image { aspect-ratio: 1.3 / 1; border-radius: 10px; }
    footer { padding: 60px 4% 35px; }
    .footer-grid { width: 94%; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-arrow {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
    display: block;
}


/* details page */

/* =========================
   Work Detail - Mobile
   ========================= */

@media (max-width: 768px) {

    .project-intro {
        margin-bottom: 30px;
    }

    .project-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }

    .project-detail-title {
        font-size: clamp(32px, 10vw, 46px);
        line-height: 1.05;
        letter-spacing: -0.8px;
        width: 100%;
    }

    .project-category {
        text-align: left;
        font-size: 13px;
        line-height: 1.4;
    }

    .project-category span {
        font-size: 10px;
        margin-bottom: 3px;
        letter-spacing: 0.8px;
    }

    .project-description {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.55;
    }

    .showcase-gallery {
        gap: 22px;
        width: 100%;
    }

    .showcase-item {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

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

    .back-link {
        margin-bottom: 20px;
        font-size: 13px;
        gap: 6px;
    }
}


/* Small Mobile */
@media (max-width: 480px) {

    .project-intro {
        margin-bottom: 25px;
    }

    .project-meta {
        gap: 12px;
        margin-bottom: 18px;
    }

    .project-detail-title {
        font-size: 34px;
        line-height: 1.05;
        letter-spacing: -0.6px;
    }

    .project-category {
        font-size: 12px;
    }

    .project-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .showcase-gallery {
        gap: 18px;
    }

    .showcase-item {
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }

    .back-link {
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .showcase-item {
        aspect-ratio: 16 / 9;
    }
}

/* footer code */

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
}

.footer-logo img {
    display: block;
    /* max-width: 160px; */
    width: 100%;
    height: auto;
}


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

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 25px;
    }

    /* Contact section full width */
    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    /* Navigation and Social side-by-side */
    .footer-grid > div:nth-child(2),
    .footer-grid > div:nth-child(3) {
        grid-column: span 1;
    }

    /* Logo at bottom */
    .footer-grid > .footer-logo {
        grid-column: 1 / -1;
        order: 10;
        margin-top: 15px;
    }

    .footer-logo img {
        max-width: 130px;
        width: auto;
        height: auto;
    }

    .footer-links {
        gap: 8px;
    }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px 20px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-grid > .footer-logo {
        grid-column: 1 / -1;
        margin-top: 10px;
    }

    .footer-logo img {
        max-width: 120px;
    }

    .footer-links a {
        font-size: 14px;
    }
}

/* Desktop - logo visible */
.footer-logo {
    display: block;
}

/* Mobile - footer logo hidden */
@media (max-width: 768px) {
    .footer-logo {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-logo {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .footer-logo img {
        display: none;
    }
}