/* clip.css: Siddharth Rao site, Data Odyssey clip look. Palette sampled from the clip frames. */

/* Layout concept: the landing page is the essay itself, set in the typewriter layer.
   Each section pairs a hand-annotated line diagram with a text column; the diagram
   alternates left and right down the page. A dark lineage table and the six projects close it. */
:root {
  --paper: #FAF8F3;
  --paper-writing: #FCFBF0;
  --paper-deep: #F2EEE4;
  --ink: #1C1A17;
  --ink-soft: #5C5650;
  --stamp: #8C3D2E;
  --stamp-lite: #D9967E;
  --rule: #DDD6CB;
  --f-scan: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --f-type: 'Courier Prime', 'Courier New', monospace;
  --f-script: 'Caveat', cursive;
  --container: 1120px;
  --pad-x: clamp(24px, 5vw, 64px);
  --section-y: clamp(48px, 7vw, 96px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-scan); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.wrap { max-width: var(--container); margin: 0 auto; padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px)); }
.band { padding-block: var(--section-y); }
.tint { background: var(--paper-deep); border-block: 1px solid var(--rule); }
.dark { background: var(--ink); color: var(--paper); }


/* nav */
.site-nav { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.wordmark { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.wordmark .rao { color: var(--stamp); }
.navlinks { display: flex; gap: 28px; list-style: none; }
.navlinks a { font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.navlinks a:hover { color: var(--ink); }
.navlinks a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--stamp); }
.navlinks a.cta { border: 1px solid var(--ink); padding: 8px 16px; color: var(--ink); font-weight: 600; transition: background .15s, color .15s; }
.navlinks a.cta:hover, .navlinks a.cta.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-toggle { display: none; font: 600 13px var(--f-scan); background: none; border: 1px solid var(--rule); padding: 8px 14px; color: var(--ink); cursor: pointer; }
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .navlinks { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; z-index: 5; }
  .navlinks.open { display: flex; }
  .navlinks a { display: block; padding: 14px max(var(--pad-x), env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--rule); font-size: 15px; }
  .navlinks a.active { border-bottom-color: var(--rule); color: var(--stamp); }
  .navlinks a.cta { border: none; border-bottom: 1px solid var(--rule); padding: 14px max(var(--pad-x), env(safe-area-inset-left, 0px)); }
  .navlinks a.cta.active { background: var(--paper-deep); color: var(--stamp); }
}

