:root {
  color-scheme: light;
  --ivory: #f8f5ef;
  --paper: #efebe2;
  --charcoal: #25221e;
  --gold: #755720;
  --line: #d2c7b4;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font: 1rem/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
.shell { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.masthead, .footer, nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.6rem; }
.masthead, .footer { justify-content: space-between; padding-block: 1.3rem; }
.masthead { border-bottom: 1px solid var(--line); }
.brand { font: 1.35rem Georgia, serif; text-decoration: none; }
.hero, .inquiry { padding-block: clamp(3.5rem, 10vw, 8rem); }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.7rem, 7.8vw, 6.2rem); max-width: 14ch; }
h2 { font-size: clamp(2.15rem, 5vw, 4rem); }
h3 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
p { max-width: 62ch; }
.actions { margin-top: 2rem; }
.button { display: inline-block; background: var(--charcoal); color: var(--ivory); padding: .85rem 1.2rem; text-decoration: none; }
.work { background: var(--paper); }
.work section { padding-block: clamp(2.5rem, 6vw, 5rem); }
#commercial { border-top: 1px solid var(--line); }
article { padding-block: 1.5rem; }
.cases, .gallery { display: grid; gap: 1.25rem; }
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.gallery:empty { display: none; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.footer { border-top: 1px solid var(--line); }
@media (min-width: 55rem) {
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.brand img { width: 9rem; }
.gallery figcaption { margin-top: .4rem; font-size: .875rem; }
@media (min-width: 55rem) {
  .cases { grid-template-columns: 1fr; }
  .cases article { border-top: 1px solid var(--line); }
}
#wix-inquiry form { display: grid; gap: .9rem; max-width: 40rem; }
#wix-inquiry label { display: block; font-weight: 600; }
#wix-inquiry :is(input, select, textarea) { border: 1px solid var(--line); background: white; color: inherit; padding: .7rem; width: 100%; font: inherit; }
#wix-inquiry small { color: #862f1e; }
#wix-inquiry button { justify-self: start; font: inherit; border: 0; cursor: pointer; }
#wix-inquiry button:disabled { opacity: .6; }

.brand { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.hero { display: grid; align-items: center; gap: clamp(1.75rem, 5vw, 4rem); padding-block: clamp(2.5rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 5rem); }
.hero-logo { width: min(100%, 27rem); justify-self: center; border-bottom: 3px solid #b38b49; }
@media (min-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero-logo { grid-column: 2; grid-row: 1; }
  .hero-copy { grid-column: 1; grid-row: 1; }
}
@media (max-width: 51.99rem) {
  .hero-logo { width: min(100%, 19rem); justify-self: start; }
}

.work .inspiration { padding-block: 1.5rem 2.5rem; }
.inspiration h3, #residential-photos { margin-bottom: 1rem; }
.inspiration .gallery { margin-top: 1rem; max-width: 55rem; }
.inspiration img { object-position: center; }

.about { display: grid; gap: clamp(1.25rem, 5vw, 3.5rem); padding-block: clamp(2rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.service-summary { background: var(--paper); border-top: 2px solid var(--gold); padding: clamp(1.25rem, 3vw, 2rem); }
.service-summary ul { padding-left: 1.2rem; }
.service-summary li + li { margin-top: .35rem; }
@media (min-width: 52rem) { .about { grid-template-columns: 1.15fr 1fr; align-items: start; } }

.about { align-items: center; column-gap: clamp(1.5rem, 5vw, 4rem); row-gap: clamp(1.5rem, 4vw, 2.5rem); }
.about-portrait { margin: 0; }
.about-portrait figcaption { margin-top: .55rem; font-size: .875rem; color: var(--gold); }
.about .service-summary { grid-column: 1 / -1; }
@media (min-width: 52rem) { .about .service-summary ul { columns: 2; column-gap: 3rem; } .about .service-summary li { break-inside: avoid; margin-block: 0 .35rem; } }

html { scroll-padding-top: 7rem; }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--ivory); border-bottom: 1px solid var(--line); }
.masthead { border: 0; padding-block: .85rem; }
.masthead nav { gap: .35rem 1.15rem; font-size: .93rem; }
.hero { padding-block: clamp(2rem, 5vw, 4.8rem); }
.hero h1 { font-size: clamp(2rem, 4.32vw, 4rem); max-width: 18ch; }
.logo-frame { overflow: hidden; aspect-ratio: 3 / 2; background: #151515; }
.logo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-mark { width: min(100%, 27rem); border-bottom: 3px solid #b38b49; }
.about, .process, .inquiry { padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.about h2, .process h2, .inquiry h2, .work h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.service-grid { display: grid; gap: 1rem 2rem; margin-block: 1.25rem; }
.service-grid h4 { font: 1.3rem Georgia, serif; margin: 0; }
.service-grid p { margin-block: .5rem 0; }
.work section { padding-block: clamp(2rem, 5vw, 4rem); }
.work .inspiration { padding-block: 2rem 0; border-top: 1px solid var(--line); }
.inspiration .gallery { max-width: none; }
#residential > h3 { margin-block: 1.5rem .8rem; }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.gallery > figure { width: 100%; min-width: 0; }
.gallery a:has(img) { display: block; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { line-height: 1.45; }
#commercial .cases { grid-template-columns: 1fr; gap: .6rem; }
.cases article { border-top: 1px solid var(--line); }
.process-list { margin: 1.5rem 0 0; padding-left: 1.5rem; display: grid; gap: 1rem 2.4rem; }
.process-list li { padding: .8rem 0 .25rem .15rem; border-top: 1px solid var(--line); }
.process-list li::marker { color: var(--gold); font-weight: 700; }
.process-list h3 { font-size: 1.45rem; }
.process-list p { margin-block: .45rem; }
.inquiry { border-top: 1px solid var(--line); }
.form-row { display: grid; gap: .9rem; min-width: 0; }
#wix-inquiry label { min-width: 0; }
#wix-inquiry label span { font-size: .85rem; font-weight: 400; }
#wix-inquiry input { min-width: 0; }
.draft-note { border-left: 2px solid var(--gold); padding-left: .75rem; }
.site-footer { background: var(--charcoal); color: var(--ivory); border-top: 3px solid #b38b49; }
.footer-grid { display: grid; gap: 1.5rem 2rem; padding-block: 2rem; }
.footer-grid h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.footer-mark { width: min(100%, 12rem); }
.footer-grid nav { align-content: start; align-items: start; gap: .5rem 1rem; }
#photo-viewer { max-width: min(95vw, 78rem); max-height: 95dvh; padding: .75rem; background: var(--ivory); color: var(--charcoal); border: 1px solid var(--line); }
#photo-viewer::backdrop { background: rgb(20 17 14 / .82); }
#photo-viewer figure { margin: 0; }
#photo-viewer form { text-align: right; margin-bottom: .4rem; }
#photo-viewer img { width: auto; max-width: 100%; max-height: 76dvh; object-fit: contain; }
@media (min-width: 38rem) {
  .gallery > figure { width: calc((100% - 1.25rem) / 2); }
  .gallery > figure:last-child:nth-child(odd) { width: 100%; max-width: 34rem; }
  .form-row, .process-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 52rem) {
  .hero-mark { grid-column: 2; grid-row: 1; justify-self: center; }
  .service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 12rem minmax(0,1fr) minmax(10rem, .7fr); }
}
@media (min-width: 64rem) {
  .gallery > figure, .gallery > figure:last-child:nth-child(odd) { width: calc((100% - 2.5rem) / 3); max-width: none; }
  .gallery:has(> :last-child:nth-child(2)) > figure, .gallery:has(> :last-child:nth-child(4)) > figure { width: calc((100% - 1.25rem) / 2); }
  .process-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 51.99rem) {
  .hero-mark { width: min(100%, 19rem); }
}

.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .6rem .9rem; background: #25221e; color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #96621a; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
