:root {
  --ink: #172326;
  --muted: #526365;
  --paper: #faf9f5;
  --line: #d5e0da;
  --surface: #fffefa;
  --mist: #eef4ef;
  --orange: #a33f18;
  --teal: #286b5d;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #227f70; outline-offset: 5px; }
.wrap { width: min(1250px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; padding: 10px 15px; background: #ffddc1; transform: translateY(-160%); z-index: 10; }
.skip:focus { transform: translateY(0); }
.header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; font-weight: 750; letter-spacing: -.055em; font-size: 25px; }
.brand span { color: var(--orange); margin-left: -9px; }
.header nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 3vw, 44px); color: var(--muted); font-size: 15px; }
.header nav a:hover, .header nav [aria-current] { color: var(--orange); }
.header-phone { color: var(--orange); font-weight: 650; white-space: nowrap; }
.hero { background: radial-gradient(ellipse at 78% 38%, #e4efe9, transparent 68%), linear-gradient(115deg, #fff9ef, var(--paper)); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding-block: 76px 82px; align-items: center; }
.label { display: flex; align-items: center; gap: 10px; color: #45625b; font: 650 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .065em; }
.label span { width: 18px; height: 2px; background: #b95520; flex-shrink: 0; }
.hero .label, .contact .label { color: var(--teal); }
h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
h1 { margin-block: 24px 22px; font-size: clamp(45px, 5.1vw, 79px); letter-spacing: -.068em; }
.hero h1 span { color: var(--orange); }
.intro { font-size: clamp(18px, 1.75vw, 22px); color: var(--muted); max-width: 515px; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; gap: 15px; padding: 10px 19px; border: 1px solid transparent; border-radius: 5px; font-weight: 700; }
.button.primary { background: #ffd9ba; border-color: #ae542a; color: #65290f; }
.button.primary:hover { background: #ffc89e; }
.button.outline { background: var(--surface); border-color: #788d83; color: var(--ink); }
.button.outline:hover { border-color: var(--orange); color: var(--orange); }
.drawing { border: 1px solid #b6c9bf; background: #f5faf6; box-shadow: 0 12px 32px #36574912; border-radius: 6px; overflow: hidden; min-width: 0; }
.drawing img { width: 100%; height: auto; }
.drawing figcaption, .legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding: 13px 16px; font: 12px/1.4 var(--mono); color: #3c5750; background: #fcfffc; }
.drawing figcaption { border-bottom: 1px solid #c5d7cc; }
.legend { border-top: 1px solid #c5d7cc; justify-content: flex-start; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 13px; height: 2px; background: var(--orange); }
.legend span + span i { background: var(--teal); }
.proof { background: #edf2eb; }
.proof-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-inner div { display: grid; align-content: start; gap: 4px; padding: 21px 16px 23px; border-left: 1px solid #cdd7ce; }
.proof-inner div:last-child { border-right: 1px solid #cdd7ce; }
.proof strong { font-size: clamp(17px, 2.1vw, 24px); letter-spacing: -.035em; }
.proof span { font-size: 14px; color: #415654; }
.section { padding-block: 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-block: 14px 30px; }
h2 { font-size: clamp(36px, 4.3vw, 63px); letter-spacing: -.061em; }
.section-heading > p, .process-note { max-width: 390px; color: var(--muted); font-size: 17px; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.services article { padding: 23px; }
.services article + article { border-left: 1px solid var(--line); }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 29px; color: var(--muted); font: 12px var(--mono); }
.service-top svg { width: 37px; height: 37px; color: #38716a; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-knobs { fill: var(--surface); }
h3 { font-size: clamp(20px, 2.1vw, 25px); letter-spacing: -.04em; }
.services p, .project p, .steps p { margin-top: 9px; color: var(--muted); }
.portfolio { background: var(--mist); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid #d4dcd4; border-radius: 6px; }
a.project:hover { border-color: #418479; }
.project-image { display: grid; place-items: center; background: #e3eee8; aspect-ratio: 1.75; overflow: hidden; padding: 12px; }
.project-image img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; border-radius: 3px; }
.project-text { padding: 18px 20px 22px; }
.project .tag { margin: 0 0 10px; color: #3a665c; font: 650 12px/1.4 var(--mono); text-transform: uppercase; }
.project h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.project h3 span { color: #346e62; font-size: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #235c51; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; margin-top: 22px; }
.text-link:hover { color: #9b431a; }
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.process h2 { margin: 14px 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: stage; }
.steps li { counter-increment: stage; display: flex; align-items: baseline; gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(stage); color: #9c421b; font: 700 14px var(--mono); }
.contact { background: var(--mist); }
.contact-inner { padding-block: 62px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.contact h2 { margin: 13px 0; }
.contact p { max-width: 515px; color: var(--muted); }
.contact .button { margin-top: 24px; }
address { display: grid; gap: 4px; font-style: normal; border-left: 1px solid #c2d2ca; padding-left: 32px; }
address > span { color: var(--teal); font: 12px var(--mono); }
address a { font-size: clamp(18px, 2vw, 25px); font-weight: 650; overflow-wrap: anywhere; }
address a:hover { color: var(--orange); }
address a + span, address p { margin-top: 12px; }
footer { background: var(--surface); color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 76px; }
.footer-inner .brand { font-size: 21px; }
.footer-inner > a:last-child:hover { color: var(--orange); }
.gallery-hero { background: var(--mist); padding-block: 58px; }
.gallery-hero .label { color: var(--teal); }
.gallery-hero h1 { margin-block: 15px 12px; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery .project { scroll-margin-top: 18px; }
.gallery .project:target { outline: 3px solid #49877b; outline-offset: 4px; }
.gallery .project-image { aspect-ratio: 1.7; }
.gallery .project-image img { object-fit: contain; }
.gallery .project-image:hover { background: #cfded7; }
.gallery .text-link { margin-top: 12px; }
.gallery-intro { padding-block: 42px 52px; }
@media (max-width: 1060px) {
  .wrap { width: calc(100% - 64px); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services article:nth-child(3) { border-left: 0; }
  .services article:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 53px 40px; gap: 34px; }
  .drawing { max-width: 620px; width: 100%; }
  .section { padding-block: 56px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .proof-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-inner div:nth-child(2) { border-right: 1px solid #cdd7ce; }
  .proof-inner div:nth-child(n+3) { border-top: 1px solid #cdd7ce; }
  .process, .contact-inner { gap: 30px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 9px 16px; padding-block: 12px; }
  .header nav { order: 1; flex-basis: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 9px; }
  .header-phone { font-size: 14px; }
  h1 { font-size: clamp(34px, 10.6vw, 55px); }
  .hero-inner { padding-top: 39px; }
  .drawing figcaption, .legend { font-size: 10px; }
  .proof-inner div { padding: 14px 10px; }
  .proof span { font-size: 13px; }
  .section { padding-block: 43px; }
  .services article { padding: 15px 12px; }
  .services h3 { font-size: 18px; overflow-wrap: anywhere; }
  .services p { font-size: 14px; }
  .service-top { margin-bottom: 17px; }
  .service-top svg { width: 27px; height: 27px; }
  .projects, .process, .contact-inner { grid-template-columns: 1fr; }
  .contact-inner { padding-block: 42px; }
  address { border-left: 0; padding-left: 0; border-top: 1px solid #c2d2ca; padding-top: 24px; }
  .footer-inner { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
  .footer-inner p { order: 1; width: 100%; }
  .gallery-hero { padding-block: 36px; }
}
