@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500&display=swap');
:root {
    --ink:#f6f3ed;
    --muted:#bcb8b1;
    --bg:#141414;
    --line:#45423d;
    --accent:#c5a57b
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:Montserrat,Arial,sans-serif;
    font-weight:300
}

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

button,input,textarea {
    font:inherit
}

button {
    cursor:pointer
}

header {
    position:sticky;
    top:0;
    z-index:30;
    background:#141414f0;
    border-bottom:1px solid #333
}

nav {
    max-width:1200px;
    margin:auto;
    min-height:83px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 28px;
    gap:30px
}

.brand {
    font-size:25px;
    letter-spacing:.31em;
    font-weight:500
}

.navlinks {
    display:flex;
    gap:34px;
    font-size:11px;
    letter-spacing:.22em
}

.navlinks a:hover,.active {
    color:var(--accent)
}

.hamburger {
    display:none;
    background:none;
    border:1px solid #666;
    color:white;
    padding:10px
}

.hero {
    min-height:75vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    position:relative;
    background:linear-gradient(#0005,#0008),url('assets/Backgrounds/bkg_01.jpg') center/cover
}

.hero:before {
    content:'';
    position:absolute;
    inset:20px;
    border:1px solid #ffffff4a;
    pointer-events:none
}

.hero-inner {
    position:relative;
    padding:55px 20px
}

.eyebrow {
    font-size:11px;
    letter-spacing:.36em;
    color:#e2d6c5
}

.hero h1 {
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(60px,11vw,144px);
    font-weight:400;
    letter-spacing:.13em;
    margin:16px 0
}

.hero p {
    letter-spacing:.24em;
    font-size:12px
}

.btn {
    display:inline-block;
    border:1px solid #d2c3ae;
    background:transparent;
    color:#fff;
    padding:16px 28px;
    font-size:11px;
    letter-spacing:.2em;
    margin-top:30px
}

.btn:hover {
    background:#e4d3ba;
    color:#111
}

.wrap {
    max-width:1200px;
    margin:auto;
    padding:95px 28px
}

.section-heading {
    text-align:center;
    margin-bottom:48px
}

.section-heading h2 {
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(35px,5vw,62px);
    font-weight:400;
    letter-spacing:.09em;
    margin:10px
}

.section-heading p {
    font-size:11px;
    letter-spacing:.25em;
    color:var(--accent)
}

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

.gallery button {
    border:0;
    padding:0;
    background:#222;
    overflow:hidden;
    position:relative;
    aspect-ratio:3/4
}

.gallery img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .4s,opacity .4s
}

.gallery button:hover img {
    transform:scale(1.055);
    opacity:.75
}

