:root {
  --bg: #ffffff;
  --text: #16181d;
  --muted: #5f6570;
  --rule: #e2e4e8;
  --box: #f4f5f7;
  --accent: #0a66c2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --text: #eceef2;
    --muted: #a0a6b0;
    --rule: #2a2d33;
    --box: #17191d;
    --accent: #5aa9ff;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
h1, h2, h3, .brand { font-family: Montserrat, -apple-system, Helvetica, Arial, sans-serif; font-weight: 500; letter-spacing: -0.01em; }

header { border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 19px; }
.brand svg { width: 26px; height: 26px; fill: currentColor; }
nav a { white-space: nowrap; color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--text); }

.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 0 0 16px; }
.hero p { font-size: 20px; color: var(--muted); max-width: 640px; margin: 0; }

section.project { padding: 40px 0; border-top: 1px solid var(--rule); }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 6px; }
section.project h2 { font-size: 30px; margin: 0 0 12px; }
section.project p { max-width: 680px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.stats li { background: var(--box); border-radius: 12px; padding: 14px 16px; }
.stats b { display: block; font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 26px; font-weight: 600; }
.stats span { color: var(--muted); font-size: 14px; }
.links a { margin-right: 18px; }

.doc { max-width: 680px; padding: 40px 0 56px; }
.doc h1 { font-size: 34px; line-height: 1.2; margin: 0 0 4px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.box { background: var(--box); border-radius: 12px; padding: 16px; }
.box h2 { border: 0; margin-top: 0; padding-top: 0; }

footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; padding: 24px 0 40px; margin-top: 24px; }
footer a { color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 16px 0; }
.services > div { background: var(--box); border-radius: 12px; padding: 16px 18px; }
.services h3 { font-size: 19px; margin: 0 0 6px; }
.services p { margin: 0; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 14px; margin: 8px 0; scroll-snap-type: x mandatory; }
.shots img { flex: 0 0 auto; width: min(220px, 42vw); height: auto; border-radius: 22px; border: 1px solid var(--rule); box-shadow: 0 6px 24px rgba(0,0,0,.12); scroll-snap-align: start; }
.chart { margin: 20px 0; }
.chart img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); background: #fff; }
.chart figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
