:root {
    --ink: #17201b;
    --muted: #64706a;
    --paper: #f8f7f3;
    --surface: #ffffff;
    --line: #dedbd1;
    --accent: #9d6b3f;
    --accent-dark: #6f482a;
    --green: #31483c;
    --shadow: 0 20px 60px rgba(23, 32, 27, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

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

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

button {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(220px, auto) 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 56px);
    color: #fff;
    transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.open {
    background: rgba(248, 247, 243, 0.96);
    box-shadow: 0 12px 36px rgba(23, 32, 27, 0.08);
    color: var(--ink);
    backdrop-filter: blur(16px);
}

.brand img {
    width: clamp(230px, 28vw, 390px);
    max-height: 86px;
    object-fit: contain;
}

.nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.92rem;
    font-weight: 650;
}

.nav-links a,
.header-action {
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
    color: #dcb68e;
}

.site-header.scrolled .nav-links a:hover,
.site-header.open .nav-links a:hover {
    color: var(--accent-dark);
}

.header-action {
    border: 1px solid currentColor;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.header-action:hover {
    background: #fff;
    color: var(--accent-dark);
}

.site-header.scrolled .header-action:hover,
.site-header.open .header-action:hover {
    background: var(--ink);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 140px clamp(18px, 5vw, 70px) 46px;
    overflow: hidden;
    color: #fff;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-shade {
    background: linear-gradient(90deg, rgba(17, 24, 20, 0.86), rgba(17, 24, 20, 0.42) 54%, rgba(17, 24, 20, 0.18));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding-bottom: 96px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f0c89d;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    max-width: 920px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 7vw, 5.9rem);
    line-height: 1;
    font-weight: 500;
}

h2 {
    margin-bottom: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: 1;
    font-weight: 500;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.hero-copy {
    max-width: 610px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
}

.button-primary {
    background: #fff;
    color: var(--ink);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.hero-panel {
    position: absolute;
    right: clamp(18px, 5vw, 70px);
    bottom: 40px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    width: min(480px, calc(100% - 36px));
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.hero-panel div {
    padding: 20px;
    border-right: 1px solid var(--line);
}

.hero-panel div:last-child {
    border-right: 0;
}

.hero-panel strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
}

.hero-panel span {
    color: var(--muted);
    font-size: 0.84rem;
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(70px, 9vw, 118px) 0;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: end;
}

.intro p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

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

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 32, 27, 0.06);
}

.project-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d7d3c8;
}

.project-media img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.project-card:hover .project-media img,
.gallery-item:hover img {
    transform: scale(1.04);
}

.project-body {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.project-body p {
    margin-bottom: 0;
    color: var(--muted);
}

.project-kicker {
    color: var(--accent-dark) !important;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.project-meta a {
    color: var(--accent-dark);
    font-weight: 800;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature {
    padding: clamp(28px, 5vw, 54px);
    border-right: 1px solid var(--line);
}

.feature:last-child {
    border-right: 0;
}

.feature span {
    display: block;
    margin-bottom: 22px;
    color: var(--accent-dark);
    font-weight: 900;
}

.feature p {
    margin-bottom: 0;
    color: var(--muted);
}

.gallery-section {
    padding-top: clamp(64px, 8vw, 104px);
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.filter-button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 9px 15px;
    font-size: 0.92rem;
    font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

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

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #d7d3c8;
    cursor: zoom-in;
    padding: 0;
}

.gallery-item[hidden] {
    display: none;
}

.gallery-item span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-label {
    display: grid;
    gap: 2px;
    text-align: left;
}

.gallery-label strong {
    font-size: 0.95rem;
}

.gallery-label small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.contact,
.location {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: clamp(28px, 6vw, 88px);
    align-items: center;
}

.contact-copy p:last-child,
.location-copy p:last-child {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--accent-dark);
    font-size: 1.05rem;
    font-weight: 800;
}

.contact-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent-dark);
    font-size: 1rem;
    line-height: 1;
}

.map-card,
.contact-form {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

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

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfaf7;
    color: var(--ink);
    padding: 12px 13px;
    font: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-dark);
    outline: 3px solid rgba(157, 107, 63, 0.18);
}

.button-form {
    border: 0;
    background: var(--green);
    color: #fff;
    cursor: pointer;
}

.form-message {
    margin-bottom: 0;
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 800;
}

.form-message.success {
    background: rgba(49, 72, 60, 0.12);
    color: var(--green);
}

.form-message.error {
    background: rgba(157, 107, 63, 0.14);
    color: var(--accent-dark);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer img {
    width: 138px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(8, 12, 10, 0.9);
}

.lightbox.open {
    display: grid;
}

.lightbox img {
    max-height: 82vh;
    width: min(100%, 1100px);
    object-fit: contain;
}

.lightbox p {
    margin: 14px 0 0;
    color: #fff;
    font-weight: 800;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 2.3rem;
    line-height: 1;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-links,
    .header-action {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-header.open .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: grid;
        justify-items: start;
        gap: 0;
        background: rgba(248, 247, 243, 0.98);
        border-top: 1px solid var(--line);
        padding: 10px 18px 18px;
        color: var(--ink);
    }

    .site-header.open .nav-links a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .hero {
        min-height: 820px;
    }

    .hero-content {
        padding-bottom: 180px;
    }

    .hero-panel {
        left: 18px;
        right: 18px;
        bottom: 28px;
    }

    .intro,
    .contact,
    .location {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .brand img {
        width: clamp(200px, 62vw, 270px);
    }

    .hero {
        min-height: 760px;
        padding-top: 116px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(17, 24, 20, 0.58), rgba(17, 24, 20, 0.86));
    }

    .hero-actions,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-panel div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 16px;
    }

    .hero-panel div:last-child {
        border-bottom: 0;
    }

    .project-grid,
    .features,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        top: auto;
        bottom: 24px;
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 58px);
    }

    .lightbox-next {
        right: calc(50% - 58px);
    }

    .feature {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature:last-child {
        border-bottom: 0;
    }

    .section-heading {
        display: block;
    }

    .map-card iframe {
        height: 330px;
    }

    .contact-form {
        padding: 20px;
    }
}
