:root {
    --ink: #202723;
    --muted: #657068;
    --gold: #aa812f;
    --line: #dce0da;
    --paper: #fff;
    --soft: #f2f4ef
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.65 Arial, Helvetica, sans-serif
}

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

button {
    font: inherit
}

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

.wrap {
    width: min(1320px, calc(100% - 112px));
    margin: auto
}

.header {
    height: 108px;
    width: min(1440px, calc(100% - 80px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain
}

.brand > span {
    font-family: Georgia, serif;
    font-size: 25px;
    letter-spacing: 4px;
    line-height: 1.05
}

.brand-sub {
    display: block;
    font: 10px/2 Arial, sans-serif;
    letter-spacing: 3px
}

.header nav {
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 14px
}

.header nav a:hover {
    color: var(--gold)
}

.nav-contact {
    padding: 10px 25px;
    border: 1px solid var(--ink)
}

.hero {
    padding-top: 64px
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 44px
}

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.2px;
    margin: 0 0 22px;
    color: var(--muted)
}

.eyebrow > span {
    display: inline-block;
    width: 25px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin-right: 8px
}

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

h1 {
    font: clamp(42px, 4.9vw, 72px)/1.08 Georgia, 'Times New Roman', serif;
    letter-spacing: -2.7px;
    margin-bottom: 0;
    font-weight: 400
}

em {
    font-weight: 400;
    color: var(--gold)
}

.hero-aside {
    padding-bottom: 5px;
    flex-shrink: 0
}

.hero-aside p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px
}

.button {
    display: inline-block;
    background: var(--ink);
    color: white;
    padding: 15px 24px;
    font-size: 14px;
    transition: background .2s
}

.button:hover {
    background: #3c4940
}

.hero-photo {
    height: 450px;
    position: relative;
    overflow: hidden
}

.hero-photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 63%
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 58px 28px 22px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1.6px
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted)
}

.section {
    padding: 105px 0
}

.services {
    display: grid;
    grid-template-columns:1fr 1.2fr;
    gap: 100px
}

h2 {
    font: 48px/1.15 Georgia, serif;
    letter-spacing: -1.6px;
    margin-bottom: 25px
}

.intro {
    color: var(--muted);
    max-width: 365px
}

.service-list article {
    display: flex;
    gap: 27px;
    border-top: 1px solid var(--line);
    padding: 26px 0
}

.service-list article:last-child {
    border-bottom: 1px solid var(--line)
}

.number {
    font-size: 13px;
    color: var(--gold);
    padding-top: 5px
}

.service-list h3 {
    font: 26px/1.3 Georgia, serif;
    margin-bottom: 10px
}

.service-list p {
    max-width: 425px;
    color: var(--muted);
    margin-bottom: 0;
    font-size: 15px
}

.projects {
    background: var(--soft);
    padding: 86px 0 65px
}

.project-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 32px
}

.project-heading h2 {
    margin-bottom: 0
}

.project-heading > p {
    color: var(--muted);
    margin-bottom: 4px
}

.project-image {
    display: block;
    border: 0;
    background: var(--ink);
    width: 100%;
    padding: 0;
    position: relative;
    cursor: zoom-in;
    overflow: hidden
}

.project-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center 65%;
    transition: transform .4s
}

.project-image:hover img {
    transform: scale(1.025)
}

.project-image > span {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 15px;
    font-size: 13px
}

.project-image b {
    font-size: 22px;
    font-weight: 400;
    margin-left: 16px
}

.project-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px
}

.project-caption h3 {
    font: 22px Georgia, serif;
    margin: 0
}

.project-caption > span {
    font-size: 12px;
    color: var(--muted)
}

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

.contact h2 {
    font-size: 55px
}

.contact .intro {
    max-width: none
}

.contact-details {
    border-top: 1px solid var(--line);
    padding-top: 28px
}

.contact-company {
    font: 24px Georgia, serif
}

.contact-details a {
    display: block;
    font-size: 22px;
    margin: 12px 0;
    overflow-wrap: anywhere
}

.contact-details a:hover {
    color: var(--gold)
}

.pending {
    color: var(--muted);
    font-size: 15px
}

