@font-face {
  font-family: "IBM Plex Sans";
  src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* The page is a drawing sheet: borders carry information (a title block, a parts list), never decoration. */
:root {
  --paper: #f3f6f8;
  --sheet: #ffffff;
  --ink: #142738;
  --muted: #4d6274;
  --line: #3a6a8c;
  --grid: #dbe4eb;
  --rule: #b9c8d4;
  --revision: #b3261e;
  --focus: #1f6fb2;
  --font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
/* Light unless the visitor picks dark with the header switch; theme.js applies the pick before paint. */
:root[data-theme="dark"] {
  --paper: #0d1f2e; --sheet: #112739; --ink: #e2ecf3; --muted: #9db3c4; --line: #7fb5d8;
  --grid: #183449; --rule: #2a4a62; --revision: #ff8a7e; --focus: #9fd0f2; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--line); flex: none; }
.brand b { font: 600 19px/1 var(--font); letter-spacing: 0.01em; }
.brand span { font-weight: 400; color: var(--muted); }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 12px; font-size: 15px; color: var(--muted); border-radius: 2px; }
.nav a:hover { color: var(--ink); background: var(--grid); }
@media (min-width: 900px) { .nav { display: flex; } }
.top-actions { display: flex; align-items: center; gap: 8px; }
.theme-switch { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.theme-switch:hover { border-color: var(--ink); }
.theme-switch svg { width: 20px; height: 20px; }
.theme-switch .icon-sun { display: none; }
:root[data-theme="dark"] .theme-switch .icon-sun { display: block; }
:root[data-theme="dark"] .theme-switch .icon-moon { display: none; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* Hero: the sheet with its drafting grid and title block */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero .wrap { position: relative; }
.hero h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(34px, 5.8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 19ch;
  text-wrap: balance;
}
.hero .lead { margin: 28px 0 0; max-width: 56ch; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font: 600 16px/1 var(--font); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--line); border-color: var(--line); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--sheet); }

.titleblock {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--sheet);
  font-size: 14px;
}
.titleblock > div { padding: 10px 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-width: 0; }
.titleblock > div:nth-child(2n + 1) { border-right: 0; }
.titleblock dt { font-size: 12px; color: var(--muted); }
.titleblock dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.titleblock .name { grid-column: 1 / -1; border-right: 0; }
.titleblock .name dd { font: 600 26px/1.1 var(--font); }
.titleblock .last { border-bottom: 0; }
@media (min-width: 900px) {
  .hero { padding: 88px 0 64px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: start; margin-top: 40px; }
  .hero-grid .lead { margin-top: 0; }
  .titleblock { margin-top: 0; }
}

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--rule); }
.sec-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 64ch; }
h2 { font: 600 clamp(30px, 4.2vw, 48px)/1.02 var(--font); letter-spacing: -0.01em; margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }

/* Parts list */
.bom { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); background: var(--sheet); }
.bom th, .bom td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.bom thead th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--ink); }
.bom td.item { font: 600 22px/1 var(--font); color: var(--line); width: 56px; }
.bom td.what b { display: block; font: 600 19px/1.25 var(--font); }
.bom td.what span { color: var(--muted); font-size: 16px; }
.bom td.stack { font-size: 15px; width: 30%; }
@media (max-width: 719px) {
  .bom thead { display: none; }
  .bom, .bom tbody, .bom tr, .bom td { display: block; width: auto; }
  .bom tr { display: grid; grid-template-columns: 40px minmax(0, 1fr); border-bottom: 1px solid var(--rule); padding: 14px 14px 14px 0; }
  .bom td { border: 0; padding: 0 0 0 14px; }
  .bom td.stack { grid-column: 2; width: auto; margin-top: 8px; color: var(--muted); }
  .bom td.item { width: auto; }
}

