/* main.css: the site's only stylesheet. Merged 29 Nov 2026 from site.css, exec.css, vibe.css and final.css, in that order, so the cascade is unchanged. */

/* ===== was site.css ===== */
/* Kiran Tallapragada: ink and amber. No frameworks, no web fonts, no trackers. */
:root {
  --ink: #0b0f17; --ink-2: #111827; --ink-3: #1b2333; --line: #263043;
  --text: #e7ebf3; --muted: #9aa6bb; --faint: #6b7890;
  --amber: #f5b942; --amber-2: #ffd27a; --teal: #4fd1c5; --rose: #f472b6; --violet: #a78bfa;
  --radius: 14px; --wrap: 1120px;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: light) {
  :root { --ink: #fbfaf7; --ink-2: #ffffff; --ink-3: #f3f1ea; --line: #e4dfd2;
    --text: #141821; --muted: #4c5566; --faint: #7a8396; --amber: #b7791f; --amber-2: #8a5a12;
    --teal: #0f8f84; --rose: #c2417f; --violet: #6d4fd8; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.accent { color: var(--amber); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #111; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--ink) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--amber), var(--rose)); color: #0b0f17; font: 700 14px var(--mono); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); text-decoration: none; }
.nav-gh { display: inline-flex; }

/* type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 760; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.kicker { font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--amber) 40%, transparent) 0); }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--amber), var(--rose) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  font: 600 15px var(--sans); border: 1px solid var(--line); cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #111; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-2); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); }
.copy .copy-label { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.14); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--amber) 22%, transparent), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 14px var(--mono); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0 0 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.stats { list-style: none; display: flex; gap: 24px; padding: 0; margin: 40px 0 0; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; flex: 1 1 0; min-width: 120px; }
.stats strong { font: 700 1.9rem/1 var(--mono); color: var(--text); }
.stats span { font-size: 13px; color: var(--faint); margin-top: 6px; }

/* terminal */
.term { margin: 0; border-radius: var(--radius); background: #0a0d14; border: 1px solid #263043;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(245,185,66,.06); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #1d2535; color: #6b7890; font: 12px var(--mono); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3346; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
.term-body { margin: 0; padding: 18px 20px 22px; color: #c9d3e3; font: 13px/1.7 var(--mono); white-space: pre; overflow-x: auto; min-height: 380px; }
.term-body .p { color: #f5b942; } .term-body .cmd { color: #fff; } .term-body b { color: #ffd27a; font-weight: 600; }
.term-body .ok { color: #4fd1c5; font-weight: 700; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: #f5b942; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term figcaption { padding: 10px 16px 14px; font-size: 13px; color: #6b7890; border-top: 1px solid #1d2535; }

/* bands */
section { padding: 88px 0; }
.band { background: var(--ink-2); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.card { position: relative; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .2s, border-color .2s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c, var(--amber)); }
.card:hover { transform: translateY(-4px); border-color: var(--c, var(--amber)); }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.c-life { --c: var(--teal); } .c-tax { --c: var(--amber); } .c-ai { --c: var(--violet); } .c-chain { --c: var(--rose); }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* principles */
.rules { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.rules li { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; }
.rules li:nth-child(odd) { border-right: 1px solid var(--line); }
.rules li:nth-child(even) { padding-left: 28px; }
.rules .num { grid-row: span 2; font: 700 1.2rem var(--mono); color: var(--amber); padding-top: 2px; }
.rules p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* feature */
.feature-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.arch { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 13px var(--mono); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  background: var(--ink-3); transition: color .2s, border-color .2s; }
.chip:hover { color: var(--amber); border-color: var(--amber); }

/* writing */
.posts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.posts a { display: flex; justify-content: space-between; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.posts a:hover { text-decoration: none; color: var(--amber); }
.post-title { font-weight: 600; font-size: 1.1rem; } .post-meta { font: 13px var(--mono); color: var(--faint); white-space: nowrap; }
.soon { margin-top: 24px; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); max-width: 760px; }
.soon p { margin: 0 0 18px; color: var(--muted); }

/* closing */
.closing { text-align: center; background:
  radial-gradient(ellipse 60% 120% at 50% 100%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%); }
.closing .lede { margin: 0 auto 28px; }

/* prose pages */
.prose { max-width: 760px; padding-top: 72px; padding-bottom: 88px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; } .prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose code { font: .88em var(--mono); background: var(--ink-3); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
.prose pre { background: #0a0d14; color: #c9d3e3; border: 1px solid #263043; border-radius: var(--radius); padding: 18px; overflow-x: auto; font: 13.5px/1.6 var(--mono); }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; }
.prose td { font-variant-numeric: tabular-nums; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--amber); color: var(--muted); }
.post-end { margin-top: 3em; }
.project { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 26px 0; background: var(--ink-2); }
.project h2 { margin-top: 0; }
.tag { display: inline-block; font: 12px var(--mono); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-right: 6px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--faint); }
.foot-line { margin: 0; font-family: var(--mono); }
.foot-links { margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }

/* reveal on scroll (JS adds .in) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .hero-inner, .feature-inner { grid-template-columns: 1fr; }
  .term { transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav { gap: 14px; } .brand-name { display: none; }
  section { padding: 64px 0; } .hero { padding: 56px 0; }
  .cards, .rules { grid-template-columns: 1fr; }
  .rules li:nth-child(odd) { border-right: 0; } .rules li:nth-child(even) { padding-left: 0; }
  .term-body { font-size: 11.5px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* gpu-fit calculator */
.calc-hero { padding: 64px 0 8px; }
.calc { padding: 24px 0 88px; }
.calc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: start; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.controls label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.controls select, .controls input[type=number] { display: block; width: 100%; margin-top: 8px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ink-3); color: var(--text); font: 15px var(--sans); }
.controls input[type=range] { width: 100%; margin-top: 12px; accent-color: var(--amber); }
.controls output { float: right; color: var(--amber); font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticks-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 4px; }
.hint { font-size: 13.5px; color: var(--faint); margin: 6px 0 0; }
.verdict { border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.verdict strong { font-size: 1.25rem; }
.verdict span { color: var(--muted); font-size: 14.5px; }
.v-ok { background: color-mix(in srgb, var(--teal) 14%, transparent); } .v-ok strong { color: var(--teal); }
.v-warn { background: color-mix(in srgb, var(--amber) 14%, transparent); } .v-warn strong { color: var(--amber); }
.v-no { background: color-mix(in srgb, var(--rose) 14%, transparent); } .v-no strong { color: var(--rose); }
.bar { position: relative; display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); }
.seg { height: 100%; transition: width .35s ease; } .seg.w { background: var(--violet); } .seg.o { background: var(--faint); }
.seg.k { background: var(--teal); } .seg.r { background: repeating-linear-gradient(45deg, var(--line), var(--line) 4px, transparent 4px, transparent 8px); }
.bar .over { position: absolute; right: 10px; top: 0; font: 11px/18px var(--mono); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--faint); margin: 8px 0 18px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.w { background: var(--violet); } .sw.o { background: var(--faint); } .sw.k { background: var(--teal); } .sw.r { background: var(--line); }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0 0 18px; }
.figs div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.figs dt { color: var(--muted); } .figs dd { margin: 0; color: var(--text); }
.cmd pre { margin: 0 0 12px; background: #0a0d14; color: #ffd27a; border: 1px solid #263043; border-radius: 12px; padding: 14px 16px; font-size: 13px; overflow-x: auto; }
.notes { font-size: 13.5px; color: var(--faint); margin: 14px 0 0; }
.scan-title { margin-top: 48px; font-size: 1.5rem; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.scan { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.scan th, .scan td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.scan th { color: var(--faint); font-weight: 600; font-size: 13px; }
.scan tr.dim td { color: var(--faint); }
.pick { font: 600 13px var(--sans); color: var(--amber); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.pick:hover { border-color: var(--amber); }
@media (max-width: 960px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .row2, .figs { grid-template-columns: 1fr; } }
/* post list with summaries */
.posts li { border-bottom: 1px solid var(--line); }
.posts li a { border-bottom: none; padding-bottom: 6px; }
.post-desc { margin: 0 4px 20px; color: var(--faint); font-size: .95rem; line-height: 1.55; max-width: 70ch; }
.next-up { margin-top: 36px; }
.next-up li { margin: 6px 0; color: var(--faint); }

/* Career strip (home) and portrait (about) */
.career { list-style: none; padding: 0; margin: 4px 0 30px; display: grid; gap: 10px; max-width: 900px; }
.career li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; color: var(--muted); font-size: .98rem; }
.career .yr { font-family: var(--mono, ui-monospace, monospace); color: var(--amber); font-size: .9rem; padding-top: 2px; }
.career b { color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .career li { grid-template-columns: 1fr; gap: 2px; } }
.cta.center { justify-content: center; margin-top: 0; }
.portrait { float: right; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 0 16px 24px; border: 2px solid var(--line); }
@media (max-width: 560px) { .portrait { float: none; display: block; margin: 0 0 18px; } }
.notfound { text-align: center; padding: 40px 0 20px; }
.notfound .code { font-family: var(--mono, ui-monospace, monospace); color: var(--amber); font-size: 3rem; margin: 0; }

/* The Fit: live GPU-memory instrument in the hero */
.fit { margin: 0; border-radius: var(--radius); background: #0a0d14; border: 1px solid #263043; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); color: #e7ebf3; }
.fit[hidden], .term[hidden] { display: none; }
.fit-controls { display: grid; gap: 8px; padding: 14px 16px 4px; }
.fit-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fit-row button { font: 12px var(--mono); color: #9aa6bb; background: transparent; border: 1px solid #263043;
  border-radius: 999px; padding: 6px 12px; min-height: 32px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.fit-row button:hover { color: #e7ebf3; border-color: #3a4760; }
.fit-row button[aria-pressed="true"] { color: #0b0f17; background: #f5b942; border-color: #f5b942; }
.fit canvas { display: block; width: 100%; height: 300px; }
.fit-read { margin: 0; padding: 4px 16px 10px; font: 13px/1.55 var(--mono); color: #c3cad6; min-height: 3.2em; }
.fit-read .ok { color: #4fd1c5; } .fit-read .no { color: #ff8a8e; }
.fit figcaption { padding: 10px 16px 14px; border-top: 1px solid #1d2535; font-size: 13px; color: #6b7890; }
@media (max-width: 520px) { .fit canvas { height: 260px; } }

/* ==========================================================================
   Calibrated: a cool lab sheet, a measurement-scale rail, one dark instrument.
   Later rules intentionally override the earlier dark theme.
   ========================================================================== */
:root {
  --ink: #e9edf0; --ink-2: #f5f7f9; --ink-3: #dde3e8; --line: #bac4cd;
  --text: #102030; --muted: #4e5d6c; --faint: #556274; --signal: #2448d8;
  --amber: #b7791f; --amber-2: #8a5a12; --teal: #0f8f84; --violet: #6d4fd8; --rose: #c2417f;
  --sans: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Iowan Old Style", "Sitka Text", Georgia, serif;
  --rail: 120px; --radius: 10px; --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #0f1822; --ink-2: #14202c; --ink-3: #1a2836; --line: #2d3b4a;
    --text: #e4eaf0; --muted: #a3b0be; --faint: #8796a6; --signal: #8aa4ff;
    --amber: #f5b942; --amber-2: #ffd27a; --teal: #4fd1c5; --violet: #a78bfa; --rose: #f472b6; }
}
body { font: 18px/1.65 var(--sans); background: var(--ink); color: var(--text); padding-left: var(--rail); }
a { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); }
.skip { background: var(--signal); color: #fff; }
.accent { color: var(--signal); }
h1, h2, h3 { font-family: var(--sans); letter-spacing: -0.025em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 650; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 620; max-width: 26ch; }
.lede { color: var(--muted); font-size: 1.15rem; }
.mono, .spec dd, .post-meta, .yr, .yr-tick { font-variant-numeric: tabular-nums; }

/* Buttons: ink, not glow */
.btn { border-radius: 6px; font-weight: 600; }
.btn:hover { transform: none; }
.btn-primary { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn-primary:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.copy .copy-label { background: color-mix(in srgb, var(--ink) 18%, transparent); }

/* The rail: a measurement scale used as navigation */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 20; display: flex; flex-direction: column;
  padding: 26px 0 22px 20px; border-right: 1px solid var(--line); background: var(--ink); }
.rail-name { color: var(--text); font-weight: 650; font-size: 15px; line-height: 1.2; letter-spacing: -0.01em; }
.rail-name:hover { text-decoration: none; color: var(--signal); }
.scale { position: relative; flex: 1; margin: 34px 0 26px; }
.scale::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 22px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 9px) right / 10px 100% no-repeat,
              repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 45px) right / 22px 100% no-repeat; }
.scale ol { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.scale li { position: relative; }
.scale a { display: block; padding: 4px 34px 4px 0; color: var(--muted); font-size: 14px; }
.scale a::after { content: ""; position: absolute; right: 0; top: 50%; width: 14px; height: 1px; background: var(--muted); }
.scale a:hover { color: var(--text); text-decoration: none; }
.scale a[aria-current] { color: var(--text); font-weight: 650; }
.scale a[aria-current]::after { width: 30px; height: 2px; background: var(--text); }
.needle { position: absolute; right: 0; top: var(--p, 0%); width: 40px; height: 2px; background: var(--signal);
  transform: translateY(-1px); transition: top .12s linear; pointer-events: none; }
.needle::before { content: ""; position: absolute; left: -7px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--signal); }
.rail-gh { color: var(--muted); font-size: 14px; }

/* Hero: one quiet sheet, one dark instrument */
.hero { padding: 72px 0 80px; overflow: visible; }
.hero::after, .grid-bg { display: none; }
.hero-inner { grid-template-columns: 1fr minmax(0, 500px); gap: 56px; align-items: start; }
.hero h1 { margin-bottom: .45em; padding-bottom: 22px; position: relative; }
.hero h1::after { content: ""; position: absolute; left: 0; right: 12%; bottom: 0; height: 12px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px) bottom / 100% 6px no-repeat,
              repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 50px) bottom / 100% 12px no-repeat; }
.spec { margin: 40px 0 0; border-top: 1px solid var(--line); max-width: 520px; }
.spec div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 15px; }
.spec dd { margin: 0; font: 600 15px var(--mono); color: var(--text); }
.fit, .term { box-shadow: 0 1px 0 rgba(16,32,48,.04), 0 24px 60px -28px rgba(16,32,48,.45); }

/* Sections */
section { padding: 84px 0; }
.band { background: none; border: 0; }
.career-sec, .principles, .writing { border-top: 1px solid var(--line); }
.practice, .feature, .closing { border-top: 1px solid var(--line); }

/* Career: a timeline ruler */
.timeline { position: relative; height: 74px; margin: 36px 0 30px; border-bottom: 1px solid var(--text); }
.timeline .seg { position: absolute; bottom: 14px; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1% - 4px);
  height: 30px; display: flex; align-items: center; padding: 0 10px; font-size: 13px; font-weight: 600; color: #fff;
  border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-tel { background: #66748a; } .s-com { background: #3d5a80; } .s-pha { background: #2448d8; } .s-cto { background: #102030; }
@media (prefers-color-scheme: dark) { .s-tel { background: #4a5a6e; } .s-com { background: #3d5a80; } .s-pha { background: #3a5ae0; } .s-cto { background: #e4eaf0; color: #102030; } }
.yr-tick { position: absolute; bottom: -24px; left: calc(var(--a) * 1%); font: 12px var(--mono); color: var(--muted); transform: translateX(-1px); }
.yr-tick::before { content: ""; position: absolute; left: 0; top: -9px; width: 1px; height: 8px; background: var(--text); }
.yr-tick.end { transform: translateX(-100%); } .yr-tick.end::before { left: auto; right: 0; }
.career { list-style: none; padding: 0; margin: 48px 0 0; }
.career li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.career .yr { font: 14px/1.9 var(--mono); color: var(--muted); }
.career b { color: var(--text); }
.career div { max-width: 70ch; color: var(--muted); }

/* Practice and rules: a datasheet, not cards */
.sheet, .rules { margin: 30px 0 0; border-top: 1px solid var(--text); }
.sheet div { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sheet dt { font-weight: 650; }
.sheet dd, .rules dd { margin: 0; color: var(--muted); max-width: 68ch; }
.rules { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; list-style: none; padding: 0; }
.rules div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rules dt { font-weight: 650; margin-bottom: 6px; }

/* gpu-fit */
.feature-inner { grid-template-columns: 1.3fr .7fr; gap: 64px; }
.ticks li::before { content: ""; top: .72em; width: 12px; height: 1px; background: var(--text); }
.arch-title { font-weight: 650; margin: 6px 0 12px; }
.arch ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.arch li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* Writing */
.posts { border-top: 1px solid var(--text); }
.posts a { color: var(--text); }
.posts a:hover { color: var(--signal); }
.post-meta { font-family: var(--mono); color: var(--muted); }
.post-desc { color: var(--muted); }

/* Closing */
.closing { text-align: left; background: none; }
.closing .lede { margin: 0 0 8px; }

/* Long-form reading in a serif */
.prose { padding-top: 64px; }
.prose p, .prose li { font-family: var(--serif); font-size: 1.08rem; line-height: 1.75; }
.prose h2 { max-width: none; }
.prose code { background: var(--ink-3); border-color: var(--line); }
.prose blockquote { border-left-color: var(--text); }
.post-date { color: var(--muted); font: 14px var(--mono); margin: 0 0 14px; }
.project, .panel { background: var(--ink-2); border-color: var(--line); }
.foot { border-top: 1px solid var(--line); }
.foot-line { font-family: var(--sans); color: var(--muted); }

/* Motion: one orchestrated moment (the instrument); no scroll reveals */
.reveal, .reveal.in { opacity: 1; transform: none; transition: none; }

/* Small screens: the rail becomes a top scale */
@media (max-width: 900px) {
  body { padding-left: 0; }
  .rail { position: sticky; inset: 0 0 auto; width: auto; height: auto; flex-direction: row; align-items: center;
    gap: 16px; padding: 12px 20px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-name br { display: none; }
  .rail-name { white-space: nowrap; }
  .scale { margin: 0; flex: 1; overflow-x: auto; }
  .scale::before { top: auto; left: 0; right: 0; bottom: -10px; width: auto; height: 8px;
    background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 9px) bottom / 100% 6px no-repeat; }
  .scale ol { flex-direction: row; gap: 18px; height: auto; justify-content: flex-start; }
  .scale a { padding: 2px 0; white-space: nowrap; }
  .scale a::after { display: none; }
  .scale a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .needle { display: none; }
  .rail-gh { display: none; }
  .hero-inner, .feature-inner { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .sheet div, .career li { grid-template-columns: 1fr; gap: 6px; }
  .timeline .seg { font-size: 11px; padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .needle { transition: none; } }
.rail-name span { display: block; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); }
.hero-inner { grid-template-columns: 1fr minmax(0, 480px); }
@media (max-width: 900px) { .rail-name span { display: inline; } }

.arch { display: block; }
.skip:focus { z-index: 40; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .rail { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scale { overflow: visible; width: 100%; }
  .scale ol { flex-wrap: wrap; row-gap: 6px; column-gap: 18px; }
}

/* Interfaces: contact as a connector panel */
.ports { margin: 18px 0 0; border-top: 1px solid var(--text); font-family: var(--sans); }
.port { display: grid; grid-template-columns: 22px 120px 1fr auto; align-items: center; gap: 14px; padding: 12px 6px;
  border-bottom: 1px solid var(--line); color: var(--text); position: relative; }
a.port:hover, .port:focus-within { text-decoration: none; background: color-mix(in srgb, var(--signal) 7%, transparent); }
.port svg { width: 18px; height: 18px; fill: currentColor; color: var(--muted); }
a.port:hover svg { color: var(--signal); }
.port-name { font-weight: 650; font-size: 15px; }
.port-val { font: 14px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.port-act { font-size: 13px; color: var(--signal); white-space: nowrap; }
.port button.port-act { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.port button.port-act:hover { border-color: var(--signal); }
.port::before { content: ""; position: absolute; left: -10px; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--line); transform: translateY(-50%); transition: background .2s; }
a.port:hover::before, .port:focus-within::before { background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent); }
@media (max-width: 600px) { .port { grid-template-columns: 22px 1fr auto; } .port-val { grid-column: 2 / -1; grid-row: 2; } }
ul.ports { list-style: none; padding: 0; }
ul.ports li { margin: 0; }

/* Timeline, refined: thin bars, labels above, current role in the accent */
.timeline { height: 70px; border-bottom: 0; margin: 40px 0 34px; }
.timeline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.timeline .seg { bottom: 16px; height: 6px; padding: 0; border-radius: 3px; overflow: visible; background: var(--line); }
.timeline .seg b { position: absolute; left: 0; bottom: 14px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.timeline .s-tel { background: #c6ced6; } .timeline .s-com { background: #a9b5c1; } .timeline .s-pha { background: #7f8fa1; }
.timeline .s-cto { background: var(--signal); } .timeline .s-cto b { color: var(--text); font-weight: 700; }
@media (prefers-color-scheme: dark) {
  .timeline .s-tel { background: #2b3846; } .timeline .s-com { background: #3a4a5c; } .timeline .s-pha { background: #536579; }
  .timeline .s-cto { background: var(--signal); color: inherit; }
}
.yr-tick { bottom: -26px; }
.yr-tick::before { top: -10px; height: 7px; background: var(--line); }
@media (max-width: 900px) { .timeline .seg b { font-size: 11px; } .timeline .s-tel b { display: none; } }

/* Executive refinement: lighter display weights, monospace only inside the instrument */
h1 { font-weight: 560; letter-spacing: -0.03em; }
h2 { font-weight: 560; letter-spacing: -0.02em; }
.hero h1 { line-height: 1.04; }
.spec dd { font: 600 15px var(--sans); letter-spacing: 0; }
.career .yr, .yr-tick, .post-meta, .post-date { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.career .yr { font-size: 14px; color: var(--muted); }
.yr-tick { font-size: 12px; }
section { padding: 92px 0; }

/* Colour with meaning: topic palette for notes and areas of work */
.notes { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.page-body .notes { grid-template-columns: 1fr; }
.note a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 24px 20px 26px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); color: var(--text); overflow: hidden; transition: border-color .2s, transform .2s; }
.note a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc); }
.note a:hover { text-decoration: none; border-color: var(--tc); transform: translateY(-2px); }
.note-topic { font-size: 12.5px; font-weight: 650; color: var(--tc); letter-spacing: .01em; }
.note-title { font-size: 1.22rem; font-weight: 620; line-height: 1.3; letter-spacing: -0.01em; }
.note-desc { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.note-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 18px; border-top: 1px solid var(--line); }
.note-figure { color: var(--muted); font-size: 14px; }
.note-figure b { color: var(--tc); font-size: 1.35rem; font-weight: 650; margin-right: 6px; font-variant-numeric: tabular-nums; }
.note-meta { color: var(--faint); font-size: 13px; white-space: nowrap; }
.prose .notes .note-desc, .prose .notes .note-title, .prose .notes span { font-family: var(--sans); }
.next-title { margin-top: 2.4em; font-size: 1.3rem; }
.next { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.next li { position: relative; padding: 14px 0 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--sans); color: var(--text); }
.next li::before { content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }
.next .note-topic { display: block; margin-bottom: 2px; }
.follow { margin-top: 22px; font-family: var(--sans); }
.sheet div { position: relative; padding-left: 18px; }
.sheet div::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 2px; background: var(--tc, var(--line)); }
@media (prefers-reduced-motion: reduce) { .note a { transition: none; } .note a:hover { transform: none; } }
@media (min-width: 901px) { .writing .notes { grid-template-columns: repeat(2, 1fr); } }
/* Contrast: topic text mixes the topic hue toward the ink colour; meta uses muted ink */
.note-topic { color: color-mix(in srgb, var(--tc) 62%, var(--text)); }
.note-meta { color: var(--muted); }
.note-hook { font-family: var(--serif); font-size: 1.06rem; line-height: 1.6; color: var(--text); opacity: .86; }

/* ===== was exec.css ===== */
/* Executive profile redesign (Nov 2026). Loaded after site.css and overrides it.
   Newsreader (serif) for headlines and reading; Instrument Sans for interface text. */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --ink: #f8f9fb; --ink-2: #ffffff; --ink-3: #eef1f5; --line: #e0e5eb;
  --text: #13202f; --muted: #536173; --faint: #5f6c7e; --signal: #1f4fd6;
  --amber: #a86d12; --teal: #0d7f76; --violet: #5b41c8; --rose: #b03a73;
  --serif: "Newsreader", Charter, "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1140px; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #0c121a; --ink-2: #121a24; --ink-3: #151f2b; --line: #243142;
    --text: #e9eef4; --muted: #a8b4c3; --faint: #929fb0; --signal: #95adff;
    --amber: #f0b44a; --teal: #57cfc3; --violet: #ad97fb; --rose: #f07cb5; }
}

body { padding-left: 0; font: 17px/1.65 var(--sans); background: var(--ink); color: var(--text); }
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--text); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 440; line-height: 1.04; margin: 0 0 .4em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 440; line-height: 1.12; margin: 0 0 .6em; max-width: 22ch; }
h3 { font-size: 1.3rem; font-weight: 560; line-height: 1.3; margin: 0 0 .4em; letter-spacing: -0.005em; }
.x-kicker { font: 600 14px/1 var(--sans); color: var(--signal); margin: 0 0 14px; letter-spacing: .01em; }
.x-lede, .lede { font-size: 1.18rem; line-height: 1.6; color: var(--muted); max-width: 60ch; }
section { padding: 104px 0; border-top: 0; }

/* Buttons */
.btn { font: 600 15px var(--sans); border-radius: 999px; padding: 12px 22px; }
.btn-primary { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn-primary:hover { background: var(--signal); border-color: var(--signal); color: #fff; text-decoration: none; }
.btn-ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); text-decoration: none; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.mark { font: 560 21px var(--serif); color: var(--text); letter-spacing: -0.01em; }
.mark:hover { text-decoration: none; color: var(--text); }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { font: 500 15px var(--sans); color: var(--muted); padding: 6px 0; }
.topbar nav a:hover { color: var(--text); text-decoration: none; }
.topbar nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--signal); }

/* Hero */
.x-hero { padding: 96px 0 72px; }
.x-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: center; }
.x-hero h1 { max-width: 15ch; }
.x-hero .cta { margin-top: 34px; }
.x-portrait { margin: 0; }
.x-portrait img { display: block; width: 280px; height: 280px; object-fit: cover; border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(19, 32, 47, .45), 0 0 0 1px var(--line); }
.x-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 72px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.x-facts dt { font: 440 2.6rem/1 var(--serif); color: var(--text); letter-spacing: -0.02em; margin-bottom: 10px; }
.x-facts dd { margin: 0; color: var(--muted); font-size: 15px; max-width: 28ch; }

/* Story */
.x-moment { position: relative; margin: 40px 0 0; padding-left: 26px; }
.x-moment::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--signal); border-radius: 2px; }
.x-moment h3 { font-size: 1.45rem; font-style: italic; font-weight: 500; }
.x-moment p { font: 1.15rem/1.75 var(--serif); color: var(--text); opacity: .9; margin: 0; }

/* Journey */
.x-chapters { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.x-chapters li { padding-top: 22px; border-top: 3px solid var(--line); }
.x-chapters li.now { border-top-color: var(--signal); }
.x-yr { display: block; font: 600 13px var(--sans); color: var(--muted); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.x-chapters li.now .x-yr { color: var(--signal); }
.x-chapters p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* Areas */
.x-areas { background: var(--ink-3); }
.x-areas .sheet { border-top: 1px solid var(--line); }
.x-areas .sheet dt { font: 560 1.15rem var(--serif); }

/* Proof: the live instrument */
.x-proof-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.x-proof .fit, .x-proof .term { border-radius: 18px; }

/* gpu-fit detail */
.feature { padding-top: 24px; }
.feature h2 { max-width: none; }
.arch li { font-size: 15px; }

/* Principles */
.x-principles { background: var(--ink-3); }
.x-principles .rules { grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-top: 1px solid var(--line); }
.x-principles .rules dt { font: 560 1.2rem var(--serif); margin-bottom: 8px; }
.x-principles .rules dd { font-size: 15.5px; }

/* Notes */
.note a { border-radius: 16px; background: var(--ink-2); }
.note-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 520; }
.note-hook { font-family: var(--serif); font-size: 1.08rem; }
.x-notes .notes { grid-template-columns: repeat(2, 1fr); }

/* Elsewhere */
.x-elsewhere { padding-top: 64px; }

/* Articles */
.x-article { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.x-topic { font: 600 14px var(--sans); color: var(--muted); margin: 0 0 18px; }
.x-topic a { color: var(--muted); }
.x-topic-name { color: color-mix(in srgb, var(--tc) 65%, var(--text)); }
.x-article h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: none; }
.x-standfirst { font: italic 400 1.3rem/1.55 var(--serif); color: var(--muted); margin: 0 0 26px; }
.x-byline { display: flex; align-items: center; gap: 14px; padding: 18px 0 30px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.x-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.x-byline b { color: var(--text); font-weight: 600; }
.x-body { max-width: none; padding: 30px 0 0; margin: 0; }
.prose p, .prose li { font-family: var(--serif); font-size: 1.16rem; line-height: 1.78; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose pre { border-radius: 12px; }
.x-more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.x-more-item { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: 520 1.08rem/1.4 var(--serif); }
.x-more-item span { display: block; font: 600 13px var(--sans); color: var(--muted); margin-bottom: 6px; }
.x-more-item.next { text-align: right; grid-column: 2; }
.x-more-item:hover { border-color: var(--signal); text-decoration: none; }

/* Pages */
.page-body { max-width: 760px; padding-top: 72px; }
.page-body h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-line, .foot-links a, .foot-links span { font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .x-hero-grid, .x-proof-grid { grid-template-columns: 1fr; gap: 40px; }
  .x-portrait { order: -1; }
  .x-portrait img { width: 160px; height: 160px; border-radius: 22px; }
  .x-facts { grid-template-columns: 1fr; gap: 22px; }
  .x-chapters { grid-template-columns: 1fr 1fr; }
  .x-principles .rules, .x-notes .notes { grid-template-columns: 1fr; }
  .topbar nav { gap: 16px; overflow-x: auto; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; height: auto; padding: 12px 20px; gap: 6px; }
  .x-chapters { grid-template-columns: 1fr; }
  .x-more { grid-template-columns: 1fr; } .x-more-item.next { grid-column: auto; text-align: left; }
}
/* Keep one left edge: narrow sections constrain their content, not the container */

/* Leadership: statement left, outcomes right, large serif marks with hairline rows */
.x-lead { padding-top: 40px; }
.x-lead-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.x-outcomes { margin: 0; border-top: 1px solid var(--line); }
.x-outcomes div { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.x-outcomes dt { font: 400 2.5rem/1 var(--serif); color: var(--text); letter-spacing: -0.02em; white-space: nowrap; }
.x-outcomes dd { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.x-outcomes dd b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .x-lead-grid { grid-template-columns: 1fr; gap: 32px; } .x-outcomes div { grid-template-columns: 1fr; gap: 8px; } }

/* ===== was vibe.css ===== */
/* Vibrant system (Nov 2026): one signature colour (ultramarine), one spark (sunlit yellow),
   confident grotesk headlines. Loaded after exec.css. */
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --blue: #7E0F02; --blue-soft: #fbf3f1; --blue-line: #efd5cf; --sun: #F3D08A; --deep: #2b0e09;
  --ink: #ffffff; --ink-2: #ffffff; --ink-3: var(--blue-soft); --line: #ece0dd;
  --text: #2b0e09; --muted: #5c4a45; --faint: #5c4a45; --signal: var(--blue);
  --display: "Inter Tight", "Instrument Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #1a0b08; --ink-2: #26120d; --ink-3: #26120d; --line: #3d211a; --blue-line: #4d281f;
    --text: #fbf1ee; --muted: #d9c1bb; --faint: #d9c1bb; --signal: #e8907e; }
}

h1, h2, h3, .mark, .x-facts dt, .x-outcomes dt, .note-title, .x-more-item, .x-chapters h3 {
  font-family: var(--display); letter-spacing: -0.03em; }
h1 { font-weight: 700; line-height: 1.0; }
h2 { font-weight: 680; line-height: 1.06; }
h3 { font-weight: 650; }
.mark { font-weight: 750; font-size: 20px; }
.x-kicker { color: var(--signal); font-weight: 650; }

/* Hero: a full ultramarine field */
.x-hero { background: var(--blue); color: #fff; padding: 104px 0 80px; }
.x-hero h1 { color: #fff; font-size: clamp(2.8rem, 5.6vw, 4.8rem); max-width: 14ch; }
.x-hero .x-lede { color: #f5d6cf; }
.x-hero .btn-primary { background: var(--sun); border-color: var(--sun); color: var(--deep); }
.x-hero .btn-primary:hover { background: #fff; border-color: #fff; color: var(--deep); }
.x-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.x-hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.x-portrait img { border-radius: 32px; box-shadow: 0 0 0 6px rgba(255,255,255,.14), 0 40px 80px -40px rgba(0,0,0,.6); }
.x-facts { border-top-color: rgba(255,255,255,.28); }
.x-facts dt { color: var(--sun); font-weight: 700; font-size: 3rem; }
.x-facts dd { color: #f5d6cf; }
.topbar { background: color-mix(in srgb, var(--ink) 90%, transparent); }

/* Leadership: big ultramarine marks */
.x-outcomes dt { color: var(--signal); font-weight: 700; font-size: 2.4rem; }
.x-outcomes div { border-bottom-color: var(--line); }

/* Lessons: soft blue field, yellow rule */
.x-moment::before { background: var(--sun); width: 4px; }
.x-moment h3 { font-family: var(--display); font-style: normal; font-weight: 680; font-size: 1.5rem; }
.x-moment p { font-family: var(--sans); font-size: 1.1rem; line-height: 1.7; opacity: 1; color: var(--muted); }

/* Journey: chapters on a bright line, current role in yellow */
.x-chapters li { border-top: 4px solid var(--blue-line); }
.x-chapters li.now { border-top-color: var(--sun); }
.x-chapters li.now .x-yr { color: var(--signal); }
.x-chapters h3 { font-size: 1.35rem; }

/* Principles: a deep ink band */
.x-principles { background: var(--deep); color: #fbf1ee; }
.x-principles h2, .x-principles .rules dt { color: #fff; }
.x-principles .x-kicker { color: var(--sun); }
.x-principles .rules { border-top-color: rgba(255,255,255,.2); }
.x-principles .rules div { border-bottom-color: rgba(255,255,255,.14); }
.x-principles .rules dt { font-family: var(--display); font-weight: 650; letter-spacing: -0.02em; }
.x-principles .rules dd { color: #f5d6cf; }

/* Notes and articles */
.note a { border-color: var(--line); }
.note a:hover { border-color: var(--signal); box-shadow: 0 20px 40px -28px rgba(126,15,2,.4); }
.note-title { font-weight: 680; font-size: 1.35rem; }
.x-article h1 { font-weight: 720; }
.prose a { color: var(--signal); }
.x-standfirst { font-family: var(--sans); font-style: normal; font-size: 1.22rem; }

/* Buttons elsewhere */
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--deep); border-color: var(--deep); color: #fff; }

@media (prefers-color-scheme: dark) {
  .x-hero { background: #7E0F02; }
  .btn-primary { background: var(--sun); border-color: var(--sun); color: var(--deep); }
}
.x-outcomes div { grid-template-columns: 230px 1fr; }
@media (max-width: 960px) { .x-outcomes div { grid-template-columns: 1fr; } }

/* Readability: one clean sans for all reading text, normal leading, calmer code */
.prose p, .prose li, .x-moment p, .note-hook { font-family: var(--sans); font-size: 1.04rem; line-height: 1.65; }
.prose { max-width: 70ch; }
.x-article .prose, .x-body { max-width: none; }
.prose li { margin: .35em 0; }
.prose h2 { font-family: var(--display); font-weight: 680; letter-spacing: -0.02em; }
.prose code { font-size: .86em; padding: 1px 6px; border-radius: 6px; }
.project { padding: 28px 30px; }
.project h2 { font-size: 1.6rem; }
.x-standfirst { font-size: 1.15rem; line-height: 1.55; }
.project > :first-child, .project h2:first-child { margin-top: 0; padding-top: 0; }
.project h2 { margin-top: 0; }

/* ===== was final.css ===== */
/* Final layer (Nov 2026): one colour set, one type scale, two typefaces, every page.
   Loaded last; overrides site.css, exec.css and vibe.css. */

:root {
  --bg: #ffffff; --surface: #f6f1ea; --line: #e6ddd2; --text: #2b0e09; --muted: #5c4a45;
  --brand: #7E0F02; --accent: #F3D08A; --link: #7E0F02; --band: #2b0e09; --code-bg: #1a0b08;
  --ink: var(--bg); --ink-2: #ffffff; --ink-3: var(--surface); --faint: var(--muted); --signal: var(--link);
  --blue: var(--brand); --sun: var(--accent); --deep: var(--band); --blue-soft: var(--surface); --blue-line: var(--line);
  --amber: var(--brand); --teal: var(--brand); --violet: var(--brand); --rose: var(--brand);
  --display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--display);
  --fs-display: clamp(2.6rem, 5vw, 4.5rem); --fs-h2: clamp(1.875rem, 3vw, 2.5rem); --fs-h3: 1.375rem;
  --fs-lead: 1.1875rem; --fs-body: 1.0625rem; --fs-small: .875rem;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a0b08; --surface: #26120d; --line: #3d211a; --text: #fbf1ee; --muted: #d2bdb6;
    --link: #E9A58F; --band: #2f120c; --ink-2: #26120d; }
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.65 var(--sans); }
a { color: var(--link); }

/* Type scale */
h1, h2, h3, .mark { font-family: var(--display); color: var(--text); }
h1 { font-size: var(--fs-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: 660; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h3, .note-title, .x-chapters h3, .x-moment h3 { font-size: var(--fs-h3); font-weight: 620; line-height: 1.25; letter-spacing: -0.01em; font-family: var(--display); font-style: normal; }
.x-lede, .lede, .x-standfirst { font: 400 var(--fs-lead)/1.6 var(--sans); color: var(--muted); }
.prose p, .prose li, .x-moment p, .note-hook, .note-desc, .x-chapters p, .sheet dd, .rules dd, .x-outcomes dd, .x-facts dd {
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.65; }
.x-kicker, .x-yr, .post-meta, .note-meta, .note-topic, .x-topic, .x-byline, .foot-line, .foot-links a, .foot-links span, .x-more-item span {
  font-family: var(--sans); font-size: var(--fs-small); line-height: 1.4; letter-spacing: .01em; }
.x-kicker { font-weight: 600; color: var(--brand); }

/* Hero */
.x-hero { background: var(--brand); }
.x-hero h1 { color: #fff; max-width: 16ch; }
.x-hero .x-lede { color: #f5e3dd; max-width: 56ch; }
.x-facts dt { color: var(--accent); font: 700 clamp(2.25rem, 4vw, 3rem)/1 var(--display); letter-spacing: -0.03em; }
.x-facts dd { color: #f5e3dd; font-size: .9375rem; }

/* Leadership */
.x-outcomes dt { color: var(--brand); font: 620 1.75rem/1.1 var(--display); letter-spacing: -0.02em; }
@media (prefers-color-scheme: dark) { .x-outcomes dt { color: var(--accent); } }

/* Bands */
.x-moment::before { background: var(--accent); }
.x-moment p { color: var(--muted); }
.x-principles { background: var(--band); border-top: 1px solid #4d281f; }
.x-principles .rules dd { color: #e6d3cc; }
.x-chapters li { border-top-color: var(--line); }
.x-chapters li.now { border-top-color: var(--brand); }
.x-chapters li.now .x-yr { color: var(--brand); }
@media (prefers-color-scheme: dark) { .x-chapters li.now { border-top-color: var(--accent); } .x-chapters li.now .x-yr { color: var(--accent); } }

/* Notes: one accent, no underlines inside cards */
.note a, .note a * { text-decoration: none !important; }
.note { --tc: var(--brand) !important; }
.note a::before { background: var(--brand); }
.note-topic { color: var(--brand) !important; font-weight: 600; }
.note-figure b { color: var(--brand); }
.next li { --tc: var(--brand) !important; }
.x-topic-name { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .note { --tc: var(--accent) !important; } .note-topic, .note-figure b, .x-topic-name { color: var(--accent) !important; }
  .note a::before { background: var(--accent); }
}
.note a { background: var(--ink-2); border-color: var(--line); }

/* Articles and pages: comfortable measure */
.x-article .prose, .x-body, .page-body { max-width: 68ch; }
.x-article { max-width: 760px; }
.prose p, .prose li { font-size: var(--fs-body); line-height: 1.7; }
.prose h2 { font-size: 1.625rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; }
.prose code { font-size: .86em; background: var(--surface); border-color: var(--line); color: var(--text); }

/* Code, terminal and the live instrument: warm dark, no navy */
.prose pre, .term, .fit, .term-body, .code { background: var(--code-bg) !important; border-color: #3d211a !important; color: #f1e4df; }
.prose pre code { background: none; color: #f1e4df; }
.term-bar, .fit .term-bar { border-bottom-color: #3d211a; color: #c9b3ab; }
.term-body .p { color: var(--accent); } .term-body .ok { color: #9fc7a0; }
.fit-row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #2b0e09; }
.fit-row button { border-color: #4d281f; color: #d2bdb6; }
.fit-read .ok { color: #9fc7a0; }

/* Buttons */
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--band); border-color: var(--band); }
.x-hero .btn-primary { background: var(--accent); border-color: var(--accent); color: #2b0e09; }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--accent); border-color: var(--accent); color: #2b0e09; } }

/* Top bar and mobile menu */
.topbar nav a { white-space: nowrap; font-size: .9375rem; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .topbar-inner { flex-direction: row; align-items: center; height: 60px; padding: 0 20px; position: relative; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font: 600 15px var(--sans);
    color: var(--text); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
  .topbar nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; overflow: visible; }
  .topbar.open nav { display: flex; }
  .topbar nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--text); }
  .topbar nav a:last-child { border-bottom: 0; }
  .topbar nav a[aria-current] { box-shadow: none; color: var(--brand); }
  h1 { font-size: clamp(2.25rem, 9vw, 2.8rem); }
  .x-outcomes dt { font-size: 1.5rem; }
  .x-hero { padding: 48px 0 56px; }
  section { padding: 64px 0; }
}

/* Writing as editorial rows (after OpenAI / Gumroad indexes on Mobbin) */
.notes { display: block !important; list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--text); }
.note { border-bottom: 1px solid var(--line); }
.note a { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 6px; padding: 28px 0; background: none !important;
  border: 0 !important; border-radius: 0; box-shadow: none !important; transform: none !important; height: auto; }
.note a::before { display: none; }
.note a > * { grid-column: 1; }
.note a::after { content: "→"; grid-column: 2; grid-row: 1 / span 4; align-self: center; font: 400 1.5rem var(--display); color: var(--muted); transition: transform .2s, color .2s; }
.note a:hover::after { color: var(--brand); transform: translateX(4px); }
.note a:hover .note-title { color: var(--brand); }
.note-topic { margin: 0; }
.note-title { margin: 0 !important; font-size: 1.5rem; max-width: 34ch; }
.note-hook, .note-desc { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
.note-foot { border-top: 0; padding-top: 6px; justify-content: flex-start; gap: 6px 22px; }
.x-notes .notes, .page-body .notes { grid-template-columns: none; }
@media (prefers-color-scheme: dark) { .note a:hover::after, .note a:hover .note-title { color: var(--accent); } }

/* Article headline: lighter, comfortable */
.x-article h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 680; letter-spacing: -0.025em; line-height: 1.08; }
.page-body h1 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); }

@media (max-width: 760px) {
  .note a { grid-template-columns: 1fr; padding: 22px 0; }
  .note a::after { display: none; }
  .note-title { font-size: 1.3rem; }
  .x-article h1 { font-size: 2rem; }
}

/* Palette (owner's choice, 23 Nov 2026): red #D52B1E with black and white */
:root { --brand: #D52B1E; --accent: #ffffff; --link: #D52B1E; --text: #111111; --muted: #555555; --line: #e5e5e5;
  --surface: #f5f5f5; --band: #111111; --code-bg: #111111; --bg: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d0d0d; --surface: #181818; --line: #2a2a2a; --text: #f5f5f5; --muted: #b3b3b3; --link: #ff6b5e; --band: #000000; --ink-2: #181818; --accent: #ffffff; }
  .x-outcomes dt, .note-topic, .note-figure b, .x-topic-name, .x-kicker, .x-chapters li.now .x-yr { color: #ff6b5e !important; }
  .x-chapters li.now { border-top-color: #ff6b5e; }
  .btn-primary { background: #ffffff; border-color: #ffffff; color: #111111; }
  .note a::before { background: #ff6b5e; }
}
.x-hero { background: var(--brand); }
.x-hero .x-lede, .x-facts dd { color: #ffffff; }
.x-facts { border-top-color: rgba(255,255,255,.4); }
.x-facts dt { color: #ffffff; }
.x-hero .btn-primary { background: #ffffff; border-color: #ffffff; color: #111111; }
.x-hero .btn-primary:hover { background: #111111; border-color: #111111; color: #ffffff; }
.x-hero .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,.7); }
.x-portrait img { box-shadow: 0 0 0 6px rgba(255,255,255,.25), 0 40px 80px -40px rgba(0,0,0,.5); }
.x-moment::before { background: var(--brand); }
.x-principles { background: var(--band); border-top: 0; }
.x-principles .x-kicker { color: #ff6b5e !important; }
.x-principles .rules dd { color: #d0d0d0; }
.x-principles .rules div, .x-principles .rules { border-color: rgba(255,255,255,.18); }
.prose pre, .term, .fit, .term-body, .code { border-color: #2a2a2a !important; color: #eeeeee; }
.term-bar, .fit .term-bar { border-bottom-color: #2a2a2a; color: #b3b3b3; }
.term-body .p { color: #ff6b5e; }
.fit-row button[aria-pressed="true"] { background: #ffffff; border-color: #ffffff; color: #111111; }
.fit-row button { border-color: #3a3a3a; color: #cccccc; }

/* QA fixes */
@media (prefers-color-scheme: dark) { :root { --brand: #ff6b5e; } .x-hero { background: #D52B1E; } .x-hero .btn-primary { color: #111; } }
.term-bar i { background: #3a3a3a !important; }
.fit figcaption, .term figcaption { color: #a0a0a0; } .fit figcaption a, .term figcaption a { color: #ff8a7f; }
.seg.w, .sw.w { background: #D52B1E !important; } .seg.k, .sw.k { background: #111111 !important; } .seg.o, .sw.o { background: #9a9a9a !important; }
@media (prefers-color-scheme: dark) { .seg.k, .sw.k { background: #f5f5f5 !important; } }
pre, .prose pre, .code, .cmd-box { background: #111111 !important; color: #eeeeee; font-size: .875rem; overflow-x: auto; }
.prose :not(pre) > code { white-space: nowrap; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.prose th { white-space: nowrap; }
.table-wrap { overflow-x: auto; }
ul.ports, .prose ul.ports { list-style: none; padding-left: 0; } .ports li::marker { content: ""; }
.port-val, a.port .port-val { text-decoration: none !important; }
@media (min-width: 961px) { .x-lead-intro { position: sticky; top: 96px; } }
.project h2 .tag { vertical-align: middle; margin-left: 8px; }
@media (max-width: 760px) {
  .topbar-inner { padding: 0 24px; }
  .topbar nav { padding: 8px 24px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .note-figure { display: block; }
}
/* Pre-publish fixes */
.ports, .ports li { list-style: none !important; } .prose .ports li { padding-left: 0; } .prose .ports li::before { content: none !important; }
.x-portrait img { border-radius: 20px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 24px 48px -28px rgba(0,0,0,.45) !important; }
.x-chapters { grid-template-columns: repeat(5, 1fr); }
.x-chapters li.next { border-top: 3px dashed var(--brand); }
.x-chapters li.next .x-yr { color: var(--brand); }
@media (max-width: 1100px) { .x-chapters { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .x-chapters { grid-template-columns: 1fr; } }

/* Palette (23 Nov 2026, final): deep navy base, the owner's own red #7E0F02 as a precise accent,
   warm paper and slate. No company's brand colours. */
:root { --navy: #0F1B2D; --brand: #7E0F02; --link: #7E0F02; --accent: #7E0F02; --text: #0F1B2D; --muted: #475569;
  --bg: #ffffff; --surface: #f4f5f7; --line: #e3e6eb; --band: #0F1B2D; --code-bg: #0F1B2D; --ink-2: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --surface: #111a2b; --line: #23304a; --text: #e6e9ef; --muted: #aab3c2; --link: #ff8a7f;
    --brand: #ff8a7f; --band: #070d18; --ink-2: #111a2b; }
  .x-outcomes dt, .note-topic, .note-figure b, .x-topic-name, .x-kicker, .x-chapters li.now .x-yr, .x-chapters li.next .x-yr { color: #ff8a7f !important; }
  .x-chapters li.now { border-top-color: #ff8a7f; } .x-chapters li.next { border-top-color: #ff8a7f; }
  .note a::before { background: #ff8a7f; }
  .btn-primary { background: #e6e9ef; border-color: #e6e9ef; color: #0b1220; }
}
.x-hero { background: var(--navy) !important; }
.x-hero h1 { color: #ffffff; }
.x-hero h1::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 28px; background: #c0392b; border-radius: 2px; }
.x-hero .x-lede, .x-facts dd { color: #d9dee7; }
.x-facts dt { color: #f3c9c3 !important; }
.x-facts { border-top-color: rgba(255,255,255,.18); }
.x-hero .btn-primary { background: #ffffff; border-color: #ffffff; color: var(--navy); }
.x-hero .btn-primary:hover { background: #7E0F02; border-color: #7E0F02; color: #ffffff; }
.x-hero .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,.45); }
.x-portrait img { box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 24px 48px -28px rgba(0,0,0,.6) !important; }
.x-kicker { color: var(--brand) !important; }
.x-outcomes dt { color: var(--brand); }
.x-moment::before { background: var(--brand); }
.x-principles { background: var(--band); }
.x-principles .x-kicker { color: #f3c9c3 !important; }
.x-principles .rules dd { color: #c9d0db; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: #7E0F02; border-color: #7E0F02; }
.topbar { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.prose pre, .term, .fit, .term-body, .code, pre { background: #0F1B2D !important; border-color: #23304a !important; }
.term-bar, .fit .term-bar { border-bottom-color: #23304a; }
.term-body .p { color: #f3c9c3; }
.fit figcaption a, .term figcaption a { color: #f3c9c3; }
.seg.k, .sw.k { background: var(--navy) !important; } .seg.w, .sw.w { background: #7E0F02 !important; }
@media (prefers-color-scheme: dark) { .seg.k, .sw.k { background: #e6e9ef !important; } .seg.w, .sw.w { background: #ff8a7f !important; } }
/* Hover: titles keep their colour; only the arrow moves */
.note a:hover .note-title, .x-more-item:hover, .posts a:hover { color: var(--text) !important; }
.note a:hover::after { color: var(--text) !important; }
.x-chapters { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .x-chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .x-chapters { grid-template-columns: 1fr; } }

/* Reflections page */
.reflections { margin-top: 36px; }
.reflections .x-moment { padding: 4px 0 4px 24px !important; margin: 0 0 44px !important; border-top: 0 !important; }
.reflections .x-moment h2 { margin: 0 0 14px; }
.reflections .x-moment p { margin: 0 0 14px; }
.reflections .x-moment .r-close { font-weight: 600; margin-bottom: 0; }
.reflections .x-moment .r-try { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 7%, transparent); color: inherit; font-size: 0.98rem; }
.reflections .r-try span { font-weight: 650; margin-right: 6px; }
.reflections .x-moment { scroll-margin-top: 90px; }

/* ===== brand mark (29 Nov 2026) ===== */
.mark { display: inline-flex; align-items: center; gap: 10px; }
.mark-logo { width: 28px; height: 28px; flex: none; border-radius: 7px; }
@media (prefers-color-scheme: dark) { .mark-logo { box-shadow: 0 0 0 1px rgba(255,255,255,.16); } }

/* calculator feedback link (29 Nov 2026) */
.feedback { font-size: 14px; margin: 14px 0 0; color: var(--muted); }
.feedback a { font-weight: 600; }

/* end-of-post conversation block (29 Nov 2026) */
.x-talk { max-width: 720px; margin: 36px auto 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.x-talk b { color: var(--text); }
.x-talk p { margin: 0; }
