:root {
  color-scheme: light;
  --forest: #102a23;
  --deep: #0b211b;
  --lime: #dafa77;
  --paper: #f8f8f0;
  --ink: #152d25;
  --muted: #46594f;
  --line: #cbd2c4;
  --body: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-bottom: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
section[id], main[id] { scroll-margin-top: 1rem; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a, select { touch-action: manipulation; -webkit-tap-highlight-color: #a8c75d55; }
:focus-visible { outline: 3px solid #507917; outline-offset: 4px; }
.header :focus-visible, .hero :focus-visible, .footer :focus-visible, .quote :focus-visible { outline-color: var(--lime); }
.quote form :focus-visible { outline-color: #507917; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; font-family: var(--display); font-weight: 400; letter-spacing: -.055em; line-height: .99; }
h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
h3 { font-size: 1.23rem; line-height: 1.3; letter-spacing: -.025em; }
img { display: block; max-width: 100%; }
.wrap { width: min(100%, 1360px); margin-inline: auto; padding-inline: max(6%, env(safe-area-inset-left), env(safe-area-inset-right)); }
.skip { position: fixed; z-index: 9; top: .6rem; left: .75rem; padding: .6rem 1rem; background: var(--lime); color: var(--deep); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.header, .footer { background: var(--deep); color: #f8fbef; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; line-height: .95; font-size: 1.84rem; font-weight: 650; letter-spacing: -.065em; }
.brand small { display: block; margin-top: .35rem; font-size: .54rem; font-weight: 750; letter-spacing: .24em; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.7rem); }
nav a, .back { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; }
nav a:hover, .back:hover, .brand:hover { color: var(--lime); }
.button, .menu { min-height: 48px; display: inline-flex; gap: .85rem; align-items: center; justify-content: center; border: 1px solid transparent; padding: .65rem 1.15rem; border-radius: 5px; font-weight: 680; font-size: .88rem; transition: background-color .18s, color .18s, border-color .18s; }
.header-cta { border-color: #718373; color: var(--lime); }
.header-cta:hover, .subtle:hover, .menu:hover { color: var(--deep); background: var(--lime); border-color: var(--lime); }
.menu, .subtle { color: #fff; background: transparent; border-color: #c1d4be88; }
.primary { background: var(--lime); color: var(--deep); }
.primary:hover { background: #eef9a8; border-color: #617d28; }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: end; min-height: clamp(560px, 70svh, 770px); overflow: hidden; color: #fff; background: #1d392b; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: 50% 54%; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(90deg, #081c16ee 0%, #081c16cc 31%, #081c1633 70%, transparent), linear-gradient(0deg, #081c16d9, transparent 34%); }
.hero-inner { padding-top: clamp(3rem, 10vh, 8rem); padding-bottom: clamp(3rem, 8vh, 6rem); animation: arrive .55s ease-out both; }
@keyframes arrive { from { opacity: .75; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.overline { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.15rem; color: #315744; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 780; }
.overline span { width: 17px; height: 2px; background: currentColor; }
.hero .overline, .quote .overline { color: var(--lime); }
.hero h1 { font-size: clamp(3.6rem, 9.5vw, 8.8rem); letter-spacing: -.064em; line-height: .86; }
.hero h1 em { color: var(--lime); font-weight: 400; }
.hero-copy { max-width: 38ch; margin: 1.6rem 0; color: #f1f5ec; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-foot { border-top: 1px solid #e0f0da65; }
.hero-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.2rem; padding-block: .9rem; color: #f8fbef; font-size: .68rem; letter-spacing: .11em; font-weight: 650; }
.hero-foot b { color: var(--lime); margin-inline: .2rem; }
.section { padding-block: clamp(3.6rem, 8vw, 7.2rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2.45rem; }
.section-head > p { max-width: 33ch; color: var(--muted); padding-bottom: .2rem; }
.solutions, .projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.solutions article { border-top: 1px solid #6c927d; background: #edf0e4; padding: clamp(1rem, 2.5vw, 2rem); display: flex; flex-direction: column; align-items: start; }
.icon { width: 33px; height: 33px; color: #36664e; margin-bottom: 1.2rem; }
.solutions p, .project-body > p:last-child, .process li p { color: var(--muted); margin-top: .55rem; }
.text-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: #23563d; padding: 0; border: 0; background: none; text-align: left; font-weight: 710; font-size: .88rem; }
.solutions .text-link { margin-top: auto; padding-top: .65rem; }
.text-link:hover { color: #112d22; text-decoration: underline; text-underline-offset: .25em; }
.portfolio { background: #e6ebdf; }
.projects article { background: var(--paper); }
.projects img { width: 100%; height: auto; aspect-ratio: 1.33; object-fit: cover; }
.project-body { padding: 1.3rem 1.4rem 1.6rem; }
.tag { font-size: .69rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 740; color: #315744; margin-bottom: .7rem; }
.process, .quote-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 6vw, 6rem); }
.process ol { list-style: none; counter-reset: stages; margin: 0; padding: 0; }
.process li { counter-increment: stages; display: flex; gap: 1.25rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.process li::before { content: counter(stages, decimal-leading-zero); color: #315744; font-variant-numeric: tabular-nums; font-size: .9rem; font-weight: 760; }
.quote { background: var(--forest); color: #fff; }
.faq { background: #e6ebdf; }
.faq-list details { border-top: 1px solid #a7b6a5; }
.faq-list details:last-child { border-bottom: 1px solid #a7b6a5; }
.faq-list summary { padding: .9rem .35rem; min-height: 48px; cursor: pointer; font-weight: 700; }
.faq-list summary:hover { color: #23563d; text-decoration: underline; text-underline-offset: .2em; }
.faq-list details p { color: var(--muted); padding: 0 .35rem 1.2rem; }
.quote-grid > div > p:not(.overline) { max-width: 36ch; margin-block: 1.2rem 1.5rem; color: #e2eedf; }
.quote form { background: var(--paper); color: var(--ink); border-radius: 7px; padding: clamp(1rem, 4vw, 2.5rem); min-width: 0; }
.form-note { color: var(--muted); margin-top: .45rem; font-size: .9rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; margin: 1.2rem 0; }
label { display: block; margin-bottom: .25rem; font-size: .85rem; font-weight: 700; }
input, select { width: 100%; min-height: 48px; padding: .52rem .65rem; background: #fff; color: var(--ink); border: 1px solid #778578; border-radius: 4px; }
[aria-invalid="true"] { border-color: #a12923; }
.error { color: #962e27; font-size: .81rem; }
.error:not(:empty) { margin-top: .3rem; }
#feedback:not(:empty) { border-left: 3px solid #527241; background: #e9f0df; margin-top: 1rem; padding: .8rem; overflow-wrap: anywhere; }
.footer p { color: #c9d8c9; font-size: .85rem; }
.footer-inner { padding-block: 1.3rem; flex-wrap: wrap; }
.footer { padding-bottom: 4rem; }
.floating-chat { position: fixed; z-index: 4; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); background: var(--forest); color: var(--lime); border-color: var(--lime); box-shadow: 0 4px 18px #081c1640; }
.floating-chat:hover { background: var(--lime); color: var(--deep); border-color: var(--forest); }
.back span { margin-left: .5rem; }
dialog { width: min(92%, 440px); padding: 0; max-height: 85dvh; border: 0; border-radius: 10px; color: var(--ink); background: #edf2e7; overscroll-behavior: contain; }
dialog::backdrop { background: #061a13b8; }
.chat-top { display: flex; align-items: center; justify-content: space-between; background: var(--forest); color: white; padding: .8rem 1rem; }
.chat-top h2 { font: 700 1.05rem/1.3 var(--body); letter-spacing: 0; }
.chat-top button { width: 44px; height: 44px; color: white; background: transparent; border: 0; border-radius: 4px; font-size: 1.5rem; }
.chat-top button:hover { background: #375b4a; }
.chat-top button:focus-visible { outline-color: var(--lime); }
.chat-content { padding: 1rem; }
.message { background: #d6ebc7; padding: .85rem; margin: 1rem 0 .2rem; border-radius: 7px 7px 0 7px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: .6rem; padding-block: .75rem; min-height: 68px; }
  .header-cta { display: none; }
  nav { width: 100%; order: 2; flex-wrap: wrap; }
  .hero { min-height: 560px; }
  .hero-image { object-position: 63% 50%; }
  .hero::after { background: linear-gradient(90deg, #081c16e8, #081c1677), linear-gradient(0deg, #081c16c9, transparent 55%); }
  .section-head { flex-direction: column; align-items: start; }
  .process, .quote-grid { grid-template-columns: 1fr; }
  .solutions, .projects { grid-template-columns: 1fr; }
  .projects img { aspect-ratio: 1.55; }
}
@media (max-width: 430px) {
  .fields { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.35rem, 13vw, 4.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
