/* Self-hosted fonts (Google Fonts removed — was 5.97s render-blocking) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Northline — per DESIGN.md (Linear "midnight precision instrument", adapted).
   Surfaces: void #08090a > carbon #0f1011 > obsidian #161718. Hairline borders, no shadow stacking.
   Weights 400–590 only. Radii: 6 inputs/buttons, 12 cards, 9999 pills. Spacing ladder 8/12/24/96.
   Sole chromatic accent: #38bdf8 (Northline sky-blue) — actions and the wordmark period only. */

:root {
  --void: #08090a;
  --carbon: #0f1011;
  --obsidian: #161718;
  --graphite: #23252a;
  --smoke: #383b3f;
  --ash: #62666d;
  --fog: #8a8f98;
  --mist: #d0d6e0;
  --paper: #ffffff;
  --accent: #38bdf8;
  --font-ui: "Inter var", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--mist);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  font-feature-settings: "cv01" on, "ss03" on, "zero" on;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- surfaces / structure ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--graphite);
}
.nav {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font-weight: 510; font-size: 16px; letter-spacing: -0.011em;
  color: var(--paper); text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--accent); }
nav.links { display: flex; gap: 4px; flex-wrap: wrap; }
nav.links a {
  color: var(--mist); text-decoration: none; font-size: 13px; font-weight: 400;
  padding: 8px 12px; border-radius: 6px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
nav.links a:hover { color: var(--paper); background: rgba(255,255,255,0.05); }
nav.links a[aria-current="page"] { color: var(--paper); }
nav.links a.cta { color: var(--accent); font-weight: 510; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 64px; }
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.022em; margin: 0 0 24px;
  font-weight: 590; color: var(--paper);
  text-wrap: balance;
}
.hero p.lead {
  font-size: 20px; line-height: 1.33; letter-spacing: -0.012em;
  color: var(--fog); max-width: 620px; margin: 0 0 32px;
}
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- buttons: 6px radius, 510 weight, accent = sole filled chromatic ---------- */
.btn {
  display: inline-block; padding: 10px 16px; border-radius: 6px;
  font-weight: 510; font-size: 14px; letter-spacing: -0.011em; text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--void); }
.btn-primary:hover { background: #67ccfa; }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { border-color: var(--graphite); color: var(--mist); }
.btn-ghost:hover { border-color: var(--smoke); color: var(--paper); }

/* ---------- sections: 96px rhythm ---------- */
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--graphite); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.012em; margin: 0 0 12px;
  font-weight: 510; color: var(--paper);
}
h3 { font-size: 17px; font-weight: 510; margin: 24px 0 8px; color: var(--paper); }
p.sub { color: var(--fog); margin: 0 0 24px; max-width: 640px; }
ul.plain { list-style: none; padding: 0; margin: 12px 0; }
ul.plain li { padding: 4px 0 4px 24px; position: relative; }
ul.plain li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 400;
}
a { color: var(--accent); }

/* ---------- cards: 12px radius, hairline edge, no outer shadow ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 24px 0; }
.card {
  background: var(--carbon); border-radius: 12px;
  box-shadow: rgb(35, 37, 42) 0 0 0 1px inset;
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  transition: background 0.15s var(--ease);
}
.card:hover { background: var(--obsidian); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--fog); font-size: 14px; flex: 1; }
.card a { font-size: 13px; font-weight: 510; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* ---------- calculator: carbon card, 24px padding ---------- */
.calc {
  background: var(--carbon); border-radius: 12px;
  box-shadow: rgb(35, 37, 42) 0 0 0 1px inset;
  padding: 24px; max-width: 640px;
}
.calc h2 { margin-top: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 510; margin-bottom: 4px; color: var(--paper); }
.hint { color: var(--fog); font-weight: 400; }
input[type="range"] { width: 100%; accent-color: var(--accent); --fill: 10%; }
/* machined sliders: hairline track, accent progress, paper thumb */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 16px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 9999px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--graphite) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: none; margin-top: -6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  transition: transform 0.12s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(0.95); background: var(--accent); }
input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 9999px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--graphite) var(--fill));
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.val { font-variant-numeric: tabular-nums; font-weight: 510; color: var(--accent); }
.results {
  display: flex; flex-wrap: nowrap; width: 100%;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--graphite);
}
.stat { flex: 1 1 0; min-width: 0; }
.stat .n {
  font-size: 1.5rem; font-weight: 590; font-variant-numeric: tabular-nums;
  letter-spacing: -0.012em; color: var(--paper);
}
.stat .l {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--fog);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.stat.stat-accent .n { color: var(--accent); }
@media (max-width: 560px) {
  .results { gap: 8px; }
  .stat .n { font-size: 1.1rem; }
  .stat .l { font-size: 0.56rem; }
}
.payback { margin-top: 16px; font-size: 14px; color: var(--fog); }
.payback strong { color: var(--mist); font-weight: 510; }
.note { margin-top: 12px; font-size: 12px; color: var(--fog); }