.footer {
    border-top: 1px solid var(--line);
    padding: 24px 0 32px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px
}

.skip {
    position: fixed;
    left: 20px;
    top: -100px;
    background: var(--ink);
    color: white;
    padding: 10px;
    z-index: 5
}

.skip:focus {
    top: 10px
}

dialog {
    border: 0;
    padding: 50px 15px 15px;
    background: #fff;
    width: min(1200px, 95vw);
    max-height: 95vh
}

dialog::backdrop {
    background: rgba(15, 22, 17, .85)
}

dialog img {
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    display: block
}

dialog button {
    position: absolute;
    right: 20px;
    top: 10px;
    border: 0;
    background: white;
    cursor: pointer
}

dialog button span {
    font-size: 24px;
    margin-left: 15px
}

@media (min-width: 1600px) {
    .hero-photo {
        height: 520px
    }
}

@media (max-width: 1000px) {
    .wrap {
        width: calc(100% - 64px)
    }

    .header {
        width: calc(100% - 48px)
    }

    .hero-top {
        align-items: start
    }

    .hero-aside {
        max-width: 220px
    }

    h1 {
        font-size: 50px
    }

    .services {
        gap: 45px
    }

    .hero-photo {
        height: 390px
    }

    .contact {
        gap: 35px
    }

    .contact h2 {
        font-size: 46px
    }
}

@media (max-width: 680px) {
    .wrap {
        width: calc(100% - 40px)
    }

    .header {
        width: calc(100% - 32px);
        height: 88px
    }

    .brand {
        gap: 8px
    }

    .brand img {
        width: 40px;
        height: 42px
    }

    .brand > span {
        font-size: 20px;
        letter-spacing: 2px
    }

    .brand-sub {
        font-size: 9px;
        letter-spacing: 1.4px
    }

    .header nav {
        gap: 15px;
        font-size: 12px
    }

    .header nav a:first-child {
        display: none
    }

    .nav-contact {
        padding: 7px 10px
    }

    .hero {
        padding-top: 38px
    }

    .hero-top {
        display: block;
        margin-bottom: 30px
    }

    h1 {
        font-size: 43px;
        letter-spacing: -1.6px
    }

    .eyebrow {
        font-size: 11px;
        margin-bottom: 17px
    }

    .hero-aside {
        max-width: none;
        margin-top: 24px;
        display: flex;
        gap: 18px;
        align-items: center
    }

    .hero-aside p {
        font-size: 13px;
        margin: 0;
        flex: 1
    }

    .button {
        font-size: 12px;
        padding: 12px 15px
    }

    .hero-photo {
        height: 330px
    }

    .hero-photo > img {
        object-position: 56% center
    }

    .photo-label {
        padding: 50px 15px 15px;
        font-size: 10px;
        letter-spacing: .8px
    }

    .photo-label span:last-child {
        display: none
    }

    .hero-bottom {
        font-size: 10px
    }

    .section {
        padding: 64px 0
    }

    .services {
        display: block
    }

    .section-heading {
        margin-bottom: 32px
    }

    h2 {
        font-size: 39px
    }

    .intro {
        font-size: 15px
    }

    .service-list h3 {
        font-size: 24px
    }

    .projects {
        padding: 60px 0 40px
    }

    .project-heading {
        display: block
    }

    .project-heading > p {
        font-size: 14px;
        margin-top: 18px
    }

    .project-image img {
        height: 270px
    }

    .project-caption {
        align-items: start;
        gap: 20px
    }

    .project-caption > span {
        max-width: 130px;
        text-align: right;
        font-size: 11px
    }

    .contact {
        display: block
    }

    .contact h2 {
        font-size: 43px
    }

    .contact-details {
        margin-top: 35px
    }

    .footer {
        font-size: 11px;
        gap: 20px
    }
}

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

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

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

.project-card {
    background: white;
    border: 1px solid var(--line);
    min-width: 0
}

.project-grid .project-image img {
    height: 240px
}

.project-body {
    padding: 24px
}

.project-body h3 {
    font: 27px/1.2 Georgia, serif;
    margin-bottom: 14px
}

.project-body p {
    font-size: 15px;
    color: var(--muted);
    overflow-wrap: anywhere
}

