:root {
    --ink: #24292c;
    --charcoal: #22282b;
    --muted: #667176;
    --cream: #f5f3ee;
    --gold: #bd9871;
    --line: #dddcd7
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.65
}

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

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

button,
input,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

h1,
h2,
h3,
.eyebrow,
.nav {
    font-family: Montserrat, Arial, sans-serif
}

h1,
h2,
h3 {
    line-height: 1.13;
    letter-spacing: -.035em
}

h1 {
    font-size: clamp(3rem, 7.8vw, 7rem);
    margin: .3em 0
}

h2 {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    margin: 0 0 1rem
}

h3 {
    font-size: 1.25rem
}

p {
    margin: 0 0 1.25rem
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: auto
}

.eyebrow {
    text-transform: uppercase;
    font-size: .73rem;
    letter-spacing: .23em;
    font-weight: 700;
    color: var(--gold)
}

.site-header {
    height: 86px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    background: #fff
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px
}

.brand {
    width: 154px;
    height: 69px;
    display: flex;
    align-items: center;
    overflow: hidden
}

.brand img {
    width: 154px;
    height: auto
}

.nav {
    display: flex;
    gap: 29px;
    align-items: center;
    font-size: .71rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 700
}

.nav a:hover,
.nav a:focus-visible {
    color: #a27c54
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.6rem
}

.header-phone {
    border-left: 1px solid var(--line);
    padding-left: 24px;
    white-space: nowrap;
    font-weight: 700;
    font-size: .85rem
}

.hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    background: #2d3232;
    color: white;
    overflow: hidden
}

.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 22, 26, .88), rgba(14, 22, 26, .38)), url('assets/decature-front-view.webp') center/cover
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 105px 0;
    max-width: 850px
}

.hero h1 {
    max-width: 830px
}

.hero p {
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .81rem;
    font-weight: 600
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: var(--gold);
    color: #181d1e;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: .72rem;
    border: 1px solid var(--gold);
    transition: .2s
}

.button:hover {
    background: #e2c4a1
}

.button-outline {
    background: transparent;
    color: white;
    border-color: #fff
}

.button-outline:hover {
    color: #222
}

.section {
    padding: 105px 0
}

.section-soft {
    background: var(--cream)
}

.section-dark {
    background: var(--charcoal);
    color: #fff
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 85px;
    align-items: start
}

.section-intro {
    max-width: 680px
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 48px
}

.service {
    padding: 28px 20px;
    background: #fff;
    font-weight: 700;
    font-size: .87rem;
    min-height: 115px;
    display: flex;
    align-items: end
}

.service span {
    color: var(--gold);
    font-size: .7rem;
    align-self: start;
    margin-right: 12px
}

.about-text {
    max-width: 720px
}

.about-text p {
    color: #505c61
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 38px
}

.project-card {
    background: #fff;
    overflow: hidden
}

.project-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform .4s
}

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

.project-card .details {
    padding: 24px 22px
}

.project-card h3 {
    margin: 0 0 8px
}

.project-card .details span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #8d6e50;
    font-weight: 700
}

.clients {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px
}

.client-logo {
    min-height: 110px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #fff
}

.client-logo img {
    max-height: 70px;
    object-fit: contain
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 85px
}

.contact-info p {
    color: #cdd0cf
}

.contact-info a {
    text-decoration: underline;
    text-underline-offset: 4px
}

.contact-form {
    display: grid;
    gap: 16px
}

.field label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 8px
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #6b7274;
    background: #343a3c;
    color: #fff;
    padding: 13px 14px;
    border-radius: 0
}

.field textarea {
    min-height: 145px;
    resize: vertical
}

.form-note {
    color: #c6cacb;
    font-size: .83rem
}

.footer {
    background: #171c1e;
    color: #d6d9d9;
    padding: 35px 0;
    font-size: .78rem
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap
}

.footer img {
    width: 115px
}

.project-hero {
    background: var(--charcoal);
    color: #fff;
    padding: 75px 0 85px
}

.project-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem)
}

.back-link {
    font-size: .76rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #bda184
}

.gallery {
    padding: 70px 0 110px
}

.gallery-main {
    position: relative;
    background: #eae8e4
}

