@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');
    :root {
    --paper:#f5f2ec;
    --ink:#1e211e;
    --muted:#74766f;
    --line:#d8d5cc;
    --sans:'DM Sans',Arial,sans-serif;
    --serif:'Playfair Display',Georgia,serif
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:var(--sans);
    line-height:1.65
}

a {
    color:inherit;
    text-decoration:none
}

button,input,select,textarea {
    font:inherit
}

.site-header {
    height:86px;
    padding:0 6.5%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    background:rgba(245,242,236,.95);
    backdrop-filter:blur(12px);
    z-index:30
}

.wordmark {
    font-size:16px;
    font-weight:700;
    letter-spacing:.14em;
    line-height:1.25
}

.wordmark span {
    display:block;
    font-size:9px;
    letter-spacing:.34em;
    margin-top:5px;
    font-weight:500
}

.nav-links {
    display:flex;
    gap:34px;
    align-items:center
}

.nav-links a {
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.1em;
    color:#555750;
    padding:9px 0;
    border-bottom:1px solid transparent
}

.nav-links a.active,.nav-links a:hover {
    border-color:var(--ink);
    color:var(--ink)
}

.menu-toggle {
    display:none;
    border:0;
    background:none;
    font-size:20px
}

.eyebrow {
    font-size:10px;
    letter-spacing:.2em;
    font-weight:700;
    color:var(--muted);
    margin:0 0 20px
}

.home-hero {
    min-height:calc(100vh - 86px);
    padding:8vh 9% 7vh;
    display:grid;
    grid-template-columns:1.03fr .97fr;
    align-items:center;
    gap:7%;
    position:relative
}

.hero-copy {
    max-width:570px
}

.home-hero h1,.page-hero h1 {
    font-size:clamp(52px,7vw,100px);
    font-weight:500;
    line-height:.99;
    letter-spacing:-.055em;
    margin:0 0 28px
}

.home-hero h1 em,.page-hero h1 em,.section-heading h2 em,.home-about h2 em,.contact-banner h2 em,.about-copy h2 em {
    font-family:var(--serif);
    font-weight:500
}

.lead {
    font-size:15px;
    color:#686a63;
    max-width:430px;
    line-height:1.85
}

.hero-actions {
    display:flex;
    align-items:center;
    gap:28px;
    flex-wrap:wrap;
    margin-top:32px
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 20px;
    font-size:11px;
    letter-spacing:.06em;
    text-transform:uppercase;
    border:1px solid var(--ink);
    transition:.25s;
    cursor:pointer
}

.btn-dark {
    background:var(--ink);
    color:white
}

.btn-dark:hover {
    background:transparent;
    color:var(--ink)
}

.btn-light {
    background:var(--paper);
    color:var(--ink);
    border-color:var(--paper)
}

.text-link {
    font-size:12px;
    border-bottom:1px solid var(--ink);
    padding:0 0 5px
}

.text-link i {
    margin-left:7px
}

.hero-note {
    font-size:10px;
    color:var(--muted);
    letter-spacing:.05em;
    margin-top:45px
}

.hero-photo {
    height:min(67vh,670px);
    min-height:390px;
    position:relative;
    background:#d9d8ce;
    overflow:hidden
}

.hero-photo img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .7s
}

.hero-photo:hover img {
    transform:scale(1.025)
}

.hero-photo span {
    position:absolute;
    bottom:18px;
    left:18px;
    right:18px;
    background:rgba(245,242,236,.92);
    padding:12px 15px;
    display:flex;
    justify-content:space-between;
    font-size:9px;
    letter-spacing:.16em
}

.hero-index {
    position:absolute;
    bottom:25px;
    left:9%;
    font-size:10px;
    color:var(--muted);
    letter-spacing:.12em
}

.intro-strip {
    overflow:hidden;
    border-block:1px solid var(--line);
    white-space:nowrap
}

.intro-strip p {
    font-size:10px;
    letter-spacing:.23em;
    text-align:center;
    padding:13px;
    margin:0
}

.intro-strip span {
    margin:0 22px;
    color:#849178
}

.section {
    padding:100px 9%
}

.section-heading {
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:38px;
    gap:20px
}

.section-heading h2,.home-about h2,.contact-banner h2 {
    font-size:clamp(38px,5vw,66px);
    line-height:1.06;
    letter-spacing:-.04em;
    font-weight:500;
    margin:0
}

