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

/* ── Base ────────────────────────────────────── */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.7;
}

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

img {
    display: block;
    max-width: 100%;
}

/* ── Header / Nav ────────────────────────────── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 200;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: #1a1a1a;
}

.logo-wt {
    font-weight: 500;
    letter-spacing: 0.03em;
}

.logo-sub {
    font-weight: 300;
    font-size: 12px;
    color: #555;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.site-nav a:hover {
    opacity: 0.55;
}

.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #1a1a1a;
}

/* ── Container ───────────────────────────────── */
.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Page title ──────────────────────────────── */
.page-title {
    text-align: center;
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    padding: 48px 0 42px;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px;
    margin-top: 80px;
    font-size: 11px;
    font-weight: 300;
    color: #888;
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links a {
    color: #1a1a1a;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 0.5;
}

/* ── Carousel (Home) ─────────────────────────── */
.carousel-wrap {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.carousel {
    overflow: hidden;
    line-height: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 48px;
    font-weight: 300;
    color: #1a1a1a;
    padding: 12px 10px;
    opacity: 0.55;
    transition: opacity 0.2s;
    z-index: 10;
    line-height: 1;
}

.carousel-btn:hover {
    opacity: 1;
}

.carousel-btn:focus {
    outline: none;
}

.carousel-btn.prev {
    left: -38px;
}

.carousel-btn.next {
    right: -38px;
}

.carousel-caption {
    text-align: center;
    font-size: 11.5px;
    font-weight: 300;
    color: #666;
    margin-top: 22px;
    letter-spacing: 0.02em;
}

/* ── Project Gallery (Uncommissioned overview) ── */
.project-grid {
    columns: 2;
    column-gap: 6px;
    margin-bottom: 70px;
}

.project-card {
    break-inside: avoid;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.project-card img {
    width: 100%;
    display: block;
    transition: transform 0.45s ease;
}

.project-card:hover img {
    transform: scale(1.025);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-title {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}

/* ── Project detail page ─────────────────────── */
.project-description {
    max-width: 560px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.85;
    color: #555;
}

.project-images {
    columns: 2;
    column-gap: 6px;
    margin-bottom: 70px;
}

.project-image-item {
    break-inside: avoid;
    margin-bottom: 6px;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
}

.project-image-item img {
    width: 100%;
    display: block;
    transition: transform 0.45s ease;
}

.project-image-item:hover img {
    transform: scale(1.025);
}

/* ── Project prev/next navigation ───────────── */
.project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 60px;
    border-top: 1px solid #e8e8e8;
    margin-top: 10px;
}

.project-nav-prev,
.project-nav-next {
    flex: 1;
}

.project-nav-next {
    text-align: right;
}

.project-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #222;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.project-nav-link:hover {
    opacity: 0.55;
}

.project-nav-arrow {
    font-size: 18px;
    line-height: 1;
}

.project-nav-all {
    flex: 0 0 auto;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: #999;
    transition: color 0.2s ease;
}

.project-nav-all:hover {
    color: #222;
}

/* ── Picture Gallery (Portraits) ─────────────── */
.picture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 70px;
}

.picture-item {
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
    aspect-ratio: 3 / 4;
}

.picture-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.picture-item:hover img {
    transform: scale(1.03);
}

/* ── About ───────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 80px;
    align-items: stretch;
}

.about-text-box {
    background: #f6f6f6;
    padding: 52px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subtitle {
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 26px;
    text-align: center;
}

.about-bio {
    font-size: 12px;
    line-height: 1.95;
    color: #444;
}

.about-bio p + p {
    margin-top: 18px;
}

.about-photo {
    line-height: 0;
    overflow: hidden;
}

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

/* ── Contact ─────────────────────────────────── */
.contact-wrap {
    max-width: 660px;
    margin: 0 auto 90px;
    background: #f6f6f6;
    padding: 60px 80px 68px;
}

.contact-section-title {
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 14px;
}

.contact-address {
    text-align: center;
    font-size: 12px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 36px;
}

.contact-email-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.contact-email-wrap a {
    font-size: 12px;
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 1px;
    transition: opacity 0.2s;
}

.contact-email-wrap a:hover {
    opacity: 0.55;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 5px 0 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #1a1a1a;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
    border-radius: 0;
}

.form-group input:focus {
    border-bottom-color: #1a1a1a;
}

.form-group textarea {
    border: 1px solid #ccc;
    padding: 10px 12px;
    height: 130px;
    resize: vertical;
    font-size: 12px;
    transition: border-color 0.2s;
    margin-top: 0;
}

.form-group textarea:focus {
    border-color: #1a1a1a;
}

.form-group-full {
    margin-bottom: 28px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: transparent;
    border: 1px solid #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    color: #1a1a1a;
    transition: background 0.25s, color 0.25s;
}

.btn-submit:hover {
    background: #1a1a1a;
    color: #fff;
}

.form-alert {
    text-align: center;
    font-size: 12px;
    padding: 12px 0 0;
    letter-spacing: 0.02em;
}

.form-alert.success { color: #4a7c4a; }
.form-alert.error   { color: #b44; }

/* ── Lightbox ────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 900;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px 80px;
}

.lightbox-img {
    max-height: 88vh;
    max-width: 86vw;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 26px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    color: #1a1a1a;
    opacity: 0.65;
    transition: opacity 0.2s;
    padding: 4px 8px;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    color: #1a1a1a;
    padding: 14px 18px;
    opacity: 0.45;
    transition: opacity 0.2s;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev  { left: 18px; }
.lightbox-nav.next  { right: 18px; }

/* Loading spinner shown while full-res image is fetched */
.lightbox.loading .lightbox-inner::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(26,26,26,0.15);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
    pointer-events: none;
}

@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

/* ── Hamburger toggle ────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
}

.nav-toggle span {
    display: block;
    height: 1px;
    background: #1a1a1a;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 800px) {
    .site-header {
        padding: 16px 20px;
        flex-wrap: nowrap;
        position: sticky;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 20px;
        border-top: 1px solid #e8e8e8;
        z-index: 199;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 14px 20px 14px;
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    .site-nav a.active::after {
        display: none;
    }

    .site-nav a.active {
        opacity: 0.45;
    }

    .container {
        padding: 0 20px;
    }

    .page-title {
        font-size: 14px;
        letter-spacing: 0.35em;
        padding: 36px 0 32px;
    }

    /* Carousel */
    .carousel-btn.prev { left: 4px; }
    .carousel-btn.next { right: 4px; }
    .carousel-slide img { height: auto; }

    /* Galleries */
    .project-grid,
    .project-images {
        columns: 1;
    }

    .picture-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo {
        display: none;
    }

    /* Contact */
    .contact-wrap {
        padding: 36px 24px 44px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .site-footer {
        padding: 22px 20px;
        margin-top: 50px;
    }
}