.gallery-main img {
    width: 100%;
    height: min(65vw, 660px);
    min-height: 300px;
    object-fit: contain
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 31, 33, .85);
    color: white;
    border: 0;
    padding: 14px 19px;
    font-size: 1.6rem
}

.gallery-prev {
    left: 15px
}

.gallery-next {
    right: 15px
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    margin: 14px 0 22px;
    color: var(--muted);
    font-size: .82rem
}

.thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px
}

.thumbs button {
    border: 2px solid transparent;
    padding: 0;
    background: none;
    flex: 0 0 110px;
    opacity: .65
}

.thumbs button[aria-current=true] {
    border-color: var(--gold);
    opacity: 1
}

.thumbs img {
    width: 100%;
    height: 75px;
    object-fit: cover
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px
}

@media(max-width:850px) {
    .nav-toggle {
        display: block
    }

    .nav {
        display: none;
        position: absolute;
        top: 86px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 28px;
        box-shadow: 0 20px 20px #0002
    }

    .nav.open {
        display: flex
    }

    .header-phone {
        display: none
    }

    .split,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

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

    .work-grid {
        grid-template-columns: 1fr 1fr
    }

    .clients {
        grid-template-columns: repeat(3, 1fr)
    }

    .section {
        padding: 75px 0
    }
}

@media(max-width:600px) {
    .container {
        width: min(100% - 32px, 1160px)
    }

    .hero {
        min-height: 550px
    }

    .hero-content {
        padding: 80px 0
    }

    .work-grid,
    .clients {
        grid-template-columns: 1fr 1fr
    }

    .project-card img {
        height: 190px
    }

    .service {
        min-height: 95px;
        padding: 18px
    }

    .gallery-main img {
        min-height: 240px
    }

    .section {
        padding: 60px 0
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important
    }
}

/* Compact spacing and lightweight interaction polish */
.section {
    padding: 66px 0
}

.hero {
    min-height: 540px
}

.hero-content {
    padding: 76px 0
}

.hero:before {
    animation: hero-arrive 1.25s ease-out both
}

.hero h1 {
    animation: headline-in .8s .08s both
}

.hero .eyebrow,
.hero p,
.hero .button {
    animation: headline-in .75s .23s both
}

.section h2 {
    margin-bottom: .7rem
}

.section-intro p,
.about-text p {
    margin-bottom: .9rem
}

.service-grid {
    margin-top: 27px
}

.service {
    min-height: 90px;
    padding: 20px 17px;
    transition: background-color .25s, transform .25s, box-shadow .25s
}

.service:hover {
    background: #f8f4ed;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px #00000012;
    z-index: 1
}

.work-grid {
    margin-top: 25px;
    gap: 16px
}

.project-card {
    transition: transform .3s, box-shadow .3s
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px #0000001c
}

.project-card img {
    height: 235px;
    transition: transform .55s ease, filter .4s
}

.project-card:hover img {
    transform: scale(1.07);
    filter: saturate(1.08)
}

.project-card .details {
    padding: 17px 19px
}

.clients {
    margin-top: 23px;
    gap: 14px
}

.client-logo {
    min-height: 90px;
    transition: transform .3s, box-shadow .3s
}

.client-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 20px #00000010
}

.button {
    transition: background .25s, transform .25s, box-shadow .25s
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #0003
}

.nav a {
    transition: color .2s
}

.contact-grid,
.split {
    gap: 55px
}

.contact-form {
    gap: 12px
}

.field textarea {
    min-height: 110px
}

.project-hero {
    padding: 48px 0 54px
}

.project-hero .eyebrow {
    margin-top: 18px !important
}

.gallery {
    padding: 40px 0 70px
}

.gallery-main img {
    height: min(56vw, 590px);
    transition: opacity .2s
}

.gallery-arrow {
    transition: background .2s
}

.gallery-arrow:hover {
    background: #bd9871
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
    transition-delay: var(--reveal-delay, 0ms)
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0)
}

