:root {
  --ink: #101820;
  --muted: #66717d;
  --line: #dce2e6;
  --paper: #ffffff;
  --canvas: #f4f7f8;
  --blue: #2455f4;
  --blue-dark: #1537a8;
  --aqua: #9ef2dc;
  --yellow: #ffdf66;
  --radius: 4px;
  --shadow: 0 14px 40px rgba(15, 32, 48, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  height: 82px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 247, 248, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 50%;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.05em;
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 14px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.primary-nav { display: flex; gap: clamp(18px, 3vw, 42px); font-size: 13px; font-weight: 650; }
.primary-nav a { position: relative; padding: 10px 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--blue); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a.is-active::after { right: 0; }
.header-search { display: none; }

main:not(.article-shell) { max-width: 1500px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px) 100px; }
.intro { min-height: 345px; padding: 74px 0 54px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); column-gap: 8vw; align-content: center; border-bottom: 1px solid var(--ink); }
.intro-kicker { grid-column: 1 / -1; margin-bottom: 20px; color: var(--blue); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.intro h1 { margin: 0; font-size: clamp(44px, 6vw, 88px); line-height: .98; letter-spacing: -.07em; font-weight: 720; }
.intro h1 em { color: var(--blue); font-style: normal; }
.intro > p { margin: auto 0 3px; max-width: 430px; color: var(--muted); font-size: clamp(14px, 1.3vw, 17px); line-height: 2; }

.explorer { padding: 38px 0 28px; }
.search-row { display: grid; grid-template-columns: 1fr 150px; gap: 12px; }
.search-box { height: 54px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--paper); border: 1px solid var(--line); transition: border .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,85,244,.1); }
.search-box > span[aria-hidden] { font: 400 29px/1 Georgia, serif; transform: rotate(-15deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: none; color: var(--ink); }
.search-box input::placeholder { color: #8d969f; }
.search-box kbd { padding: 5px 7px; color: var(--muted); background: var(--canvas); border: 1px solid var(--line); border-radius: 3px; font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.sort-box select { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--paper); color: var(--ink); font-size: 12px; }
.filter-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line); padding: 8px 11px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 650; transition: .2s ease; }
.tag span { margin-left: 5px; color: #9da5ac; font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tag:hover, .tag:focus-visible { border-color: var(--ink); color: var(--ink); }
.tag.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag.is-active span { color: var(--aqua); }
.result-count { margin: 0 0 7px; white-space: nowrap; color: var(--muted); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
.result-count strong { color: var(--ink); font-size: 13px; }

.note-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.note-card { min-width: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.note-card:hover, .note-card:focus-visible { transform: translateY(-5px); border-color: #bcc5cc; box-shadow: var(--shadow); outline: none; }
.note-card--featured { grid-column: span 2; grid-row: span 2; }
.thumb { position: relative; height: 158px; overflow: hidden; background: #e7ecf0; border-bottom: 1px solid var(--line); }
.note-card--featured .thumb { height: 312px; }
.card-body { flex: 1; padding: 19px 19px 22px; display: flex; flex-direction: column; }
.note-card--featured .card-body { padding: 26px 28px 30px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; color: #84909a; font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.card-tag { color: var(--blue); }
.card-body h2 { margin: 0; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -.045em; }
.note-card--featured h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.12; }
.card-body p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.note-card--featured p { max-width: 490px; font-size: 14px; }
.read-link { margin-top: auto; padding-top: 24px; color: var(--blue); font-size: 11px; font-weight: 700; }
.read-link b { display: inline-block; margin-left: 4px; transition: transform .2s; }
.note-card:hover .read-link b { transform: translate(3px,-3px); }

.thumb--map { background: var(--blue); }
.thumb--map::before, .thumb--map::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.thumb--map::before { width: 230px; height: 230px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.thumb--map::after { width: 420px; height: 420px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.thumb--map span { position: absolute; z-index: 1; width: 94px; height: 94px; display: grid; place-items: center; color: var(--ink); background: var(--aqua); border-radius: 50%; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.thumb--map span:nth-child(1) { left: 12%; top: 17%; }
.thumb--map span:nth-child(2) { left: 43%; top: 38%; background: var(--yellow); }
.thumb--map span:nth-child(3) { right: 10%; bottom: 12%; background: #fff; }
.thumb--map span:not(:last-child)::after { content: ""; position: absolute; left: 90%; top: 65%; width: 150px; height: 1px; background: rgba(255,255,255,.7); transform: rotate(19deg); transform-origin: left; }
.thumb--steps { display: flex; align-items: center; justify-content: center; gap: 5px; background: #121820; }
.thumb--steps i { width: 56px; height: 76px; display: grid; place-items: center; color: #fff; border: 1px solid #50606d; font: 700 17px/1 ui-monospace, monospace; font-style: normal; }
.thumb--steps i:nth-child(2) { margin-top: -22px; background: var(--blue); border-color: var(--blue); }
.thumb--matrix { background-color: #dffbf3; background-image: linear-gradient(var(--blue) 1px, transparent 1px), linear-gradient(90deg, var(--blue) 1px, transparent 1px); background-size: 24px 24px; }
.thumb--matrix::after { content: "DATA ≠ VALUE"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 ui-monospace, monospace; letter-spacing: .08em; }
.thumb--number { display: flex; align-items: end; gap: 12px; padding: 18px; background: var(--yellow); }
.thumb--number strong { font: 800 82px/.78 ui-monospace, monospace; letter-spacing: -.12em; }
.thumb--number span { padding-bottom: 2px; font: 700 10px/1.35 ui-monospace, monospace; text-transform: uppercase; }
.thumb--quote { padding: 17px 20px; color: #fff; background: #5148a5; }
.thumb--quote span { font: 70px/.7 Georgia, serif; color: var(--aqua); }
.thumb--quote p { margin: 8px 0; font: 700 21px/1.05 ui-monospace, monospace; text-transform: uppercase; }
.thumb--chart { padding: 18px; background: #edf0f2; }
.thumb--chart svg { width: 100%; height: 100%; overflow: visible; }
.thumb--chart path { fill: none; stroke: var(--blue); stroke-width: 4; }
.thumb--chart circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }
.thumb--orbit { background: #0d2936; }
.thumb--orbit::before { content: "BUILD / LEARN"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 11px/1 ui-monospace, monospace; letter-spacing: .1em; }
.thumb--orbit i { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(158,242,220,.45); border-radius: 50%; transform: translate(-50%,-50%); }
.thumb--orbit i:nth-child(1) { width: 70px; height: 70px; }
.thumb--orbit i:nth-child(2) { width: 120px; height: 120px; }
.thumb--orbit i:nth-child(3) { width: 190px; height: 190px; }
.thumb--probability { display: grid; grid-template-columns: .5fr 1fr; grid-template-rows: 1fr 1fr; padding: 18px 24px; background: #c7e9ff; }
.thumb--probability span { align-self: end; font: italic 30px/1 Georgia, serif; }
.thumb--probability strong { grid-row: span 2; align-self: center; font: 750 49px/1 ui-monospace, monospace; letter-spacing: -.09em; }
.thumb--probability small { font: 700 9px/1 ui-monospace, monospace; text-transform: uppercase; }
.thumb--document { padding: 27px; background: #f0ebe3; }
.thumb--document::before { content: ""; position: absolute; inset: 20px 24% 20px; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,.08); }
.thumb--document i { position: relative; display: block; width: 45%; height: 4px; margin: 10px auto; background: #b3bcc1; }
.thumb--document i:nth-child(2) { background: var(--blue); width: 34%; }
.thumb--terminal { display: flex; flex-direction: column; justify-content: center; padding: 24px; color: #d9e6eb; background: #111820; font: 600 12px/1.8 ui-monospace, monospace; }
.thumb--terminal b { color: var(--aqua); }
.thumb--terminal i { margin-top: 8px; color: var(--yellow); font-style: normal; }
.thumb--flow { display: flex; align-items: center; justify-content: center; gap: 7px; background: #e8e5ff; }
.thumb--flow span { display: grid; place-items: center; width: 52px; height: 52px; background: #fff; border: 1px solid #bdb8e8; border-radius: 50%; font-size: 10px; font-weight: 700; }
.thumb--flow b { color: var(--blue); }
.thumb--capital-choice { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; padding: 18px; background: #15212b; }
.thumb--capital-choice span { display: grid; place-items: center; color: var(--ink); background: var(--aqua); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.thumb--capital-choice span:nth-child(1) { height: 37%; background: #fff; }
.thumb--capital-choice span:nth-child(2) { height: 61%; background: var(--yellow); }
.thumb--capital-choice span:nth-child(3) { height: 100%; color: #fff; background: var(--blue); }
.thumb--doc-server { display: flex; align-items: center; justify-content: center; gap: 10px; background: #17232c; }
.thumb--doc-server::before, .thumb--doc-server::after { content: ""; position: absolute; width: 46px; height: 62px; border: 1px solid #6c7b86; background: #26343e; box-shadow: 5px 5px 0 rgba(0,0,0,.18); }
.thumb--doc-server::before { transform: translate(-64px, 4px) rotate(-7deg); }
.thumb--doc-server::after { transform: translate(64px, 4px) rotate(7deg); }
.thumb--doc-server span, .thumb--doc-server b { z-index: 1; display: grid; place-items: center; }
.thumb--doc-server span { width: 42px; height: 42px; color: #17232c; background: var(--aqua); border-radius: 50%; font: 800 11px/1 ui-monospace, monospace; }
.thumb--doc-server span:last-child { background: var(--yellow); }
.thumb--doc-server b { padding: 5px 7px; color: #fff; border: 1px solid #6c7b86; background: #17232c; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .08em; }
.thumb--smile-value { color: var(--ink); background: radial-gradient(circle at 12% 19px, var(--yellow) 0 6px, transparent 7px), radial-gradient(circle at 88% 19px, var(--aqua) 0 6px, transparent 7px), #ff7466; }
.thumb--smile-value::before { content: ""; position: absolute; left: 12%; right: 12%; top: 19px; height: 72px; border: 5px solid var(--ink); border-top: 0; border-radius: 0 0 100px 100px; }
.thumb--smile-value strong { position: absolute; z-index: 1; left: 50%; top: 22px; transform: translateX(-50%); font: 900 clamp(24px, 2.1vw, 34px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.08em; }
.thumb--smile-value span, .thumb--smile-value i { position: absolute; z-index: 1; font: 800 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; font-style: normal; }
.thumb--smile-value span { top: 8px; }
.thumb--smile-value span:nth-of-type(1) { left: 17%; }
.thumb--smile-value span:nth-of-type(2) { right: 15%; }
.thumb--smile-value i { left: 50%; bottom: 10px; transform: translateX(-50%); padding: 5px 7px; color: #fff; background: var(--ink); }
.thumb--dev-mothership { display: grid; place-items: center; color: #fff; background: #10243a; isolation: isolate; }
.thumb--dev-mothership::before, .thumb--dev-mothership::after { content: ""; position: absolute; border: 1px solid rgba(158,242,220,.42); border-radius: 50%; }
.thumb--dev-mothership::before { width: 170px; height: 170px; }
.thumb--dev-mothership::after { width: 250px; height: 250px; border-color: rgba(255,223,102,.3); }
.thumb--dev-mothership strong { z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; color: var(--ink); background: var(--yellow); border-radius: 50%; font: 900 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.05em; }
.thumb--dev-mothership span { position: absolute; z-index: 2; padding: 5px 7px; color: var(--aqua); background: #10243a; border: 1px solid #536476; font: 700 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.thumb--dev-mothership span:nth-of-type(1) { left: 13%; top: 22%; }
.thumb--dev-mothership span:nth-of-type(2) { right: 12%; top: 20%; }
.thumb--dev-mothership span:nth-of-type(3) { left: 15%; bottom: 18%; }
.thumb--dev-mothership span:nth-of-type(4) { right: 15%; bottom: 17%; color: var(--yellow); }
.thumb--layers { display: grid; place-items: center; align-content: center; background: #dae4e8; }
.thumb--layers i { width: 50%; padding: 9px; margin-top: -1px; border: 1px solid var(--ink); background: rgba(255,255,255,.8); text-align: center; font: normal 700 10px/1 ui-monospace, monospace; }
.thumb--layers i:nth-child(2) { width: 63%; background: var(--aqua); }
.thumb--layers i:nth-child(3) { width: 76%; background: var(--blue); color: #fff; }
.thumb--prototype { display: grid; place-items: center; background: var(--yellow); }
.thumb--prototype span { z-index: 2; font: 800 70px/1 Georgia, serif; }
.thumb--prototype i { position: absolute; width: 110px; height: 110px; border: 2px solid var(--ink); transform: rotate(18deg); }
.thumb--prototype i:last-child { transform: rotate(54deg); }
.thumb--prompt { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 25px; color: #fff; background: var(--blue); font: 700 10px/1 ui-monospace, monospace; }
.thumb--prompt span { padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.35); }
.thumb--meeting { display: flex; align-items: end; justify-content: space-between; padding: 20px; color: #fff; background: #d64d55; }
.thumb--meeting b { font: 800 22px/1 ui-monospace, monospace; writing-mode: vertical-rl; }
.thumb--meeting span { font: 700 17px/1.1 ui-monospace, monospace; text-align: right; text-transform: uppercase; }
.thumb--books { display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding-bottom: 27px; background: #e0eef1; }
.thumb--books i { width: 24px; height: 85px; background: var(--blue); transform: rotate(-5deg); }
.thumb--books i:nth-child(2) { height: 101px; background: var(--yellow); transform: rotate(2deg); }
.thumb--books i:nth-child(3) { height: 77px; background: var(--ink); transform: rotate(5deg); }
.thumb--books i:nth-child(4) { height: 92px; background: var(--aqua); transform: rotate(-1deg); }
.thumb--loop { display: flex; align-items: center; justify-content: center; gap: 16px; background: #cff4e6; font: 700 11px/1 ui-monospace, monospace; text-transform: uppercase; }
.thumb--loop b { font-size: 50px; color: var(--blue); }
.thumb--hello { display: flex; flex-direction: column; justify-content: center; padding-left: 25%; background: #1a2128; color: #fff; font: 700 23px/1.1 ui-monospace, monospace; }
.thumb--hello b { color: var(--aqua); }
.empty-state { padding: 80px 20px; background: #fff; border: 1px solid var(--line); text-align: center; }
.empty-state p { color: var(--muted); }
.empty-state button { padding: 10px 15px; border: 0; background: var(--ink); color: #fff; }

.site-footer { max-width: 1500px; margin: 0 auto; padding: 48px clamp(24px, 5vw, 80px); border-top: 1px solid var(--ink); }
.site-footer > p { margin: 0 0 46px; font-size: clamp(21px, 3vw, 40px); letter-spacing: -.04em; }
.site-footer > div { display: flex; justify-content: space-between; color: var(--muted); font: 600 10px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: var(--blue); }

/* Article */
.article-shell { max-width: 1080px; margin: 0 auto; padding: 60px clamp(24px, 5vw, 70px) 100px; display: grid; grid-template-columns: 170px minmax(0, 640px); gap: clamp(40px, 6vw, 80px); }
.article-rail { align-self: stretch; }
.back-link { display: inline-block; margin-bottom: 70px; color: var(--blue); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 16px; }
.toc span { margin-bottom: 6px; color: #9aa3aa; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .15em; }
.toc a { color: var(--muted); font-size: 11px; line-height: 1.5; transition: color .2s; }
.toc a:hover { color: var(--blue); }
.article-content { min-width: 0; }
.article-meta { display: flex; gap: 16px; align-items: center; color: #7e8993; font: 650 9px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.article-meta span { color: var(--blue); }
.article-meta i { margin-left: auto; font-style: normal; }
.article-hero h1 { margin: 24px 0; font-size: clamp(30px, 2.5vw, 32px); line-height: 1.5; letter-spacing: -.025em; }
.article-hero h1 em { color: var(--blue); font-style: normal; }
.lead { max-width: 640px; margin: 0; color: #38434c; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; letter-spacing: -.01em; }
.hero-diagram { margin: 46px 0 72px; padding: 27px; display: grid; grid-template-columns: repeat(5, auto); align-items: center; gap: 16px; color: #fff; background: var(--blue); }
.hero-diagram > div { display: flex; flex-direction: column; }
.hero-diagram small { margin-bottom: 22px; color: var(--aqua); font: 700 9px/1 ui-monospace, monospace; }
.hero-diagram strong { font-size: 17px; }
.hero-diagram span { margin-top: 5px; color: #d7e0ff; font-size: 9px; }
.hero-diagram > b { color: var(--yellow); }
.article-section { margin: 0 0 76px; scroll-margin-top: 120px; }
.section-label { margin: 0 0 14px !important; color: var(--blue) !important; font: 700 9px/1 ui-monospace, monospace !important; letter-spacing: .14em; }
.article-section h2 { margin: 0 0 24px; font-size: clamp(22px, 2vw, 24px); line-height: 1.6; letter-spacing: -.02em; }
.article-section > p { color: #3d4850; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 16px; line-height: 2.05; }
.article-section strong { color: var(--ink); }
.article-section > p a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-section code { padding: .12em .38em; background: #edf1f4; border: 1px solid #d6dde2; font: .82em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
blockquote { margin: 40px 0 0; padding: 27px 30px 27px 72px; position: relative; background: #e3f8f1; border-left: 3px solid var(--aqua); }
blockquote::before { content: "“"; position: absolute; left: 24px; top: 16px; color: var(--blue); font: 58px/1 Georgia, serif; }
blockquote p { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.8; }
.layer-list { border-top: 1px solid var(--ink); }
.layer-list > div { display: grid; grid-template-columns: 45px 145px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.layer-list span { color: var(--blue); font: 700 11px/1 ui-monospace, monospace; }
.layer-list h3 { margin: -4px 0 0; font-size: 18px; }
.layer-list p { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.note-callout { display: grid; grid-template-columns: 70px 1fr; gap: 20px; margin-top: 35px; padding: 22px; border: 1px solid #b8c2c8; background: #fff; }
.note-callout span { color: var(--blue); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .13em; }
.note-callout p { margin: 0; font-size: 13px; line-height: 1.75; }
.service-matrix { margin: 34px 0 30px; overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.service-matrix table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; line-height: 1.65; }
.service-matrix th, .service-matrix td { padding: 17px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.service-matrix thead th { color: var(--muted); font: 700 8px/1.4 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.service-matrix tbody th { width: 110px; color: var(--ink); font-size: 12px; }
.service-matrix tbody th small { color: var(--muted); font-size: 10px; }
.service-matrix tbody td { color: #52606a; }
.service-matrix tr:last-child th, .service-matrix tr:last-child td { border-bottom: 0; }
.service-matrix a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.valuation-matrix table { min-width: 640px; }
.valuation-matrix th, .valuation-matrix td { padding: 13px 6px; }
.valuation-matrix tbody th { width: 72px; }
.valuation-matrix tbody td:nth-child(2) { width: 372px; }
.valuation-matrix tbody td:nth-child(3), .valuation-matrix tbody td:last-child { width: 98px; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.equation > span, .equation > strong { min-width: 58px; padding: 8px 5px; display: flex; flex-direction: column; gap: 5px; color: var(--ink); background: #f2f5f7; border: 1px solid var(--line); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.equation > strong { color: #fff; background: var(--blue); border-color: var(--blue); }
.equation > b { color: var(--blue); font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.equation small { color: var(--muted); font: 700 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.equation > strong small { color: var(--aqua); }
.equation--value > strong { color: var(--ink); background: var(--yellow); border-color: #e6c84f; font-size: 13px; }
.equation--unknown > span:first-child { background: #e3f8f1; }
.equation--aws > span:first-child { background: #e3f8f1; }
.estimated-value strong, .estimated-value small, .actual-value strong, .actual-value small { display: block; }
.estimated-value strong, .actual-value strong { color: var(--ink); font: 800 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.estimated-value small, .actual-value small { margin-top: 8px; color: var(--muted); font: 700 7px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.estimated-value strong { display: inline-block; padding: 8px 9px; background: var(--yellow); }
.actual-value--unknown strong { color: var(--muted); font-size: 13px; }
.ai-dev-orbit { position: relative; height: 430px; margin: 46px 0 78px; overflow: hidden; color: #fff; background: #10243a; }
.ai-dev-orbit::before { content: "CONTROL PLANE / LOCAL CONTEXT / REMOTE EXECUTION"; position: absolute; left: 20px; bottom: 17px; color: #74879a; font: 700 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(158,242,220,.35); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-ring--outer { width: 350px; height: 350px; border-color: rgba(255,223,102,.25); }
.orbit-ring--inner { width: 235px; height: 235px; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--ink); background: var(--yellow); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(255,223,102,.08); text-align: center; }
.orbit-core small { font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.orbit-core strong { margin: 8px 0; font: 900 18px/.9 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.06em; }
.orbit-core span { font-size: 9px; font-weight: 700; }
.orbit-node { position: absolute; z-index: 2; min-width: 118px; padding: 11px 13px; background: #183149; border: 1px solid #536b7e; box-shadow: 5px 5px 0 rgba(0,0,0,.18); }
.orbit-node b, .orbit-node small { display: block; }
.orbit-node b { color: var(--aqua); font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.orbit-node small { margin-top: 6px; color: #a6b5c1; font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.orbit-node--access { left: 26px; top: 48px; }
.orbit-node--context { right: 25px; top: 61px; }
.orbit-node--agents { left: 37px; bottom: 67px; }
.orbit-node--evidence { right: 29px; bottom: 55px; }
.orbit-node--evidence b { color: var(--yellow); }
.access-stack { margin: 32px 0; border-top: 1px solid var(--ink); }
.access-stack > div { display: grid; grid-template-columns: 52px 190px 1fr; gap: 15px; align-items: start; padding: 23px 0; border-bottom: 1px solid var(--line); }
.access-stack span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--blue); background: #e8edff; border-radius: 50%; font-size: 10px; font-weight: 800; }
.access-stack h3 { margin: 3px 0 0; font-size: 15px; line-height: 1.5; }
.access-stack p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.voice-pipeline { margin: 34px 0; padding: 22px; display: grid; grid-template-columns: repeat(7, auto); gap: 10px; align-items: center; color: #fff; background: #10243a; }
.voice-pipeline > div { min-width: 0; }
.voice-pipeline small, .voice-pipeline strong, .voice-pipeline span { display: block; }
.voice-pipeline small { color: var(--aqua); font: 700 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.voice-pipeline strong { margin: 10px 0 6px; font-size: 13px; }
.voice-pipeline span { color: #9eb0be; font-size: 8px; line-height: 1.5; }
.voice-pipeline > b { color: var(--yellow); }
.evidence-card { margin: 34px 0; padding: 24px; color: #dce7ee; background: #10243a; box-shadow: 10px 10px 0 #dce2e6; }
.evidence-card__label { margin: 0 0 19px; color: var(--aqua); font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.evidence-card dl { margin: 0; }
.evidence-card dl div { display: grid; grid-template-columns: 105px 1fr; gap: 15px; padding: 12px 0; border-top: 1px solid #30485d; }
.evidence-card dt { color: var(--yellow); font: 700 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.evidence-card dd { margin: 0; color: #b5c2cb; font-size: 11px; line-height: 1.6; }
.maturity-grid { margin: 34px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.maturity-grid section { min-height: 265px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.maturity-grid section:nth-child(2) { background: #e3f8f1; }
.maturity-grid span { color: var(--blue); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.maturity-grid h3 { margin: 26px 0 12px; font-size: 17px; line-height: 1.45; }
.maturity-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.maturity-grid small { margin-top: auto; padding-top: 18px; color: var(--blue-dark); font-size: 9px; font-weight: 700; line-height: 1.5; }
.source-notes { padding-top: 28px; border-top: 1px solid var(--ink); }
.source-notes ul { margin: 0; padding: 0; list-style: none; }
.source-notes li { padding: 15px 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; border-bottom: 1px solid var(--line); }
.source-notes li a { color: var(--blue); font-size: 11px; font-weight: 700; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; }
.source-notes li span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.code-window { margin-top: 35px; background: #111922; color: #d6e0e6; box-shadow: 12px 12px 0 #dce2e6; }
.code-bar { height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #2d3944; }
.code-bar i { width: 7px; height: 7px; border-radius: 50%; background: #5c6974; }
.code-bar i:first-child { background: #ff7e76; }
.code-bar i:nth-child(2) { background: var(--yellow); }
.code-bar i:nth-child(3) { background: var(--aqua); }
.code-bar span { margin-left: auto; color: #788691; font: 600 8px/1 ui-monospace, monospace; }
.code-window pre { margin: 0; padding: 30px; overflow-x: auto; font: 12px/2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-window pre code { padding: 0; color: inherit; background: none; border: 0; font: inherit; }
.code-window b { color: var(--aqua); }
.rule-list { margin: 0 0 40px; padding: 0; list-style: none; counter-reset: rules; border-top: 1px solid var(--ink); }
.rule-list li { counter-increment: rules; display: grid; grid-template-columns: 55px 1fr; padding: 25px 0; border-bottom: 1px solid var(--line); }
.rule-list li::before { content: "0" counter(rules); color: var(--blue); font: 700 12px/1 ui-monospace, monospace; }
.rule-list strong { display: block; margin-bottom: 7px; font-size: 17px; }
.rule-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.article-end { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-top: 30px; border-top: 1px solid var(--ink); }
.article-end div { display: flex; flex-direction: column; gap: 5px; }
.article-end span { color: var(--muted); font: 700 8px/1 ui-monospace, monospace; text-transform: uppercase; }
.article-end strong { font: 600 11px/1 ui-monospace, monospace; }
.article-end a { color: var(--blue); font-size: 12px; font-weight: 700; }
.related-notes { padding: 65px max(24px, calc((100vw - 1000px) / 2)); background: #182129; color: #fff; }
.related-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.related-heading span { color: var(--aqua); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .13em; }
.related-heading h2 { margin: 0; font-size: clamp(22px, 2vw, 24px); letter-spacing: -.02em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #46525b; border-left: 1px solid #46525b; }
.related-grid a { min-height: 195px; padding: 25px; border-right: 1px solid #46525b; border-bottom: 1px solid #46525b; transition: background .2s; }
.related-grid a:hover { background: #222e37; }
.related-grid span { color: var(--aqua); font: 700 9px/1 ui-monospace, monospace; }
.related-grid h3 { margin: 30px 0 10px; font-size: 18px; line-height: 1.45; }
.related-grid p { margin: 0; color: #9eabb4; font-size: 11px; line-height: 1.7; }
.article-page .site-footer { max-width: none; background: #182129; color: #fff; border-top-color: #46525b; }
.article-page .site-footer > p { font-size: clamp(20px, 2.2vw, 28px); }
.article-page .site-footer > div { color: #8d9aa3; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 1050px) {
  .note-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .note-card--featured { grid-column: span 2; }
  .article-shell { grid-template-columns: 150px minmax(0, 1fr); gap: 55px; }
}

@media (max-width: 700px) {
  .ai-dev-orbit { height: 500px; }
  .orbit-ring--outer { width: 315px; height: 315px; }
  .orbit-ring--inner { width: 210px; height: 210px; }
  .orbit-node { min-width: 110px; }
  .orbit-node--access { left: 14px; top: 48px; }
  .orbit-node--context { right: 13px; top: 106px; }
  .orbit-node--agents { left: 15px; bottom: 99px; }
  .orbit-node--evidence { right: 14px; bottom: 48px; }
  .access-stack > div { grid-template-columns: 42px 1fr; }
  .access-stack p { grid-column: 2; }
  .voice-pipeline { grid-template-columns: 1fr; gap: 13px; }
  .voice-pipeline > b { transform: rotate(90deg); justify-self: center; }
  .maturity-grid { grid-template-columns: 1fr; }
  .maturity-grid section { min-height: 220px; }
  .source-notes li { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 760px) {
  .site-header { height: 68px; }
  .brand-copy { display: none; }
  .primary-nav { gap: 17px; font-size: 11px; }
  .intro { min-height: auto; padding: 55px 0 45px; grid-template-columns: 1fr; }
  .intro h1 { font-size: clamp(42px, 13vw, 68px); }
  .intro > p { margin-top: 30px; }
  .search-row { grid-template-columns: 1fr; }
  .sort-box { display: none; }
  .filter-row { align-items: start; }
  .result-count { margin-top: 10px; }
  .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .note-card--featured { grid-column: 1 / -1; grid-row: auto; }
  .note-card--featured .thumb { height: 255px; }
  .thumb { height: 135px; }
  .card-body { padding: 15px; }
  .card-body p { display: none; }
  .note-card--featured .card-body p { display: block; }
  .note-card--featured h2 { font-size: 34px; }
  .article-shell { display: block; padding-top: 35px; }
  .article-rail { margin-bottom: 35px; }
  .back-link { margin-bottom: 0; }
  .toc { display: none; }
  .article-hero h1 { font-size: 30px; }
  .hero-diagram { grid-template-columns: 1fr; gap: 15px; margin: 45px 0 70px; }
  .hero-diagram > b { transform: rotate(90deg); justify-self: center; }
  .hero-diagram small { margin-bottom: 8px; }
  .layer-list > div { grid-template-columns: 32px 1fr; }
  .layer-list p { grid-column: 2; }
  .related-heading { display: block; }
  .related-heading h2 { margin-top: 15px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  main:not(.article-shell) { padding-left: 16px; padding-right: 16px; }
  .site-header { padding: 0 16px; }
  .intro h1 { font-size: 43px; }
  .filter-row { display: block; }
  .result-count { margin-top: 18px; }
  .note-grid { grid-template-columns: 1fr; }
  .note-card--featured { grid-column: auto; }
  .note-card--featured .thumb { height: 220px; }
  .note-card--featured .card-body { padding: 22px; }
  .thumb--map span { width: 75px; height: 75px; }
  .thumb--map span:not(:last-child)::after { width: 90px; }
  .article-shell { padding-left: 19px; padding-right: 19px; }
  .article-meta { gap: 10px; }
  .article-hero h1 { font-size: 28px; }
  .lead { font-size: 16px; }
  .article-section { margin-bottom: 64px; }
  .article-section > p { font-size: 15px; }
  .note-callout { grid-template-columns: 1fr; }
  .service-matrix { margin-left: -19px; margin-right: -19px; padding: 0 19px; }
  .code-window pre { padding: 22px 18px; font-size: 10px; }
  .article-end { align-items: start; flex-direction: column; }
  .site-footer > p { margin-bottom: 35px; }
}

/* Dense notebook index: the archive itself is the hero. */
.home-page { background: #edf0f2; }
.home-page .site-header {
  height: 60px;
  padding: 0 clamp(18px, 3vw, 46px);
  gap: 24px;
  color: #fff;
  background: #5c78d8;
  border-bottom: 0;
  backdrop-filter: none;
}
.home-page .brand { flex: 0 0 auto; }
.home-page .brand-mark { width: 34px; height: 34px; color: #5c78d8; background: #fff; }
.home-page .brand-copy strong { font-size: 14px; }
.home-page .brand-copy small { color: #dfe6ff; }
.home-page .header-search {
  max-width: 720px;
  height: 38px;
  margin-left: auto;
  flex: 1 1 450px;
  display: flex;
  align-items: center;
  padding: 0 11px 0 15px;
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
}
.home-page .header-search:focus-within { background: #fff; color: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.24); }
.home-page .header-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: inherit; font-size: 13px; }
.home-page .header-search input::placeholder { color: rgba(255,255,255,.72); }
.home-page .header-search:focus-within input::placeholder { color: #9aa3aa; }
.home-page .header-search > span[aria-hidden] { font: 28px/1 Georgia, serif; transform: rotate(-15deg); }
.home-page .primary-nav { flex: 0 0 auto; gap: 20px; font-size: 11px; }
.home-page .primary-nav a::after { background: #fff; }
.home-page main:not(.article-shell) { max-width: 1740px; padding: 0 clamp(18px, 3.6vw, 70px) 80px; }
.home-page .intro {
  min-height: 0;
  padding: 15px 0 14px;
  grid-template-columns: minmax(300px, 1.1fr) minmax(260px, .9fr);
  column-gap: 6vw;
  border-bottom: 0;
}
.home-page .intro-kicker { margin-bottom: 5px; font-size: 7px; }
.home-page .intro h1 { font-size: clamp(18px, 1.65vw, 24px); line-height: 1.15; letter-spacing: -.045em; white-space: nowrap; }
.home-page .intro > p { margin: auto 0 0; font-size: 11px; line-height: 1.8; }
.home-page .explorer { padding: 0 0 15px; }
.home-page .filter-row { align-items: center; margin-top: 0; }
.home-page .tag { padding: 6px 9px; border-color: #cbd2d7; background: rgba(255,255,255,.55); font-size: 10px; }
.home-page .tag.is-active { background: #26313a; border-color: #26313a; }
.list-controls { display: flex; align-items: center; gap: 12px; }
.home-page .result-count { margin: 0; }
.home-page .sort-box select { width: auto; height: 30px; padding: 0 25px 0 8px; border-color: #cbd2d7; background: rgba(255,255,255,.6); font-size: 10px; }
.home-page .note-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 13px; align-items: stretch; }
.home-page .note-card { box-shadow: 0 2px 0 rgba(16,24,32,.2); }
.home-page .note-card:hover, .home-page .note-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,32,48,.14); }
.home-page .thumb, .home-page .note-card--featured .thumb { height: 110px; }
.home-page .card-body, .home-page .note-card--featured .card-body { min-height: 147px; padding: 13px 14px 15px; }
.home-page .card-meta { margin-bottom: 12px; font-size: 8px; }
.home-page .card-body h2, .home-page .note-card--featured h2 { font-size: 15px; line-height: 1.4; letter-spacing: -.035em; }
.home-page .card-body p, .home-page .note-card--featured p { display: -webkit-box; margin-top: 9px; overflow: hidden; color: #6d757c; font-size: 10px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.home-page .read-link { margin-top: 12px; padding-top: 0; font-size: 9px; }
.home-page .thumb--map span { width: 53px; height: 53px; font-size: 7px; }
.home-page .thumb--map::before { width: 130px; height: 130px; }
.home-page .thumb--map::after { width: 230px; height: 230px; }
.home-page .thumb--map span:not(:last-child)::after { width: 75px; }
.home-page .site-footer { max-width: 1740px; }

@media (min-width: 1500px) {
  .home-page .note-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-page .site-header { gap: 12px; }
  .home-page .brand { display: none; }
  .home-page .header-search { flex-basis: auto; }
  .home-page .primary-nav a:not(.is-active) { display: none; }
  .home-page .intro { padding-top: 16px; grid-template-columns: 1fr; }
  .home-page .intro h1 { white-space: normal; }
  .home-page .intro > p { margin-top: 13px; }
  .home-page .filter-row { display: block; }
  .home-page .tags { flex-wrap: nowrap; padding-bottom: 5px; overflow-x: auto; }
  .home-page .tag { white-space: nowrap; }
  .list-controls { margin-top: 10px; justify-content: space-between; }
  .home-page .sort-box { display: block; }
  .home-page .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .card-body, .home-page .note-card--featured .card-body { min-height: 140px; }
}
@media (max-width: 440px) {
  .home-page main:not(.article-shell) { padding-left: 12px; padding-right: 12px; }
  .home-page .site-header { padding: 0 12px; }
  .home-page .intro h1 { font-size: 21px; }
  .home-page .note-grid { gap: 9px; }
  .home-page .thumb, .home-page .note-card--featured .thumb { height: 105px; }
  .home-page .card-body, .home-page .note-card--featured .card-body { min-height: 143px; padding: 12px; }
  .home-page .card-body h2, .home-page .note-card--featured h2 { font-size: 14px; }
}