.preview-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px
}

.preview-card {
    display:block;
    min-width:0
}

.preview-card img {
    width:100%;
    aspect-ratio:3/4;
    object-fit:cover;
    background:#dedbd2;
    display:block;
    transition:filter .3s
}

.preview-card:hover img {
    filter:brightness(.88)
}

.preview-card span {
    display:block;
    padding-top:12px;
    font-size:11px
}

.home-about {
    padding:85px 9%;
    background:#e9e7df;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10%;
    align-items:center
}

.home-about p:not(.eyebrow) {
    font-size:14px;
    color:#62645e;
    max-width:460px;
    margin:0 0 24px
}

.contact-banner {
    text-align: center;
    padding: 100px 20px;

    background:
        linear-gradient(
            rgba(37, 41, 35, 0.75),
            rgba(37, 41, 35, 0.75)
        ),
        url("../images/new/IMG_3887.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: var(--paper);
}

.contact-banner .eyebrow {
    color:#b9c1b0
}

.contact-banner h2 {
    margin-bottom:30px
}

.site-footer {
    padding:40px 6.5%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    border-top:1px solid var(--line)
}

.site-footer p,.site-footer small {
    font-size:11px;
    color:var(--muted)
}

.social-links {
    display:flex;
    gap:17px;
    font-size:18px
}

.page-hero {
    padding:100px 9% 75px
}

.page-hero.compact {
    padding-top:75px;
    padding-bottom:48px
}

.page-hero h1 {
    font-size:clamp(52px,7vw,88px);
    margin-bottom:20px
}

.page-hero .lead {
    max-width:580px
}

.portfolio-section {
    padding:0 6.5% 90px
}

.filter-row {
    display:flex;
    gap:10px;
    margin-bottom:28px;
    flex-wrap:wrap
}

.filter-btn {
    background:transparent;
    border:1px solid var(--line);
    padding:9px 16px;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.1em;
    cursor:pointer
}

.filter-btn.active,.filter-btn:hover {
    background:var(--ink);
    border-color:var(--ink);
    color:white
}

.portfolio-grid {
    columns:4 220px;
    column-gap:14px
}

.portfolio-item {
    width:100%;
    display:block;
    position:relative;
    margin:0 0 14px;
    padding:0;
    border:0;
    background:#e0ddd4;
    break-inside:avoid;
    cursor:zoom-in;
    text-align:left;
    overflow:hidden
}

.portfolio-item[hidden] {
    display:none
}

.portfolio-item img {
    width:100%;
    height:auto;
    display:block;
    transition:transform .5s,filter .4s
}

.portfolio-item:hover img {
    transform:scale(1.025);
    filter:brightness(.84)
}

.portfolio-item span {
    display:block;
    padding:10px 12px;
    font-size:10px;
    background:var(--paper)
}


.project-heading {
    margin: 0 0 14px;
}
.project-heading .eyebrow {
    margin-bottom: 6px;
}
.project-heading h2 {
    margin: 0;
}

/* Full-size horizontal carousel for the Bug project */
.project-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 1.2vw 2px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 1.2vw;
}
.project-carousel::-webkit-scrollbar {
    display: none;
}
.project-carousel .portfolio-item {
    flex: 0 0 82vw;
    width: 82vw;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    scroll-snap-align: center;
}
.project-carousel .portfolio-item img {
    display: block;
    width: 100%;
    height: min(86vh, 900px);
    max-height: min(86vh, 900px);
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 1% 0;
}
.carousel-arrow {
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    padding: 5px 10px;
    cursor: pointer;
}
.carousel-arrow:hover {
    opacity: .55;
}
/* White-flash lightbox transition */
.lightbox figure {
    position: relative;
}
.lightbox figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}
.lightbox figure.flash-out::after {
    animation: lightbox-white-flash .42s ease-in-out;
}
.lightbox figure img {
    opacity: 1;
    transition: opacity .18s ease-in-out;
    will-change: opacity;
}
.lightbox figure img.is-changing {
    opacity: 0;
}
@keyframes lightbox-white-flash {
    0% { opacity: 0; }
    35% { opacity: .96; }
    100% { opacity: 0; }
}
@media(max-width:800px) {
    .project-heading {
        margin-bottom: 10px;
    }
    .project-carousel {
        gap: 8px;
        padding-inline: 11%;
        scroll-padding-inline: 11%;
    }
    .project-carousel .portfolio-item {
        flex-basis: 78%;
        width: 78%;
        scroll-snap-align: center;
    }
    .project-carousel .portfolio-item img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 62vh;
        object-fit: contain;
    }
}
@media(prefers-reduced-motion: reduce) {
    .lightbox figure img {
        transition: none;
    }
    .project-carousel {
        scroll-behavior: auto;
    }
}

