:root {
  color-scheme: light;
  --ink: #0b1624;
  --brand: #0055cc;
  --brand-hover: #0a47a8;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --card: #ffffff;
  --text: #14202e;
  --muted: #4b5a6b;
  --line: #d6dfeb;
  --tile: #e6efff;
  --link: #0049b0;
  --ok: #17663a;
  --ok-bg: #e1f3e8;
  --open: #8a5d00;
  --open-bg: #fff4d9;
  --shadow: 0 1px 2px rgba(11, 22, 36, .06), 0 8px 24px rgba(11, 22, 36, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 700px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .75rem; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; font-weight: 800; }
h2 { font-size: 1.9rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1rem; }
a { color: var(--link); }
a:focus-visible, .btn:focus-visible, .lang:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

.ico { width: 26px; height: 26px; flex: none; }
.ico-s { width: 18px; height: 18px; flex: none; }

section { padding: 4.5rem 0; }
section.alt { background: var(--bg-alt); }
.kicker {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 .75rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.kicker::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 46rem; margin-bottom: 2.25rem; }
.sub { margin-top: 3.5rem; font-size: 1.5rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; }
.site-header nav { order: 3; flex: 1 1 100%; overflow-x: auto; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; white-space: nowrap; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.lang { color: var(--text); text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .08em; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 6px; }
.lang:hover { border-color: var(--brand); color: var(--brand); }
.btn-small span { display: none; }
@media (min-width: 640px) { .btn-small span { display: inline; } }
@media (min-width: 900px) {
  .site-header nav { order: 0; flex: 1 1 auto; overflow: visible; }
  .site-header ul { justify-content: center; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--brand); color: #fff;
  padding: .8rem 1.3rem; border-radius: 8px; border: 2px solid var(--brand);
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-small { padding: .45rem .85rem; font-size: .88rem; }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--tile); color: var(--brand-hover); border-color: var(--brand-hover); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

/* hero */
.hero {
  background: var(--bg-alt) url("/assets/traces.svg") center / cover no-repeat;
  padding: 3.5rem 0 0;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero .eyebrow { margin: 0 0 1rem; color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 18em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero-art { width: 100%; max-width: 34rem; justify-self: center; }
.facts { list-style: none; margin: 3rem 0 0; padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.facts li { color: var(--muted); font-size: .95rem; }
.facts strong { display: block; color: var(--brand); font-size: 2rem; line-height: 1.1; font-weight: 800; }
@media (min-width: 700px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.3rem; }
  .facts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .hero { padding-top: 5rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

/* about */
.about { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.2fr; align-items: start; } }

/* cards and grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--tile); color: var(--brand); margin-bottom: 1.1rem; }
.ind.wide { border-color: var(--brand); }
@media (min-width: 980px) { .ind.wide { grid-column: span 2; } }
.card-top { margin-bottom: .9rem; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.open { color: var(--open); background: var(--open-bg); }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li { position: relative; padding-left: 4rem; }
.steps li::before { content: ""; position: absolute; left: 1.2rem; top: 2.6rem; bottom: -1.5rem; width: 2px; background: var(--brand); opacity: .45; }
.steps li:last-child::before { display: none; }
.node {
  position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 2px solid var(--brand); background: var(--bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.steps h3 { margin-bottom: .3rem; padding-top: .35rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .steps li { padding-left: 0; padding-top: 3.6rem; }
  .steps li::before { left: 2.5rem; right: -1.5rem; top: 1.2rem; bottom: auto; width: auto; height: 2px; }
}

/* technology */
.techs { gap: 1rem; }
.tech { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tech .ico { color: var(--brand); margin-top: .15rem; }
.tech h3 { font-size: 1rem; margin-bottom: .2rem; }
.tech p { margin: 0; font-size: .93rem; color: var(--muted); }

/* projects */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--brand); color: #fff; }
.chip-c { background: var(--tile); color: var(--text); }
.proj p { margin-bottom: .9rem; }
.proj .result { margin: 1rem 0 0; padding: .75rem 1rem; border-left: 3px solid var(--brand); background: var(--bg-alt); border-radius: 0 8px 8px 0; color: var(--text); font-size: .95rem; }

/* how we work */
.work { padding: 1.25rem 0 0; border-top: 3px solid var(--brand); }
.work p { margin: 0; color: var(--muted); font-size: .96rem; }

/* contact */
.contact-section { background: var(--bg-alt); }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.terms { margin: 0; border-top: 1px solid var(--line); }
.terms div { display: grid; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .terms div { grid-template-columns: 11rem 1fr; gap: 1rem; } }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.3rem; }
.contact { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact li { display: flex; gap: .9rem; align-items: center; overflow-wrap: anywhere; }
.contact .ico { color: var(--brand); }
.contact small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact a { font-weight: 600; }

/* footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); padding: 2.5rem 0; font-size: .9rem; }
.site-footer p { margin: 0 0 .6rem; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-inner img { height: 44px; width: auto; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: auto 1fr; gap: 3rem; align-items: start; } }