/* shared type */
.kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stamp); }
h1.h1 { font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
h2.h2 { font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.sub { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }
.body { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.mono { font-family: var(--f-type); }
.link { color: var(--stamp); font-weight: 600; }
.link:hover { text-decoration: underline; }
.btn { display: inline-block; font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; padding: 12px 22px; border: 1px solid var(--ink); color: var(--ink); transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill:hover { background: var(--stamp); border-color: var(--stamp); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tag { display: inline-block; font: 700 10px var(--f-scan); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border: 1px dashed var(--ink-soft); color: var(--ink-soft); }

/* ================= ESSAY (landing) ================= */
.essay { background: var(--paper-writing); border-bottom: 1px solid var(--rule); }
.eblock { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.eblock.hero { border-top: none; padding-top: clamp(40px, 7vw, 88px); }
.eblock.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.eblock.rev .efig { order: 2; }
.efig { min-width: 0; }
.efig svg { display: block; width: 100%; height: auto; }
.efig figcaption { font: 400 11.5px var(--f-type); color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.efig figcaption b { color: var(--stamp); font-weight: 700; }
.etext { min-width: 0; }
@media (max-width: 860px) {
  .eblock, .eblock.rev { grid-template-columns: minmax(0, 1fr); }
  .eblock.rev .efig { order: 0; }
  .eblock.hero .efig { order: 2; }
}
.w-cat { font: 400 11px var(--f-type); letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); margin-bottom: 12px; }
.e-title { font-family: var(--f-type); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 22px; text-wrap: balance; }
.e-h { font-family: var(--f-type); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25; margin-bottom: 16px; }
.etext p { font-family: var(--f-type); font-size: 15.5px; line-height: 1.85; color: #29251f; margin-bottom: 15px; }
.etext p.opener { font-weight: 700; }
.etext em { font-style: italic; }
.etext ul { font-family: var(--f-type); font-size: 15px; line-height: 1.75; color: #29251f; margin: 0 0 15px 0; padding-left: 20px; }
.etext li { margin-bottom: 6px; }
.etext li b { color: var(--stamp); }
.pull { font-family: var(--f-script); font-weight: 600; font-size: clamp(26px, 3vw, 32px); color: var(--stamp); line-height: 1.25; margin: 20px 0 22px 4px; border-left: 2px solid #c9a98f; padding-left: 18px; }
.byline { font-family: var(--f-script); font-weight: 600; font-size: 22px; color: var(--stamp); margin-bottom: 8px; display: block; }
.sig { font-family: var(--f-script); font-weight: 600; font-size: 24px; color: var(--stamp); }
.fine { font: 400 12px/1.7 var(--f-type); color: var(--ink-soft); max-width: 62ch; }

/* diagram vocabulary: line drawing in ink, stamp for emphasis, Caveat for margin notes */
svg .t  { font-family: var(--f-type); font-size: 12.5px; fill: var(--ink); }
svg .tb { font-family: var(--f-type); font-size: 13px; font-weight: 700; fill: var(--ink); }
svg .ts { font-family: var(--f-type); font-size: 10.5px; fill: var(--ink-soft); }
svg .tc { font-family: var(--f-type); font-size: 10px; letter-spacing: .1em; fill: var(--ink-soft); }
svg .tn { font-family: var(--f-script); font-weight: 600; font-size: 21px; fill: var(--stamp); }
svg .tst { font-family: var(--f-type); font-size: 12.5px; fill: var(--stamp); font-weight: 700; }
svg .box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
svg .boxs { fill: rgba(140,61,46,.08); stroke: var(--stamp); stroke-width: 1.8; }
svg .boxd { fill: none; stroke: var(--ink-soft); stroke-width: 1.3; stroke-dasharray: 5 4; }
svg .boxk { fill: var(--ink); stroke: var(--ink); }
svg .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; }
svg .lns { fill: none; stroke: var(--stamp); stroke-width: 2.2; }
svg .lnr { fill: none; stroke: var(--rule); stroke-width: 1.6; }
svg .dim { opacity: .5; }
svg .fillp { fill: var(--paper); }
svg .fills { fill: var(--stamp); }
svg .fillk { fill: var(--ink); }

/* lineage table */
.lineage { margin-top: 8px; }
.lin-head, .lin-row { display: grid; grid-template-columns: 110px minmax(0, 1.5fr) minmax(0, 1fr); gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; font-family: var(--f-type); }
.lin-head { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); border-bottom: 1px solid var(--ink); }
.lin-row .yr { font-size: 14px; font-weight: 700; color: var(--stamp); }
.lin-row .who { font-size: 14px; line-height: 1.65; color: #29251f; }
.lin-row .who b { font-weight: 700; }
.lin-row .became { font-size: 14px; font-weight: 700; color: #29251f; }
.lin-row.now { background: rgba(140,61,46,.06); border-left: 2px solid var(--stamp); margin-inline: -14px; padding-inline: 12px 14px; }
@media (max-width: 700px) {
  .lin-head { display: none; }
  .lin-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .lin-row.now { margin-inline: -12px; padding-inline: 10px 12px; }
}
.cap { font: 400 12.5px/1.7 var(--f-type); color: var(--ink-soft); margin-top: 14px; }
.cap b { color: var(--stamp); }

/* work cards + trace */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
.work { border: 1px solid var(--rule); background: var(--paper); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.work .cat { font: 400 11px var(--f-type); letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); }
.work .name { font-weight: 700; font-size: 20px; }
.work .what { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.work .stk { font: 400 11.5px/1.5 var(--f-type); color: var(--ink-soft); }
.work .stk b { color: var(--ink); }
.trace { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: auto; border: 1px solid var(--rule); }
.trace > * { padding: 9px 8px 9px 10px; border-right: 1px solid var(--rule); font-size: 12px; font-weight: 600; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trace > *:last-child { border-right: none; }
.trace small { font: 500 9.5px var(--f-scan); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.trace a { color: var(--ink); background: var(--paper); }
.trace a:hover { background: var(--ink); color: var(--paper); }
.trace a:hover small { color: rgba(250,248,243,.7); }
.trace .off { color: var(--ink-soft); font-weight: 500; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(92,86,80,.07) 6px 7px); }
@media (max-width: 460px) { .trace { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trace > *:nth-child(2) { border-right: none; } .trace > *:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

/* rows */
.row-list { display: flex; flex-direction: column; }
a.row, div.row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px 24px; padding: 20px 0; border-top: 1px solid var(--rule); align-items: start; }
.row-list > :last-child { border-bottom: 1px solid var(--rule); }
a.row:hover { background: var(--paper-deep); }
.rc { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); font-weight: 600; padding-top: 3px; }
div.row .rc { color: var(--ink-soft); }
.rt { font-weight: 600; font-size: 17px; margin-bottom: 4px; line-height: 1.3; }
div.row .rt { color: var(--ink-soft); }
.rd { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.ra { color: var(--ink-soft); font-size: 18px; }
a.row:hover .ra { color: var(--stamp); }
@media (max-width: 640px) { a.row, div.row { grid-template-columns: 1fr; } .ra { display: none; } }

/* author strip */
.stats2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; border: 1px solid var(--rule); background: var(--paper); }
.stats2 > div { padding: 24px 26px; min-width: 0; }
.stats2 > div:first-child { border-right: 1px solid var(--rule); }
.stats2 .num { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.stats2 .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }
@media (max-width: 460px) { .stats2 { grid-template-columns: 1fr; } .stats2 > div:first-child { border-right: none; border-bottom: 1px solid var(--rule); } }

/* writing layer: post pages and about */
.writing { background: var(--paper-writing); border-block: 1px solid var(--rule); }
.w-inner { max-width: 700px; margin: 0 auto; padding-block: var(--section-y); padding-left: max(var(--pad-x), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad-x), env(safe-area-inset-right, 0px)); }
.w-title { font-family: var(--f-type); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.3; margin-bottom: 14px; text-wrap: balance; }
.w-meta { font: 400 12px var(--f-type); color: var(--ink-soft); margin-bottom: 30px; }
.w-body { font-family: var(--f-type); font-size: 15.5px; line-height: 1.85; color: #29251f; }
.w-body p { margin-bottom: 16px; }
.w-body p.opener { font-weight: 700; }
.callout { background: rgba(140,61,46,.06); border-left: 2px solid var(--stamp); padding: 16px 20px; margin: 24px 0; font-family: var(--f-type); font-size: 14px; line-height: 1.7; }
.callout a { color: var(--stamp); font-weight: 700; }
.placeholder-copy { font: 400 13px/1.7 var(--f-type); color: var(--ink-soft); border: 1px dashed var(--ink-soft); padding: 14px 16px; margin-bottom: 22px; }
.series { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--rule); background: var(--paper); margin-top: 8px; }
.series a, .series span { padding: 10px; border-right: 1px solid var(--rule); font-size: 12px; font-weight: 600; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.series > *:last-child { border-right: none; }
.series small { font: 500 9.5px var(--f-scan); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.series a:hover { background: var(--paper-deep); }
.series .here { background: var(--ink); color: var(--paper); }
.series .here small { color: rgba(250,248,243,.65); }
.series .off { color: var(--ink-soft); font-weight: 500; }
@media (max-width: 640px) { .series { grid-template-columns: repeat(3, minmax(0, 1fr)); } .series > *:nth-child(3) { border-right: none; } .series > *:nth-child(-n+3) { border-bottom: 1px solid var(--rule); } }
.next { display: block; margin-top: 40px; padding: 22px 24px; background: var(--paper-deep); border: 1px solid var(--rule); border-left: 3px solid var(--stamp); }
.next:hover { background: #efe9dc; }
.next .nl { font: 400 10.5px var(--f-type); letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); margin-bottom: 6px; }
.next .nt { font-weight: 600; font-size: 16px; line-height: 1.35; }

/* page head + about */
.page-head { padding-block: clamp(36px, 6vw, 72px) 28px; }
.page-head .stack { max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo { aspect-ratio: 4 / 5; max-width: 260px; width: 100%; border: 1px dashed var(--ink-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-soft); background: var(--paper-deep); }
.timeline { list-style: none; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.timeline li b { color: var(--ink); font-weight: 600; }
.timeline .when { font: 400 12px var(--f-type); padding-top: 2px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; } }
.copy-mail { font: 600 12px var(--f-scan); background: none; border: 1px solid var(--rule); color: var(--ink); padding: 6px 10px; cursor: pointer; }
.copy-mail:hover { background: var(--ink); color: var(--paper); }


/* about, v2 */
.trace.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trace.t3 > *:nth-child(2) { border-right: 1px solid var(--rule); }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); background: var(--paper); }
.stats4 > div { padding: 22px 20px; border-right: 1px solid var(--rule); min-width: 0; }
.stats4 > div:last-child { border-right: none; }
.stats4 b { display: block; font-family: var(--f-type); font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--stamp); margin-bottom: 8px; }
.stats4 span { font: 400 12.5px/1.55 var(--f-type); color: var(--ink-soft); }
@media (max-width: 760px) { .stats4 { grid-template-columns: 1fr 1fr; } .stats4 > div:nth-child(2) { border-right: none; } .stats4 > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
.about-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }
.career { min-width: 0; max-width: 360px; }
.career svg { display: block; width: 100%; height: auto; }
.career figcaption { font: 400 12px/1.6 var(--f-type); color: var(--ink-soft); margin-top: 10px; }
.career figcaption b { color: var(--stamp); margin-right: 6px; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.capcard { padding: 24px 24px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.capcard:nth-child(2n) { border-right: none; }
.capcard:nth-last-child(-n+2) { border-bottom: none; }
.capcard h3 { font-family: var(--f-type); font-size: 1.05rem; margin-bottom: 10px; }
.capcard p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 10px; }
.capcard p.tools { font: 400 11.5px/1.7 var(--f-type); color: var(--stamp); margin: 0; }
@media (max-width: 700px) { .caps { grid-template-columns: 1fr; } .capcard { border-right: none; } .capcard:nth-last-child(2) { border-bottom: 1px solid var(--rule); } }
.outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); background: var(--paper); }
.outs > div { padding: 22px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.outs > div:nth-child(3n) { border-right: none; }
.outs > div:nth-last-child(-n+3) { border-bottom: none; }
.outs b { display: block; font-family: var(--f-type); font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--stamp); margin-bottom: 8px; overflow-wrap: anywhere; }
.outs span { font: 400 12.5px/1.6 var(--f-type); color: var(--ink-soft); }
@media (max-width: 860px) { .outs { grid-template-columns: 1fr 1fr; } .outs > div, .outs > div:nth-child(3n) { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); } .outs > div:nth-child(2n) { border-right: none; } .outs > div:nth-last-child(-n+2) { border-bottom: none; } }
@media (max-width: 520px) { .outs { grid-template-columns: 1fr; } .outs > div { border-right: none !important; border-bottom: 1px solid var(--rule) !important; } .outs > div:last-child { border-bottom: none !important; } }
.outnote { font: 400 12.5px/1.75 var(--f-type); color: var(--ink-soft); max-width: 78ch; }
.timeline { margin-bottom: 8px; }
.timeline li { border-left: 2px solid transparent; padding-left: 16px; }
.timeline li.w { border-left-color: var(--stamp); }
.tl-label { font: 600 11.5px var(--f-scan); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 8px 0 10px; }
.timeline li.w .when { color: var(--stamp); }
.career svg .lns { stroke-width: 3; }

/* footer: one account in the writer-only version */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); }
.site-footer .wrap { padding-block: 34px 44px; display: flex; flex-direction: column; gap: 22px; }
.f-top { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.f-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.f-nav a { font-size: 12.5px; color: var(--ink-soft); }
.f-nav a:hover { color: var(--stamp); }
.acct-card { border: 1px solid var(--ink); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; max-width: 460px; }
.acct-card .ah { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); font-weight: 600; }
.acct-card a.handle { font: 700 15px var(--f-type); overflow-wrap: anywhere; }
.acct-card a.handle:hover { color: var(--stamp); }
.acct-card .ad { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.f-bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-soft); }
.f-bottom .soc { display: flex; align-items: center; gap: 20px; }
.f-bottom .soc a { display: flex; color: var(--ink-soft); opacity: .8; padding: 6px; margin: -6px; transition: opacity .15s, color .15s; }
.f-bottom .soc a:hover { opacity: 1; color: var(--stamp); }
.f-bottom .soc svg { width: 20px; height: 20px; display: block; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== CLIP THEME OVERRIDE =====
   Layout concept: the same essay, lit like a Data Odyssey clip. Flat green-black canvas, each figure in a
   soft-cornered plot panel, headings in a wide heavy sans with the last word on a red highlight block,
   mono for everything that is a label or a reading line, teal line art, mint for the part that matters.
   Palette sampled from the supplied clip frames. */
:root {
  color-scheme: dark;
  --bg: #0d1412;
  --panel: #16231f;
  --panel-hi: #1a2b25;
  --edge: #25312d;
  --edge-hi: #34493f;
  --fg: #ecede6;
  --fg-body: #cfd3cb;
  --fg-soft: #93a098;
  --signal: #bb3318;
  --signal-text: #ea6a50;
  --mint: #6a9e7c;
  --mint-text: #86bd98;
  --teal: #3a8ea6;
  --f-head: 'Syne', 'IBM Plex Sans', sans-serif;

  --paper: var(--bg);
  --paper-writing: var(--bg);
  --paper-deep: #101a17;
  --ink: var(--fg);
  --ink-soft: var(--fg-soft);
  --stamp: var(--signal-text);
  --stamp-lite: var(--mint);
  --rule: var(--edge);
  --f-scan: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --f-type: 'IBM Plex Mono', 'Courier New', monospace;
  --f-script: 'IBM Plex Mono', monospace;
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--fg); }
::selection { background: var(--signal); color: var(--fg); }

.site-nav { background: var(--bg); }
.wordmark { font-family: var(--f-head); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 15px; }
.navlinks a { font-family: var(--f-type); font-size: 12.5px; letter-spacing: .04em; }
.navlinks a.active { border-bottom-color: var(--signal); }
.navlinks a.cta { border-radius: 4px; }
.navlinks a.cta:hover, .navlinks a.cta.active { background: var(--signal); color: var(--fg); border-color: var(--signal); }
.btn { border-radius: 4px; font-family: var(--f-type); }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-fill { background: var(--signal); border-color: var(--signal); color: var(--fg); }
.btn-fill:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.dark { background: #0a0f0e; color: var(--fg); }
.tint { background: #101a17; border-block: 1px solid var(--edge); }

.essay { background: var(--bg); border-bottom: 1px solid var(--edge); }
.eblock { border-top: 1px solid var(--edge); position: relative; }
.essay .eblock::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--signal); }
.essay .eblock.hero::before { display: none; }

/* type */
.w-cat, .label, .rc, .work .cat, .lin-head, .tl-label { color: var(--mint-text); font-family: var(--f-type); }
.w-cat { font-size: 11.5px; letter-spacing: .14em; }
.e-title, .e-h, .w-title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; }
.e-title { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
.e-h { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.15; letter-spacing: 0; }
.tagword { background: var(--signal); color: var(--fg); padding: 0 .16em; margin-inline: .02em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.etext p, .w-body, .etext ul { font-family: var(--f-type); font-size: 14.5px; line-height: 1.85; color: var(--fg-body); }
.etext p.opener { color: var(--fg); }
.etext em { color: var(--fg); }
.etext li b { color: var(--mint-text); }
.byline { font-family: var(--f-type); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mint-text); }
.sig { font-family: var(--f-type); color: var(--mint-text); font-size: 14px; }
.pull {
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase;
  font-size: clamp(18px, 2.1vw, 23px); line-height: 1.3; letter-spacing: 0;
  color: var(--fg); border-left: 3px solid var(--signal); padding: 2px 0 2px 18px; margin: 26px 0 28px 0;
}
.fine, .cap, .outnote { color: var(--fg-soft); }
.link, .callout a { color: var(--mint-text); }
.callout { background: rgba(106,158,124,.1); border-left-color: var(--mint); color: var(--fg-body); border-radius: 0 6px 6px 0; }

/* figure = plot panel */
.efig { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: 22px 22px 16px; }
.efig figcaption { font-family: var(--f-type); font-size: 11.5px; color: var(--fg-soft); border-top: 1px solid var(--edge); padding-top: 10px; margin-top: 14px; }
.efig figcaption b { color: var(--mint-text); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 520px) { .efig { padding: 14px 12px 12px; } }

/* diagram vocabulary */
svg rect { rx: 6px; }
svg .t, svg .tb { fill: var(--fg); }
svg .ts, svg .tc { fill: var(--fg-soft); }
svg .tc { letter-spacing: .14em; }
svg .tn { font-family: var(--f-type); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; fill: var(--signal-text); }
svg .tst { fill: var(--signal-text); }
svg .box { fill: var(--panel-hi); stroke: var(--edge-hi); stroke-width: 1.4; }
svg .boxs { fill: rgba(106,158,124,.14); stroke: var(--mint); stroke-width: 1.8; }
svg .boxd { stroke: var(--fg-soft); }
svg .boxk { fill: var(--fg); stroke: var(--fg); }
svg .ln { stroke: var(--teal); }
svg .lns { stroke: var(--signal-text); }
svg .lnr { stroke: var(--edge); }
svg .fillp { fill: var(--panel); }
svg .fills { fill: var(--signal); }
svg .fillk { fill: var(--fg); }
svg .dim { opacity: .4; }

/* cards, tables, lists */
.work, .stats2, .stats4, .caps, .outs, .series { background: var(--panel); border-color: var(--edge); }
.work { border-radius: 8px; }
.work .name { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: .01em; }
.work .stk b { color: var(--fg); }
.work:hover { border-color: var(--mint); }
.trace { border-color: var(--edge); border-radius: 4px; overflow: hidden; }
.trace a { background: var(--panel); color: var(--fg); }
.trace a:hover, .series a:hover { background: var(--mint); color: var(--bg); }
.trace a:hover small { color: rgba(13,20,18,.7); }
.trace .off { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(236,237,230,.05) 6px 7px); }
.series .here { background: var(--signal); color: var(--fg); }
.series .here small { color: rgba(236,237,230,.75); }
.lin-head { border-bottom-color: var(--mint); }
.lin-row .yr { color: var(--mint-text); }
.lin-row .who, .lin-row .became { color: var(--fg-body); }
.lin-row .who b { color: var(--fg); }
.lin-row.now { background: rgba(187,51,24,.12); border-left-color: var(--signal); }
a.row:hover { background: var(--panel); }
.stats4 b, .outs b, .stats2 .num { color: var(--fg); font-family: var(--f-head); font-weight: 800; }
.capcard h3 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: .95rem; }
.capcard p.tools, .tag { color: var(--mint-text); border-color: var(--mint); }
.copy-mail { border-radius: 4px; }
.copy-mail:hover { background: var(--signal); color: var(--fg); }
.placeholder-copy { color: var(--fg-soft); }
.site-footer { background: #0a0f0e; }
.acct-card { border-color: var(--edge); border-radius: 6px; }
.acct-card .ah { color: var(--mint-text); }
.acct-card a.handle:hover, .f-nav a:hover, .f-bottom .soc a:hover { color: var(--signal-text); }
a:focus-visible, button:focus-visible { outline-color: var(--mint-text); }

/* scrub bar, like a clip timeline */
#clipProgress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 3px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); z-index: 20; pointer-events: none; }

/* ===== MOTION: draw-in (Create / Write) ===== */
.js-anim .efig.pre .draw, .js-anim figure.exh.pre .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-anim .efig.pre svg text, .js-anim figure.exh.pre svg text { opacity: 0; }
.js-anim .efig.pre svg .box, .js-anim .efig.pre svg .boxs, .js-anim figure.exh.pre svg .box, .js-anim figure.exh.pre svg .boxs { fill-opacity: 0; }
.js-anim .efig .draw, .js-anim figure.exh .draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1) var(--d, 0s); }
.js-anim .efig svg text, .js-anim figure.exh svg text { transition: opacity .6s ease var(--td, .4s); }
.js-anim .efig svg .box, .js-anim .efig svg .boxs, .js-anim figure.exh svg .box, .js-anim figure.exh svg .boxs { transition: fill-opacity .7s ease .5s; }
.js-anim .etext.pre > * { opacity: 0; transform: translateY(10px); }
.js-anim .etext > * { transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.efig.lit svg .boxs { animation: indicate 1.4s ease 1.2s 1; }
@keyframes indicate { 0%,100% { filter: none; } 40% { filter: drop-shadow(0 0 7px rgba(134,189,152,.75)); } }
@media (prefers-reduced-motion: reduce) {
  .js-anim .efig.pre .draw, .js-anim figure.exh.pre .draw, .js-anim .etext.pre > * { stroke-dashoffset: 0 !important; opacity: 1 !important; transform: none !important; }
  .js-anim .efig.pre svg text, .js-anim figure.exh.pre svg text { opacity: 1 !important; }
  .efig.lit svg .boxs { animation: none; }
}

/* ===== POSTS, PROJECTS, ABOUT: components the thesis page does not use ===== */
.h1, .h2 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
h1.h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.1; }
h2.h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); line-height: 1.15; }
.sub, .body { color: var(--fg-body); }
.page-head { border-bottom: 1px solid var(--edge); padding-block: clamp(40px, 7vw, 88px); }
.mono { font-family: var(--f-type); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--signal); color: var(--fg); padding: 10px 14px; z-index: 30; font-family: var(--f-type); font-size: 13px; }
.skip:focus { left: 8px; top: 8px; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.writing { background: var(--bg); border-block: 1px solid var(--edge); }
.career svg .box { fill: var(--panel); }
.career figcaption b { color: var(--mint-text); }

/* post header bits */
.back { display: inline-block; font-family: var(--f-type); font-size: 12px; letter-spacing: .06em; color: var(--mint-text); border-bottom: 1px solid transparent; }
.back:hover { border-bottom-color: var(--mint-text); }
.dek { font-size: 17px; line-height: 1.65; color: var(--fg-body); max-width: 60ch; margin-bottom: 16px; }
.etext .dek { font-family: var(--f-scan); font-size: 17px; }
p.note { font-family: var(--f-type); font-size: 11.5px; line-height: 1.7; color: var(--fg-soft); border: 1px dashed var(--edge-hi); border-radius: 6px; padding: 10px 12px; margin-top: 14px; }
p.lead { font-size: 16.5px; }

/* topic sections */
.eone { max-width: 860px; margin-inline: auto; padding-block: clamp(32px, 5vw, 56px); display: flow-root; position: relative; }
.eone > * + * { margin-top: 16px; }
.eone p, .eone li, .etext li, .etext ol { font-family: var(--f-type); font-size: 14.5px; line-height: 1.85; color: var(--fg-body); }
.eone ul, .eone ol, .etext ul, .etext ol { padding-left: 22px; }
.eone li, .etext li { margin-bottom: 8px; }
.eone li b, .eone p b, .etext p b { color: var(--fg); font-weight: 600; }
.eone h2:not(.e-h), .etext h2:not(.e-h) { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.15; margin-bottom: 4px; text-wrap: balance; }
.eone h2 { margin-top: 36px; }
.eone > h2:first-child { margin-top: 0; }
.eone h3:not(.e-h), .etext h3:not(.e-h) { font-family: var(--f-type); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-text); margin-top: 24px; }
.eone code, .etext code, .eone td code, p code { font-family: var(--f-type); font-size: .92em; background: var(--panel-hi); border: 1px solid var(--edge); border-radius: 4px; padding: 1px 5px; color: var(--fg); }
.eone a, .etext a { color: var(--mint-text); text-decoration: underline; text-decoration-color: rgba(134,189,152,.4); text-underline-offset: 3px; }
.eone a:hover, .etext a:hover { text-decoration-color: var(--mint-text); }
section:has(h2)::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--signal); }
.eone:has(h2) { border-top: 1px solid var(--edge); }
.eone:has(h2)::before { left: 0; }
.eblock.hero::before { display: none; }
.lens { display: block; font-family: var(--f-type); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-text); margin-bottom: 12px; }
.lens.org { color: var(--mint-text); }
.lensbox { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.lensbox > div { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: 16px 18px; }
.lensbox p { font-size: 13.5px; line-height: 1.7; margin: 8px 0 0; }
@media (max-width: 640px) { .lensbox { grid-template-columns: 1fr; } }
.aside { background: var(--panel); border: 1px solid var(--edge); border-left: 3px solid var(--mint); border-radius: 0 8px 8px 0; padding: 16px 20px; font-family: var(--f-type); font-size: 13.5px; line-height: 1.8; color: var(--fg-body); }
.lab { display: block; font-family: var(--f-type); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-text); margin-bottom: 6px; }
p.closing { color: var(--fg); font-weight: 600; }

