:root {
  --ink: #171b19;
  --ink-soft: #4d534f;
  --paper: #f5f3ee;
  --white: #ffffff;
  --line: #d8d4cb;
  --accent: #9d3d27;
  --accent-dark: #782d1d;
  --moss: #34443d;
  --max: 1180px;
  --shadow: 0 18px 48px rgba(23, 27, 25, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f0a38f; outline-offset: 4px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  transform: translateY(-160%); padding: .65rem 1rem;
  background: var(--ink); color: #fff;
}
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2.5rem), 780px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  margin: 0 0 .8rem; color: var(--accent-dark); font-size: .78rem;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 700; line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.9rem); max-width: 16ch; }
h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); max-width: 19ch; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
p { margin: 0 0 1rem; }
.lead { max-width: 62ch; color: var(--ink-soft); font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.7; }
.small { font-size: .875rem; color: var(--ink-soft); }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .6rem;
  padding: .75rem 1.15rem; border: 1px solid var(--accent); border-radius: 2px;
  background: var(--accent); color: #fff; font-weight: 750; text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }
.text-link { color: var(--accent-dark); font-weight: 750; text-underline-offset: .25rem; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(23,27,25,.12); backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 160px; height: 76px; object-fit: contain; }
.nav-list { display: flex; align-items: center; gap: clamp(.75rem, 1.8vw, 1.7rem); margin: 0; padding: 0; list-style: none; }
.nav-list a { font-size: .94rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-color: var(--accent); }
.nav-list .nav-cta { padding: .65rem .85rem; color: #fff; background: var(--accent); border: 0; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .55rem; color: var(--ink); cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px; background: currentColor; }

main { overflow: hidden; }
.hero { width: min(calc(100% - 2.5rem), 1440px); margin-inline: auto; display: grid; grid-template-columns: 39% 61%; align-items: center; color: var(--ink); }
.hero-media { grid-column: 2; grid-row: 1; }
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.hero-content { grid-column: 1; grid-row: 1; padding: 2.5rem clamp(2rem, 4vw, 5rem) 2.5rem 0; }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero .lead { margin-top: 1.4rem; color: var(--ink-soft); max-width: 50ch; }

.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 1.25rem 1.1rem; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-weight: 700; font-size: 1.05rem; }
.trust-item span { color: var(--ink-soft); font-size: .88rem; }

.section { padding-block: clamp(3.5rem, 6.5vw, 6rem); }
.section.white { background: var(--white); }
.section.ink { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .lead { margin: 0; max-width: 48ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.wide-copy { grid-template-columns: .82fr 1.18fr; }
.image-frame { position: relative; }
.image-frame::before { content: ""; position: absolute; left: -1rem; bottom: -1rem; width: 46%; height: 52%; background: var(--accent); z-index: 0; }
.image-frame img { position: relative; z-index: 1; width: 100%; height: clamp(320px, 34vw, 470px); object-fit: cover; object-position: center 48%; }

.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 90px 1fr minmax(220px, 360px) 32px; align-items: center; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-row .num { color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.service-row p { margin: 0; color: var(--ink-soft); }
.service-row .arrow { color: var(--accent); font-size: 1.6rem; transition: transform .2s ease; }
.service-row:hover .arrow { transform: translateX(.35rem); }

.project-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 1.25rem; }
.project-tile { position: relative; overflow: hidden; min-height: 420px; color: #fff; text-decoration: none; background: var(--ink); }
.project-tile:nth-child(3) { grid-column: 1 / -1; min-height: 500px; }
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.project-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,9,.82), transparent 66%); }
.project-tile:hover img { transform: scale(1.025); }
.project-caption { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; z-index: 2; }
.project-caption span { font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; color: rgba(255,255,255,.72); }
.project-caption h3 { margin-top: .35rem; }

