@font-face {
    font-family: "Latin Modern";
    src: url("fonts/lmroman10-regular.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "Latin Modern";
    src: url("fonts/lmroman10-italic.otf") format("opentype");
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --ink: #191a17;
    --deep: #141512;
    --cream: #f3eee4;
    --warm-white: #f9f4e9;
    --muted: #c7bfb0;
    --gold: #d4b786;
    --gold-dark: #775932;
    --line: #454036;
    --light-line: #d4c8b6;
    --display: "Latin Modern", Georgia, serif;
    --text: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 1rem/1.65 var(--text); }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: default; }
:focus-visible { outline: 2px solid #b67f3c; outline-offset: 5px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 128px, 1300px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; inset: 12px auto auto 12px; padding: 10px; background: var(--cream); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h2 { font-size: clamp(2.6rem, 4.4vw, 4.6rem); line-height: .99; letter-spacing: -.035em; }
h3 { letter-spacing: -.02em; }
.eyebrow { color: var(--gold); font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .2em; }
.hairline { width: 36px; height: 1px; background: currentColor; display: inline-block; vertical-align: middle; margin-right: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 1px solid transparent; padding: 12px 22px; text-decoration: none; font-size: .9rem; font-weight: 660; transition: background .2s, color .2s, border-color .2s; }
.button-gold { color: #232018; background: var(--gold); border-color: var(--gold); }
.button-gold:hover { background: #ead4ae; border-color: #ead4ae; }
.button-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.button-dark:hover:not(:disabled) { background: #3c3b30; }
.text-link { display: inline-block; width: fit-content; text-decoration: none; font-size: .92rem; font-weight: 580; border-bottom: 1px solid #9f8257; padding-bottom: 4px; transition: color .2s; }
.text-link:hover { color: var(--gold); }
.light-section .text-link:hover { color: var(--gold-dark); }

.site-header { border-bottom: 1px solid #34332b; background: var(--deep); }
.header-inner { min-height: 85px; display: grid; grid-template-columns: 155px 1fr; gap: 75px; align-items: center; }
.brand { display: inline-block; width: fit-content; }
.brand img { width: 150px; height: auto; }
.site-nav { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 38px; justify-items: end; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3.1vw, 51px); width: 100%; }
.site-nav a { display: inline-block; text-decoration: none; color: #e7dece; font-size: .875rem; font-weight: 560; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.nav-links a { padding-block: 9px; border-bottom: 1px solid transparent; }
.nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav .nav-contact { padding: 9px 20px; border: 1px solid #79674c; }
.site-nav .nav-contact:hover { border-color: var(--gold); }
.menu-toggle { display: none; }

.hero { background: radial-gradient(ellipse at 38% 40%, #23231c 0%, var(--ink) 53%, var(--deep) 100%); }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: .88fr 1.12fr; gap: 34px; align-items: center; padding-block: 54px 45px; }
.hero-copy { position: relative; padding-bottom: 25px; }
.hero h1 { font-size: clamp(4.2rem, 6.45vw, 6.85rem); line-height: .99; letter-spacing: -.058em; margin-block: 29px 24px; color: var(--warm-white); }
.hero h1 em { display: block; color: var(--gold); font-weight: 400; }
.hero-description { color: #d1c8b8; max-width: 350px; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 32px; }
.hero-figure { min-width: 0; }
.hero-frame { display: grid; position: relative; border: 1px solid #7c6746; padding: 9px; }
.hero-frame img { width: 100%; height: clamp(415px, 38vw, 555px); object-fit: cover; object-position: center 46%; }
.hero-frame::after { content: ""; pointer-events: none; position: absolute; inset: 9px; background: linear-gradient(140deg, transparent 50%, #45291620); }
.hero-figure figcaption { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: #d4c4aa; font-size: .78rem; }
.caption-mark { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); margin-right: 3px; }

.light-section { background: var(--cream); color: #25231e; color-scheme: light; }
.light-section .eyebrow { color: var(--gold-dark); }
.intro { padding-block: 79px 83px; }
.intro-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(40px, 9vw, 140px); align-items: end; }
.intro h2 { max-width: 595px; margin-top: 15px; }
.intro-description { max-width: 510px; color: #4d463c; }
.intro-description .text-link { margin-top: 20px; color: #29241d; }

.featured, .service-section, .detail-section { padding-block: 82px; }
.section-heading { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 22px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 22px; }
.project-card { min-width: 0; }
.project-card a { display: block; text-decoration: none; }
.project-photo { aspect-ratio: 1.43; overflow: hidden; background: #2c2a23; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card a:hover img, .project-card a:focus-visible img { transform: scale(1.035); }
.project-caption { padding: 16px 0 14px; border-bottom: 1px solid #5f5140; }
.project-caption h3 { font-size: clamp(1.55rem, 2.5vw, 2.3rem); line-height: 1.1; margin-top: 6px; }
.project-meta { color: var(--gold); font-size: .79rem; font-weight: 610; letter-spacing: .045em; }
.home-projects .project-photo { aspect-ratio: 1.2; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.service-card { border-bottom: 1px solid var(--light-line); min-width: 0; }
.service-photo { aspect-ratio: 1.46; overflow: hidden; background: #ddd1bd; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-copy { padding: 18px 0 21px; }
.service-copy h3 { font-size: clamp(1.45rem, 2.25vw, 2.05rem); line-height: 1.1; margin-bottom: 10px; }
.service-copy p { color: #554d42; }
.service-copy .text-link { margin-top: 14px; }
.services-expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }

.contact-band { padding-block: 70px; border-bottom: 1px solid var(--line); }
.contact-band-inner { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 22px; }
.contact-band p { color: var(--muted); margin-top: 12px; max-width: 570px; }
.site-footer { background: var(--deep); border-top: 1px solid #34332b; }
.footer-inner { padding-block: 33px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-inner img { width: 121px; }
.footer-inner p, .footer-inner nav { color: var(--muted); font-size: .87rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner nav a { text-underline-offset: 4px; }
.footer-inner .footer-phone { color: var(--gold); font-weight: 600; white-space: nowrap; }

.subhead { background: radial-gradient(ellipse at 18% 22%, #28271f, var(--ink) 65%); padding-block: 64px 60px; border-bottom: 1px solid var(--line); }
.subhead h1 { font-size: clamp(3rem, 6vw, 6rem); line-height: 1.02; letter-spacing: -.049em; margin-top: 15px; max-width: 1000px; }
.subhead-description { color: var(--muted); margin-top: 19px; max-width: 670px; font-size: 1.06rem; white-space: pre-line; }
.about-grid { display: grid; grid-template-columns: minmax(230px, 370px) minmax(0, 545px); justify-content: center; gap: clamp(34px, 8vw, 115px); align-items: center; }
.about-grid p, .contact-grid p { margin-top: 16px; color: #51483b; }
.about-grid .text-link { margin-top: 24px; }
.portrait { padding: 8px; border: 1px solid #a38861; }
.portrait img { width: 100%; height: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button { border: 1px solid #76674f; padding: 7px 13px; color: var(--cream); background: transparent; font-size: .9rem; }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #211d16; }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--gold); }
.empty-state { margin-block: 22px; }
.archive { scroll-margin-top: 10px; }
.reference-search { display: grid; gap: 4px; font-weight: 610; font-size: .9rem; }
.reference-search input { width: min(290px, 100%); }
.archive-list { border-top: 1px solid var(--light-line); }
.reference-row { display: grid; grid-template-columns: 105px minmax(160px, 1fr) minmax(180px, 1.3fr); gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--light-line); }
.reference-row .project-meta { color: var(--gold-dark); font-size: .89rem; }
.reference-row h3 { font-size: 1.44rem; line-height: 1.1; }
.reference-row p:not(.project-meta) { color: #564c3e; }
#reference-empty { margin-top: 18px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.gallery-grid img { aspect-ratio: 1.34; width: 100%; object-fit: cover; }
.gallery-grid figcaption { font-size: .89rem; color: #615641; margin-top: 6px; }
.gallery-open { display: block; cursor: zoom-in; }
.back-link { margin-top: 31px; }
.lightbox { color: var(--cream); background: var(--deep); border: 1px solid var(--line); width: fit-content; max-width: calc(100% - 24px); padding: 12px; }
.lightbox::backdrop { background: #0a0a09d9; }
.lightbox-inner { position: relative; }
.lightbox img { max-width: min(87vw, 1100px); max-height: 80vh; }
.lightbox p { padding: 8px 42px 0 2px; }
.lightbox-close { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; padding: 0; border: 1px solid var(--gold); color: var(--cream); background: var(--ink); font-size: 1.6rem; line-height: 1; }
.contact-grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(330px, 1.2fr); gap: clamp(35px, 8vw, 125px); }
.contact-grid address { display: grid; gap: 10px; margin-top: 24px; font-style: normal; }
.contact-form { display: grid; gap: 16px; }
.contact-form .button { justify-self: start; }
.contact-form label { display: grid; gap: 5px; font-size: .92rem; font-weight: 650; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
input, select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #9c917e; border-radius: 0; background: #faf7ef; color: #29251f; }
textarea { resize: vertical; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid .form-note { margin-top: 0; font-size: .85rem; }
.contact-grid .form-feedback { margin: 0; background: #e5e9da; border-left: 3px solid #576442; padding: 12px; }
.contact-grid .form-error { background: #f2ded7; border-color: #914a37; }

@media (max-width: 1100px) {
    .shell { width: calc(100% - 84px); }
    .header-inner { gap: 25px; }
    .site-nav { gap: 16px; grid-template-columns: 1fr auto; }
    .hero-grid { min-height: 575px; gap: 25px; }
}
@media (max-width: 810px) {
    .shell { width: calc(100% - 48px); }
    .hero-grid { min-height: 0; grid-template-columns: 1fr 1fr; padding-block: 39px 30px; }
    .hero h1 { font-size: clamp(3.5rem, 7.5vw, 4.5rem); }
    .hero-frame img { height: clamp(305px, 56vw, 450px); }
    .hero-actions { gap: 16px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .intro, .detail-section, .featured, .service-section { padding-block: 58px; }
}
@media (max-width: 680px) {
    .shell { width: calc(100% - 36px); }
    .header-inner { min-height: 66px; grid-template-columns: 1fr auto; gap: 0; }
    .brand img { width: 124px; }
    .site-nav { grid-column: 1 / -1; grid-template-columns: 1fr; justify-items: start; gap: 10px; padding-bottom: 18px; }
    .js .site-nav:not(.is-open) { display: none; }
    .nav-links { display: grid; justify-content: start; gap: 3px; }
    .js .menu-toggle { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #69573d; background: transparent; color: var(--cream); padding: 7px 10px; font-size: .88rem; }
    .menu-toggle span { width: 16px; height: 8px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 44px 24px; gap: 27px; }
    .hero-copy { padding-bottom: 0; }
    .hero h1 { margin-block: 20px 16px; font-size: clamp(3.35rem, 12.2vw, 5.5rem); }
    .hero-actions { margin-top: 23px; gap: 18px; }
    .hero-frame { padding: 5px; }
    .hero-frame::after { inset: 5px; }
    .hero-frame img { height: auto; aspect-ratio: 1.27; }
    .hero-figure figcaption { margin-top: 7px; }
    .intro-grid { grid-template-columns: 1fr; gap: 15px; }
    .intro { padding-block: 50px; }
    .subhead { padding-block: 45px 40px; }
    .section-heading { align-items: start; margin-bottom: 23px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .portrait { width: min(100%, 330px); }
    .reference-row { grid-template-columns: 1fr; gap: 4px; }
    .gallery-grid { gap: 14px; }
    .footer-inner { gap: 15px; }
}
@media (max-width: 420px) {
    .hero-actions { gap: 13px; }
    .hero-actions .button { padding-inline: 13px; }
    .hero-actions .text-link { font-size: .86rem; }
    .project-grid, .service-grid, .form-pair { grid-template-columns: 1fr; }
    .project-photo, .home-projects .project-photo { aspect-ratio: 1.44; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