/* citations */
sup.r { font-size: 0; }
sup.r a, sup.r { font-family: var(--f-type); }
sup.r a { font-size: 11px; font-weight: 600; color: var(--signal-text); text-decoration: none !important; padding: 0 1px; }
sup.r a::before { content: "["; } sup.r a::after { content: "]"; }
sup.r a:hover { background: var(--signal); color: var(--fg); }
.refs { list-style: none; padding: 0; counter-reset: ref; }
.refs li { counter-increment: ref; position: relative; padding: 8px 0 8px 2.8em; border-top: 1px solid var(--edge); margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; scroll-margin-top: 80px; }
.refs li::before { content: counter(ref); position: absolute; left: 0; top: 8px; font-family: var(--f-type); font-weight: 600; color: var(--signal-text); }
.refs li:target { background: rgba(187,51,24,.12); }

/* code blocks = clip cards */
.xcode { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.xcode .hd { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--edge); background: var(--panel-hi); font-family: var(--f-type); font-size: 12px; }
.xcode .hd b { color: var(--fg); font-weight: 600; }
.xcode .hd span { color: var(--fg-soft); }
pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--f-type); font-size: 12.5px; line-height: 1.7; color: var(--fg-body); tab-size: 2; white-space: pre; }
pre .ln { display: block; min-height: 1.7em; padding-right: 12px; white-space: pre; }
pre .sg { display: inline-block; width: 1ch; color: var(--fg-soft); }
pre .t { color: var(--mint-text); }
pre .a { color: #6fb3c8; }
pre .v, pre .q { color: #d9b979; }
pre .c { color: #7f8c85; font-style: italic; }
pre .k { color: var(--signal-text); }
pre .m { color: var(--mint-text); }
pre .ln.kept { background: rgba(106,158,124,.13); box-shadow: inset 3px 0 0 var(--mint); }
pre .ln.lost { background: rgba(187,51,24,.16); box-shadow: inset 3px 0 0 var(--signal); }
pre .ln.add { background: rgba(106,158,124,.13); box-shadow: inset 3px 0 0 var(--mint); }
pre .ok { color: var(--mint-text); } pre .bad { color: var(--signal-text); }
.xcap { font-family: var(--f-type); font-size: 11.5px; line-height: 1.65; color: var(--fg-soft); margin-top: 10px; }
.xcap b { color: var(--mint-text); letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }
.why { font-family: var(--f-type); font-size: 12px; line-height: 1.7; color: var(--fg-soft); padding: 10px 16px; border-top: 1px solid var(--edge); }

/* tables */
.xtbl { overflow-x: auto; background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; }
.xtbl table { width: 100%; border-collapse: collapse; font-family: var(--f-scan); font-size: 13.5px; line-height: 1.55; min-width: 520px; }
.xtbl th { text-align: left; font-family: var(--f-type); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint-text); padding: 11px 14px; border-bottom: 1px solid var(--mint); white-space: nowrap; }
.xtbl td { padding: 11px 14px; border-top: 1px solid var(--edge); vertical-align: top; color: var(--fg-body); }
.xtbl tbody tr:first-child td { border-top: none; }
.xtbl td:first-child { color: var(--fg); font-weight: 500; }
.xtbl th.n, .xtbl td.n { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-type); }
.xtbl tr.hl td, .xtbl tr.tot td { background: rgba(187,51,24,.12); color: var(--fg); font-weight: 600; }
.xtbl code { font-size: .9em; }
.badge { display: inline-block; font: 700 10px var(--f-scan); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border: 1px dashed var(--mint); border-radius: 3px; color: var(--mint-text); white-space: nowrap; }

/* stat tiles */
.stats4 { border-radius: 8px; overflow: hidden; }
.stats4 span { color: var(--fg-soft); }
.stats4 span i { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint-text); margin-top: 6px; }
.stats4.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .stats4.s3 { grid-template-columns: 1fr; } .stats4.s3 > div { border-right: none !important; border-bottom: 1px solid var(--edge); } .stats4.s3 > div:last-child { border-bottom: none; } }
.stats4 .teal b { color: #6fb3c8; } .stats4 .purple b { color: #a99bd0; } .stats4 .amber b { color: #d9b979; } .stats4 .accent b { color: var(--signal-text); }
.statcol { display: flex; flex-direction: column; gap: 0; }
.statcol > div { padding: 14px 0; border-top: 1px solid var(--edge); }
.statcol > div:first-child { border-top: none; padding-top: 0; }
.statcol b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--fg); }
.statcol span { display: block; font-family: var(--f-type); font-size: 12.5px; line-height: 1.6; color: var(--fg-body); margin-top: 4px; }
.statcol small { display: block; font-family: var(--f-type); font-size: 11px; color: var(--mint-text); margin-top: 4px; }

