:root {
  color-scheme: light;
  --bg: #f6f4ed;
  --ink: #22291f;
  --muted: #595f51;
  --green: #29362b;
  --olive: #526547;
  --line: #d6d7cc;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font: 400 3.6rem/.99 var(--serif); letter-spacing: -.025em; }
:focus-visible { outline: 2px solid #5c774a; outline-offset: 5px; }
[id] { scroll-margin-top: 98px; }
.container { width: min(100% - 72px, 1240px); margin-inline: auto; }
.skip-link {
  position: fixed; top: 10px; left: 12px; z-index: 10; transform: translateY(-160%);
  padding: 12px 16px; background: var(--ink); color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

.preview-bar { background: #242d24; color: #eef1e9; font-size: .74rem; }
.preview-bar .container, .header-inner, .footer {
  display: flex; justify-content: space-between; align-items: center; gap: 15px;
}
.preview-bar .container { min-height: 34px; }
.preview-bar a { text-decoration: underline; text-underline-offset: 3px; }
.site-header {
  position: sticky; z-index: 2; top: 0; background: #f6f4edf2;
  border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; }
.wordmark {
  display: inline-flex; gap: 11px; align-items: center; white-space: nowrap;
  font: 700 1.02rem/1.1 var(--body); letter-spacing: .115em;
}
.wordmark small { display: block; margin-top: 5px; color: var(--olive); font-size: .6rem; letter-spacing: .285em; }
.logo-mark {
  width: 30px; height: 30px; display: inline-block; flex: none; border: 1px solid #75846c;
  background:
    linear-gradient(90deg, transparent 48%, #75846c 48% 52%, transparent 52%),
    linear-gradient(transparent 48%, #75846c 48% 52%, transparent 52%);
  transform: rotate(-9deg); border-radius: 4px;
}
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); font-size: .92rem; }
.site-header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 15px;
  min-height: 52px; padding: 11px 20px; border: 1px solid transparent; border-radius: 5px;
  background: var(--green); color: #fffdf5; cursor: pointer;
  font: 650 .91rem/1.25 var(--body); text-align: center;
  transition: background .2s ease, color .2s ease;
}
.button:hover { background: #445841; }
.button-small { min-height: 43px; background: transparent; border-color: #82917a; color: var(--green); }
.button-small:hover { color: #fffdf5; }
.underlined { font-weight: 650; font-size: .9rem; text-decoration: underline; text-underline-offset: 5px; }
.underlined span { display: inline-block; margin-left: 5px; }

.hero {
  display: grid; grid-template-columns: .83fr 1.17fr; align-items: center;
  gap: clamp(35px, 5vw, 84px); padding: 45px 0 clamp(76px, 9vw, 136px);
}
.hero-copy { padding-block: 14px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  color: var(--olive); font-size: .83rem; font-weight: 700;
}
.eyebrow span { display: inline-block; width: 24px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(4.5rem, 7.4vw, 7.2rem); }
.hero h1 i { color: var(--olive); font-weight: 400; }
.hero-intro { margin-top: 23px; max-width: 29ch; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 21px; margin-top: 30px; }
.hero-media { position: relative; overflow: hidden; background: #c8baa6; }
.hero-media img {
  width: 100%; height: clamp(495px, 46vw, 645px);
  object-fit: cover; object-position: 54% 48%;
}
.hero-media figcaption {
  position: absolute; bottom: 17px; left: 17px; padding: 6px 10px;
  background: #f7f4eaf2; color: var(--ink); font-size: .75rem; font-weight: 650;
}

.projects { padding: 0 0 clamp(65px, 8vw, 116px); }
.section-heading {
  display: flex; justify-content: space-between; align-items: end; gap: 18px;
  padding: 23px 0 28px; border-top: 1px solid var(--line);
}
.section-heading h2, .process h2 { font-size: clamp(3.5rem, 6vw, 5.8rem); }
.section-heading p { color: var(--muted); max-width: 36ch; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 19px; }
.project-card {
  display: grid; grid-template-rows: auto auto 1fr; width: 100%; padding: 0 0 13px; cursor: pointer;
  color: inherit; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; text-align: left;
}
.project-image { display: block; background: #d2cab9; overflow: hidden; }
.project-image img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 58% 50%;
  transition: transform .28s ease;
}
.project-card:hover img { transform: scale(1.045); }
.project-card:hover { border-color: var(--olive); }
.project-type { margin-top: 13px; color: var(--olive); font-size: .75rem; font-weight: 700; }
.comparison-tag {
  display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 3px;
  background: #e6eadf; color: #43533a; font-size: .72rem;
}
.project-heading {
  display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-top: 3px;
  font: 400 clamp(1.35rem, 2.15vw, 2.07rem)/1.07 var(--serif);
}
.project-heading span { font: 600 .9rem/1.55 var(--body); color: var(--olive); }

.services { background: var(--green); color: #fbfaf4; }
.services-inner, .quote-inner {
  display: grid; grid-template-columns: .83fr 1.17fr; align-items: start;
  gap: clamp(32px, 8vw, 117px); padding-block: clamp(65px, 8vw, 112px);
}
.services h2, .quote h2 { font-size: clamp(3.25rem, 5.8vw, 6.1rem); }
.services-intro p { max-width: 28ch; margin-top: 18px; color: #d7dfd1; }
.service-list > div { padding: 16px 0 19px; border-top: 1px solid #d5dfd14d; }
.service-list > div:last-child { border-bottom: 1px solid #d5dfd14d; }
.service-list dt { font: 400 2.28rem/1.1 var(--serif); }
.service-list dd { margin-top: 5px; color: #dbe0d5; font-size: .91rem; }

.process { padding-block: clamp(64px, 8vw, 116px); }
.process ol {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px;
  padding: 0; margin: 30px 0 0; list-style-position: inside;
}
.process li { padding: 15px 0 0; border-top: 1px solid #9fa799; }
.process li::marker { color: var(--olive); font-weight: 700; }
.process li h3 { display: inline; font-size: 1.01rem; font-weight: 700; }
.process li p { margin: 9px 0 0; color: var(--muted); font-size: .93rem; max-width: 36ch; }

.quote { background: #e9ede3; border-block: 1px solid var(--line); }
.quote-copy p { max-width: 33ch; margin-top: 17px; color: var(--muted); }
.quote-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quote-form label { display: grid; min-width: 0; gap: 5px; font-size: .85rem; font-weight: 700; }
.quote-form :is(input, select, textarea) {
  width: 100%; min-height: 46px; padding: 9px 11px;
  border: 1px solid #adbaaa; border-radius: 5px; background: #fbfaf4; color: var(--ink);
  font: 400 .93rem/1.4 var(--body);
}
.quote-form ::placeholder { color: #62695c; opacity: 1; }
.quote-form textarea { resize: vertical; }
.quote-form .button { justify-self: start; }
.form-note, .form-feedback { color: #43513f; font-size: .82rem; }
.form-feedback { font-weight: 700; }
.footer { min-height: 71px; color: var(--muted); font-size: .81rem; }

dialog {
  width: min(100% - 30px, 744px); max-height: calc(100dvh - 40px);
  padding: 0; border: 1px solid #aab2a1; border-radius: 8px;
  background: var(--bg); color: var(--ink); box-shadow: 0 12px 64px #0004;
}
dialog::backdrop { background: #121912b3; }
dialog img { width: 100%; max-height: min(54dvh, 430px); object-fit: cover; object-position: 58% 50%; }
.close-dialog {
  position: absolute; right: 13px; top: 13px; display: grid; place-items: center; width: 42px; height: 42px;
  color: var(--ink); background: var(--bg); border: 1px solid #84917e;
  border-radius: 50%; cursor: pointer; font: 1.65rem/1 var(--body);
}
.project-detail { padding: 23px clamp(20px, 4vw, 40px) 27px; }
.project-detail h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.project-detail p { margin-top: 10px; color: var(--muted); }
.comparison-dialog { width: min(100% - 30px, 1040px); padding: clamp(17px, 3vw, 30px); }
.comparison-heading { margin-bottom: 16px; padding-right: 47px; }
.comparison-heading p { margin-bottom: 4px; color: var(--olive); font-size: .8rem; font-weight: 700; }
.comparison-heading h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.comparison {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px;
  --comparison-ratio: 4 / 3;
}
.comparison-bathroom { --comparison-ratio: 3 / 2; }
.comparison figure { min-width: 0; background: #e9ede3; }
.comparison figcaption { padding: 6px 10px; color: #43533a; font-size: .84rem; font-weight: 700; }
.comparison img { width: 100%; max-height: none; aspect-ratio: var(--comparison-ratio); object-fit: cover; object-position: center; }
.comparison-description { margin-top: 13px; color: var(--muted); font-size: .91rem; }

@media (max-width: 1050px) {
  .hero h1 { font-size: clamp(3.8rem, 8vw, 6rem); }
  .hero-media img { height: clamp(430px, 54vw, 560px); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .site-header nav { display: none; }
  .hero, .services-inner, .quote-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 26px; gap: 26px; }
  .hero-copy { padding-block: 8px 0; }
  .hero h1 { font-size: clamp(3.65rem, 10vw, 5.6rem); }
  .hero-media img { height: auto; aspect-ratio: 1.28; }
  .hero-actions { gap: 14px 17px; margin-top: 22px; }
  .project-grid { gap: 13px; }
  .project-heading { font-size: 1.55rem; }
  .process ol { gap: 12px; }
}
@media (max-width: 510px) {
  .preview-bar .container { flex-wrap: wrap; gap: 1px 14px; padding-block: 5px; }
  .site-header .button { padding-inline: 10px; font-size: .76rem; }
  .wordmark { gap: 8px; font-size: .92rem; }
  .logo-mark { width: 24px; height: 24px; }
  .hero h1 { font-size: clamp(3.45rem, 12vw, 4.25rem); }
  .section-heading { align-items: start; flex-direction: column; }
  .project-grid, .process ol, .form-grid { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .project-grid { gap: 20px; }
  .project-heading { font-size: 1.85rem; }
  .footer { flex-wrap: wrap; align-content: center; gap: 4px 16px; padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