.process { counter-reset: steps; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.24); }
.process article { padding: 1.7rem 1.5rem 0 0; border-right: 1px solid rgba(255,255,255,.24); }
.process article + article { padding-left: 1.5rem; }
.process article:last-child { border-right: 0; }
.process article::before { counter-increment: steps; content: "0" counter(steps); display: block; margin-bottom: 1.7rem; color: #dc8e79; font-weight: 800; }
.process h3 { margin-bottom: .75rem; }
.process p { color: rgba(255,255,255,.68); }

.quote-block { border-left: 3px solid var(--accent); padding-left: 1.5rem; font-size: clamp(1.45rem, 2.7vw, 2.15rem); font-weight: 600; line-height: 1.4; }
.cta-band { background: var(--accent); color: #fff; }
.cta-band .eyebrow { color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: clamp(2.7rem, 5vw, 4rem); }
.cta-inner h2 { max-width: 24ch; font-size: clamp(1.9rem, 3vw, 3rem); }
.cta-inner .button { flex: 0 0 auto; background: #fff; color: var(--ink); border-color: #fff; }

.page-hero { padding-block: clamp(4.5rem, 8vw, 6.5rem); background: var(--moss); color: #fff; }
.page-hero .lead { margin-top: 1.4rem; color: rgba(255,255,255,.75); }
.page-hero.with-image { position: relative; min-height: 500px; display: grid; align-items: end; }
.page-hero.with-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.with-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,22,.86), rgba(20,24,22,.18)); }
.page-hero.with-image .container { position: relative; z-index: 1; padding-block: 4rem; }
.breadcrumbs { margin-bottom: 2rem; font-size: .86rem; color: rgba(255,255,255,.72); }
.breadcrumbs a { text-underline-offset: .2rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.prose h2 { margin: 3rem 0 1rem; font-size: clamp(1.9rem, 4vw, 3rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.25rem; }
.aside { position: sticky; top: 110px; padding: 1.5rem; background: var(--white); border-top: 4px solid var(--accent); box-shadow: var(--shadow); }
.aside h3 { margin-bottom: .75rem; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: .85rem; }
.gallery button { grid-column: span 4; min-height: 290px; padding: 0; border: 0; overflow: hidden; background: #ddd; cursor: zoom-in; }
.gallery button:nth-child(5n + 1), .gallery button:nth-child(5n + 4) { grid-column: span 8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.018); }
dialog { width: min(94vw, 1120px); max-height: 90vh; padding: 0; border: 0; background: #111; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10,12,11,.82); }
dialog img { width: 100%; max-height: 84vh; object-fit: contain; }
.dialog-close { position: absolute; top: .7rem; right: .7rem; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }

.phase-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.phase { position: relative; }
.phase img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.phase span { position: absolute; left: .75rem; bottom: .75rem; padding: .4rem .6rem; background: rgba(255,255,255,.92); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem .85rem; border: 1px solid #aaa79f; border-radius: 0; background: #fff; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input[type="file"] { padding: .6rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; }
.form-status { display: none; margin-top: 1rem; padding: .9rem 1rem; border-left: 4px solid var(--accent); background: #fff; }
.form-status.visible { display: block; }
.contact-note { margin: 0; padding: 1rem 1.2rem; background: #ebe7df; border-left: 3px solid var(--accent); }

.site-footer { background: var(--white); color: var(--ink); padding-top: 4.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3.5rem; }
.footer-brand img { width: 170px; height: 82px; object-fit: contain; }
.footer-brand p { max-width: 34ch; margin-top: 1rem; color: var(--ink-soft); }
.site-footer h3 { margin-bottom: 1rem; font: 800 .78rem/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .11em; color: var(--accent-dark); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: .45rem 0; }
.footer-links a { color: var(--ink-soft); text-underline-offset: .2rem; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 78px; padding: 1rem 1.25rem 1.4rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav-list { align-items: stretch; flex-direction: column; gap: .25rem; }
  .nav-list a { display: block; padding: .75rem .5rem; }
  .nav-list .nav-cta { text-align: center; padding: .8rem; }
  .hero { width: 100%; grid-template-columns: 1fr; }
  .hero-media { grid-column: 1; grid-row: 1; width: min(100%, 680px); margin-inline: auto; }
  .hero-content { grid-column: 1; grid-row: 2; width: min(calc(100% - 2.5rem), 680px); margin-inline: auto; padding: 2.5rem 0 3.5rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .split, .split.wide-copy, .content-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .process { grid-template-columns: 1fr 1fr; }
  .process article:nth-child(2) { border-right: 0; }
  .process article:nth-child(-n + 2) { padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.24); }
  .project-grid { grid-template-columns: 1fr; }
  .project-tile:nth-child(3) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(calc(100% - 2rem), var(--max)); }
  .brand img { width: 138px; height: 66px; }
  .hero-content { width: min(calc(100% - 2rem), 680px); padding-block: 2rem 3rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section-head, .cta-inner { align-items: flex-start; flex-direction: column; }
  .service-row { grid-template-columns: 42px 1fr 24px; }
  .service-row p { grid-column: 2 / -1; }
  .project-tile, .project-tile:nth-child(3) { min-height: 380px; }
  .process { grid-template-columns: 1fr; }
  .process article, .process article + article { padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); }
  .process article::before { margin-bottom: 1.3rem; }
  .phase-pair, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery button, .gallery button:nth-child(5n + 1), .gallery button:nth-child(5n + 4) { grid-column: auto; min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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