.portfolio-cta {
    border-top:1px solid var(--line);
    padding:50px 9%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px
}

.portfolio-cta h2 {
    font:500 30px var(--serif);
    margin:0
}

.lightbox {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,17,15,.96);
    z-index:100;
    align-items:center;
    justify-content:center;
    padding:55px 70px
}

.lightbox.open {
    display:flex
}

.lightbox figure {
    margin:0;
    max-width:90vw;
    max-height:85vh;
    text-align:center
}

.lightbox figure img {
    max-width:100%;
    max-height:78vh;
    object-fit:contain
}

.lightbox figcaption {
    color:#eee;
    font-size:11px;
    margin-top:10px
}

.lightbox button {
    position:absolute;
    border:0;
    background:none;
    color:white;
    font-size:24px;
    cursor:pointer
}

.lightbox-close {
    top:22px;
    right:28px
}

.lightbox-prev {
    left:25px
}

.lightbox-next {
    right:25px
}

.about-layout {
    padding:20px 9% 95px;
    display:grid;
    grid-template-columns:.85fr 1.15fr;
    gap:10%;
    align-items:center
}

.about-photo {
    position:relative;
    background:#e1ded5;
    min-height:400px
}

.about-photo img {
    width:100%;
    height:100%;
    max-height:630px;
    min-height:400px;
    object-fit:cover;
    display:block
}

.photo-caption {
    position:absolute;
    bottom:0;
    left:0;
    background:var(--paper);
    padding:10px 14px;
    font-size:9px;
    letter-spacing:.14em
}

.about-copy h2 {
    font-size:clamp(36px,4.6vw,60px);
    line-height:1.08;
    font-weight:500;
    letter-spacing:-.04em;
    margin:0 0 25px
}

.about-copy p:not(.eyebrow) {
    font-size:13px;
    color:#656760;
    line-height:1.9;
    margin-bottom:17px
}

.about-copy .btn {
    margin-top:10px
}

.about-values {
    padding:45px 9% 85px;
    background:#e9e7df;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px
}

.about-values strong {
    font-size:10px;
    color:#7c8b72;
    letter-spacing:.1em
}

.about-values h3 {
    font:500 22px var(--serif);
    margin:12px 0 5px
}

.about-values p {
    font-size:12px;
    color:var(--muted)
}

.contact-options {
    padding:0 7% 75px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px
}

.contact-option {
    border:1px solid var(--line);
    padding:30px clamp(20px,3vw,42px)
}

.option-number {
    font-size:9px;
    letter-spacing:.17em;
    color:var(--muted)
}

.option-icon {
    font-size:22px;
    margin-top:28px;
    color:#75826b
}

.contact-option h2 {
    font:500 34px var(--serif);
    margin:10px 0
}

.contact-option>p {
    font-size:12px;
    color:#6d6e68;
    min-height:60px;
    margin-bottom:24px
}

.whatsapp-form {
    display:grid;
    gap:15px
}

.whatsapp-form label {
    display:grid;
    gap:6px;
    font-size:10px;
    letter-spacing:.05em;
    color:#575952
}

.whatsapp-form input,.whatsapp-form select,.whatsapp-form textarea {
    width:100%;
    padding:12px;
    border:1px solid var(--line);
    background:transparent;
    color:var(--ink);
    font-size:12px;
    outline:none;
    border-radius:0
}

.whatsapp-form input:focus,.whatsapp-form select:focus,.whatsapp-form textarea:focus {
    border-color:var(--ink)
}

.whatsapp-form .btn {
    margin-top:5px;
    width:100%
}

.contact-direct {
    margin:0 7% 30px;
    padding:30px 35px;
    background:#e9e7df;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px
}

.contact-direct h2 {
    font:500 30px var(--serif);
    margin:0
}