.project-body details {
    border-top: 1px solid var(--line);
    padding-top: 16px
}

.project-body summary {
    cursor: pointer;
    font-size: 14px;
    color: var(--ink);
    padding-bottom: 12px
}

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

.project-gallery {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px
}

.project-gallery .project-image img {
    height: 120px
}

.inquiry-form {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 36px;
    max-width: 850px;
    width: 100%
}

.inquiry-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px
}

.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #aab2aa;
    border-radius: 0;
    padding: 13px 14px;
    color: var(--ink);
    font: 16px/1.5 Arial, sans-serif
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 140px
}

.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px
}

.form-pair {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 24px
}

.form-note {
    font-size: 13px;
    color: var(--muted)
}

.inquiry-form .button {
    border: 0;
    cursor: pointer
}

.inquiry-form .button:disabled {
    opacity: .55;
    cursor: not-allowed
}

#form-status {
    margin-top: 18px;
    font-size: 14px;
    min-height: 24px
}

.honeypot {
    display: none !important
}

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

@media (max-width: 680px) {
    .project-grid, .form-pair {
        grid-template-columns:1fr
    }

    .form-pair {
        gap: 0
    }

    .inquiry-form {
        margin-top: 36px
    }

    .project-grid .project-image img {
        height: 230px
    }
}

.image-pending {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8ece5;
    color: #657068;
    font-size: 14px;
    border-bottom: 1px solid var(--line)
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin
}

.gallery-track figure {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
    min-width: 0
}

.gallery-track figcaption {
    padding: 8px 14px;
    font-size: 13px
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 12px;
    font-size: 13px
}

.gallery-controls button {
    border: 1px solid var(--line);
    background: white;
    padding: 7px;
    cursor: pointer
}

.gallery-controls button:disabled {
    opacity: .4;
    cursor: default
}

.project-link {
    display: inline-block;
    border-bottom: 1px solid var(--gold);
    font-size: 14px;
    margin-top: 8px
}

.back-link {
    display: block;
    margin-bottom: 40px;
    color: var(--muted);
    font-size: 14px
}

.project-lead {
    font-size: 20px;
    color: var(--muted);
    max-width: 760px;
    margin-top: 28px
}

.detail-gallery {
    margin: 44px 0;
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 20px
}

.detail-gallery.image-pending {
    display: flex;
    height: 400px
}

.detail-gallery figure {
    margin: 0
}

.detail-gallery figure:first-child {
    grid-column: 1/-1
}

.detail-gallery .project-image img {
    height: auto;
    max-height: 600px;
    object-fit: contain
}

.project-editorial {
    display: grid;
    grid-template-columns:2fr 1fr;
    gap: 80px;
    align-items: start
}

.project-copy {
    max-width: 760px
}

.project-copy h3 {
    font: 28px Georgia, serif;
    margin-top: 36px
}

.project-copy p {
    line-height: 1.85
}

.project-facts {
    background: var(--soft);
    padding: 30px
}

.project-facts h3 {
    font: 24px Georgia, serif
}

.project-facts dt {
    font-size: 13px;
    color: var(--muted)
}

.project-facts dd {
    margin: 0 0 20px
}

.project-footer {
    background: var(--soft);
    padding: 60px 0
}

.project-footer .button {
    margin: 12px 0 20px
}

@media (max-width: 680px) {
    .project-editorial {
        grid-template-columns:1fr;
        gap: 30px
    }

    .detail-gallery {
        grid-template-columns:1fr
    }

    .detail-gallery.image-pending {
        height: 260px
    }

    .header nav {
        gap: 9px
    }

    .header nav a {
        font-size: 11px
    }

    .project-footer h2 {
        font-size: 34px
    }
}

/* Equal-height homepage cards */
.project-grid {
    align-items: stretch;
}

.project-grid .project-card {
    height: 540px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-grid .project-card > .gallery-frame,
.project-grid .project-card > .image-pending {
    flex-shrink: 0;
}

.project-grid .project-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.project-grid .project-body h3 {
    min-height: 65px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.project-grid .project-body > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 16px;
}

.project-grid .project-link {
    margin-top: auto;
    align-self: flex-start;
}
