:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #21241d;
  --muted: #585b4f;
  --line: #cfcfc2;
  --olive: #343c2f;
  --body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-underline-offset: .3em; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #7f5c33; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -.055em; }
h2 { font-size: clamp(2.6rem, 5.5vw, 5.25rem); }
h3 { font-size: clamp(1.45rem, 2.45vw, 2.4rem); }
.shell { width: min(100% - 96px, 1392px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .5rem; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { font-size: 1.76rem; line-height: .95; font-weight: 700; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.wordmark span { display: block; font: 600 .75rem var(--body); letter-spacing: .12em; text-transform: uppercase; margin-top: .55rem; }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 40px); }
nav a { text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.nav-cta { border: 1px solid var(--line); padding: .55rem 1rem; }
.hero-heading { padding: clamp(40px, 6vw, 88px) 0 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 255px); align-items: end; gap: .4rem 3vw; }
.label { font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-heading .label { grid-column: 1 / -1; }
h1 { font-size: clamp(3.6rem, 7.5vw, 8.5rem); letter-spacing: -.08em; }
h1 em { color: #4a5942; font-style: normal; }
.hero-aside { padding-bottom: .25rem; color: var(--muted); }
.text-link { display: inline-block; margin-top: .75rem; color: var(--ink); font-weight: 700; }
.hero-figure img { height: clamp(340px, 48vw, 670px); object-position: center 52%; }
figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.section { padding-block: clamp(60px, 8vw, 125px); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading .label, .approach .label, .estimation .label { margin-bottom: .7rem; }
.section-heading > p { max-width: 42ch; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button, .back-button { background: transparent; border: 1px solid var(--line); padding: .5rem .85rem; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); }
.project-card { min-width: 0; display: flex; flex-direction: column; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.project-card-link { width: 100%; text-decoration: none; }
.project-card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.projects img { aspect-ratio: 4/3; height: auto; }
.project-caption { padding-top: .82rem; }
.project-location { margin-top: .3rem; color: var(--muted); font-size: .88rem; }
.project-card-description { color: var(--muted); margin: .5rem 0 .86rem; max-width: 54ch; }
.project-comparison-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; padding: .35rem .75rem; border: 1px solid var(--line); font-size: .88rem; font-weight: 700; text-decoration: none; }
.project-comparison-link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.comparison-section { background: #e9e8dd; }
.comparison { --split: 50%; position: relative; contain: paint; aspect-ratio: 2 / 1; }
.comparison img { position: absolute; inset: 0; height: 100%; object-position: center 55%; }
.comparison .before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.comparison-label { position: absolute; top: 12px; background: var(--paper); font-weight: 700; padding: .3rem .7rem; font-size: .875rem; }
.comparison-label.start { left: 12px; }
.comparison-label.end { right: 12px; }
.comparison-line { display: grid; align-items: center; position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: white; }
.comparison-line > span { background: var(--paper); color: var(--ink); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; transform: translateX(-50%); }
.comparison input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.comparison:focus-within { outline: 2px solid var(--ink); outline-offset: 4px; }
.comparison-help { margin-top: .8rem; color: var(--muted); }
.project-comparison .comparison { aspect-ratio: 16 / 10; }
.project-comparison .comparison-wide { aspect-ratio: 3 / 2; }
.project-comparison .comparison img { object-position: center; }
.approach, .estimator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 7vw, 110px); }
.approach dl > div { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.approach dt { font-weight: 700; }
.approach dd { margin: .4rem 0 0; color: var(--muted); }
.estimation { background: var(--olive); color: var(--paper); }
.estimator-layout > div > p:not(.label) { margin-top: 1.1rem; max-width: 36ch; }
.small { font-size: .9rem; color: #dedfd1; }
form { align-self: start; background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 52px); }
progress { display: block; width: 100%; height: .35rem; margin-bottom: 1rem; accent-color: var(--olive); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: clamp(1.45rem, 2.6vw, 2.45rem); line-height: 1.1; font-weight: 600; letter-spacing: -.045em; padding: 0; margin-bottom: 1rem; }
.choice { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--line); padding: .65rem .8rem; margin-bottom: .5rem; cursor: pointer; }
.choice:has(:checked) { border-color: var(--olive); background: #e7eadf; }
input[type="radio"] { accent-color: var(--olive); }
input[type="number"] { display: block; width: 100%; margin-top: .4rem; padding: .65rem .8rem; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.form-actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
.primary { margin-left: auto; background: var(--olive); color: white; border: 1px solid var(--olive); padding: .65rem 1.1rem; }
.primary:hover { background: var(--ink); }
.result-price { font-size: clamp(1.6rem, 2.75vw, 2.65rem); line-height: 1.1; font-weight: 600; letter-spacing: -.055em; margin-block: .8rem; }
#estimateResult button { margin-top: 1rem; }
.site-footer { min-height: 128px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; }
.site-footer p { color: var(--muted); }
.project-intro { padding-top: clamp(24px, 4.5vw, 62px); }
.all-projects { display: inline-block; padding-block: .2rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.project-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 235px); align-items: end; gap: 14px 4vw; margin-block: clamp(20px, 4vw, 54px) clamp(20px, 3vw, 42px); }
.project-heading h1 { margin-top: .17em; font-size: clamp(3rem, 6.7vw, 7rem); text-wrap: balance; }
.project-tagline { color: var(--muted); padding-bottom: .2rem; }
.project-hero-photo img { height: clamp(290px, 49vw, 690px); object-position: center 54%; }
.project-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 7vw, 100px); }
.project-story-intro p { max-width: 50ch; margin-top: .75rem; color: var(--muted); }
.project-story dl > div { border-top: 1px solid var(--line); padding-block: .95rem; }
.project-story dt { font-weight: 700; }
.project-story dd { color: var(--muted); margin: .35rem 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); margin-top: clamp(18px, 3vw, 36px); }
.gallery-grid img { aspect-ratio: 4 / 3; }
.gallery-grid figcaption { display: grid; justify-content: start; gap: .18rem; }
.gallery-grid figcaption strong { color: var(--ink); font-size: 1rem; }
.gallery-grid figcaption span { font-size: .9rem; }
.project-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; border-block: 1px solid var(--line); }
.project-navigation a { text-decoration: none; }
.project-navigation a:hover { text-decoration: underline; }
.project-navigation span { display: block; font-size: .84rem; color: var(--muted); }
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .site-header { min-height: 75px; gap: 12px; }
  .wordmark { font-size: 1.35rem; }
  .wordmark span { font-size: .66rem; letter-spacing: .06em; }
  nav { gap: .65rem; }
  nav a { font-size: .84rem; }
  .nav-cta { padding: .35rem .5rem; }
  .hero-heading, .approach, .estimator-layout, .project-heading, .project-story { grid-template-columns: 1fr; }
  .hero-heading { row-gap: .9rem; }
  h1 { font-size: clamp(2.65rem, 8.35vw, 4.85rem); }
  .project-heading h1 { font-size: clamp(2.5rem, 8.35vw, 4.85rem); }
  .hero-aside { max-width: 38ch; }
  .comparison, .project-comparison .comparison { aspect-ratio: 4/3; }
}
@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; padding-block: .8rem; }
  .projects, .gallery-grid { grid-template-columns: 1fr; }
  .hero-figure img { height: 320px; }
  figcaption { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
