@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/inter-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --paper: #FFFFFF;
  --paper-alt: #F6F9FC;
  --ink: #12151C;
  --ink-soft: #5B6472;
  --muted: #8B93A1;
  --brand: #1C8FE0;
  --brand-dark: #0E6CA8;
  --brand-light: #EAF4FD;
  --rule: #E9ECF1;
  --shadow: 0 1px 2px rgba(18,21,28,0.04), 0 8px 24px -12px rgba(18,21,28,0.12);
  --max-width: 1040px;
  --gutter: 24px;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: 'IBM Plex Mono', monospace; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-header .mark {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-header .mark img { height: 28px; width: auto; display: block; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.site-header nav a { color: var(--ink-soft); transition: color 0.15s; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.current { color: var(--ink); }

.site-header nav a.cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 600;
}
.site-header nav a.cta:hover { background: var(--brand-dark); }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}

.hero .blob {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand) 0%, rgba(28,143,224,0) 68%);
  opacity: 0.16;
  filter: blur(10px);
  pointer-events: none;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 15ch;
  position: relative;
}

.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 32px;
  position: relative;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  display: inline-block;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}

.stats div {
  background: var(--paper);
  padding: 26px 24px;
}

.stats dt {
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stats dd {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Sections */
section { padding: 64px 0; }
.section-head { margin-bottom: 36px; }

.section-head .kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 56ch;
  margin: 0;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* Expertise list */
.expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.expertise-list li {
  padding-left: 22px;
  position: relative;
}

.expertise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--brand);
  border-radius: 2px;
  transform: rotate(45deg);
}

.expertise-list strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.expertise-list span {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .expertise-list { grid-template-columns: 1fr; }
}

/* Activity cards */
.activities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.activities li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.activities li:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(18,21,28,0.06), 0 16px 32px -14px rgba(18,21,28,0.16); }

.activities .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.activities .icon svg { width: 21px; height: 21px; }

.activities .code {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.activities strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.activities span.desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* Updates feed */
.log { display: grid; gap: 18px; }

.entry {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.entry .date {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.entry h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.entry p { margin: 0 0 16px; color: var(--ink-soft); font-size: 16px; }

.entry .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper-alt);
  padding: 4px 10px;
  border-radius: 100px;
}

.entry .source a {
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-dark);
}
.entry .source a:hover { text-decoration: underline; }

/* CTA band */
.cta-band {
  background: var(--ink);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  margin: 8px 0 64px;
}

.cta-band h2 {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.cta-band p { color: #B8C2D1; margin: 0 0 24px; font-size: 16px; }
.cta-band .cta-row { justify-content: center; }
.cta-band .btn.primary { background: var(--brand); }
.cta-band .btn.primary:hover { background: var(--brand-dark); }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.cta-band .btn.ghost:hover { border-color: #fff; }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 56px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer a { color: var(--ink-soft); font-weight: 500; }
footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 17px; }
  .stats { grid-template-columns: 1fr; }
  .activities { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; }
  .site-header nav a:not(.cta) { display: none; }
  .cta-band { padding: 36px 24px; }
}

/* Contact form */
.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-alt);
  transition: border-color 0.15s, background 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

.honeypot { position: absolute; left: -9999px; }