@keyframes hero-arrive {
    from {
        opacity: .65;
        transform: scale(1.035)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes headline-in {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(max-width:850px) {
    .section {
        padding: 54px 0
    }

    .hero {
        min-height: 480px
    }

    .split,
    .contact-grid {
        gap: 24px
    }
}

@media(max-width:600px) {
    .section {
        padding: 44px 0
    }

    .hero {
        min-height: 450px
    }

    .hero-content {
        padding: 65px 0
    }

    .service {
        min-height: 78px
    }

    .project-card img {
        height: 180px
    }

    .project-hero {
        padding: 38px 0
    }

    .gallery {
        padding: 28px 0 50px
    }
}

@media(prefers-reduced-motion:reduce) {

    .hero:before,
    .hero h1,
    .hero .eyebrow,
    .hero p,
    .hero .button {
        animation: none !important
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important
    }
}

/* V0.3: denser editorial rhythm, alternate section tones, sliding galleries. */
body {
    font-family: Arial, Helvetica, sans-serif
}

h1,
h2,
h3,
.eyebrow,
.nav {
    font-family: Arial, Helvetica, sans-serif
}

.section {
    padding: 44px 0
}

.hero {
    min-height: 480px
}

.hero-content {
    padding: 60px 0
}

.section-soft {
    background: #f0eee9
}

#services {
    background: #f9f8f5
}

#work {
    background: #e8eceb
}

#clients {
    background: #f2f0eb
}

#about {
    background: #fff
}

.service-grid {
    margin-top: 18px
}

.service {
    min-height: 78px;
    padding: 16px
}

.work-grid {
    margin-top: 20px
}

.section-intro {
    max-width: 960px;
    columns: 2;
    column-gap: 34px
}

.section-intro p {
    break-inside: avoid
}

.clients {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px
}

.client-logo {
    min-height: 118px;
    padding: 18px 14px;
    border: 1px solid #deded9;
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease
}

.client-logo img {
    width: 100%;
    max-height: 86px;
    object-fit: contain
}

.client-logo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px #00000012
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.footer-social img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform .2s
}

.footer-social a:hover img {
    transform: translateY(-3px)
}

.gallery {
    background: #f2f0eb;
    padding: 28px 0 48px
}

.project-hero {
    padding: 36px 0 40px
}

.gallery-main {
    overflow: hidden;
    background: #dfe2e1
}

.gallery-track {
    display: flex;
    width: 100%;
    transition: transform 520ms cubic-bezier(.22, .7, .2, 1);
    will-change: transform
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.gallery-slide img {
    width: 100%;
    height: min(57vw, 620px);
    min-height: 270px;
    object-fit: contain
}

.gallery-arrow {
    z-index: 1
}

.thumbs button {
    transition: opacity .2s, transform .2s
}

.thumbs button:hover {
    opacity: 1;
    transform: translateY(-2px)
}

@media(max-width:850px) {
    .section {
        padding: 38px 0
    }

    .section-intro {
        columns: 1
    }

    .clients {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:600px) {
    .section {
        padding: 30px 0
    }

    .hero {
        min-height: 420px
    }

    .hero-content {
        padding: 54px 0
    }

    .clients {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .client-logo {
        min-height: 95px
    }

    .client-logo img {
        max-height: 70px
    }

    .gallery-slide img {
        min-height: 230px;
        height: 65vw
    }

    .footer-social {
        width: 100%;
        justify-content: flex-start
    }
}

@media(prefers-reduced-motion:reduce) {
    .gallery-track {
        transition: none !important
    }
}

/* Version 0.4: compact editorial sections, brand contrast, accessible gallery controls */
:root {
    --charcoal: #393948;
    --gold: #f58220;
    --cream: #f7f6f3
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 74px;
    box-shadow: 0 3px 18px #11111112;
    transition: height .25s, box-shadow .25s
}

.site-header.is-scrolled {
    height: 62px;
    box-shadow: 0 6px 24px #11111120
}

.header-inner {
    justify-content: space-between
}

.brand {
    height: 60px
}

.nav {
    margin-left: auto
}

.section {
    padding: 34px 0
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: 5px 0 19px
}

#services {
    background: #393948;
    color: white
}

#services .service-grid {
    border: 0;
    background: transparent;
    gap: 12px;
    margin-top: 20px
}

#services .service {
    background: transparent;
    color: #fff;
    min-height: 84px;
    border-top: 5px solid #737382;
    padding: 14px 6px;
    align-items: start;
    transition: border-color .2s, transform .2s
}

