:root {
  color-scheme: light;
  --paper: #f5f1e9;
  --light: #fcfaf6;
  --stone: #e7e0d5;
  --ink: #2b261f;
  --muted: #5e554b;
  --brown: #684b35;
  --line: #cfc3b4;
  --olive: #353e32;
  --dark: #2b3329;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid #5e3e25; outline-offset: 4px; }
.estimate :focus-visible { outline-color: #f2ce9f; }
.estimate-form :focus-visible { outline-color: #5e3e25; }
section[id], footer[id] { scroll-margin-top: 18px; }
.wrap { width: min(1296px, calc(100% - 112px)); margin-inline: auto; }

.skip { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 10px 16px; background: var(--light); transform: translateY(calc(-100% - 14px)); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; min-height: 79px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); font: 28px/.85 var(--serif); text-decoration: none; letter-spacing: -.035em; }
.brand-small { display: block; margin-top: 6px; font: 700 8px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); }
.main-nav a, .header-cta { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 650; text-decoration: none; }
.main-nav a { color: var(--muted); }
.main-nav a:hover, .footer-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { justify-self: end; gap: 10px; padding: 0 13px; border: 1px solid #897762; color: var(--brown); }
.header-cta:hover { background: var(--stone); }
.cta-short { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: 38px 55px; }
.hero-copy { min-width: 0; padding-block: 22px 40px; }
.eyebrow { color: var(--muted); font-size: 11px; line-height: 1.5; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.hero-label { display: flex; align-items: center; gap: 10px; }
.rule { width: 26px; height: 1px; background: #8d6b47; }
.index { display: inline-block; margin-right: 8px; color: var(--brown); font-variant-numeric: tabular-nums; }
h1 { margin-block: 18px 24px; font-size: clamp(55px, 6vw, 89px); letter-spacing: -.06em; }
h1 em { display: block; color: var(--brown); font-weight: inherit; }
.hero-description { max-width: 37ch; color: var(--muted); font-size: clamp(16px, 1.34vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 21px; margin-top: 26px; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; padding: 11px 17px; border: 1px solid transparent; background: var(--olive); color: #fffaf1; font-size: 14px; font-weight: 720; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.button:hover { background: #4d5948; }
.arrow { display: inline-block; flex: none; width: 1em; height: 1em; background: currentColor; clip-path: polygon(12% 45%, 73% 45%, 54% 26%, 61% 19%, 92% 50%, 61% 81%, 54% 74%, 73% 55%, 12% 55%); }
.arrow-out { transform: rotate(-45deg); }
.arrow-down { transform: rotate(90deg); }
.arrow-up { transform: rotate(-90deg); }
.button .arrow { font-size: 17px; }
.button:disabled { cursor: default; opacity: .75; }
.text-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 44px; color: var(--brown); font-size: 14px; font-weight: 680; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: var(--ink); }
.text-link span { flex: none; }

.hero-figure { min-width: 0; }
.hero-figure img { width: 100%; height: clamp(420px, 40vw, 570px); background: #c3b6a6; object-fit: cover; object-position: 50% 61%; }
figcaption { color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.45; }
figcaption a { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; text-underline-offset: 3px; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 14px; padding: 3px 1px; border-bottom: 1px solid var(--line); }

.section { padding-block: clamp(58px, 7.1vw, 104px); }
.projects { background: var(--light); border-block: 1px solid var(--line); }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: 32px; }
h2 { margin-top: 9px; font-size: clamp(42px, 5.1vw, 75px); letter-spacing: -.055em; }
.section-aside { max-width: 37ch; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: clamp(23px, 4vw, 54px); }
.project { min-width: 0; border-bottom: 1px solid var(--line); }
.kitchen { margin-top: clamp(28px, 6vw, 87px); }
.project-figure img, .materials-figure img { width: 100%; aspect-ratio: 1.35; height: auto; background: #c2b5a4; object-fit: cover; }
.wardrobe img { object-position: 50% 58%; }
.kitchen img { aspect-ratio: 1.28; }
.project-figure figcaption, .materials-figure figcaption { min-height: 35px; border-bottom: 1px solid var(--line); }
.project-figure figcaption:not(:has(a)) { display: flex; align-items: center; }
.project-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 18px; padding-block: 15px; }
.project-copy h3 { margin-bottom: 7px; font-size: clamp(34px, 3.8vw, 49px); letter-spacing: -.04em; }
.project-copy p { max-width: 44ch; color: var(--muted); font-size: 15px; }
.project-links { display: flex; flex-direction: column; }

.materials { background: var(--stone); padding-block: clamp(48px, 6.2vw, 86px); }
.materials-inner { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; gap: clamp(23px, 6vw, 84px); }
.materials-figure img { aspect-ratio: 1.86; object-position: 50% 52%; }
.materials-copy h2 { max-width: 14ch; }
.materials-copy > p:not(.eyebrow) { max-width: 35ch; margin-top: 15px; color: var(--muted); }

.process .section-intro { margin-bottom: 28px; }
.process h2 { max-width: 15ch; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 75px); list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: clamp(12px, 2vw, 26px); min-width: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.step-number { flex: none; min-width: 2.15ch; color: var(--brown); font: 400 clamp(28px, 4vw, 49px)/1 var(--serif); letter-spacing: -.055em; }
.steps h3 { margin-bottom: 6px; font-size: clamp(25px, 2.7vw, 34px); letter-spacing: -.036em; }
.steps p { max-width: 42ch; color: var(--muted); font-size: 15px; }

.estimate { padding-block: clamp(57px, 7.5vw, 106px); background: var(--dark); color: #fcf7ef; }
.estimate-inner { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: start; gap: clamp(30px, 7vw, 98px); }
.estimate-copy > .eyebrow { color: #e5d9c4; }
.estimate-copy .index { color: #efc995; }
.estimate-copy h2 { max-width: 12ch; }
.estimate-copy > p:not(.eyebrow) { max-width: 35ch; margin-top: 16px; color: #e5d9c4; }
.estimate-note { display: flex; align-items: center; gap: 12px; width: fit-content; margin-top: 24px; padding-top: 13px; border-top: 1px solid #798072; color: #e5d9c4; font-size: 14px; }
.estimate-note p { max-width: 29ch; }
.estimate-note svg { flex: none; color: #efc995; }

.estimate-form { min-width: 0; padding: clamp(19px, 3vw, 40px); background: var(--light); color: var(--ink); }
.form-header { margin-bottom: 19px; }
.form-header h3 { font-size: clamp(30px, 3.25vw, 44px); letter-spacing: -.035em; }
.form-header p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
.form-grid label { display: block; min-width: 0; font-size: 13px; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
.required { color: var(--brown); }
input, textarea, select { width: 100%; min-width: 0; margin-top: 4px; padding: 9px 10px; min-height: 46px; border: 1px solid #9d8f7e; border-radius: 0; background: #fffdfa; color: var(--ink); font-size: 16px; font-weight: 400; }
textarea { display: block; resize: vertical; }
input::placeholder, textarea::placeholder { color: #695e52; font-size: 14px; }
.message-preview { margin-block: 4px 6px; color: var(--muted); font-size: 13px; }
.message-preview summary { width: fit-content; min-height: 44px; padding-block: 11px; color: var(--brown); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.message-preview p { padding: 10px 12px; border-left: 2px solid #9c8064; background: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; }
.form-button { width: 100%; }
.form-note { margin-top: 8px; color: var(--muted); font-size: 13px; }

.site-footer { padding-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr .93fr 1.15fr; gap: 24px 30px; padding-bottom: 29px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-grid p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.footer-grid .eyebrow { margin-bottom: 4px; }
.phone { white-space: nowrap; }
.footer-grid a:not(.brand) { display: inline-flex; align-items: center; gap: 5px; min-height: 33px; color: var(--brown); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-end { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-end a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-underline-offset: 3px; }

@media (max-width: 1120px) {
  .wrap { width: calc(100% - 72px); }
  .project-copy { grid-template-columns: minmax(0, 1fr); }
  .project-links { flex-flow: row wrap; gap: 0 15px; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 26px; padding-top: 28px; }
  .hero-copy { padding-block: 12px 20px; }
  h1 { font-size: clamp(47px, 6.5vw, 63px); }
  .hero-figure img { height: clamp(372px, 48vw, 480px); }
  .estimate-inner { gap: 24px; }
  .footer-grid { grid-template-columns: .76fr 1.07fr 1.17fr; gap: 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding-top: 10px; }
  .header-inner .brand { grid-column: 1 / -1; }
  .brand { font-size: 25px; }
  .brand img { width: 34px; height: 34px; }
  .main-nav { grid-row: 2; grid-column: 1; justify-content: space-between; gap: 7px; border-top: 1px solid var(--line); }
  .main-nav a { font-size: 13px; }
  .header-cta { grid-row: 2; grid-column: 2; min-height: 44px; gap: 4px; padding-inline: 8px; font-size: 12px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 24px 32px; }
  .hero-copy { padding: 0; }
  h1 { margin-block: 12px 15px; font-size: clamp(38px, 11.3vw, 61px); }
  .hero-actions { gap: 5px 12px; margin-top: 17px; }
  .hero-actions .button { min-height: 48px; padding-inline: 10px; gap: 7px; }
  .hero-actions .text-link { font-size: 13px; gap: 4px; }
  .hero-figure img { height: auto; aspect-ratio: 1.18; object-position: 50% 62%; }
  .section { padding-block: 48px; }
  .section-intro { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .section-intro > .text-link { margin-top: -4px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kitchen { margin: 0; }
  .project-copy { padding-block: 12px 7px; gap: 0; }
  .materials-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .materials-copy { grid-row: 1; }
  .materials-copy h2 { max-width: none; }
  .materials-copy > p:not(.eyebrow) { margin-top: 9px; }
  .process .section-intro { margin-bottom: 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding-block: 14px; }
  .steps li:nth-last-child(2) { border-bottom: 0; }
  .estimate-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .estimate-note { margin-top: 13px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 360px) {
  .main-nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