/* answer card + chips */
.answer { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.a-head { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; background: var(--panel-hi); border-bottom: 1px solid var(--edge); }
.a-q { font-family: var(--f-scan); font-weight: 600; font-size: 16px; color: var(--fg); }
.a-who { font-family: var(--f-type); font-size: 11.5px; color: var(--mint-text); }
.answer ol { padding: 14px 20px 4px 40px; }
.answer li p { margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-type); font-size: 11px; color: var(--fg-soft); border: 1px solid var(--edge-hi); border-radius: 999px; padding: 2px 10px; }
.a-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 20px; border-top: 1px solid var(--edge); font-family: var(--f-type); font-size: 11.5px; color: var(--fg-soft); }
.a-foot b { color: var(--mint-text); }

/* wide figures that sit alone in a topic */
figure.exh { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: 22px 22px 16px; }
figure.exh svg { display: block; width: 100%; height: auto; }
figure.exh figcaption { font-family: var(--f-type); font-size: 11.5px; color: var(--fg-soft); border-top: 1px solid var(--edge); padding-top: 10px; margin-top: 14px; line-height: 1.6; }
figure.exh figcaption b { color: var(--mint-text); letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }
.efig figcaption b { margin-right: 8px; }
.efig .statcol { padding: 4px 4px 0; }
.efig svg { display: block; width: 100%; height: auto; }

