:root {
    --paper: #f4efe6;
    --ink: #17201b;
    --orange: #f15a24;
}

* {
    box-sizing: border-box;
}

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

.v3-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    position: relative;
    background: var(--paper);
    box-shadow: 0 22px 88px rgba(35, 26, 17, .14);
}

.v3-artboard {
    display: block;
    width: 100%;
    height: auto;
}

.v3-hit {
    position: absolute;
    display: block;
    z-index: 5;
    color: transparent;
    overflow: hidden;
    text-indent: -9999px;
    text-decoration: none;
}

.v3-hit:focus-visible,
.v3-input:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.v3-hit--home { left: 39%; top: 2.7%; width: 4.5%; height: 2.5%; }
.v3-hit--about { left: 45.5%; top: 2.7%; width: 5.5%; height: 2.5%; }
.v3-hit--services { left: 53%; top: 2.7%; width: 6.5%; height: 2.5%; }
.v3-hit--portfolio { left: 61.5%; top: 2.7%; width: 7%; height: 2.5%; }
.v3-hit--contact { left: 70.5%; top: 2.7%; width: 6%; height: 2.5%; }
.v3-hit--cta { right: 4%; top: 2.2%; width: 18%; height: 3.4%; }

.v3-mobile-nav {
    display: none;
}

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

.v3-project-link--featured { left: 22%; top: 26%; width: 50%; height: 20%; }
.v3-project-link--card-1 { left: 11%; top: 47.5%; width: 23%; height: 12.5%; }
.v3-project-link--card-2 { left: 38%; top: 47.5%; width: 23%; height: 12.5%; }
.v3-project-link--card-3 { left: 65%; top: 47.5%; width: 23%; height: 12.5%; }
.v3-project-link--card-4 { left: 11%; top: 61%; width: 23%; height: 12%; }
.v3-project-link--card-5 { left: 38%; top: 61%; width: 23%; height: 12%; }

.v3-contact-form {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.v3-input,
.v3-form-submit,
.v3-project-type {
    position: absolute;
    z-index: 8;
    pointer-events: auto;
}

.v3-project-type-group {
    position: absolute;
    inset: 0;
    z-index: 8;
    padding: 0;
    margin: 0;
    border: 0;
    pointer-events: none;
}

.v3-project-type {
    display: block;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.v3-project-type input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

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

.v3-project-type:has(input:checked) {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px rgba(241, 90, 36, .22);
}

.v3-project-type:focus-within {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.v3-input {
    border: 0;
    background: rgba(255, 255, 255, .64);
    color: var(--ink);
    font: 500 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
    padding: .35em .55em;
    border-radius: 0;
}

.v3-input--name { left: 16.3%; top: 22.9%; width: 20%; height: 1.9%; }
.v3-input--email { left: 40.3%; top: 22.9%; width: 25%; height: 1.9%; }
.v3-input--message { left: 16.3%; top: 26.2%; width: 49%; height: 11.4%; resize: none; }
.v3-form-submit { left: 16.3%; top: 40.6%; width: 49%; height: 3.1%; border: 0; background: transparent; cursor: pointer; }
.v3-project-type--custom-home { left: 7.7%; top: 20.9%; width: 8.7%; height: 2.2%; }
.v3-project-type--rebuild { left: 18.2%; top: 20.9%; width: 7.8%; height: 2.2%; }
.v3-project-type--bungalow { left: 27%; top: 20.9%; width: 8.8%; height: 2.2%; }

.v3-project-detail {
    min-height: 100vh;
    width: min(100%, 1120px);
    margin: 0 auto;
    position: relative;
    padding: clamp(96px, 8vw, 140px) clamp(24px, 5vw, 72px);
    background:
        linear-gradient(rgba(244, 239, 230, .9), rgba(244, 239, 230, .96)),
        url("../pages/portfolio.webp") top center / 100% auto no-repeat,
        var(--paper);
    box-shadow: 0 22px 88px rgba(35, 26, 17, .14);
}

.v3-project-detail__card {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px);
    background: rgba(255, 249, 239, .92);
    border: 1px solid rgba(23, 32, 27, .16);
    box-shadow: 0 18px 70px rgba(35, 26, 17, .18);
}

.v3-project-detail__eyebrow {
    margin: 0 0 16px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.v3-project-detail h1 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .98;
}

.v3-project-detail p,
.v3-project-detail__content {
    color: rgba(23, 32, 27, .72);
    font-size: 17px;
    line-height: 1.6;
}

.v3-project-detail dl {
    display: grid;
    gap: 12px;
    margin: 32px 0;
}

.v3-project-detail dl div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(23, 32, 27, .14);
}

.v3-project-detail dt {
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.v3-project-detail dd {
    margin: 0;
    color: rgba(23, 32, 27, .72);
}

.v3-project-detail__back,
.v3-project-detail__cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 28px;
    margin-right: 10px;
    padding: 0 18px;
    border: 1px solid rgba(23, 32, 27, .26);
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.v3-project-detail__cta {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

@media (max-width: 720px) {
    .v3-shell {
        width: 100%;
        box-shadow: none;
        padding-top: 88px;
    }

    .v3-hit-nav {
        display: none;
    }

    .v3-mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 20;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
        background: rgba(244, 239, 230, .97);
        border-bottom: 1px solid rgba(23, 32, 27, .14);
    }

    .v3-mobile-nav a {
        flex: 1 1 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        padding: 0 9px;
        border: 1px solid rgba(23, 32, 27, .18);
        color: var(--ink);
        text-decoration: none;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        background: rgba(255, 249, 239, .72);
    }

    .v3-mobile-nav a:last-child {
        flex-basis: 100%;
        color: #fff;
        background: var(--orange);
        border-color: var(--orange);
    }

    .v3-contact-form {
        top: 88px;
    }

    .v3-input {
        font-size: 10px;
        padding: .2em .35em;
    }

    .v3-project-detail {
        padding-top: 112px;
        box-shadow: none;
    }

    .v3-project-detail dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
