:root {
  color-scheme: light;
  --paper: #f6f2e8;
  --paper-deep: #ece6d8;
  --ink: #252b24;
  --muted: #565b51;
  --forest: #222b23;
  --forest-dark: #19211a;
  --cream: #f7f2e7;
  --cream-muted: #d0cbbd;
  --clay: #a34532;
  --clay-hover: #843423;
  --rust-light: #e3ab91;
  --rule: #cfc7b7;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.3rem, 5.25vw, 5.6rem);
  --max: 94rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: #b35b44; color: #fff9ed; }

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 20; inset: .8rem auto auto .8rem; padding: .6rem 1rem; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.header-inner { min-height: 5.05rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2.5rem; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .75rem; text-decoration: none; }
.brand-name { display: block; font: 1.63rem/.99 var(--serif); letter-spacing: -.055em; }
.brand-caption { display: block; margin-top: .35rem; color: var(--muted); font: 600 .65rem/1 var(--sans); text-transform: uppercase; letter-spacing: .11em; white-space: nowrap; }
.brand-mark { position: relative; width: 2.32rem; height: 2.42rem; flex: 0 0 2.32rem; color: var(--clay); }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; border: 1.5px solid currentColor; border-radius: 50% 50% 0 0 / 48% 48% 0 0; bottom: .12rem; }
.brand-mark::before { inset: .08rem .12rem .12rem; }
.brand-mark::after { inset: .39rem .46rem .12rem; }
.brand-mark i { inset: .73rem .81rem .12rem; }
.main-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3.2vw, 3.65rem); }
.main-nav a, .header-phone { position: relative; font-size: .94rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a::after, .header-phone::after { content: ""; position: absolute; height: 1px; inset: auto 0 -.26rem; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.main-nav a:hover::after, .header-phone:hover::after { transform: scaleX(1); }
.header-phone { justify-self: end; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--cream); background: var(--forest-dark); }
.hero::after { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(90deg, var(--forest-dark) 35%, #19211ae8 42%, #19211a48 55%, transparent 72%), linear-gradient(0deg, #141c16bd, transparent 34%); pointer-events: none; }
.hero-photo { position: absolute; z-index: -2; inset: 0 0 0 34%; overflow: hidden; background: #343c31; }
.hero-photo img { height: 100%; object-fit: cover; object-position: 48% 47%; filter: saturate(.83) contrast(1.04); animation: settle 1.25s cubic-bezier(.21,.66,.3,1) both; }
@keyframes settle { from { transform: scale(1.035); } to { transform: scale(1); } }
.hero-inner { min-height: clamp(36rem, 48vw, 49rem); display: flex; align-items: center; position: relative; padding-block: 4.5rem 5.5rem; }
.hero-content { width: min(100%, 55rem); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.4rem; color: var(--muted); font-weight: 650; font-size: .72rem; line-height: 1.45; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; flex: 0 0 1.65rem; height: 1px; background: var(--clay); }
.hero .eyebrow { margin-bottom: 1.9rem; color: var(--cream-muted); }
.hero .eyebrow > span, .projects .eyebrow > span { background: var(--rust-light); }
h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4.4rem, 7.7vw, 8.4rem); line-height: .91; letter-spacing: -.076em; }
h1 em { color: #efc7a8; font-weight: 400; }
.hero-intro { max-width: 27rem; margin-top: 2.02rem; font-size: clamp(1.08rem, 1.5vw, 1.35rem); line-height: 1.49; color: #e6e1d5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.65rem; margin-top: 2.1rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.25rem; padding: .72rem 1.35rem .8rem; text-decoration: none; font-size: .95rem; line-height: 1.32; font-weight: 650; border: 1px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.button-clay { color: #fff9ee; background: var(--clay); }
.button-clay:hover { background: var(--clay-hover); }
.button-clay:disabled { opacity: .6; }
.text-link { width: fit-content; font-size: .95rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-note { display: flex; align-items: flex-start; gap: .65rem; position: absolute; right: var(--gutter); bottom: 2rem; color: #f4efe5; font-size: .8rem; line-height: 1.37; text-shadow: 0 1px 6px #151a14; }
.hero-note > span { width: 1.1rem; height: 1.1rem; margin-top: .07rem; border: 1px solid #efc7a8; border-right: 0; border-bottom: 0; }

.section { padding-block: clamp(4.4rem, 7.4vw, 8rem); }
.section-intro { display: grid; grid-template-columns: 2fr 1fr; align-items: end; gap: 1rem 3.5rem; padding-bottom: clamp(1.75rem, 3.2vw, 3.25rem); }
.section h2 { font-size: clamp(3rem, 5.25vw, 5.45rem); line-height: 1.015; letter-spacing: -.069em; }
.section-summary { max-width: 24rem; color: var(--muted); margin-bottom: .28rem; font-size: 1.08rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.4rem, 5vw, 5rem) clamp(1.2rem, 3.5vw, 3.7rem); }
.service { display: flex; flex-direction: column; min-width: 0; }
.service-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .32rem; }
.service-image { grid-column: 1 / -1; aspect-ratio: 1.99; }
.service-detail-photo { aspect-ratio: 2.48; }
.brick-image img { object-position: 50% 56%; }
.injection-image img { object-position: 50% 52%; }
.waterproofing-image img { object-position: 50% 66%; }
.strengthening-image img { object-position: 50% 46%; }
.service-content { display: flex; flex-direction: column; flex: 1; align-items: flex-start; border-bottom: 1px solid var(--rule); padding-block: 1.38rem 1.6rem; }
.service h3 { font-size: clamp(2.1rem, 3.5vw, 3.65rem); letter-spacing: -.056em; line-height: 1.04; }
.service-content > p { max-width: 31rem; margin-top: .96rem; color: var(--muted); }
.service details { width: 100%; margin-top: 1.25rem; }
.service summary { display: flex; width: fit-content; gap: 1rem; align-items: center; position: relative; cursor: pointer; font-size: .94rem; font-weight: 650; list-style: none; }
.service summary::-webkit-details-marker { display: none; }
.service summary > span { flex: 0 0 .66rem; height: .66rem; position: relative; color: var(--clay); }
.service summary > span::before, .service summary > span::after { position: absolute; content: ""; inset: 50% 0 auto; height: 1px; background: currentColor; }
.service summary > span::after { transform: rotate(90deg); transition: transform .19s; }
.service details[open] summary > span::after { transform: rotate(0); }
.service details p { margin-top: .55rem; max-width: 30rem; color: var(--muted); }
.service-request { margin-top: auto; padding-top: 1.25rem; color: var(--clay); }

.projects { color: var(--cream); background: var(--forest); }
.projects .eyebrow, .projects .project-location { color: var(--cream-muted); }
.projects .section-intro { border-bottom: 1px solid #616559; grid-template-columns: 1fr; }
.project-featured { display: grid; grid-template-columns: 1.63fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6.7rem); margin-block: clamp(1.65rem, 3.15vw, 3.1rem) clamp(2.45rem, 4.3vw, 4.65rem); }
.project-photo { display: block; position: relative; isolation: isolate; overflow: hidden; background: #353d33; }
.project-photo img { height: 100%; object-fit: cover; filter: saturate(.84); transition: transform .5s cubic-bezier(.2,.6,.3,1), filter .5s; }
.project-photo:hover img, .project-photo:focus-visible img { transform: scale(1.045); filter: saturate(1); }
.feature-image { aspect-ratio: 1.52; }
.feature-image img { object-position: 50% 49%; }
.project-location { margin-bottom: .68rem; font-size: .79rem; letter-spacing: .055em; }
.feature-content h3 { font-size: clamp(2.1rem, 3.5vw, 3.65rem); line-height: 1.05; letter-spacing: -.055em; }
.feature-content > p:not(.project-location) { margin-block: 1.1rem 1.2rem; max-width: 26rem; color: var(--cream-muted); }
.photo-control { position: absolute; display: grid; place-items: center; right: .8rem; bottom: .8rem; width: 2.35rem; height: 2.35rem; background: var(--paper); color: var(--forest-dark); transition: background-color .2s, color .2s; }
.photo-control::before, .photo-control::after { grid-area: 1 / 1; content: ""; width: .7rem; height: 1px; background: currentColor; }
.photo-control::after { transform: rotate(90deg); }
.project-photo:hover .photo-control { background: var(--clay); color: var(--cream); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.5rem); }
.project-card { border-top: 1px solid #616559; padding-top: 1rem; }
.project-card .project-photo { aspect-ratio: 1.64; margin-bottom: .95rem; }
.project-card h3 { font-size: clamp(1.45rem, 2.2vw, 2.15rem); line-height: 1.11; letter-spacing: -.04em; }
.project-card .project-location { margin-bottom: .42rem; }

.approach { background: var(--paper-deep); }
.approach-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 8vw, 8.6rem); align-items: start; }
.process { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.process li { display: grid; grid-template-columns: 2rem 1fr; gap: .26rem .85rem; padding: 1.1rem 0; border-top: 1px solid #bdb6a6; counter-increment: steps; }
.process li:last-child { border-bottom: 1px solid #bdb6a6; }
.process li::before { content: counter(steps, decimal-leading-zero); grid-row: span 2; padding-top: .25rem; color: var(--clay); font-weight: 650; font-size: .78rem; font-variant-numeric: tabular-nums; }
.process h3 { font-size: clamp(1.45rem, 2.25vw, 2rem); line-height: 1.12; letter-spacing: -.04em; }
.process p { color: var(--muted); }

.contact { color: var(--cream); background: #713b31; }
.contact-inner { display: grid; grid-template-columns: 1fr .98fr; align-items: start; gap: 2.4rem clamp(2.2rem, 7vw, 7rem); }
.contact .eyebrow { color: #f3d8ca; }
.contact .eyebrow > span { background: var(--rust-light); }
.contact-copy > p:not(.eyebrow) { max-width: 23rem; margin-top: 1.15rem; color: #f6e7dc; font-size: 1.1rem; }
.contact address { display: grid; gap: .55rem; border-top: 1px solid #b98272; max-width: 25rem; padding-top: 1.45rem; margin-top: 1.8rem; font-style: normal; }
.contact address p { margin-top: .4rem; color: #f6e7dc; }
.contact-phone { width: fit-content; font: clamp(1.55rem, 3vw, 2.9rem)/1.1 var(--serif); letter-spacing: -.045em; text-decoration: none; }
.contact-phone:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.contact-form { min-width: 0; display: grid; align-items: start; background: var(--paper); color: var(--ink); padding: clamp(1.15rem, 3.2vw, 3.25rem); }
.contact-form h3 { font-size: clamp(1.85rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -.045em; }
.form-note { margin: .65rem 0 1.1rem; max-width: 25rem; color: var(--muted); }
.contact-form label, .draft-shell label { width: fit-content; font-weight: 650; margin: .65rem 0 .3rem; font-size: .92rem; }
.contact-form label > span { color: var(--clay); }
.contact-form label small { color: var(--muted); font-weight: 400; }
.contact-form :is(input, select, textarea), .draft-shell textarea { min-width: 0; width: 100%; padding: .7rem .8rem; border: 1px solid #918777; border-radius: 0; background: #fffcf5; color: var(--ink); }
.contact-form :is(input, select) { min-height: 2.9rem; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; top: calc(50% - .3rem); right: 1rem; width: .48rem; height: .48rem; border: solid var(--ink); border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.contact-form select { appearance: none; padding-right: 2.15rem; }
.contact-form textarea, .draft-shell textarea { resize: vertical; }
.contact-form .button { justify-self: start; margin-top: 1.15rem; }

.site-footer { background: var(--forest-dark); color: var(--cream-muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1.15rem 1.7rem; min-height: 6.2rem; padding-block: 1.4rem; }
.site-footer .brand-name { color: var(--cream); }
.site-footer .brand-mark { color: var(--rust-light); }
.site-footer p { font-size: .88rem; }

dialog { border: 0; padding: 0; overflow: auto; box-shadow: 0 12px 80px #10130e55; max-height: calc(100dvh - 1.3rem); }
dialog::backdrop { background: #141a14c9; }
body:has(dialog[open]) { overflow: hidden; }
.gallery-dialog { width: min(58rem, calc(100% - 1.4rem)); background: var(--forest-dark); color: var(--cream); }
.gallery-shell { padding: clamp(1rem, 2.7vw, 1.9rem); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .95rem; }
.dialog-heading h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.035em; margin-top: .24rem; }
.close-button { flex: 0 0 2.5rem; height: 2.5rem; position: relative; background: transparent; border: 1px solid currentColor; color: inherit; }
.close-button::before, .close-button::after { position: absolute; content: ""; inset: 50% 24% auto; height: 1px; background: currentColor; transform: rotate(45deg); }
.close-button::after { transform: rotate(-45deg); }
.close-button:hover, .gallery-nav button:hover { background: #faf4e819; }
.gallery-shell figure { margin: 0; }
.gallery-stage { display: grid; place-items: center; height: min(51dvh, 34rem); background: #121712; }
.gallery-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-stage p { max-width: 25rem; padding: 1.2rem; text-align: center; color: var(--cream-muted); }
.gallery-shell figcaption { padding-block: .7rem; color: var(--cream-muted); font-size: .9rem; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .8rem; }
.gallery-thumbnails button { position: relative; display: grid; place-items: center; width: clamp(2.6rem, 10vw, 4.6rem); aspect-ratio: 4/3; padding: 0; background: #31372c; color: var(--cream); border: 1px solid #a8a497; }
.gallery-thumbnails button[aria-pressed="true"] { border-color: var(--rust-light); box-shadow: 0 0 0 1px var(--rust-light); }
.gallery-thumbnails img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.gallery-nav { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.gallery-nav button { color: inherit; background: transparent; border: 1px solid #a8a497; padding: .43rem .68rem; font-size: .85rem; }
.gallery-nav button:disabled { opacity: .47; }
.gallery-nav span { color: var(--cream-muted); font-size: .84rem; }
.draft-dialog { width: min(36rem, calc(100% - 1.4rem)); color: var(--ink); background: var(--paper); }
.draft-shell { padding: clamp(1.15rem, 4vw, 2.35rem); }
.draft-shell > p { color: var(--muted); }
.draft-shell label { display: block; margin-top: .85rem; }
.draft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; margin-block: .75rem; }
.draft-actions button { padding: .45rem 0; color: var(--clay); border: 0; background: transparent; text-decoration: underline; }
.draft-recipient, .draft-status { font-size: .85rem; }
.draft-status:empty { display: none; }
.draft-status { margin-top: .4rem; }

@media (max-width: 62rem) {
  .header-inner { gap: 1.5rem; }
  .brand-name { font-size: 1.5rem; }
  .hero-photo { inset-inline-start: 24%; }
  .hero::after { background: linear-gradient(90deg, var(--forest-dark) 25%, #19211ae8 36%, #19211a6b 53%, transparent 79%), linear-gradient(0deg, #141c16bd, transparent 34%); }
  .hero-inner { min-height: 36rem; }
}

@media (max-width: 45rem) {
  .gallery-stage { height: min(44dvh, 27rem); }
  .header-inner { min-height: 4.55rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; }
  .brand-caption { font-size: .57rem; }
  .brand-mark { height: 2.15rem; width: 2.1rem; flex-basis: 2.1rem; }
  .header-phone { display: none; }
  .menu-toggle { min-height: 2.7rem; display: inline-flex; align-items: center; gap: .55rem; padding: .38rem 0 .38rem .6rem; color: var(--ink); background: transparent; border: 0; font-size: .9rem; font-weight: 650; }
  .menu-toggle i { position: relative; width: 1rem; height: .75rem; }
  .menu-toggle i::before, .menu-toggle i::after { content: ""; position: absolute; inset: .19rem 0 auto; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-toggle i::after { inset-block-start: .55rem; }
  .menu-toggle[aria-expanded="true"] i::before { transform: translateY(.18rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { transform: translateY(-.18rem) rotate(-45deg); }
  .main-nav { flex-basis: 100%; justify-content: space-between; gap: .75rem; padding-block: .75rem 1.05rem; border-top: 1px solid var(--rule); }
  .main-nav a { padding-block: .2rem; }
  .hero-photo { inset: 0 0 auto; height: 72%; }
  .hero-photo img { object-position: 50% 40%; }
  .hero-photo::after { position: absolute; content: ""; inset: 0; background: linear-gradient(0deg, var(--forest-dark) 10%, #19211abf 36%, #19211a24 82%); }
  .hero::after { display: none; }
  .hero-inner { align-items: flex-end; min-height: clamp(39rem, 128vw, 45rem); padding-block: 11.8rem 4rem; }
  .hero .eyebrow { margin-bottom: 1.15rem; }
  h1 { font-size: clamp(2.55rem, calc(15.7vw - .45rem), 5rem); }
  .hero-intro { margin-top: 1.2rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-note { position: static; display: none; }
  .section-intro, .approach-inner, .contact-inner { grid-template-columns: 1fr; }
  .section h2 { font-size: clamp(2.8rem, 8.6vw, 4rem); }
  .section-summary { margin-top: .2rem; font-size: 1rem; }
  .eyebrow { margin-bottom: .85rem; }
  .services-grid { grid-template-columns: 1fr; gap: 2.15rem; }
  .service h3 { font-size: 2.4rem; }
  .project-featured { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.4rem; }
  .project-grid { grid-template-columns: 1fr; gap: 1.65rem; }
  .project-card .project-photo { aspect-ratio: 1.8; }
  .project-card h3 { font-size: 1.8rem; }
  .contact-copy > p:not(.eyebrow) { font-size: 1rem; }
  .footer-inner p { flex: 0 0 100%; order: 1; }
}

@media (max-width: 23rem) {
  .header-inner { gap: 0 .45rem; }
  .site-header .brand { gap: .43rem; }
  .site-header .brand-caption { font-size: .52rem; letter-spacing: .075em; }
  .menu-toggle { padding-inline-start: .1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .contact-copy address br:nth-of-type(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