#services .service:hover {
    background: #ffffff0b;
    border-top-color: var(--gold)
}

#services .service span {
    color: #ff9b46
}

#about {
    background: linear-gradient(90deg, #f5f5f3ed, #f5f5f3ef), url('assets/church-lobby-hangout.webp') center/cover
}

#work {
    background: #e9e8e5
}

#clients {
    background: #fff
}

.section-clients {
    padding: 32px 0 38px
}

.section-clients .clients {
    margin-top: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 20px
}

.client-logo {
    border: 0;
    background: transparent;
    padding: 6px 10px;
    min-height: 106px;
    box-shadow: none !important;
    transform: none !important
}

.client-logo img {
    max-height: 92px;
    mix-blend-mode: multiply;
    filter: contrast(1.04);
    transition: transform .25s
}

.client-logo:hover img {
    transform: scale(1.06)
}

#work .section-intro {
    margin-bottom: 14px
}

#work .work-grid {
    margin-top: 16px
}

.project-hero {
    padding: 28px 0 30px
}

.project-hero h1 {
    margin: 12px 0 0;
    text-transform: uppercase
}

.project-location {
    font-size: .88rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #e4b48a;
    margin: 12px 0 0
}

.project-description {
    background: #fff;
    padding: 22px 0 12px
}

.project-description-inner {
    max-width: 1160px;
    columns: 2;
    column-gap: 46px
}

.project-description p {
    break-inside: avoid;
    margin: 0 0 14px;
    line-height: 1.6
}

.gallery {
    padding: 24px 0 40px
}

.gallery-main {
    border-radius: 3px
}

.gallery-meta {
    margin: 10px 0
}

.thumbs-wrap {
    display: flex;
    gap: 8px;
    align-items: center
}

.thumbs {
    flex: 1;
    min-width: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scroll-snap-type: x proximity
}

.thumbs button {
    flex: 0 0 105px;
    scroll-snap-align: start
}

.thumbs img {
    height: 70px
}

.thumb-nav {
    flex: 0 0 36px;
    height: 70px;
    border: 1px solid #bbb;
    background: #fff;
    color: #262a2d;
    font-size: 1.8rem;
    transition: background .2s
}

.thumb-nav:hover {
    background: #eee4da
}

#contact {
    padding: 38px 0
}

.footer {
    padding: 25px 0
}

@media(max-width:850px) {
    .site-header {
        height: 72px
    }

    .site-header.is-scrolled {
        height: 64px
    }

    .nav {
        top: 100%
    }

    .section {
        padding: 30px 0
    }

    .section-clients .clients {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .project-description-inner {
        columns: 1
    }
}

@media(max-width:600px) {
    .section {
        padding: 26px 0
    }

    .section-clients .clients {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px
    }

    .client-logo {
        min-height: 80px;
        padding: 6px
    }

    .client-logo img {
        max-height: 72px
    }

    .thumbs button {
        flex-basis: 85px
    }

    .thumbs img {
        height: 60px
    }

    .thumb-nav {
        height: 60px;
        flex-basis: 30px
    }

    .project-description {
        padding: 20px 0 8px
    }
}

@media(prefers-reduced-motion:reduce) {
    .thumbs {
        scroll-behavior: auto
    }
}

/* v0.5: photographic project introductions and vertically stacked project information */
.hero h1 {
    text-transform: uppercase
}

.project-banner {
    height: clamp(260px, 31vw, 500px);
    overflow: hidden;
    background: #d5d5d2
}

.project-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 49%
}

.project-banner-hamilton-mill-church img {
    object-position: center 39%;
    transform: scale(1.16)
}

.project-banner-caliber-collision img {
    object-position: center 46%
}

.project-banner-celebration-church img {
    object-position: center 50%
}

.project-hero {
    background: #fff;
    color: #1d1d20;
    padding: 30px 0 24px
}

.project-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.05;
    margin: 9px 0 0
}

.project-hero .back-link {
    color: #8c653f
}

.project-hero .eyebrow {
    margin-top: 15px !important
}