/* Portfolio sheets */
.sheets { display: grid; gap: 40px; }
.sheet-card { border: 2px solid var(--ink); background: var(--sheet); display: grid; }
.sheet-card .figure { position: relative; border-bottom: 2px solid var(--ink); background: var(--grid); padding: 20px; }
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--paper); }
.frame { position: relative; width: fit-content; margin: 0 auto; }
.shot-tall { width: auto; max-width: 100%; max-height: 560px; }
.shot-device { border: 0; border-radius: 34px; background: transparent; }
.shot-phone { position: absolute; right: 6%; bottom: 20px; width: 22%; min-width: 92px; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 0 10px 30px rgba(20, 39, 56, 0.25); }
.balloon {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sheet); color: var(--ink); border: 2px solid var(--line);
  font: 600 14px/1 var(--font);
}
.balloon-trainkeep-web { left: 3%; top: 6%; }
.balloon-trainkeep-phone { right: 4%; top: 46%; }
.balloon-spotter-answers { right: -14px; top: 35%; }
.balloon-spotter-confirm { right: -14px; top: 68%; }
.balloon-januscan-mesh { left: -14px; top: 22%; }
.balloon-januscan-tuning { left: -14px; top: 66%; }
.sheet-card .body { display: grid; gap: 20px; padding: 24px 20px; }
.sheet-card h3 { font: 600 30px/1.05 var(--font); margin: 0; }
.sheet-card .kind { color: var(--line); font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.sheet-card p { margin: 0; max-width: 62ch; }
.notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.notes li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.notes li i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 600 12px/1 var(--font); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.facts div { padding: 14px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div:nth-child(2n) { border-right: 0; }
.facts b { display: block; font: 600 28px/1 var(--font); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--muted); }
.stack-line { font-size: 15px; color: var(--muted); }
.stack-line b { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .sheet-card { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .sheet-card .figure { border-bottom: 0; border-right: 2px solid var(--ink); padding: 32px 32px 48px; }
  .sheet-card .body { padding: 32px; align-content: start; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts div { border-bottom: 0; }
  .facts div:nth-child(2n) { border-right: 1px solid var(--rule); }
  .facts div:last-child { border-right: 0; }
}

/* Experience */
.roles { border-top: 2px solid var(--ink); }
.role { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.role h3 { margin: 0; font: 600 22px/1.2 var(--font); }
.role .domain { margin: 0; color: var(--line); font-weight: 500; font-size: 15px; }
.role p { margin: 0; max-width: 64ch; }
.role .stack-line { margin-top: 4px; }
@media (min-width: 900px) {
  .role { grid-template-columns: 320px minmax(0, 1fr); column-gap: 40px; }
  .role > div:last-child { display: grid; gap: 6px; }
}
.principal { display: grid; border: 2px solid var(--ink); background: var(--sheet); margin-bottom: 48px; }
.principal-name { display: grid; gap: 4px; padding: 20px; border-bottom: 1px solid var(--ink); align-content: start; }
.principal-name b { font: 600 30px/1.1 var(--font); letter-spacing: -0.01em; }
.principal-name span { color: var(--line); font-weight: 600; }
.principal-body { display: grid; gap: 16px; padding: 20px; }
.principal-body p { margin: 0; max-width: 66ch; }
.led { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 66ch; }
.led li::marker { color: var(--line); }
.principal .degree { color: var(--muted); font-size: 15px; }
.roles-head { margin: 0 0 12px; font: 600 15px/1.3 var(--font); color: var(--muted); }
@media (min-width: 900px) {
  .principal { grid-template-columns: 320px minmax(0, 1fr); }
  .principal-name { border-bottom: 0; border-right: 1px solid var(--ink); padding: 28px; }
  .principal-body { padding: 28px; }
}

/* How we work */
.terms { display: grid; gap: 0; border: 2px solid var(--ink); background: var(--sheet); }
.terms div { padding: 22px 20px; border-bottom: 1px solid var(--rule); }
.terms div:last-child { border-bottom: 0; }
.terms h3 { margin: 0 0 6px; font: 600 21px/1.2 var(--font); }
.terms p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 720px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .terms div:nth-child(3), .terms div:nth-child(4) { border-bottom: 0; }
}

/* Government */
.gov { display: grid; gap: 32px; }
.gov table { width: 100%; border-collapse: collapse; border: 2px solid var(--ink); background: var(--sheet); font-size: 16px; }
.gov th, .gov td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.gov th { width: 34%; font-weight: 600; color: var(--muted); font-size: 15px; }
.gov .code { font-weight: 600; font-variant-numeric: tabular-nums; }
.gov td small { display: block; color: var(--muted); font-size: 14px; }
.gov .status { font-weight: 600; }
.gov ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.download { display: grid; gap: 16px; align-content: start; padding: 24px; border: 2px solid var(--ink); background: var(--sheet); }
.download h3 { margin: 0; font: 600 24px/1.1 var(--font); }
.download p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 719px) {
  .gov th, .gov td { display: block; width: auto; }
  .gov th { padding-bottom: 0; border-bottom: 0; }
}
@media (min-width: 900px) { .gov { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }

/* Contact */
.contact { display: grid; gap: 32px; }
.contact .mail { font: 600 clamp(20px, 2.4vw, 28px)/1.15 var(--font); overflow-wrap: anywhere; }
form { display: grid; gap: 16px; padding: 24px; border: 2px solid var(--ink); background: var(--sheet); }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, textarea { font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); padding: 12px; min-height: 48px; border-radius: 0; width: 100%; }
input:focus, textarea:focus { border-color: var(--line); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form-note { margin: 0; font-size: 15px; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: var(--line); font-weight: 600; }
.form-note.error { color: var(--revision); font-weight: 600; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: 0.6; cursor: progress; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }

footer { border-top: 2px solid var(--ink); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