/* ---------- forms: Linear text inputs ---------- */
form.contact { max-width: 560px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 510; margin-bottom: 4px; color: var(--paper); }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; font: inherit; color: var(--mist);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--mist); }
textarea { min-height: 110px; resize: vertical; }
.form-status { margin-top: 16px; font-size: 14px; }

/* ---------- proof strip ---------- */
.proof {
  display: flex; gap: 24px; flex-wrap: wrap;
  background: var(--carbon); border-radius: 12px;
  box-shadow: rgb(35, 37, 42) 0 0 0 1px inset;
  padding: 24px; margin: 24px 0;
}
.proof .item { flex: 1 1 240px; }
.proof .k { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fog); }
.proof .v { font-weight: 510; margin-top: 4px; color: var(--paper); }
.proof .v a { color: inherit; text-decoration: none; }
.proof .v a:hover { text-decoration: underline; }

/* ---------- case-study blocks ---------- */
.story { border-left: 2px solid var(--graphite); padding: 4px 0 4px 24px; margin: 24px 0; }
.story:hover { border-left-color: var(--smoke); }
.story h3 { margin-top: 0; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--graphite); padding: 40px 0 48px;
  color: var(--fog); font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--fog); text-decoration: none; }
footer.site a:hover { color: var(--mist); }