.project-detail-section {
    background: #f1f0ec;
    padding: 10px 0 36px
}

.project-description-inner {
    max-width: 1160px;
    columns: auto;
    column-gap: normal
}

.project-detail-card {
    max-width: 980px;
    padding: 27px 34px 16px;
    background: #fff;
    border-left: 5px solid #f58020;
    box-shadow: 0 8px 25px rgba(20, 25, 25, .045)
}

.project-detail-card .eyebrow {
    margin-bottom: 13px;
    color: #a36b38
}

.project-detail-card p {
    max-width: 86ch;
    margin: 0 0 14px;
    line-height: 1.65
}

@media(max-width:600px) {
    .project-banner {
        height: 235px
    }

    .project-banner-hamilton-mill-church img {
        transform: scale(1.12)
    }

    .project-detail-card {
        padding: 20px 20px 9px
    }

    .project-hero {
        padding: 22px 0 18px
    }

    .project-detail-section {
        padding: 8px 0 24px
    }
}

/* V0.6 — compact project pages, deliberate tonal contrast */
body:has(.project-banner) {
    background: #e9e8e4
}

.project-banner {
    height: clamp(230px, 27vw, 420px)
}

.project-hero {
    background: #292d36;
    color: #fff;
    padding: 20px 0 18px
}

.project-hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px
}

.project-hero .back-link {
    color: #f6a45c;
    font-size: .68rem
}

.project-hero .eyebrow {
    color: #e4a66e;
    margin: 4px 0 0 !important
}

.project-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.7rem);
    margin: 2px 0 0;
    line-height: 1.03
}

.project-location {
    margin: 2px 0 0;
    color: #f2c09b;
    font-size: .72rem
}

.project-detail-section {
    background: #292d36;
    padding: 0 0 22px
}

.project-detail-section .container {
    max-width: 1160px
}

.project-detail-card {
    max-width: none;
    background: #393e49;
    color: #f6f5f2;
    border-left: 4px solid #f58020;
    box-shadow: none;
    padding: 17px 24px 10px
}

.project-detail-card .eyebrow {
    color: #ffad69;
    margin: 0 0 8px
}

.project-detail-card p {
    max-width: 105ch;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: .93rem
}

.gallery {
    background: #e9e8e4;
    padding: 20px 0 30px
}

.gallery-main {
    background: #d5d8d8;
    border-radius: 0
}

.gallery-slide img {
    height: clamp(260px, 42vw, 510px);
    min-height: 0
}

.gallery-meta {
    margin: 7px 0 9px
}

.thumbs img {
    height: 65px
}

@media(min-width:1000px) {

    .project-hero .container,
    .project-detail-section .container,
    .gallery .container {
        width: min(1160px, calc(100% - 64px))
    }
}

@media(max-width:600px) {
    .project-banner {
        height: 205px
    }

    .project-hero {
        padding: 17px 0 14px
    }

    .project-detail-section {
        padding: 0 0 15px
    }

    .project-detail-card {
        padding: 15px 16px 9px
    }

    .gallery {
        padding: 15px 0 23px
    }

    .gallery-slide img {
        height: 63vw;
        min-height: 220px
    }

    .project-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.8rem)
    }
}

/* v0.7: project-page entrances, scroll reveals and bottom navigation */
.project-hero .container {
    gap: 6px
}

.project-hero h1 {
    margin: 0
}

.project-return {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #c6c7c3
}

.project-return .back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #664321;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 8px 0;
    transition: color .22s ease
}

.project-return .back-link span {
    display: inline-block;
    transition: transform .22s ease
}

.project-return .back-link:hover {
    color: #a6541b
}

.project-return .back-link:hover span {
    transform: translateX(-5px)
}

