:root {
  --paper: #ffffff;
  --tint: #f4f6f1;
  --ink: #111b2e;
  --muted: #55607a;
  --sage: #4f7138;
  --sage-soft: #6c8f50;
  --line: #dde2d8;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 72rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; background: var(--paper); }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--sage); text-decoration: none; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--sage-soft); outline-offset: 3px; }
img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem max(1.25rem, calc((100vw - var(--wrap)) / 2)); background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; font-size: 1.25rem; letter-spacing: .01em; }
.brand img { display: block; width: 2.5rem; height: 2.5rem; mix-blend-mode: multiply; filter: contrast(1.1) brightness(1.06); }
.bar nav { display: flex; gap: 1.6rem; }
.bar nav a { color: var(--muted); font-size: .95rem; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.bar nav a:hover { color: var(--ink); border-bottom-color: var(--sage-soft); }

/* shared */
.eyebrow { margin: 0 0 .8rem; color: var(--sage); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.block { padding: 5rem max(1.25rem, calc((100vw - var(--wrap)) / 2)); }
.block.tint { background: var(--tint); }
.block-head { max-width: 42rem; margin-bottom: 2.6rem; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
.sub { color: var(--muted); font-size: 1.1rem; margin: 1rem 0 0; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem;
  padding: 5rem max(1.25rem, calc((100vw - var(--wrap)) / 2)) 4rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34rem; margin: 1.4rem 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }
.btn { display: inline-block; padding: .8rem 1.5rem; background: var(--ink); color: #fff; border: 1px solid var(--ink); font-weight: 500;
  border-radius: 2px; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--sage); border-color: var(--sage); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: transparent; color: var(--sage); border-color: var(--sage); }
.hero-art img { display: block; width: 100%; max-width: 30rem; margin-left: auto; mix-blend-mode: multiply; filter: contrast(1.1) brightness(1.06); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-art { order: -1; } .hero-art img { max-width: 14rem; margin: 0; }
  .bar nav { gap: .9rem; }
}
@media (max-width: 520px) {
  .bar { padding-inline: 1rem; } .brand { font-size: 1.05rem; } .brand img { width: 2rem; height: 2rem; }
  .bar nav { gap: .7rem; } .bar nav a { font-size: .85rem; }
}

/* services */
.services { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); background: var(--line); border: 1px solid var(--line); }
.services article { background: var(--paper); padding: 2rem 1.7rem; }
.services svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: var(--sage); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.1rem; }
.services p { margin: .6rem 0 0; color: var(--muted); }

/* approach */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.steps li { counter-increment: s; padding-top: 1.2rem; border-top: 2px solid var(--sage-soft); }
.steps li::before { content: "0" counter(s); display: block; color: var(--sage); font-weight: 600; font-size: .85rem; letter-spacing: .12em; margin-bottom: .6rem; }
.steps p { margin: .6rem 0 0; color: var(--muted); }

/* projects */
.projects { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.project { display: flex; flex-direction: column; padding: 1.8rem; border: 1px solid var(--line); color: inherit; background: var(--paper);
  transition: border-color .25s, box-shadow .25s, transform .25s; }
.project:hover, .project:focus-visible { border-color: var(--sage-soft); box-shadow: 0 10px 30px -18px rgba(17, 27, 46, .35); transform: translateY(-2px); }
.project .kind { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--sage); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.badge { background: var(--tint); color: var(--muted); border: 1px solid var(--line); padding: .05rem .55rem; border-radius: 999px; letter-spacing: .08em; }
.project h3 { margin: .9rem 0 .6rem; font-size: 1.45rem; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 600; letter-spacing: -.02em; }
.project p { margin: 0; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 0; padding: 0; }
.tags li { font-size: .78rem; color: var(--ink); background: var(--tint); padding: .15rem .6rem; border-radius: 2px; }
.more { margin-top: auto; padding-top: 1.4rem; font-weight: 500; font-size: .95rem; }
.empty { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 2.5rem max(1.25rem, calc((100vw - var(--wrap)) / 2)); background: var(--tint); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.foot p { margin: 0; color: var(--muted); font-size: .92rem; }
.foot .brand { font-size: 1.1rem; }
.foot .brand img { width: 2rem; height: 2rem; }