/* calculator */
.calc { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; padding: 18px 20px; }
.calc-title { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: 15px; margin-bottom: 14px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-grid label { display: grid; gap: 6px; font-family: var(--f-type); font-size: 12px; color: var(--fg-body); }
.calc-grid .val { font-weight: 700; color: var(--fg); font-size: 15px; margin-left: 6px; }
.calc-grid small { color: var(--fg-soft); font-size: 11px; }
.calc input[type=range] { width: 100%; accent-color: var(--signal); }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--edge); border-radius: 6px; margin-top: 18px; background: var(--bg); }
.calc-out > div { padding: 14px 16px; border-right: 1px solid var(--edge); min-width: 0; }
.calc-out > div:last-child { border-right: none; }
.calc-out b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--fg); overflow-wrap: anywhere; }
.calc-out span { font-family: var(--f-type); font-size: 11.5px; color: var(--fg-soft); }
@media (max-width: 560px) { .calc-out { grid-template-columns: 1fr; } .calc-out > div { border-right: none; border-bottom: 1px solid var(--edge); } .calc-out > div:last-child { border-bottom: none; } }
.calc-note { font-family: var(--f-type); font-size: 11.5px; color: var(--fg-soft); margin-top: 12px; }

/* chart marks (meaning kept: K strongly agree, R agree/red, P neutral, B blue, S slate, A amber) */
svg .barK { fill: #9bbfae; } svg .barR { fill: var(--signal); } svg .barP { fill: #7d70a8; }
svg .barB { fill: var(--teal); } svg .barS { fill: #5d6b65; } svg .barA { fill: #c9a86a; }
svg .tx { font-family: var(--f-type); font-size: 11.8px; fill: var(--fg); }
svg .tbs { font-family: var(--f-type); font-size: 11.8px; font-weight: 700; fill: var(--fg); }
svg .tp { font-family: var(--f-type); font-size: 11px; font-weight: 600; fill: var(--fg); paint-order: stroke; stroke: rgba(13,20,18,.85); stroke-width: 3px; stroke-linejoin: round; }
svg .tl { font-family: var(--f-type); font-size: 10.5px; fill: var(--signal-text); }
svg .lnd { fill: none; stroke: var(--signal-text); stroke-width: 1.5; stroke-dasharray: 5 4; }

/* page tail: trace, series, next */
.tail { border-top: 1px solid var(--edge); background: #101a17; margin-top: clamp(24px, 4vw, 48px); }
.tail .inner { max-width: 860px; margin-inline: auto; padding: clamp(36px, 6vw, 64px) max(var(--pad-x), env(safe-area-inset-left, 0px)); }
.trace.t2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
.series a, .series span { font-family: var(--f-scan); }
a.next { display: block; margin-top: 24px; border: 1px solid var(--edge); border-radius: 8px; background: var(--panel); padding: 18px 22px; transition: border-color .15s; }
a.next:hover { border-color: var(--signal); }
.next .nl { font-family: var(--f-type); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-text); margin-bottom: 6px; }
.next .nt { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.2; }
.sig { display: block; margin-top: 12px; }
.site-footer .wordmark { font-size: 14px; }
.page-head + section.wrap { padding-top: var(--section-y); }
.page-head + .band { padding-top: clamp(32px, 5vw, 56px) !important; }

.e-h { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.15; letter-spacing: 0; color: var(--fg); text-wrap: balance; margin: 0 0 14px; }
.w-cat + .e-h { margin-top: 0; }
.eone > .w-cat { margin-top: 36px; }
.eone > .w-cat:first-child { margin-top: 0; }
.eone > .w-cat + .e-h { margin-top: 8px; }
.etext .w-cat, .eone .w-cat { margin-bottom: 10px; }
body.post .e-title { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.e-title .tagword, .e-title em { font-style: normal; background: var(--signal); color: var(--fg); padding: 0 .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.etext .e-title { margin-bottom: 18px; }
