:root {
  color-scheme: light;
  --ink: #182c27;
  --forest: #173f35;
  --forest-dark: #0e3028;
  --cream: #f5f0e6;
  --paper: #fffdf8;
  --ochre: #d99a3e;
  --ochre-light: #edc887;
  --line: rgba(24, 44, 39, 0.16);
  --muted: #52635e;
  --shadow: 0 22px 60px rgba(20, 46, 39, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: var(--header-offset, 8rem); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: white;
  color: var(--forest);
  font-weight: 700;
}
.skip-link:focus { transform: none; }

.shell { width: var(--shell); margin-inline: auto; }

.demo-bar {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  background: #f1d8a9;
  color: #3a2913;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
}
.demo-bar strong { letter-spacing: 0.01em; }
.demo-bar a { color: inherit; font-weight: 800; text-underline-offset: 3px; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #7c5015; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 248, 0.93);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 26px rgba(24, 44, 39, 0.06); }
.header-inner { display: flex; flex-wrap: wrap; width: min(1040px, calc(100% - 64px)); min-height: 100px; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark span { color: var(--ochre); font-size: 0.72em; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: var(--serif); font-size: 1.16rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.site-header .brand { gap: 14px; min-width: min-content; }
.site-header .brand-mark { width: 64px; height: 64px; font-size: 1.2rem; }
.site-header .brand-copy strong { font-size: 1.65rem; }
.site-header .brand-copy small { font-size: 0.8rem; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.site-nav a { position: relative; font-size: 1rem; font-weight: 650; text-decoration: none; }
.site-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--forest);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: 11px 18px; border-radius: 3px; background: var(--forest); color: white; }
.menu-button { display: none; min-height: 52px; flex-shrink: 0; align-items: center; justify-content: center; gap: 12px; margin-left: auto; padding: 10px 0 10px 10px; border: 0; background: transparent; color: var(--ink); font-size: 1rem; font-weight: 750; cursor: pointer; }
.menu-icon { display: grid; width: 36px; gap: 7px; }
.menu-icon span { display: block; height: 3px; background: var(--ink); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(66px, 8vw, 112px) 0 clamp(70px, 9vw, 128px);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(24,44,39,0.055) 50%, transparent 50.1%),
    linear-gradient(rgba(24,44,39,0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 96px;
}
.hero::before {
  position: absolute;
  top: 7%;
  right: -110px;
  width: 380px;
  height: 380px;
  border: 90px solid rgba(217, 154, 62, 0.10);
  border-radius: 50%;
  content: "";
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr 0.94fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.eyebrow { margin: 0 0 14px; color: #9b641c; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(3.3rem, 6.2vw, 6.25rem); letter-spacing: -0.052em; }
h2 { margin-bottom: 20px; font-size: clamp(2.3rem, 4vw, 4.2rem); letter-spacing: -0.035em; }
h3 { margin-bottom: 10px; font-size: 1.55rem; letter-spacing: -0.02em; }
.hero-lede { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  padding: 14px 22px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-dark); }
.text-link { font-weight: 750; text-decoration: none; }
.text-link span { color: var(--ochre); }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; color: var(--muted); font-size: 0.9rem; list-style: none; }
.trust-list li::before { margin-right: 8px; color: var(--ochre); content: "✓"; font-weight: 900; }
.concept-photo-note { max-width: 560px; margin: 24px 0 0; padding-left: 16px; border-left: 2px solid var(--ochre); color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.concept-photo-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 750; }

.hero-panel { position: relative; padding: 24px 22px 42px; }
.hero-panel::before { position: absolute; inset: 0 50px 70px 0; border: 1px solid rgba(24,44,39,0.2); content: ""; transform: rotate(-3deg); }
.project-card { position: relative; z-index: 1; padding: 28px; background: var(--forest); color: white; box-shadow: var(--shadow); }
.project-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.8); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.11em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 7px; color: #dbefd6; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #86c778; }
.room-plan { margin: 24px 0; }
.house-plan { width: 100%; height: auto; overflow: visible; }
.plan-floors { fill: rgba(255,255,255,0.045); }
.plan-walls, .plan-doors, .plan-windows, .plan-patio { fill: none; }
.plan-walls { stroke: #d6e4da; stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; }
.plan-doors { stroke: #9cb8a9; stroke-width: 1.3; }
.plan-windows { stroke: var(--ochre-light); stroke-width: 2; }
.plan-patio { stroke: #9cb8a9; stroke-width: 1.3; stroke-dasharray: 4 4; }
.plan-labels { fill: #d6e4da; font-family: var(--sans); font-size: 18px; font-weight: 500; text-anchor: middle; }
.plan-labels .plan-hall-label { font-size: 16px; }
.room-plan figcaption { margin-top: 8px; color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.5; }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-meta div { display: grid; }
.project-meta small { color: rgba(255,255,255,0.6); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.project-meta strong { margin-top: 5px; font-family: var(--serif); font-size: 1.06rem; }
.craft-note { position: relative; z-index: 2; display: flex; width: 82%; align-items: flex-start; gap: 14px; margin: -14px 0 0 auto; padding: 20px; background: var(--ochre-light); box-shadow: 0 15px 35px rgba(66,45,15,0.15); }
.craft-note .number { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.craft-note p { margin: 0; font-size: 0.84rem; line-height: 1.5; }

.service-strip { background: var(--cream); border-block: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; align-items: center; }
.strip-grid p { margin: 0; padding: 26px; border-left: 1px solid var(--line); line-height: 1.4; }
.strip-grid p:first-child { padding-left: 0; border-left: 0; font-family: var(--serif); font-size: 1.1rem; }
.strip-grid span { margin-right: 12px; color: #9b641c; font-family: var(--serif); }

.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); align-items: end; gap: clamp(40px, 8vw, 100px); margin-bottom: 55px; }
.section-heading h2 { max-width: 760px; margin-bottom: 0; }
.section-heading > p { max-width: 520px; margin: 0 0 7px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { display: flex; min-height: 360px; flex-direction: column; justify-content: space-between; gap: 36px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.service-card-featured { background: var(--forest); color: white; }
.service-card:not(.service-card-featured) p { color: var(--muted); }
.service-card p { margin: 0; }
.service-card a { width: fit-content; font-weight: 750; text-decoration: none; }
.service-card a span { margin-left: 6px; color: var(--ochre); }
.card-number { color: var(--ochre); font-family: var(--serif); font-size: 1.15rem; }

.process { background: var(--forest); color: white; }
.process-grid { display: grid; grid-template-columns: 0.83fr 1.17fr; gap: clamp(60px, 10vw, 140px); }
.process-intro { position: sticky; top: 130px; align-self: start; }
.process-intro h2 { max-width: 500px; }
.process-intro > p:last-child { max-width: 450px; color: rgba(255,255,255,0.67); }
.steps { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.2); list-style: none; }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 25px; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.steps li > span { color: var(--ochre-light); font-family: var(--serif); font-size: 1.25rem; }
.steps h3 { margin-bottom: 8px; }
.steps p { max-width: 540px; margin: 0; color: rgba(255,255,255,0.67); }

.about { position: relative; overflow: hidden; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: clamp(60px, 10vw, 140px); }
.about-statement { position: relative; isolation: isolate; padding: 32px 0; }
.oversized-mark { display: block; position: absolute; z-index: -1; top: 50%; left: -0.06em; transform: translateY(-50%); color: rgba(217,154,62,0.13); font-family: var(--serif); font-size: clamp(8rem, 20vw, 18rem); letter-spacing: -0.1em; line-height: 1; white-space: nowrap; pointer-events: none; }
.about-statement > *:not(.oversized-mark) { position: relative; }
.about-statement .eyebrow { margin: 0 0 12px; }
.about-statement h2 { margin-bottom: 0; }
.about-copy > p { color: var(--muted); }
.area-card { display: grid; margin-top: 32px; padding: 24px; border-left: 4px solid var(--ochre); background: var(--paper); box-shadow: 0 16px 35px rgba(24,44,39,0.08); }
.area-card small { color: #9b641c; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.area-card strong { margin: 5px 0 2px; font-family: var(--serif); font-size: 1.2rem; }
.area-card span { color: var(--muted); font-size: 0.85rem; }

.estimate { background: var(--paper); }
.estimate-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(55px, 9vw, 130px); }
.estimate-grid > div > p:not(.eyebrow) { max-width: 480px; color: var(--muted); }
.direct-contact { display: grid; margin-top: 38px; }
.direct-contact small { margin-bottom: 8px; color: #9b641c; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.direct-contact a { width: fit-content; margin-bottom: 2px; font-family: var(--serif); font-size: 1.1rem; text-decoration: none; }
.estimate-form { display: grid; gap: 20px; padding: clamp(26px, 5vw, 48px); background: var(--cream); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-size: 0.82rem; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid rgba(24,44,39,0.32); border-radius: 2px; background: var(--paper); color: var(--ink); padding: 13px 14px; font-size: 1rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(217,154,62,0.55); outline-offset: 3px; }
.estimate-form .button { justify-self: start; margin-top: 2px; }
.form-note, .form-status { margin: -8px 0 0; color: var(--muted); font-size: 0.8rem; }
.form-status:not(:empty) { margin-top: 0; padding: 12px 14px; border-left: 3px solid var(--ochre); background: var(--paper); color: var(--forest); font-weight: 700; }

.site-footer { padding: 38px 0; background: #0b2922; color: white; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; }
.brand-footer .brand-mark { border-color: rgba(255,255,255,0.6); }
.brand-footer .brand-copy small, .site-footer p { color: rgba(255,255,255,0.62); }
.site-footer p { margin: 0; font-size: 0.82rem; }
.site-footer > .shell > a { font-weight: 750; text-decoration: none; }
.process .eyebrow { color: var(--ochre-light); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline-color: var(--forest); }
.process a:focus-visible, .site-footer a:focus-visible, .service-card-featured a:focus-visible { outline-color: var(--ochre-light); }

@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: 100%; right: 20px; left: 20px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 18px; border-bottom: 1px solid var(--line); }
  .nav-cta { border-radius: 0; }
  .menu-button { display: inline-flex; }
  .hero-grid, .process-grid, .about-grid, .estimate-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-panel { max-width: 620px; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid p:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .strip-grid p:nth-child(4) { border-top: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .process-intro { position: static; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 600px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .demo-bar { align-items: flex-start; gap: 7px; padding-inline: 14px; flex-wrap: wrap; }
  .demo-bar > span:last-child { flex-basis: 100%; }
  .header-inner { width: calc(100% - 40px); min-height: 90px; gap: 8px 12px; padding-block: 10px; }
  .site-header .brand { flex: 1 1 min-content; gap: 10px; }
  .site-header .brand-mark { width: 52px; height: 52px; font-size: 1.05rem; }
  .site-header .brand-copy strong { font-size: 1.35rem; }
  .site-header .brand-copy small { font-size: 0.75rem; }
  .menu-icon { width: 30px; }
  .hero { padding-top: 60px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { padding: 5px 0; }
  .hero-panel { padding-inline: 0; }
  .hero-panel::before { right: 20px; }
  .project-card { padding: 20px; }
  .craft-note { width: 92%; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid p { border-top: 1px solid var(--line); border-left: 0; padding-inline: 0; }
  .strip-grid p:first-child { border-top: 0; padding-top: 24px; }
  .section { padding: 78px 0; }
  .service-card { min-height: 275px; padding: 26px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .estimate-form { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer p { grid-column: auto; grid-row: auto; }
}

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

@media (prefers-contrast: more) {
  :root { --line: rgba(24,44,39,0.5); --muted: #2f403b; }
}
