@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-opsz.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-0.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

/* Color carries meaning here, the way it does on an HMI: the page is
   neutral, and red only shows up for alerts and things that are running. */
:root {
  color-scheme: light dark;
  --bg: #f4f3f0;
  --text: #17181a;
  --dim: #4f5257;
  --faint: #6c6f74;
  --rule: #d9d8d3;
  --panel: #ebeae6;
  --alarm: #d0341f;
  --ok: #2f7d4f;
  --dot: #8b8d91;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101112;
    --text: #ecebe8;
    --dim: #a6a8ab;
    --faint: #8a8d91;
    --rule: #2a2c2f;
    --panel: #17191b;
    --alarm: #ff5b45;
    --ok: #7cc28f;
    --dot: #5d6064;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--alarm); }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--alarm); outline-offset: 3px; }
code, pre { font-variant-ligatures: none; }
code { font: .9em var(--mono); }

.bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.page { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Bar */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 15px; }
.bar-mark { font-weight: 600; text-decoration: none; }
.bar-nav { display: flex; gap: 22px; }
.bar-nav a { text-decoration: none; color: var(--dim); }
.bar-nav a:hover { color: var(--text); }

/* Hero */
.hero { min-height: calc(100vh - 80px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 8vh; }
.name { margin: 0; font: 600 clamp(56px, 9vw, 128px)/.95 var(--serif); letter-spacing: -.025em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line-in { display: inline-block; }
.lede { max-width: 640px; margin: 28px 0 14px; font: 400 clamp(21px, 2.2vw, 25px)/1.45 var(--serif); }
.sub { max-width: 640px; margin: 0; color: var(--dim); }

/* Story: text holds still on the left while the background changes */
.step { min-height: 115vh; }
.step-in { position: sticky; top: 30vh; max-width: 430px; padding: 24px 0; }
.step-in h2 { margin: 0 0 14px; font: 600 clamp(36px, 4.6vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; }
.step-in p { margin: 0; color: var(--dim); }
.step-in p + p { margin-top: 12px; }

/* This site */
.site { padding: 30vh 0 0; max-width: 560px; }
.site h2 { margin: 0 0 14px; font: 600 clamp(36px, 4.6vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; }
.site p { margin: 0; color: var(--dim); }
.site code { color: var(--text); }

/* Terminal */
.term { margin: 40px 0 0; border: 1px solid var(--rule); border-radius: 8px; background: #0d1117; color: #c9d1d9; font: 13px/1.7 var(--mono); }
.term-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid #21262d; }
.term-bar span { width: 9px; height: 9px; border-radius: 50%; background: #30363d; }
.term-body { padding: 14px 16px 16px; min-height: 216px; cursor: text; }
.term-out div { white-space: pre-wrap; color: #8b949e; }
.term-out .cmd { color: #e6edf3; }
.term-out .cmd::before { content: "$ "; color: #ff7b72; }
.term-in { display: flex; gap: 8px; }
.term-in label { color: #ff7b72; }
.term-in input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: #e6edf3; font: inherit; caret-color: #ff7b72; }
.term-in[hidden] { display: none; }

/* Tree */
.tree-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px; padding: 120px 0 60px; }
.tree-side { position: sticky; top: 32px; align-self: start; }
.tree-title { margin: 0; font: 600 clamp(32px, 3.6vw, 44px)/1.05 var(--serif); letter-spacing: -.01em; }
.tree-hint { margin: 12px 0 0; font-size: 14px; color: var(--faint); }

.tree { position: relative; }
.trunk { position: absolute; left: 5px; top: 10px; bottom: 30px; width: 1px; background: var(--rule); }
.trunk-fill { position: absolute; inset: 0; background: var(--faint); transform-origin: top; }

.node { position: relative; padding: 0 0 30px 28px; }
.node .dot { position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border: 1px solid var(--faint); border-radius: 50%; background: var(--bg); transition: border-color .25s; }
.node.group { padding-bottom: 18px; }
.node.group .dot { background: var(--faint); }
.node.l2 { margin-left: 28px; }
.node.l2 .dot { width: 9px; height: 9px; top: 8px; }
.node .branch { position: absolute; left: -23px; top: 12px; width: 23px; height: 1px; background: var(--faint); transform-origin: left; transition: background-color .25s; }
.node.l2:hover .dot, .node.open .dot { border-color: var(--text); }
.node.l2:hover .branch, .node.open .branch { background: var(--text); }
.node.running .dot { background: var(--alarm); border-color: var(--alarm); }
@media (prefers-reduced-motion: no-preference) {
  .node.running .dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--alarm); animation: pulse 2s ease-out infinite; }
}
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

.pid { font: 12px var(--mono); color: var(--faint); }
.node.group .pid { color: var(--dim); }
.node.running .pid { color: var(--alarm); }
.node-body h3 { margin: 2px 0 4px; font: 600 25px/1.2 var(--serif); }
.node-body h3 a { text-decoration: none; }
.node-body h3 a:hover { text-decoration: underline; color: inherit; }
.role { font: 400 15px var(--sans); color: var(--dim); margin-left: 8px; }
.node-body p { max-width: 560px; margin: 0; color: var(--dim); font-size: 16px; }
.has-more .node-body { cursor: pointer; }

.more-btn {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; margin-left: 8px; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%;
  background: none; color: var(--dim); font: 15px/1 var(--sans);
  vertical-align: middle; cursor: pointer;
  transition: transform .3s, color .2s, border-color .2s;
}
.more-btn:hover { color: var(--text); border-color: var(--text); }
.open .more-btn { transform: rotate(45deg); color: var(--text); border-color: var(--text); }
.more { overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; padding: 0; list-style: none; }
.tags li { padding: 1px 9px; border: 1px solid var(--rule); border-radius: 4px; font-size: 13px; color: var(--dim); }
.snip { max-width: 560px; margin: 0 0 10px; padding: 10px 14px; border-radius: 6px; background: #0d1117; color: #8b949e; font: 12px/1.7 var(--mono); white-space: pre-wrap; }
.snip b { color: #ff7b72; font-weight: 400; }
.snip i { color: #7ee787; font-style: normal; }
.repo { display: inline-block; margin-bottom: 4px; font-size: 15px; font-weight: 600; }

/* Contact */
.hello { min-height: calc(100vh - 110px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hello-title { margin: 0; font: 600 clamp(64px, 10vw, 140px)/1 var(--serif); letter-spacing: -.025em; }
.hello-sub { max-width: 360px; margin: 18px 0 26px; color: var(--dim); }
.hello-links { display: flex; gap: 28px; margin: 0; font-weight: 600; }

.end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px 0 48px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--faint); }
.end p { margin: 0; }

/* Initial states when animating */
.m .line-in { transform: translateY(105%); }
.m .fade { opacity: 0; transform: translateY(12px); }
.m .node .dot { transform: scale(0); }
.m .node .branch { transform: scaleX(0); }
.m .node .node-body { opacity: 0; }
.m .trunk-fill { transform: scaleY(0); }

@media (max-width: 760px) {
  .bar-nav a:nth-child(1), .bar-nav a:nth-child(3) { display: none; }
  .step { min-height: 120vh; }
  .step-in { top: 22vh; }
  .step-in h2 { font-size: 38px; }
  .tree-wrap { grid-template-columns: 1fr; padding-top: 80px; gap: 24px; }
  .tree-side { position: static; }
  .role { display: block; margin: 2px 0 0; }
}

/* Story steps with a diagram: text left, diagram right, both held while scrolling */
/* The text and its figure stick together as one row, centered in the viewport */
.step-row { position: sticky; top: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0; }
.step-row .step-in, .step-row .fig { position: static; }
.step-in h2.big { font-size: clamp(56px, 9vw, 120px); line-height: .95; }
.fig { margin: 0; padding: 24px; border: 1px solid var(--rule); border-radius: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); font-size: 14px; }
.box { display: inline-block; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); white-space: nowrap; }
.fig-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fig-row.tools .box { font-size: 13px; color: var(--dim); }
.wire { position: relative; height: 56px; margin: 6px auto; width: 1px; background: var(--faint); }
.wire-label { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font: 12px var(--mono); color: var(--faint); white-space: nowrap; }
.pulse { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--alarm); opacity: 0; }
.core { padding: 16px; border: 1px solid var(--text); border-radius: 8px; text-align: center; }
.core b { display: block; margin-bottom: 8px; font: 600 20px var(--serif); }
.core span { display: inline-block; margin: 2px 4px; color: var(--dim); }


@media (prefers-reduced-motion: no-preference) {
  .fig .pulse { animation: travel 2.4s ease-in-out infinite; }
  .fig .wire:nth-of-type(2) .pulse { animation-delay: .8s; }
  .fig .wire:nth-of-type(3) .pulse { animation-delay: 1.6s; }
}
@keyframes travel { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }

@media (max-width: 900px) {
  .step-row { position: static; display: block; min-height: 0; padding: 0; }
  .fig { margin: 24px 0 0; }
  .step.has-fig { min-height: 0; padding: 12vh 0; }
}

/* Pipeline figure (Proto) */
.fig-flow { display: flex; flex-direction: column; align-items: center; }
.titlecard { align-self: stretch; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; }
.titlecard b { font: 600 17px var(--serif); }
.titlecard span { color: var(--dim); }
.fig-label { align-self: flex-start; margin: 20px 0 12px; font: 12px var(--mono); color: var(--faint); }
.fig-ncl .fig-label { margin-top: 0; }

/* Teaching figure: key tags, the Basic topics, the Advanced kill chain */
.tags-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.keytag { position: relative; padding: 10px 12px 10px 30px; border-radius: 8px 22px 22px 8px; color: #fff; }
.keytag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--bg); }
.keytag.blue { background: #2c5aa0; }
.keytag.red { background: #b3261e; }
.keytag b { display: block; font: 600 18px/1.1 var(--serif); }
.keytag span { display: block; font-size: 12px; opacity: .9; }
.keytag em { display: block; margin-top: 2px; font: 10px var(--mono); font-style: normal; opacity: .75; }
.fig-teach .fig-label { margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 2px 8px; border: 1px solid var(--rule); border-radius: 99px; font-size: 12px; color: var(--dim); }
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: k; }
.chain li { padding: 7px 9px; border: 1px solid var(--rule); border-radius: 6px; transition: border-color .3s, background-color .3s; }
.chain li b { display: block; font-size: 13px; font-weight: 600; }
.chain li span { display: block; font-size: 11px; color: var(--dim); }
.chain li.on { border-color: var(--alarm); background: color-mix(in srgb, var(--alarm) 10%, transparent); }
.finale { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--text); border-radius: 6px; }
.finale b { font: 600 16px var(--serif); }
.finale span { font-size: 12px; color: var(--dim); }

/* NCL figure */
.place { margin: 0; font: 600 clamp(96px, 12vw, 168px)/.9 var(--serif); letter-spacing: -.04em; color: var(--alarm); }
.field { margin: 8px 0 0; color: var(--dim); font-size: 18px; }

.ncl-top { display: flex; align-items: flex-end; gap: 18px; }
.ncl-top .field { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.fig-ncl .place { font-size: clamp(80px, 9vw, 120px); }
.fig-ncl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fig-ncl th, .fig-ncl td { padding: 4px 0; text-align: left; font-weight: 400; }
.fig-ncl thead th { padding-bottom: 6px; font: 11px var(--mono); color: var(--faint); border-bottom: 1px solid var(--rule); }
.fig-ncl tbody th { color: var(--text); }
.fig-ncl td { color: var(--dim); font-variant-numeric: tabular-nums; }
.cats { margin-top: 16px; }
.cats td:last-child { white-space: nowrap; }
.fig-ncl th + th, .fig-ncl td { padding-left: 14px; }
@media (max-width: 480px) {
  .fig-ncl .acc { width: 36px; }
  .fig-ncl .place { font-size: 72px; }
  .ncl-top { gap: 14px; }
  .ncl-top .field { font-size: 13px; white-space: nowrap; }
  /* The three stage pills (Proto pipeline) are nowrap and overflow narrow
     phones on one line; let them wrap and drop the connector lines. */
  .stages { flex-wrap: wrap; gap: 6px 8px; }
  .stages i { display: none; }
}
@media (max-width: 359px) {
  .fig-ncl .place { font-size: 52px; }
  .ncl-top { gap: 10px; }
}
.acc { display: inline-block; width: 70px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--rule); border-radius: 2px; overflow: hidden; }
.acc i { display: block; height: 100%; background: var(--text); transform-origin: left; }
.hist { margin-top: 16px; }
.hist b { color: var(--alarm); font-weight: 600; }
.live { position: relative; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--alarm); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .live::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--alarm); animation: pulse 2s ease-out infinite; }
}

/* Pareto: the team's real testbed drawing */
.step-row.wide { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; }
.fig-drawing { padding: 10px; }
.fig-drawing img { display: block; width: 100%; height: auto; border-radius: 6px; }
.fig-drawing a { display: block; cursor: zoom-in; }
.fig-drawing figcaption { margin: 10px 4px 2px; font-size: 13px; color: var(--faint); }

.titlecard + .titlecard { margin-top: 10px; }

/* Proto: a course being planned, written, and checked */
.fig-course { align-self: stretch; margin-top: 16px; }
.stages { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12px; }
.stages span { padding: 4px 9px; border: 1px solid var(--rule); border-radius: 99px; color: var(--faint); white-space: nowrap; transition: color .3s, border-color .3s; }
.stages span.on { color: var(--text); border-color: var(--text); }
.stages i { flex: 1; min-width: 8px; height: 1px; background: var(--rule); }
.course { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lesson { position: relative; height: 62px; padding: 7px 8px; border: 1px dashed var(--rule); border-radius: 6px; background: var(--bg); transition: border-color .3s, border-style .3s; }
.lesson b { display: block; font: 10px var(--mono); color: var(--faint); font-weight: 400; }
.lesson i { display: block; height: 3px; margin-top: 7px; border-radius: 2px; background: var(--dim); transform-origin: left; }
.lesson i:nth-of-type(2) { width: 70%; }
.lesson i:nth-of-type(3) { width: 85%; }
.lesson em { position: absolute; right: 7px; top: 4px; font: 600 13px var(--sans); font-style: normal; color: var(--text); }
.lesson.planned { border-color: var(--faint); }
.lesson.written { border-style: solid; }
.lesson.bad { border-color: var(--alarm); }
.lesson.bad em { color: var(--alarm); }
.m .lesson i { transform: scaleX(0); }
.m .lesson em { opacity: 0; }
.fig-note { margin: 12px 0 0; font-size: 13px; color: var(--faint); }

/* Lockheed: its own section */
.approved { margin: 18px 0 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--text); font: 400 21px/1.45 var(--serif); color: var(--text); }
.fig-lm { padding: 28px 28px; }
.lm-org { margin: 0; font: 600 clamp(36px, 4.4vw, 54px)/1 var(--serif); letter-spacing: -.02em; }
.lm-lab { margin: 6px 0 0; font-size: 18px; color: var(--dim); }
.lm-role { display: inline-block; margin: 16px 0 0; padding: 5px 12px; border: 1px solid var(--text); border-radius: 99px; font-weight: 600; }
.lm-time { margin-top: 20px; }
.lm-bar { height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.lm-bar i { display: block; height: 100%; background: var(--text); transform-origin: left; }
.m .lm-bar i { transform: scaleX(0); }
.lm-months { display: flex; justify-content: space-between; margin-top: 8px; font: 11px var(--mono); color: var(--faint); }
.lm-did { margin: 20px 0 0; padding: 0; list-style: none; }
.lm-did li { position: relative; padding: 7px 0 7px 18px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.lm-did li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }

/* TechStop: a live help desk board */
.desk { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 14px; }
.desk .fig-label { margin: 0 0 8px; }
.queue { position: relative; height: 172px; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.queue li { display: flex; align-items: center; gap: 6px; height: 34px; margin-bottom: 6px; padding: 0 9px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.queue li.taken { color: var(--faint); border-style: dashed; }
.queue.done li { color: var(--dim); }
.queue.done li::before { content: "✓"; width: auto; height: auto; background: none; color: var(--text); font-weight: 600; }
.team { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; padding: 12px 10px; border: 1px solid var(--rule); border-radius: 8px; }
.team i { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--faint); transition: background-color .25s, border-color .25s; }
.team i.busy { background: var(--text); border-color: var(--text); }
.team i.lead { border: 2px solid var(--alarm); }
.lead-label { margin: 6px 0 0; font: 11px var(--mono); color: var(--alarm); text-align: center; }
.path { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.path div { display: flex; flex-direction: column; }
.path b { font: 600 16px var(--serif); }
.path span { font-size: 12px; color: var(--dim); }
.path i { flex: 1; height: 1px; background: var(--faint); position: relative; }
.path i::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--faint); border-right: 0; }
.desk-stats { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 13px; }
.desk-stats th, .desk-stats td { padding: 4px 0; text-align: left; font-weight: 400; }
.desk-stats td { text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
.desk-stats thead th { padding-bottom: 6px; font: 11px var(--mono); color: var(--faint); border-bottom: 1px solid var(--rule); }
.desk-stats thead th + th { text-align: right; }
.desk-stats tbody th { color: var(--text); }
.desk-stats b { color: var(--text); font-weight: 600; }
