@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  /* Neutrals tinted toward the logo's blue-green (hue 205) */
  --canvas:    oklch(0.165 0.012 205);
  --surface:   oklch(0.195 0.013 205);
  --raised:    oklch(0.225 0.014 205);
  --hover:     oklch(0.255 0.015 205);
  --text:      oklch(0.945 0.008 150);
  --text-2:    oklch(0.74 0.012 205);
  --text-3:    oklch(0.58 0.012 205);
  --line:      color-mix(in oklch, var(--text) 9%, transparent);
  --line-2:    color-mix(in oklch, var(--text) 15%, transparent);
  /* One accent: the cyan at the centre of the logo. Status colors are separate. */
  --accent:    oklch(0.83 0.125 200);
  --accent-ink: oklch(0.19 0.03 215);
  --ok:        oklch(0.76 0.11 155);
  --run:       oklch(0.80 0.125 75);

  --font-ui: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--raised); padding: 8px 12px; border-radius: var(--r-sm); z-index: 10; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in oklch, var(--canvas) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { height: 30px; width: auto; flex: none; display: block; }
nav.primary { display: flex; align-items: center; gap: 4px; }
nav.primary a {
  text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
nav.primary a:hover { color: var(--text); background: var(--surface); }
nav.primary a.cta { color: var(--text); border: 1px solid var(--line-2); margin-left: 8px; }
nav.primary a.cta:hover { background: var(--raised); }
@media (max-width: 720px) { nav.primary a:not(.cta) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px; border-radius: var(--r-sm);
  font: 600 16px/1 var(--font-ui); text-decoration: none;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25); }
.btn.primary:hover { background: oklch(0.87 0.12 200); }
.btn.secondary { border: 1px solid var(--line-2); color: var(--text); }
.btn.secondary:hover { background: var(--surface); }

/* Opening */
.opening { padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 8vw, 96px); }
.opening .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .opening .grid { grid-template-columns: 1fr; } }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.028em; font-weight: 600; text-wrap: balance; }
.lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 34em; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Pipeline panel (the signature element) */
.panel {
  background: linear-gradient(to bottom, var(--surface), oklch(0.185 0.013 205));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04), 0 24px 60px -30px oklch(0 0 0 / 0.7);
  overflow: clip;
}
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head .title { font-weight: 600; font-size: 15px; }
.panel-head .meta { margin-top: 6px; font: 400 12.5px/1.5 var(--font-mono); color: var(--text-3); overflow-wrap: anywhere; }
.steps li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.steps li:last-child { border-bottom: 0; }
.steps .name { font-weight: 500; }
.steps .detail { display: block; font: 400 12.5px/1.5 var(--font-mono); color: var(--text-3); margin-top: 2px; overflow-wrap: anywhere; }
.steps .state { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.steps .state span { display: block; color: var(--text-3); }
.glyph { width: 18px; height: 18px; margin-top: 2px; }
.steps li.running .state { color: var(--run); }
.steps li.pending { color: var(--text-3); }
.steps li.pending .state { color: var(--text-3); }
.progress { height: 4px; border-radius: var(--r-pill); background: var(--hover); margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 60%; border-radius: var(--r-pill); background: var(--run); }
.panel-foot { padding: 12px 22px; font-size: 13px; color: var(--text-3); background: oklch(0.18 0.012 205); border-top: 1px solid var(--line); }

/* Sections */
section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -0.022em; font-weight: 600; text-wrap: balance; }
.section-intro { margin-top: 14px; color: var(--text-2); max-width: 40em; }

/* Services: rows, not cards */
.services { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 920px) { .service { grid-template-columns: 1fr; gap: 12px; } }
.service h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.service p { color: var(--text-2); }
.service ul { font-size: 15px; color: var(--text-2); }
.service ul li { padding: 5px 0 5px 18px; position: relative; }
.service ul li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1px; background: var(--text-3); }
.col-label { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }

/* Engagements */
.ways { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 920px) { .ways { grid-template-columns: 1fr; } }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04); }
.way h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.way .length { margin-top: 4px; font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.way p { margin-top: 12px; font-size: 15.5px; color: var(--text-2); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 920px) { .about { grid-template-columns: 1fr; } }
.about p + p { margin-top: 16px; }
.about .prose p { color: var(--text-2); }
.about .prose p:first-child { color: var(--text); font-size: 19px; line-height: 1.5; }
dl.stack { border-top: 1px solid var(--line); }
dl.stack div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
dl.stack dt { color: var(--text-3); }
dl.stack dd { color: var(--text); }
@media (max-width: 480px) { dl.stack div { grid-template-columns: 1fr; gap: 2px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }
.contact .address { display: inline-block; margin-top: 20px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.015em; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; overflow-wrap: anywhere; transition: text-decoration-color 150ms var(--ease); }
.contact .address:hover { text-decoration-color: var(--accent); }
.contact ol { counter-reset: n; margin-top: 12px; }
.contact ol li { counter-increment: n; display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.contact ol li::before { content: counter(n); color: var(--text-3); font-variant-numeric: tabular-nums; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--text-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Legal pages */
.legal { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 96px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 44px); }
.legal .updated { margin-top: 12px; font-size: 15px; color: var(--text-3); }
.legal h2 { font-size: 22px; letter-spacing: -0.012em; margin-top: 40px; }
.legal p, .legal ul { margin-top: 14px; color: var(--text-2); }
.legal ul li { padding: 4px 0 4px 18px; position: relative; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 1px; background: var(--text-3); }
.legal a { text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.legal a:hover { text-decoration-color: var(--accent); }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
figure.panel { margin: 0; }
