/* Fonts are self-hosted: no requests to third parties. */
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --text: #15191f;
  --body: #3b434e;
  --muted: #6a7380;
  --line: #e2e5ea;
  --accent: #1f3d66;
  --accent-hover: #162d4d;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--text); font-weight: 600; letter-spacing: -0.015em; }
h1, h2, h3, .hero p, .page-head p, .section-intro { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand svg { width: 1.75rem; height: 1.75rem; color: var(--accent); }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--body); font-size: 0.95rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav a:not(:last-child) { display: none; } }

/* Tinted band with a fine engineering grid, fading out to the left */
.grid-bg { position: relative; overflow: hidden; isolation: isolate; background: var(--bg-alt); }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(31, 61, 102, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 61, 102, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 80%);
  mask-image: linear-gradient(to left, #000 20%, transparent 80%);
}

/* Hero */
.hero { padding: clamp(4rem, 11vw, 8rem) 0 clamp(4rem, 9vw, 6.5rem); }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 19ch; margin: 0 0 1.5rem; }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 38rem; margin: 0 0 2.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 2.9rem;
  padding: 0 1.4rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; text-decoration: none; }
.link-arrow svg { width: 1rem; height: 1rem; transition: transform 0.15s; }
.link-arrow:hover svg { transform: translateX(2px); }

/* Diagrams: thin-line SVG drawings of what we do (hero tree, idea-to-scale flow) */
.diagram { display: block; width: 100%; color: var(--accent); }
.diagram .node { fill: var(--bg); stroke: #c9d2de; }
.diagram .node-main { fill: var(--accent); stroke: var(--accent); }
.diagram .node-group { fill: #e3e9f2; stroke: none; }
.diagram .wire { fill: none; stroke: #9fb0c6; stroke-width: 1.25; }
.diagram text { font: 500 13px var(--font); fill: var(--text); }
.diagram .label-main { fill: #fff; }
.diagram .label-group { font-weight: 600; fill: var(--accent); }
.diagram .cap { font-size: 10.5px; font-weight: 400; fill: var(--muted); letter-spacing: 0.02em; }
.diagram .cap-main { fill: #c5d0e0; }
.diagram .label-lg { font-size: 17px; font-weight: 600; }
.diagram .skel { fill: #e3e9f2; }
.hero-art { max-width: 36rem; justify-self: end; }
.flow-art { max-width: 44rem; }
@media (max-width: 900px) { .hero-art { justify-self: start; } }
/* On phones the hero tree is only decoration, so hide it; let the flow scroll sideways */
@media (max-width: 600px) {
  .hero-art { display: none; }
  .diagram-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .flow-art { min-width: 540px; }
}

/* Sections: title column + content column */
.section { border-top: 1px solid var(--line); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.alt { background: var(--bg-alt); }
.section .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem 4rem; }
.section .wrap > * { min-width: 0; }
.section h2 { font-size: 1.6rem; line-height: 1.25; margin: 0; }
.section-intro { margin: 0 0 2rem; max-width: 40rem; }
@media (max-width: 800px) { .section .wrap { grid-template-columns: 1fr; } }

/* Services */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list > li { display: grid; grid-template-columns: 14rem 1fr; gap: 0.5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.list h3 { display: flex; flex-direction: column; gap: 0.85rem; font-size: 1.1rem; margin: 0; }
.icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 8px; background: #eaeff6; color: var(--accent); }
.icon svg { width: 1.3rem; height: 1.3rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; }
.tags li { font-size: 0.85rem; color: var(--text); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 0.65rem; }
.list p { margin: 0; }
@media (max-width: 640px) { .list > li { grid-template-columns: 1fr; } }

/* Sub page head */
.page-head { padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 1rem; }
.page-head p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 38rem; margin: 0; }

/* Products: one section per product */
.product-meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.4rem; }
.product-body p { margin: 0 0 1.25rem; max-width: 38rem; }


/* About */
.founder-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.25rem, 3vw, 1.75rem); margin: 0 0 2rem; }
.founder-name { font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 0; }
.about-role { color: var(--muted); margin: 0 0 1rem; }
.founder-card p:not(.founder-name):not(.about-role) { margin: 0 0 1rem; }
.founder-head { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.founder-head .about-role { margin: 0; }
.avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none; }
.person-head { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 2.5rem); }
.portrait { width: clamp(6rem, 16vw, 10rem); height: auto; aspect-ratio: 1; border-radius: 50%; flex: none; }
@media (max-width: 560px) { .person-head { flex-direction: column; align-items: flex-start; } }
.about > p { max-width: 40rem; margin: 0 0 1rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 1.5rem; }
.career { margin: 0; border-top: 1px solid var(--line); }
.career div { display: grid; grid-template-columns: 12rem 1fr; gap: 0.25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.career dt { font-weight: 600; color: var(--text); }
.career dd { margin: 0; }
.career .role { display: block; color: var(--text); }
.career .desc { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
@media (max-width: 640px) { .career div { grid-template-columns: 1fr; } }

/* Contact */
.contact-mail { display: inline-block; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 500; margin: 0 0 1.5rem; }
.contact address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--text); }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-mark { width: 1.25rem; height: 1.25rem; color: var(--muted); }

/* Legal pages */
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) var(--gutter) clamp(4rem, 9vw, 6rem); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; margin: 1.5rem 0 0.5rem; }
.legal .lead { color: var(--muted); margin: 0 0 2.5rem; }
.legal h2 { font-size: 1.1rem; margin: 2.25rem 0 0.5rem; }
.legal p { margin: 0 0 0.85rem; }
.legal ul { margin: 0 0 0.85rem; padding-left: 1.25rem; }
.back { font-size: 0.95rem; text-decoration: none; }