.gallery button span {
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    padding:18px;
    background:linear-gradient(transparent,#000a);
    text-align:left;
    font-size:10px;
    letter-spacing:.15em
}

.about {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:55px;
    align-items:center
}

.about img {
    width:100%;
    max-height:590px;
    object-fit:cover
}

.about p,.contact p {
    line-height:2;
    color:var(--muted);
    font-size:14px
}

.about h2,.contact h2 {
    font:400 52px 'Playfair Display',serif
}

.feature {
    background:linear-gradient(#0009,#0009),url('assets/Backgrounds/bkg_03.jpg') center/cover;
    padding:110px 25px;
    text-align:center
}

.feature h2 {
    font:400 48px 'Playfair Display',serif
}

.contact {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:75px
}

.contact label {
    display:block;
    font-size:11px;
    letter-spacing:.15em;
    margin-bottom:18px
}

.contact input,.contact textarea {
    display:block;
    margin-top:9px;
    width:100%;
    background:#202020;
    border:1px solid #555;
    color:#fff;
    padding:13px
}

.contact textarea {
    min-height:130px
}

footer {
    border-top:1px solid #333;
    text-align:center;
    padding:40px 15px;
    font-size:11px;
    color:#aaa;
    letter-spacing:.16em
}

.social {
    display:flex;
    gap:12px;
    justify-content:center;
    margin:18px
}

.social img {
    width:22px;
    height:22px;
    object-fit:contain
}

.lightbox {
    position:fixed;
    inset:0;
    z-index:100;
    background:#000e;
    display:none;
    align-items:center;
    justify-content:center;
    padding:65px 25px
}

.lightbox.open {
    display:flex
}

.lightbox img {
    max-width:90vw;
    max-height:85vh;
    object-fit:contain
}

.lightbox button {
    position:absolute;
    top:20px;
    right:25px;
    background:none;
    border:0;
    color:white;
    font-size:40px
}

.lightbox .prev {
    left:25px;
    right:auto;
    top:50%
}

.lightbox .next {
    top:50%
}

@media(max-width:850px) {
    .gallery {
        grid-template-columns:repeat(2,1fr)
    }

    .about,.contact {
        grid-template-columns:1fr
    }

    .navlinks {
        display:none;
        position:absolute;
        top:82px;
        left:0;
        right:0;
        background:#191919;
        padding:28px;
        flex-direction:column
    }

    .navlinks.show {
        display:flex
    }

    .hamburger {
        display:block
    }

    .hero {
        min-height:62vh
    }

}

@media(max-width:450px) {
    .gallery {
        gap:7px
    }

    .wrap {
        padding:65px 18px
    }

    .brand {
        font-size:20px
    }

    .hero h1 {
        letter-spacing:.04em
    }

    .gallery button span {
        font-size:9px
    }

}

/* Movie Type B: original photo stays behind a fixed 50%-opacity movie. */
body {
    background:#141414 url('assets/Backgrounds/bkg_01.jpg') center center/cover fixed no-repeat
}

.movie-backdrop {
    position:fixed;
    inset:0;
    z-index:0;
    pointer-events:none;
    visibility:hidden
}

.movie-backdrop video {
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:.5
}

body.movie-on .movie-backdrop {
    visibility:visible
}

header,main,footer {
    position:relative;
    z-index:1
}

.hero {
    background:linear-gradient(#0005,#0008),url('assets/Backgrounds/bkg_01.jpg') center/cover
}

body.movie-on .hero {
    background:linear-gradient(#0005,#0008)
}

.movie-toggle {
    position:fixed;
    bottom:18px;
    right:18px;
    z-index:50;
    background:#181818eb;
    color:#fff;
    border:1px solid #b69c79;
    padding:12px 16px;
    font-size:12px
}

.lightbox {
    flex-direction:column;
    padding:55px 2vw 30px;
    gap:12px
}

.lightbox img {
    max-width:96vw;
    max-height:calc(96dvh - 145px);
    object-fit:contain
}

.lightbox .open-project {
    display:block;
    position:relative;
    z-index:2;
    background:#d6b58a;
    color:#161616;
    padding:13px 23px;
    letter-spacing:.13em;
    font-size:12px;
    font-weight:600
}

.lightbox .close,.lightbox .prev,.lightbox .next {
    z-index:3
}

.project-page {
    background:#141414;
    color:#f6f3ed
}

.project-container {
    max-width:1120px;
    margin:0 auto;
    padding:80px 22px
}

.project-container h1 {
    font:400 clamp(45px,7vw,80px) Georgia,serif;
    margin:0 0 18px
}

.project-container p {
    line-height:1.8;
    color:#bbb
}

.project-media {
    display:flex;
    flex-direction:column;
    gap:30px;
    margin:50px 0
}

.project-media img,.project-media video {
    display:block;
    width:100%;
    max-height:90vh;
    object-fit:contain;
    background:#090909
}

.project-nav {
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap
}

.project-nav a {
    border:1px solid #b69c79;
    padding:12px 18px
}

/* Movie mode: replace the initial still image with the fixed movie.
   Subsequent gallery/section images continue scrolling above it. */
body.movie-on {
    background-image:none;
    background-color:#111
}

body.movie-on .hero {
    background:none
}

body.movie-on .hero::before {
    z-index:1
}

body.movie-on .hero-inner {
    z-index:2
}

/* Five editable additional-media slots on every complete project page */
.project-placeholder {
    min-height:clamp(280px,60vh,640px);
    width:100%;
    border:2px dashed #6f665d;
    background:linear-gradient(135deg,#252422,#171717);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:15px;
    text-align:center;
    color:#d9c8b1;
    box-sizing:border-box
}

.project-placeholder .placeholder-icon {
    font-size:56px;
    font-weight:200;
    line-height:1;
    color:#c4a47c
}

.project-placeholder strong {
    font:400 clamp(22px,3vw,34px) Georgia,serif
}

.project-placeholder span {
    font-size:13px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#9e9589
}


/* ADDITIONAL 150PX SPACING BETWEEN MAIN SECTIONS */
main > section:not(:last-child) {
    margin-bottom: 150px;
}

/* ALLOW SECTION HEADINGS TO CLEAR THE STICKY NAVIGATION */
#home,
#gallery,
#about,
#contact {
    scroll-margin-top: 100px;
}

/* FIXED HOME BUTTON — BOTTOM LEFT */
.home-fixed-button {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 50;
    background: #181818eb;
    color: #fff;
    border: 1px solid #b69c79;
    padding: 12px 16px;
    font-size: 12px;
    text-decoration: none;
}

.home-fixed-button:hover,
.home-fixed-button:focus-visible {
    background: #d6b58a;
    color: #161616;
}


/* Persistent navigation header: stays accessible while scrolling. */
body {
    padding-top: 83px;
}

/* Overrides the earlier header,main,footer position:relative rule. */
body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 90;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

body > header nav {
    min-height: 83px;
    transition: min-height 180ms ease, padding 180ms ease;
}

body.header-compact > header {
    background: rgba(20, 20, 20, 0.97);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.header-compact > header nav {
    min-height: 54px;
    padding-top: 8px;
    padding-bottom: 8px;
}

body.header-compact > header .brand {
    font-size: 19px;
}

/* Anchors clear the compact header. */
#home, #gallery, #about, #contact {
    scroll-margin-top: 90px;
}

@media (max-width: 850px) {
    body.header-compact > header .navlinks {
        top: 54px;
    }
    body:not(.header-compact) > header .navlinks {
        top: 83px;
    }
}