@media(prefers-reduced-motion:no-preference) {
    body:has(.project-banner) .project-banner img {
        animation: project-banner-enter 1.05s cubic-bezier(.2, .7, .2, 1) both
    }

    body:has(.project-banner) .project-hero h1 {
        animation: project-title-enter .65s .12s both
    }

    body:has(.project-banner) .project-location {
        animation: project-title-enter .65s .22s both
    }

    .project-scroll-reveal {
        transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
        opacity: 1;
        transform: none
    }

    .project-scroll-reveal.pending {
        opacity: 0;
        transform: translateY(24px)
    }

    .project-scroll-reveal.pending.is-visible {
        opacity: 1;
        transform: none
    }

    .gallery-main {
        transition: box-shadow .35s ease
    }

    .gallery-main:hover {
        box-shadow: 0 14px 30px #00000014
    }

    .thumbs button {
        transition: opacity .25s ease, transform .25s ease, border-color .25s ease
    }

    .thumbs button:hover {
        opacity: 1;
        transform: translateY(-3px)
    }

    @keyframes project-banner-enter {
        from {
            opacity: .7;
            filter: brightness(.85);
            transform: scale(1.035)
        }

        to {
            opacity: 1;
            filter: brightness(1);
            transform: scale(1)
        }
    }

    @keyframes project-title-enter {
        from {
            opacity: 0;
            transform: translateY(18px)
        }

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }
}

@media(prefers-reduced-motion:reduce) {

    .project-scroll-reveal,
    .project-scroll-reveal.pending {
        opacity: 1 !important;
        transform: none !important
    }
}

/* v0.9: simplified headings, hidden thumbnail scrollbar and accessible fullscreen viewer */
.thumbs {
    scrollbar-width: none;
    -ms-overflow-style: none
}

.thumbs::-webkit-scrollbar {
    display: none
}

.gallery-meta {
    justify-content: flex-end
}

.gallery-slide img {
    cursor: zoom-in
}

.photo-lightbox[hidden] {
    display: none !important
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(22, 25, 30, .94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 72px
}

.photo-lightbox .lightbox-photo {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 100px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 12px 50px #0005
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(52, 56, 65, .55);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: rgba(94, 99, 110, .85)
}

.lightbox-close {
    right: 16px;
    top: 12px;
    width: 48px;
    height: 48px;
    font-size: 36px;
    line-height: 1
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 64px;
    font-size: 40px
}

.lightbox-prev {
    left: 12px
}

.lightbox-next {
    right: 12px
}

.lightbox-open {
    overflow: hidden
}

@media(max-width:600px) {
    .photo-lightbox {
        padding: 60px 44px
    }

    .lightbox-arrow {
        width: 36px;
        height: 56px;
        font-size: 32px
    }

    .lightbox-prev {
        left: 2px
    }

    .lightbox-next {
        right: 2px
    }

    .lightbox-close {
        right: 8px;
        top: 8px
    }
}

@media(prefers-reduced-motion:reduce) {

    .lightbox-close,
    .lightbox-arrow {
        transition: none
    }
}

/* 404 page only: keep the shared site layout unchanged. */
body.not-found-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.not-found-page>.site-header,
body.not-found-page>.footer {
    flex: 0 0 auto;
}

body.not-found-page>main.not-found {
    flex: 1 0 auto;
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    body.not-found-page .not-found .btn {
        transition: none;
    }
}

.not-found {
    display: grid;
    place-items: center;
    background: #292d36;
    color: #fff;
    padding: 72px 24px;
    text-align: center;
}

.not-found-inner {
    max-width: 650px;
}

.not-found-code {
    color: #f58020;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.06em;
    margin: 0 0 16px;
}

.not-found h1 {
    color: #fff;
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 20px;
}

.not-found p {
    color: #d4d6dc;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 auto 30px;
}

.not-found .button {
    display: inline-block;
    text-decoration: none;
}

/* Contact anti-spam field: visually hidden, not submitted by humans. */
.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form button:disabled {
    opacity: .65;
    cursor: wait;
}

/* Contact form: accessible validation feedback (no impact on other sections) */
.contact-form .field-error {
    display: block;
    color: #ffbb8b;
    font-size: .8rem;
    line-height: 1.45;
    margin-top: 5px;
}

.contact-form .field-error:empty {
    display: none;
}

.contact-form .field.has-error input,
.contact-form .field.has-error textarea {
    border-color: #ff9c68;
    box-shadow: 0 0 0 1px #ff9c68;
}

.contact-form .field input:focus-visible,
.contact-form .field textarea:focus-visible {
    outline: 2px solid #f58220;
    outline-offset: 2px;
}