/* ── Pipeline visual strip (products) ─────────────────────────── */
.pipeline { display:flex; align-items:stretch; gap:.75rem; margin:2rem 0; }
.pipe-panel { flex:1 1 0; min-width:0; background:var(--card, #0f1011); border:1px solid var(--border, #23252a); border-radius:12px; padding:1rem; display:flex; flex-direction:column; gap:.75rem; }
.pipe-arrow { align-self:center; color:var(--accent, #38bdf8); font-size:1.25rem; }
.pipe-visual { min-height:110px; border-radius:6px; background:var(--bg2, #161718); border:1px solid var(--border, #23252a); padding:.75rem; overflow:hidden; }
.pipe-caption { font-size:.85rem; color:var(--muted, #8a8f98); margin:0; line-height:1.5; }
.pipe-caption strong { color:var(--foreground, #f2f2f2); font-weight:590; }
.pipe-chat { display:flex; flex-direction:column; gap:.4rem; }
.pipe-bubble { align-self:flex-start; background:#1c1e22; border:1px solid var(--border, #23252a); color:var(--foreground, #f2f2f2); border-radius:9999px 9999px 9999px 4px; padding:.3rem .7rem; font-size:.78rem; font-family:var(--mono, monospace); }
.pipe-bubble.pipe-bot { align-self:flex-end; background:rgba(56,189,248,.12); border-color:rgba(56,189,248,.4); color:var(--accent, #38bdf8); }
.pipe-row { display:flex; justify-content:space-between; align-items:center; padding:.4rem .6rem; border-bottom:1px solid var(--border, #23252a); font-size:.8rem; color:var(--foreground, #f2f2f2); }
.pipe-row:last-child { border-bottom:none; }
.pipe-badge { font-size:.68rem; padding:.1rem .55rem; border-radius:9999px; }
.pipe-warn { background:rgba(250,179,63,.14); color:#e8a33d; }
.pipe-ok { background:rgba(74,222,128,.14); color:#4ade80; }
.pipe-card { width:120px; margin:0 auto; background:var(--bg2, #161718); border:1px solid var(--border, #23252a); border-radius:8px; padding:.6rem; display:flex; flex-direction:column; gap:.4rem; }
.pipe-thumb { height:64px; border-radius:4px; background:linear-gradient(135deg, #1c2a3a, #0f172a); border:1px solid var(--border, #23252a); }
.pipe-title { font-size:.72rem; color:var(--foreground, #f2f2f2); }
.pipe-price { font-size:.85rem; font-weight:590; color:var(--accent, #38bdf8); }
@media (max-width: 720px) {
  .pipeline { flex-direction:column; }
  .pipe-arrow { transform:rotate(90deg); align-self:center; }
}


/* ── Current-page state + card surfaces (2026-10-21) ─────────── */
nav.links a[aria-current="page"] { color: var(--paper); position: relative; }
nav.links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
nav.links a.cta { color: var(--void); background: var(--accent); border-color: var(--accent); }
nav.links a.cta:hover { background: var(--paper); border-color: var(--paper); color: var(--void); }
.card, .story, .proof-card, .stat { background: var(--obsidian); border-color: #2a2d33; }

/* Mobile: keep nav on one row, enlarge tap targets */
@media (max-width: 560px) {
  header.site .nav { padding-left: 14px; padding-right: 14px; gap: 10px; }
  nav.links { gap: 4px; }
  nav.links a { font-size: .82rem; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; }
  nav.links a.cta { padding: 10px 12px; }
  .wordmark { font-size: 1.05rem; }
  section.hero { padding-top: 48px; padding-bottom: 32px; }
  .btn-block-mobile { width: 100%; display: block; text-align: center; padding: 14px 18px; }
}


/* Currency selector — forced bold with custom arrow (UA styling ignores font-weight on select otherwise) */
.currency-select {
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 14px; font-weight: 590; letter-spacing: .01em;
  padding: .45rem 2rem .45rem .7rem; margin-left: .35rem;
  border: 1px solid var(--accent); border-radius: 6px;
  background: var(--obsidian) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2338bdf8'/%3E%3C/svg%3E") no-repeat right .7rem center;
  color: var(--paper); cursor: pointer;
}
.currency-select:hover { border-color: var(--paper); }

/* Contact form fields: lift off the void for legibility */
.contact input, .contact textarea, .contact select {
  background: var(--obsidian); border: 1px solid var(--graphite); color: var(--paper);
}
.contact input::placeholder, .contact textarea::placeholder { color: #7b8290; }

@media (max-width: 560px) {
  header.site .nav { flex-wrap: nowrap; gap: 6px; padding-left: 12px; padding-right: 12px; }
  nav.links { gap: 2px; flex-wrap: nowrap; }
  nav.links a { font-size: .76rem; padding: 9px 5px; letter-spacing: 0; }
  nav.links a.cta { padding: 9px 9px; }
  .wordmark { font-size: .95rem; }
}

/* ── Proof screenshots (products) ─────────────────────────────── */
.shot-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; margin:2rem 0; }
.shot-grid figure { margin:0; background:var(--obsidian); border:1px solid #2a2d33; border-radius:12px; overflow:hidden; }
.shot-grid img { display:block; width:100%; height:auto; border-bottom:1px solid #2a2d33; }
.shot-grid figcaption { padding:.7rem .9rem; font-size:.82rem; color:var(--fog); line-height:1.45; }
.shot-grid figcaption strong { color:var(--paper); font-weight:590; }

/* Career timeline + credentials spacing */
.timeline li, .creds li { margin-bottom:.55rem; line-height:1.6; }
.creds .cred-id { font-family:var(--mono, monospace); font-size:.78em; color:var(--fog); letter-spacing:.02em; }

/* Equal media heights so captions sit on one line (products strip + flow) */
.shot-grid figure { display: flex; flex-direction: column; }
.shot-grid img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--void); }
@media (max-width: 720px) { .shot-grid img { height: 220px; } }
.pipeline .pipe-panel { justify-content: flex-start; }

/* Flow panel 2: keep rows on one line, ellipsis long titles, badges never squash */
.pipe-admin { width: 100%; }
.pipe-row { gap: .5rem; align-items: center; }
.pipe-row > span:first-child { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-badge { flex: 0 0 auto; white-space: nowrap; }
.pipeline .pipe-thumb { height: 72px; }
.pipeline .pipe-admin { display: flex; flex-direction: column; justify-content: center; }
/* Flow panels: equal, contained visuals (single source of truth) */
.pipeline .pipe-visual {
  height: 186px; flex: 0 0 186px; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  overflow: hidden;
}

/* Services: capability list (2026-10-22) */
.svc-list { border-top: 1px solid var(--graphite); margin-top: 1.75rem; }
.svc { padding: 1.4rem 0; border-bottom: 1px solid var(--graphite); }
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; }
.svc-head h3 { margin: 0; font-size: 1.05rem; }
.svc-tag {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--fog); border: 1px solid var(--graphite);
  border-radius: 999px; padding: .22rem .55rem; white-space: nowrap;
}
.svc-tag-live { color: var(--accent); border-color: rgba(56, 189, 248, .45); }
.svc-tag-ai { color: var(--mist); border-color: var(--smoke); }
.svc .sub { margin: 0 0 .4rem; }
.svc-stop { margin: 0; font-size: .88rem; color: var(--fog); }
.svc-stop::before { content: "→ "; color: var(--accent); }
@media (max-width: 480px) {
  .svc-head { align-items: flex-start; flex-direction: column; gap: .4rem; }
}

/* Sandbox CTA — accent outline so the interactive demo reads as a real destination */
.btn-demo {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, .08);
  font-weight: 600;
}
.btn-demo:hover { background: rgba(56, 189, 248, .16); border-color: #67ccfa; color: #67ccfa; }
.btn-demo:active { transform: scale(.98); }