.direct-links {
    display:flex;
    gap:20px;
    flex-wrap:wrap
}

.direct-links a {
    font-size:11px
}

.direct-links i {
    margin-right:6px
}

.manual-note {
    text-align:center;
    font-size:10px;
    color:var(--muted);
    padding:0 20px 45px
}

@media(max-width:800px) {
    .site-header {
    height:72px;
    padding:0 5%
}

.menu-toggle {
    display:block
}

.nav-links {
    display:none;
    position:absolute;
    top:71px;
    left:0;
    right:0;
    background:var(--paper);
    padding:22px 6%;
    border-bottom:1px solid var(--line);
    flex-direction:column;
    align-items:flex-start;
    gap:16px
}

.nav-links.open {
    display:flex
}

.home-hero {
    padding:55px 6% 65px;
    grid-template-columns:1fr;
    gap:35px;
    min-height:auto
}

.home-hero h1 {
    font-size:clamp(54px,12vw,80px)
}

.hero-photo {
    height:60vh;
    min-height:330px
}

.hero-index {
    left:auto;
    right:6%;
    bottom:22px
}

.section {
    padding:65px 6%
}

.preview-grid {
    grid-template-columns:repeat(2,1fr);
    gap:20px 12px
}

.home-about {
    padding:65px 6%;
    grid-template-columns:1fr;
    gap:25px
}

.contact-banner {
    padding:75px 6%
}

.site-footer {
    padding:32px 6%;
    flex-wrap:wrap
}

.site-footer p {
    order:3;
    width:100%;
    margin:0
}

.page-hero {
    padding:65px 6% 35px
}

.portfolio-section {
    padding:0 5% 60px
}

.portfolio-grid {
    columns:2 150px;
    column-gap:9px
}

.portfolio-item {
    margin-bottom:9px
}

.about-layout {
    padding:15px 6% 60px;
    grid-template-columns:1fr;
    gap:35px
}

.about-photo {
    max-height:500px
}

.about-photo img {
    max-height:500px
}

.about-values {
    padding:35px 6% 55px;
    grid-template-columns:1fr;
    gap:15px
}

.about-values h3 {
    margin:5px 0
}

.contact-options {
    padding:0 5% 50px;
    grid-template-columns:1fr
}

.contact-option {
    padding:25px
}

.contact-option>p {
    min-height:0
}

.contact-direct {
    margin:0 5% 25px;
    padding:25px;
    align-items:flex-start;
    flex-direction:column
}

.direct-links {
    gap:14px
}

.portfolio-cta {
    padding:35px 6%;
    flex-direction:column;
    align-items:flex-start
}

.lightbox {
    padding:55px 45px
}

.lightbox-prev {
    left:8px
}

.lightbox-next {
    right:8px
}

}

@media(max-width:420px) {
    .portfolio-grid {
    columns:2 130px
}

.section-heading {
    align-items:flex-start;
    flex-direction:column
}

.hero-actions {
    gap:18px
}

.site-footer {
    gap:15px
}

.site-footer .wordmark {
    width:100%
}

}

/* Desktop horizontal carousel: natural image widths, minimal gaps */

@media (min-width: 801px) {
    .project-carousel {
        gap: 8px !important;
        padding-inline: 12px !important;
        scroll-padding-inline: 12px !important;
        align-items: center;
    }

    .project-carousel .portfolio-item {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        scroll-snap-align: start;
    }

    .project-carousel .portfolio-item img {
        display: block;
        width: auto !important;
        height: min(86vh, 900px) !important;
        max-height: min(86vh, 900px) !important;
        max-width: none !important;
        object-fit: contain;
    }
}


/* Mobile carousel: same image height, natural width, no crop */
@media (max-width: 800px) {
    .project-carousel {
        align-items: center !important;
        gap: 8px !important;
        padding-inline: 12px !important;
        scroll-padding-inline: 12px !important;
    }

    .project-carousel .portfolio-item {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        height: min(42vh, 250px) !important;
        min-height: min(42vh, 250px) !important;
        max-width: none !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        scroll-snap-align: center !important;
    }

    .project-carousel .portfolio-item img {
        display: block !important;
        width: auto !important;
        height: 100% !important;
        max-width: none !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

/* Filtering must override carousel display:flex rules on desktop and mobile */
.portfolio-item[hidden] {
    display: none !important;
}
