/* David Pinter | Homepage preview v15
   Footer photograph: NO white overlay.
   Gallery images: full color, grayscale on hover.
*/

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:#f5f4f0;
    color:#171717;
    font-family:Arial,Helvetica,sans-serif
}

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

.top {
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:12px 5.5%
}

.mark {
    font-size:24px;
    font-weight:900;
    letter-spacing:-2px
}

.mark span {
    color:#d95a2a
}

.top nav {
    display:flex;
    gap:30px;
    font-size:12px;
    font-weight:700
}

.intro {
    position:relative;
    isolation:isolate;
    background-color:#071923;
    background-image:linear-gradient(90deg,rgba(0,14,24,.78) 0%,rgba(0,16,28,.65) 42%,rgba(0,19,33,.28) 100%),url("images/hero-architecture.jpg");
    background-size:cover;
    background-position:center;
    color:white;
    min-height:620px;
    padding:52px 5.5% 55px;
    display:flex;
    flex-direction:column;
    justify-content:space-between
}

.eyebrow {
    display:flex;
    justify-content:space-between;
    gap:20px;
    font-size:11px;
    letter-spacing:.16em
}

.intro h1 {
    font-size:clamp(54px,8.4vw,136px);
    line-height:.96;
    letter-spacing:-.075em;
    margin:75px 0 65px;
    font-weight:900;
    text-shadow:0 3px 24px rgba(0,0,0,.28)
}

.star {
    font-size:.14em;
    vertical-align:top;
    margin-left:1vw
}

.intro-bottom {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:25px
}

.intro-bottom p {
    font-size:clamp(19px,2.1vw,30px);
    letter-spacing:-.05em;
    margin:0
}

.intro-bottom a {
    font-size:11px;
    letter-spacing:.12em
}

.work {
    padding:85px 5.5% 100px
}

.section-head {
    display:grid;
    grid-template-columns:1fr 2fr;
    gap:12px 45px;
    margin-bottom:48px
}

.section-head>span {
    font-size:11px;
    letter-spacing:.12em
}

.section-head h2 {
    font-size:clamp(35px,5.2vw,76px);
    letter-spacing:-.07em;
    line-height:1.02;
    margin:0
}

.section-head h2 em {
    font-weight:400
}

.section-head p {
    grid-column:2;
    max-width:500px;
    line-height:1.6;
    font-size:14px;
    color:#555
}

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

.tile {
    position:relative;
    display:block;
    aspect-ratio:1/1;
    overflow:hidden;
    background:#222;
    color:white;
    isolation:isolate
}

.tile img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:grayscale(0%);
    transform:scale(1);
    transition:filter .55s ease,transform .65s ease
}

.tile:hover img,.tile:focus-visible img {
    filter:grayscale(100%);
    transform:scale(1.055)
}

.tile:after {
    content:none
}

.tile-label {
    position:absolute;
    left:16px;
    right:12px;
    bottom:16px;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:7px;
    text-shadow:0 1px 6px #0008
}

.tile-label small {
    font-size:10px;
    letter-spacing:.12em
}

.tile-label strong {
    font-size:clamp(15px,1.7vw,25px);
    letter-spacing:-.04em;
    line-height:1.1
}

.tile:focus-visible {
    outline:3px solid #d95a2a;
    outline-offset:3px
}

.outro {
    background-color:#e9e9e7;
    background-image:url("images/outro-architecture.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    color:#111;
    min-height:620px;
    padding:90px 5.5% 100px
}

.outro>span {
    font-size:11px;
    letter-spacing:.15em
}

.outro h2 {
    font-size:clamp(55px,10vw,160px);
    line-height:.91;
    letter-spacing:-.085em;
    margin:70px 0
}

.outro h2 em {
    font-weight:400
}

.outro p {
    font-size:20px
}

.outro a {
    font-size:12px;
    display:inline-block;
    margin-top:35px
}

footer {
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:25px 5.5%;
    font-size:10px;
    letter-spacing:.12em
}

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

}

@media(max-width:600px) {
    .top {
        min-height:62px;
        padding:12px 5%
    }

    .top nav {
        gap:16px;
        font-size:11px
    }

    .intro {
        min-height:520px;
        padding:38px 5%;
        background-position:59% center;
        background-image:linear-gradient(90deg,rgba(0,13,24,.83),rgba(0,18,30,.64)),url("images/hero-architecture.jpg")
    }

    .eyebrow {
        font-size:10px
    }

    .eyebrow span:last-child {
        display:none
    }

    .intro h1 {
        font-size:clamp(40px,10.5vw,80px);
        margin:70px 0 55px
    }

    .intro-bottom {
        align-items:start;
        flex-direction:column
    }

    .work {
        padding:60px 4%
    }

    .section-head {
        display:block;
        margin-bottom:30px
    }

    .section-head h2 {
        margin-top:25px
    }

    .section-head p {
        margin-top:25px
    }

    .gallery {
        gap:9px
    }

    .tile-label {
        left:10px;
        bottom:10px;
        right:8px;
        gap:4px
    }

    .tile-label small {
        font-size:8px
    }

    .tile-label strong {
        font-size:clamp(13px,3.8vw,21px)
    }

    .outro {
        padding:70px 5%;
        min-height:500px;
        background-position:55% center
    }

    .outro h2 {
        margin:60px 0
    }

    footer {
        flex-direction:column
    }

}

@media(hover:none) {
    .tile:active img {
        filter:grayscale(100%)
    }

}

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

    .tile img {
        transition:none
    }

}
