/* Night: the shared Ledger kit for content pages.
   One steady night ground, a copy column with its own clear space, figures
   that sit free on the ground (corner marks, a mono HUD, a legend; never a
   card), hairline rules, mono labels, square cells. Extracted from the
   homepage Ledger chapters (assets/aura/ledger) and /household.

   Load with a LEAN head and nothing from the legacy layers
   (polish, obsidian, reform, editorial, atelier, aura-site, pages-core):
     fonts (Inter 300-600, JetBrains Mono 400-500)
     /assets/navigation.css   /assets/nav-enhance.js (defer)
     /assets/icons.css        /assets/night/night.css
   Body: class="nt-page ax-night editorial-site".
     ax-night       the nav is night before any script runs (navigation.css contract)
     editorial-site navigation.css keys the skip link, anchor offsets and the
                    footer layout on it; nothing else reads it on a lean page.

   Every class is prefixed nt-. Base styles are the FINAL state of each
   figure; motion is layered on top inside prefers-reduced-motion:
   no-preference, so reduced motion, print and screenshots show a finished
   figure and big numbers are always solid. No JavaScript is needed. */

/* ------------------------------------------------------------- tokens */
.nt-page {
  --nt-bg: #0a0d14;
  --nt-s1: #0f131c;
  --nt-s2: #141925;
  --nt-ink: #f2f3f6;
  --nt-soft: #aab1be;
  --nt-faint: #7e8696;
  --nt-rule: rgba(242, 243, 246, .14);
  --nt-rule2: rgba(242, 243, 246, .07);
  --nt-sig: #97a4ff;
  --nt-cop: #d08a5c;
  --nt-n0: #5d6577;
  --nt-n1: #8a92a3;
  --nt-n2: #c6ccd8;
  --nt-cell: #232a39;
  --nt-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --nt-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nt-nav: var(--site-nav-height, 76px);
  --nt-ease: cubic-bezier(.16, 1, .3, 1);
  --nt-pad: clamp(20px, 5vw, 80px);
  --nt-max: 1320px;
}

/* ------------------------------------------------------------- ground */
html:has(body.nt-page) { background: #0a0d14; color-scheme: dark; }
body.nt-page {
  margin: 0; background: var(--nt-bg); color: var(--nt-ink);
  font: 400 17px/1.6 var(--nt-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.nt, .nt *, .nt *::before, .nt *::after { box-sizing: border-box; }
.nt { display: block; overflow-x: clip; }
.nt :focus-visible { outline: 2px solid var(--nt-sig); outline-offset: 4px; }
.nt a { color: inherit; }
.nt .nt-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The skip link: off screen until focused. On legacy pages reform.css placed
   it; a lean page has to. navigation.css (body.editorial-site) gives colours. */
body.nt-page .skip-link { position: fixed; left: 16px; top: -120px; z-index: 1100; font: 500 14px/1.4 var(--nt-sans); text-decoration: none; }
body.nt-page .skip-link:focus { top: 12px; }

/* ------------------------------------------------------------- type */
.nt-kicker { margin: 0 0 22px; font: 500 11px/1.5 var(--nt-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--nt-faint); }
.nt-kicker b { font-weight: 500; color: var(--nt-sig); }
.nt-h1 { margin: 0 0 28px; font: 400 clamp(40px, 4vw, 62px)/1.02 var(--nt-sans); letter-spacing: -.05em; color: var(--nt-ink); text-wrap: balance; }
.nt-h2 { margin: 0 0 22px; font: 400 clamp(32px, 3.1vw, 50px)/1.04 var(--nt-sans); letter-spacing: -.045em; color: var(--nt-ink); text-wrap: balance; }
.nt-accent { color: var(--nt-sig); }
.nt-nw { white-space: nowrap; }
.nt-lede { margin: 0; max-width: 40ch; font: 400 clamp(16px, 1.25vw, 18.5px)/1.6 var(--nt-sans); color: var(--nt-soft); text-wrap: pretty; }
.nt-small { margin: 18px 0 0; max-width: 56ch; font: 400 12.5px/1.6 var(--nt-sans); color: var(--nt-faint); }

/* ------------------------------------------------------------- shell and rhythm
   A screen is one idea: copy on the left (kicker, headline, two lines, an
   optional number), one figure on the right. Screens are separated by a
   hairline; the ground never changes. */
.nt-screen {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(40px, 6vw, 104px); align-items: center;
  max-width: var(--nt-max); margin: 0 auto; padding: clamp(84px, 11vh, 132px) var(--nt-pad);
  min-height: calc(100vh - var(--nt-nav)); min-height: calc(100svh - var(--nt-nav));
  scroll-margin-top: var(--nt-nav);
}
.nt-screen + .nt-screen::before { content: ""; position: absolute; left: var(--nt-pad); right: var(--nt-pad); top: 0; height: 1px; background: var(--nt-rule); }
.nt-screen.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.nt-screen.is-flip .nt-copy { order: 2; }
.nt-hero { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(56px, 9vh, 104px); }
.nt-copy { min-width: 0; max-width: 540px; }
/* A screen is as tall as its content needs, not the window: only the hero
   owns a full window. Figures take the size of their column (see the
   figure library's desktop block). */
.nt-screen { min-height: 0; padding-block: clamp(72px, 10vh, 120px); }
@media (min-width: 761px) {
  .nt-screen.nt-hero { min-height: calc(100vh - var(--nt-nav)); min-height: calc(100svh - var(--nt-nav)); padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(56px, 9vh, 104px); }
}
.nt-status { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 30px 0 0; font: 500 11px/1.6 var(--nt-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--nt-faint); }
.nt-status span + span { color: var(--nt-sig); }
.nt-status span + span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--nt-sig); vertical-align: 1px; }

/* ------------------------------------------------------------- actions */
.nt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 34px 0 0; }
.nt-btn {
  display: inline-flex; align-items: center; gap: 16px; min-height: 50px; padding: 13px 18px;
  border: 1px solid var(--nt-ink); border-radius: 3px; background: var(--nt-ink); color: var(--nt-bg) !important;
  font: 500 15px/1.3 var(--nt-sans); text-decoration: none; transition: background-color .2s ease, border-color .2s ease;
}
.nt-btn:hover { background: var(--nt-sig); border-color: var(--nt-sig); }
.nt-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 15px/1.3 var(--nt-sans); color: var(--nt-ink); text-decoration: none; border-bottom: 1px solid var(--nt-rule); }
.nt-link:hover { border-color: var(--nt-ink); }
.nt-btn svg, .nt-link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------- big numbers
   Solid, full opacity, on their final value from the start. */
.nt-num { display: grid; gap: 10px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--nt-rule); }
.nt-num strong { font: 300 clamp(64px, 6.4vw, 104px)/.9 var(--nt-sans); letter-spacing: -.055em; font-variant-numeric: tabular-nums; color: var(--nt-sig); white-space: nowrap; }
.nt-num strong small { margin-left: .12em; font-size: .36em; letter-spacing: -.01em; color: var(--nt-soft); }
.nt-num > span { max-width: 36ch; font: 400 15.5px/1.55 var(--nt-sans); color: var(--nt-soft); }
.nt-num > span b { font-weight: 500; color: var(--nt-ink); }
.nt-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 30px 0 0; border-top: 1px solid var(--nt-rule); }
.nt-nums .nt-num { margin: 0; padding: 20px 20px 0 0; border-top: 0; }
.nt-nums .nt-num + .nt-num { padding-left: 20px; border-left: 1px solid var(--nt-rule); }
.nt-nums .nt-num strong { font-size: clamp(40px, 3.6vw, 56px); }
.nt-num.is-ink strong { color: var(--nt-ink); }
.nt-num.is-soft strong { color: var(--nt-n2); }
/* Ranges in big numbers: the dash at the height of the figures' middle. */
.nt .nd { display: inline-block; margin: 0 .08em; transform: translateY(-.07em); }

/* ------------------------------------------------------------- figure frame
   Free on the ground: corner registration marks, a HUD line, the body, a
   legend. Labels are HTML (they stay 11px on a phone). */
:where(.nt-fig) :is(p, h3) { margin: 0; }
.nt-fig { position: relative; min-width: 0; margin: 0; padding: 30px 30px 26px; color: var(--nt-ink); container: ntfig / inline-size; }
.nt-marks { position: absolute; inset: 0; pointer-events: none; }
.nt-marks i { position: absolute; width: 12px; height: 12px; border: 0 solid rgba(242, 243, 246, .28); }
.nt-marks i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.nt-marks i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.nt-marks i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.nt-marks i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.nt-hud { display: flex; justify-content: space-between; gap: 18px; margin: 0 0 26px; font: 500 11px/1.4 var(--nt-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--nt-faint); }
.nt-hud b { font-weight: 500; color: var(--nt-ink); }
.nt-hud .is-sig { color: var(--nt-sig); }
.nt-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; font: 500 11px/1.4 var(--nt-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nt-soft); }
.nt-legend span { display: inline-flex; align-items: center; gap: 8px; }
.nt-legend i { width: 9px; height: 9px; flex: 0 0 auto; background: var(--nt-n1); }
.nt-legend .k-n0 { background: var(--nt-n0); }
.nt-legend .k-n2 { background: var(--nt-n2); }
.nt-legend .k-sig { background: var(--nt-sig); }
.nt-legend .k-cop { background: var(--nt-cop); }
.nt-legend .k-cell { background: var(--nt-cell); box-shadow: inset 0 0 0 1px var(--nt-n0); }
.nt-legend .k-range { background: rgba(151, 164, 255, .14); box-shadow: inset 0 0 0 1px var(--nt-sig); }
.nt-legend .k-line { width: 14px; height: 0; background: none; border-top: 1px dashed var(--nt-sig); }
.nt-legend .k-out { background: none; box-shadow: inset 0 0 0 1px var(--nt-n1); }
.nt-legend .k-copo { background: none; box-shadow: inset 0 0 0 1.5px var(--nt-cop); }
.nt-legend .k-ink { width: 14px; height: 0; background: none; border-top: 1px solid var(--nt-ink); }

/* ------------------------------------------------------------- glyph cells
   The navigation's 32x32 cell vocabulary, for list markers and small marks:
   <svg class="nt-glyph" viewBox="0 0 32 32"><rect class="g1" .../></svg> */
.nt-glyph { display: block; width: 40px; height: 40px; overflow: visible; }
.nt-glyph .g0 { fill: var(--nt-n0); } .nt-glyph .g1 { fill: var(--nt-n2); }
.nt-glyph .gs { fill: var(--nt-sig); } .nt-glyph .gc { fill: var(--nt-cop); }
.nt-glyph .gk { fill: none; stroke: var(--nt-n1); stroke-width: 1; }

/* ------------------------------------------------------------- step rail
   <ol class="nt-steps"><li><b>Title</b><span>One line</span></li>...</ol> */
.nt-steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--nt-rule); counter-reset: ntst; }
.nt-steps li { counter-increment: ntst; padding: 16px 16px 18px 0; }
.nt-steps li + li { padding-left: 16px; border-left: 1px solid var(--nt-rule); }
.nt-steps b { display: block; margin-bottom: 6px; font: 400 16.5px/1.3 var(--nt-sans); color: var(--nt-ink); }
.nt-steps b::before { content: "0" counter(ntst); display: block; margin-bottom: 10px; font: 500 11px/1.5 var(--nt-mono); letter-spacing: .14em; color: var(--nt-sig); }
.nt-steps span { font: 400 14px/1.55 var(--nt-sans); color: var(--nt-soft); }

/* ------------------------------------------------------------- compare bars
   Each row: label, a bar scaled to its own value (--v, 0..1), the value.
   <div class="nt-bars"><div class="nt-bar" style="--v:1"><span>Label<small>meta</small></span><i></i><b>+80 bp</b></div></div> */
.nt-bars { display: grid; gap: 0; border-top: 1px solid var(--nt-rule); }
.nt-bar { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 17fr) 100px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--nt-rule2); }
.nt-bar > span { font: 400 14.5px/1.4 var(--nt-sans); color: var(--nt-ink); }
.nt-bar > span small { display: block; margin-top: 4px; font: 500 11px/1.4 var(--nt-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--nt-faint); }
.nt-bar > i { position: relative; height: 14px; background: linear-gradient(90deg, var(--nt-rule) 0 1px, transparent 1px) 0 0 / 10% 100%; }
.nt-bar > i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v, 0) * 100%); background: var(--nt-sig); transform-origin: 0 50%; }
.nt-bar > b { font: 400 22px/1 var(--nt-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--nt-sig); text-align: right; white-space: nowrap; }
.nt-bar.is-lead > b { font-size: 28px; }
/* Shares on one scale: .nt-bars.is-share puts every row on the same 0 to 100%
   track (--v is the share itself; the hairlines are every 10%), with a zero
   tick on each row. .is-zero marks a zero as a signal square on that tick, so
   a result of none is drawn, not left blank. .is-cop: work left for a person. */
.nt-bars.is-share .nt-bar > i { overflow: visible; }
.nt-bars.is-share .nt-bar > i::before { content: ""; position: absolute; left: 0; top: -5px; bottom: -5px; width: 1px; background: var(--nt-soft); }
.nt-bar.is-zero > i::after { left: -5px; top: 50%; bottom: auto; width: 11px; height: 11px; margin-top: -5.5px; background: var(--nt-sig); }
.nt-bar.is-cop > i::after { background: var(--nt-cop); }
.nt-bar.is-cop > b { color: var(--nt-n2); }

/* ------------------------------------------------------------- ledger rows
   A typeset record with no box: hairline rules only.
   <div class="nt-ledger"> header row, .nt-row rows, .nt-stamp, .nt-fp </div> */
.nt-ledger { display: grid; font: 400 14px/1.4 var(--nt-sans); font-variant-numeric: tabular-nums; border-top: 1px solid rgba(242, 243, 246, .34); }
.nt-ledger-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0 12px; font: 500 11px/1.4 var(--nt-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--nt-soft); }
.nt-tag { color: var(--nt-faint); }
.nt-ledger h3 { margin: 14px 0 6px; font: 500 11px/1.4 var(--nt-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--nt-faint); }
.nt-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--nt-rule2); color: var(--nt-ink); }
.nt-row > :first-child { font: 500 11px/1.4 var(--nt-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nt-n2); }
.nt-row > :last-child { font: 400 13px/1.4 var(--nt-mono); color: var(--nt-soft); text-align: right; }
.nt-row.is-buy > :first-child, .nt-row.is-ok > :last-child { color: var(--nt-sig); }
.nt-row.is-ok > :first-child { width: 9px; height: 9px; align-self: center; background: var(--nt-sig); font-size: 0; }
.nt-seal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 18px; }
.nt-stamp { display: grid; gap: 2px; padding: 10px 13px 11px; border: 1.5px solid var(--nt-sig); color: var(--nt-sig); }
.nt-stamp span { font: 500 10.5px/1.4 var(--nt-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.nt-stamp b { font: 400 20px/1.15 var(--nt-sans); letter-spacing: -.02em; }
.nt-fp { display: grid; gap: 4px; font: 500 11px/1.5 var(--nt-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--nt-faint); }
.nt-fp code { font: 400 13px/1.4 var(--nt-mono); letter-spacing: .04em; text-transform: none; color: var(--nt-ink); }

/* ------------------------------------------------------------- CTA band */
.nt-cta { position: relative; max-width: var(--nt-max); margin: 0 auto; padding: clamp(88px, 12vh, 140px) var(--nt-pad) clamp(64px, 9vh, 96px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(40px, 6vw, 104px); align-items: end; }
.nt-cta::before { content: ""; position: absolute; left: var(--nt-pad); right: var(--nt-pad); top: 0; height: 1px; background: var(--nt-rule); }
.nt-cta .nt-h2 { margin: 0; font-size: clamp(36px, 3.8vw, 60px); }
.nt-cta .nt-actions { margin: 26px 0 0; }
.nt-foot { max-width: var(--nt-max); margin: 0 auto; padding: 0 var(--nt-pad) 56px; }
.nt-cap { margin: 22px 0 0; max-width: 72ch; font: 400 12.5px/1.6 var(--nt-sans); color: var(--nt-faint); }
.nt-foot p { margin: 0; padding-top: 18px; border-top: 1px solid var(--nt-rule2); max-width: 110ch; font: 400 12.5px/1.65 var(--nt-sans); color: var(--nt-faint); }

/* ------------------------------------------------------------- footer harmony
   The one specificity fight. navigation.css paints the footer day with
   body.editorial-site ... !important, and the disclaimer carries an inline
   colour. Night pages beat both here, once, with body.nt-page.editorial-site
   (one class more) and !important. */
body.nt-page.editorial-site footer.site-footer-refined { background: #0a0d14 !important; border-top-color: rgba(242, 243, 246, .12) !important; color: #aab1be !important; }
body.nt-page .site-footer-brand { color: #f2f3f6 !important; }
body.nt-page .site-footer-brand img { filter: brightness(0) invert(1); }
body.nt-page .site-footer-brand small, body.nt-page .site-footer-grid > div > span { color: #8a92a3 !important; }
body.nt-page.editorial-site .site-footer-grid > div > a { color: #d5d9e2 !important; }
body.nt-page .site-footer-bottom { border-top-color: rgba(242, 243, 246, .12) !important; color: #8a92a3 !important; }
body.nt-page .site-footer-bottom a, body.nt-page .site-footer-disclaimer { color: #8a92a3 !important; }
body.nt-page.editorial-site .site-footer-refined a:focus-visible { outline-color: #97a4ff !important; }
/* The disclaimer already sits in .nt-foot on night pages; the footer copy stays for the other pages' parity. */

/* =========================================================== figure library
   Reusable figures for solution pages. Each base style is its final state. */

/* --- Rungs: a ladder of maturities, each rung a strip of lots.
   <div class="nt-rungs" style="--t:.86"><div class="nt-rung"><b>2027</b><span><i style="--w:.3"></i>...</span></div></div>
   Lots: i (held), i.is-n2, i.is-cop (loss lot), i.is-sig (planned). --t marks the target. */
.nt-rungs { position: relative; display: grid; gap: 9px; --t: .86; }
.nt-rung { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; }
.nt-rung > b { font: 500 11px/1 var(--nt-mono); letter-spacing: .1em; color: var(--nt-soft); text-align: right; }
.nt-rung > span { position: relative; display: flex; gap: 3px; height: 18px; }
.nt-rung i { position: relative; flex: 0 0 auto; width: calc(var(--w) * 100% - 3px); height: 100%; background: var(--nt-n0); }
.nt-rung i.is-n2 { background: var(--nt-n1); }
.nt-rung i.is-cop { background: var(--nt-cop); }
.nt-rung i.is-sig { background: var(--nt-sig); }
.nt-rungs::after { content: ""; position: absolute; top: -10px; bottom: -10px; left: calc(66px + (100% - 66px) * var(--t)); border-left: 1px dashed var(--nt-sig); opacity: .8; }
/* i.is-swap: a loss lot (its ::before, copper) sold and replaced in the same rung (signal). */
.nt-rung i.is-swap { background: var(--nt-sig); }
.nt-rung i.is-swap::before { content: ""; position: absolute; inset: 0; background: var(--nt-cop); opacity: 0; }

/* --- Lots: one position's tax lots as columns of cost basis against today's price.
   <div class="nt-lots" style="--p:.62"><div class="nt-lot" style="--h:.5"><i></i><b>L1</b></div>...</div>
   .is-loss (basis above price), .is-pick (chosen to sell), .is-fifo (oldest lot). */
.nt-lots { --g: clamp(10px, 3cqi, 22px); position: relative; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: var(--g); height: 260px; padding: 0 0 30px; border-bottom: 1px solid var(--nt-rule); --p: .6; }
.nt-lot { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.nt-lot > i { display: block; height: calc(var(--h) * 100%); background: var(--nt-n0); }
.nt-lot.is-loss > i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--nt-cop); }
.nt-lot.is-pick > i { background: var(--nt-sig); box-shadow: none; }
.nt-lot > b { position: absolute; left: 0; right: 0; bottom: -26px; font: 500 11px/1 var(--nt-mono); letter-spacing: .1em; color: var(--nt-faint); text-align: center; }
.nt-lot.is-pick > b { color: var(--nt-sig); }
.nt-lot.is-fifo > i { box-shadow: inset 0 0 0 1px var(--nt-n2); }
.nt-lot > em { position: absolute; left: 50%; bottom: calc(var(--h) * 100% + 10px); transform: translateX(-50%); font: 500 11px/1 var(--nt-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--nt-sig); }
.nt-lot.is-fifo > em { color: var(--nt-faint); }
.nt-price { position: absolute; left: -8px; right: -8px; bottom: calc(30px + (100% - 30px) * var(--p)); height: 0; border-top: 1px solid var(--nt-ink); }
.nt-price span { position: absolute; right: 0; bottom: 6px; padding: 2px 6px; background: var(--nt-bg); font: 500 11px/1.3 var(--nt-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nt-ink); }
.nt-scan { --cw: calc((100% - (var(--n, 6) - 1) * var(--g)) / var(--n, 6)); --to: calc(var(--i, 0) * (var(--cw) + var(--g)));
  position: absolute; top: -8px; bottom: 22px; left: var(--to); width: var(--cw); margin-left: -5px; padding: 0 5px; box-sizing: content-box; border: 1px solid var(--nt-sig); pointer-events: none; }

/* --- Range strip: one square cell per account, placed at its value on one
   axis, between the two hairlines of the allowed band. Cells that share a
   position stack upward, so height means "accounts here" and nothing else.
   Cells outside the band are copper; on our lane cells are signal.
   <div class="nt-range" style="--lo:.36;--hi:.64;--m:7"><div class="nt-lane"><b>Label</b><span><i style="--a:.1;--b:.4;--x:.395;--s:0;--k:0"></i>...</span></div></div>
   --b the value after the plan; --x the same value on a grid whose bins meet
   the band edges (so a cell never crosses a limit); --s its place in the
   stack; --m the tallest stack; --a where it had drifted (motion only). */
.nt-range { position: relative; display: grid; gap: 30px; --lo: .35; --hi: .65; --m: 5; --c: 9px; --cg: 2px; }
.nt-lane { display: grid; gap: 10px; }
.nt-lane > b { font: 500 11px/1.4 var(--nt-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--nt-soft); }
.nt-lane.is-ours > b { color: var(--nt-sig); }
.nt-lane > span { position: relative; display: block; height: calc(var(--m) * (var(--c) + var(--cg)) + 12px); border-bottom: 1px solid var(--nt-rule); }
.nt-lane > span::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--lo) * 100%); width: calc((var(--hi) - var(--lo)) * 100%); background: rgba(151, 164, 255, .07); border-left: 1px solid var(--nt-sig); border-right: 1px solid var(--nt-sig); }
.nt-lane i { position: absolute; left: calc(var(--x) * 100%); bottom: calc(var(--s, 0) * (var(--c) + var(--cg)) + var(--cg)); width: var(--c); height: var(--c); margin-left: calc(var(--c) / -2); background: var(--nt-n2); }
.nt-lane.is-ours i { background: var(--nt-sig); }
.nt-lane i.is-out { background: var(--nt-cop); }
.nt-axis { display: flex; justify-content: space-between; margin: 10px 0 0; font: 500 11px/1.4 var(--nt-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--nt-faint); }
.nt-axis span:nth-child(2) { color: var(--nt-sig); }

/* --- Cell field: a book of accounts, one square cell each, with a check scan.
   An SVG with two pattern layers: the book (cells) and the verified layer. */
.nt-field { display: block; width: 100%; height: auto; max-width: 435px; margin: 0 auto; shape-rendering: crispEdges; }
.nt-field .pc { fill: var(--nt-cell); }
/* Accounts not verified: outlined cells, so the meaning does not rest on a 1.35:1 fill. */
.nt-field .f-rest { fill: var(--nt-bg); stroke: var(--nt-n1); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.nt-field .ps { fill: var(--nt-sig); }
.nt-field .f-scan { fill: var(--nt-sig); opacity: 0; }

/* --- Record: ledger rows revealed in order. */
.nt-record { max-width: 560px; margin: 0 auto; }

/* --- Desktop: figures at reading size in their column. */
@media (min-width: 1101px) {
  .nt-rungs { gap: 12px; }
  .nt-rung > span { height: 30px; }
  .nt-lots { height: 400px; }
  .nt-range { --c: 11px; --cg: 3px; gap: 36px; }
  /* .nt-field stays 435px: the 3px cells only render cleanly at 1:1. */
  .nt-fix { gap: 34px; }
  .nt-fix-trk { height: 48px; }
  .nt-bar { padding: 22px 0; }
  .nt-bar > i { height: 18px; }
}

/* =========================================================== motion
   Each figure plays once, in under five seconds, when it enters the view,
   then rests on its final state (the base styles). night.js sets html.nt-js
   and gives a figure .is-in when it is seen. Until then its motion is held
   at the start; without the script nothing moves and every figure is drawn
   finished, as under reduced motion and in print. */
html:not(.nt-js) .nt *, html:not(.nt-js) .nt *::before, html:not(.nt-js) .nt *::after { animation: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .nt-js .nt *, .nt-js .nt *::before, .nt-js .nt *::after { animation-iteration-count: 1 !important; animation-fill-mode: backwards !important; }
  .nt-js :is(.nt-fig, [data-nt-play]):not(.is-in) *,
  .nt-js :is(.nt-fig, [data-nt-play]):not(.is-in) *::before,
  .nt-js :is(.nt-fig, [data-nt-play]):not(.is-in) *::after { animation-play-state: paused !important; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Rungs: a loss lot leaves, its replacement lands in the same rung. */
  .nt-rung i.is-swap { animation: nt-swap-in 4.2s var(--nt-ease) 1; animation-delay: calc(var(--d, 0s) * .6); }
  .nt-rung i.is-swap::before { animation: nt-swap-out 4.2s var(--nt-ease) 1; animation-delay: calc(var(--d, 0s) * .6); }

  /* Lots: the scan walks the lots and stops on the one to sell. */
  .nt-scan { animation: nt-scan 4s var(--nt-ease) 1; }
  .nt-lot.is-pick > i { animation: nt-pick 4s ease 1; }
  .nt-lot.is-pick > em, .nt-lot.is-fifo > em { animation: nt-label 4s ease 1; }

  /* Range: every account moves from where it drifted to where the plan puts it. */
  .nt-lane i { animation: nt-settle 4.2s var(--nt-ease) 1; animation-delay: calc(var(--k, 0) * 15ms); }
  .nt-lane i.is-out { animation-name: nt-settle-out; }
  .nt-lane.is-ours i { animation-name: nt-settle-sig; }

  /* Cell field: the check passes down the book. */
  .nt-field .f-ver { animation: nt-fill 4.5s cubic-bezier(.45, 0, .25, 1) 1; }
  .nt-field .f-scan { animation: nt-sweep 4.5s cubic-bezier(.45, 0, .25, 1) 1; }

  /* Record: rows set in order, then the stamp. */
  .nt-record .nt-row, .nt-record .nt-seal { animation: nt-type 4s var(--nt-ease) 1; animation-delay: calc(var(--r, 0) * .16s); }
  .nt-record .nt-stamp { animation: nt-stamp 4.5s var(--nt-ease) 1; }

  /* Compare bars grow once as their figure enters. A marked zero does not grow. */
  .nt-bar > i::after { animation: nt-grow 1.4s var(--nt-ease) 1; animation-delay: calc(var(--r, 0) * .12s + .2s); }
  .nt-bar.is-zero > i::after { animation: none; }
}
@keyframes nt-swap-out { 0%, 18% { opacity: 1; transform: none; } 34% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes nt-swap-in { 0%, 30% { background-color: transparent; box-shadow: inset 0 0 0 1px rgba(151, 164, 255, .45); } 46%, 100% { background-color: var(--nt-sig); box-shadow: none; } }
@keyframes nt-scan { 0% { opacity: 0; left: 0; } 8% { opacity: 1; left: 0; } 50%, 100% { opacity: 1; left: var(--to); } }
@keyframes nt-pick { 0%, 34% { background: var(--nt-bg); box-shadow: inset 0 0 0 1.5px var(--nt-cop); } 44%, 100% { background: var(--nt-sig); box-shadow: inset 0 0 0 1.5px var(--nt-sig); } }
@keyframes nt-label { 0%, 38% { opacity: 0; } 48%, 100% { opacity: 1; } }
/* Range: a cell slides from where it drifted to its value, then takes its place in the stack. */
@keyframes nt-settle { 0%, 10% { left: calc(var(--a) * 100%); bottom: var(--cg); } 50%, 100% { left: calc(var(--x) * 100%); bottom: calc(var(--s, 0) * (var(--c) + var(--cg)) + var(--cg)); } }
@keyframes nt-settle-out { 0%, 10% { left: calc(var(--a) * 100%); bottom: var(--cg); background: var(--nt-n2); } 50% { left: calc(var(--x) * 100%); bottom: calc(var(--s, 0) * (var(--c) + var(--cg)) + var(--cg)); background: var(--nt-n2); } 62%, 100% { left: calc(var(--x) * 100%); bottom: calc(var(--s, 0) * (var(--c) + var(--cg)) + var(--cg)); background: var(--nt-cop); } }
@keyframes nt-settle-sig { 0%, 10% { left: calc(var(--a) * 100%); bottom: var(--cg); background: var(--nt-n1); } 50% { left: calc(var(--x) * 100%); bottom: calc(var(--s, 0) * (var(--c) + var(--cg)) + var(--cg)); background: var(--nt-n1); } 62%, 100% { left: calc(var(--x) * 100%); bottom: calc(var(--s, 0) * (var(--c) + var(--cg)) + var(--cg)); background: var(--nt-sig); } }
@keyframes nt-fill { 0%, 6% { clip-path: inset(0 0 100% 0); } 62%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes nt-sweep { 0%, 5% { opacity: 0; transform: translateY(0); } 7% { opacity: 1; } 62% { opacity: 1; transform: translateY(436px); } 66%, 100% { opacity: 0; transform: translateY(436px); } }
@keyframes nt-type { 0%, 8% { clip-path: inset(0 100% 0 0); } 20%, 100% { clip-path: inset(0); } }
@keyframes nt-stamp { 0%, 52% { opacity: 0; transform: scale(1.12); } 60%, 100% { opacity: 1; transform: none; } }
@keyframes nt-grow { from { transform: scaleX(0); } to { transform: none; } }

/* ------------------------------------------------------------- narrow desktop */
@media (max-width: 1100px) and (min-width: 761px) {
  .nt-screen, .nt-screen.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 40px; }
  .nt-bar { grid-template-columns: minmax(0, 1fr) 100px; }
  .nt-bar > i { grid-column: 1 / -1; grid-row: 2; }
}

/* ------------------------------------------------------------- phone
   Designed, not squeezed: copy, then the figure in its own band. */
@media (max-width: 760px) {
  body.nt-page { font-size: 16px; }
  .nt-screen, .nt-screen.is-flip { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; padding: 64px 20px 56px; }
  .nt-screen + .nt-screen::before { left: 20px; right: 20px; }
  .nt-screen.is-flip .nt-copy { order: 0; }
  .nt-hero { padding-top: 40px; }
  .nt-h1 { font-size: clamp(38px, 10.6vw, 46px); }
  .nt-h2 { font-size: clamp(30px, 8.4vw, 38px); }
  .nt-num strong { font-size: 60px; }
  .nt-nums .nt-num strong { font-size: 40px; }
  .nt-fig { padding: 24px 16px 20px; }
  .nt-hud { margin-bottom: 20px; letter-spacing: .1em; }
  .nt-legend { gap: 6px 14px; letter-spacing: .06em; }
  .nt-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--nt-rule); }
  .nt-bar { grid-template-columns: minmax(0, 1fr) 92px; gap: 10px 14px; padding: 14px 0; }
  .nt-bar > i { grid-column: 1 / -1; grid-row: 2; height: 10px; }
  .nt-bar > b { font-size: 20px; }
  .nt-bar.is-lead > b { font-size: 22px; }
  .nt-rung { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .nt-rung > span { height: 15px; }
  .nt-rungs::after { left: calc(50px + (100% - 50px) * var(--t)); }
  .nt-lots { height: 200px; }
  .nt-range { --c: 8px; gap: 26px; }
  .nt-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; font-size: 13.5px; }
  .nt-seal { grid-template-columns: 1fr; gap: 12px; }
  .nt-cta { grid-template-columns: 1fr; padding: 72px 20px 48px; }
  .nt-cta::before { left: 20px; right: 20px; }
  .nt-foot { padding: 0 20px 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .nt *, .nt *::before, .nt *::after { animation: none !important; transition: none !important; }
}
/* ------------------------------------------------------------- print
   A paper rendering of the same page: white ground, ink text, every figure
   at its final state with its fills (print-color-adjust), no motion; the bar,
   the skip link, the buttons and the footer columns are left out. */
@media print {
  .nt *, .nt *::before, .nt *::after { animation: none !important; transition: none !important; }
  html:has(body.nt-page), body.nt-page { background: #fff !important; color-scheme: light; }
  .nt-page {
    --nt-bg: #fff; --nt-s1: #fff; --nt-s2: #f4f5f7;
    --nt-ink: #101218; --nt-soft: #383d47; --nt-faint: #5b616c;
    --nt-rule: rgba(16, 18, 24, .22); --nt-rule2: rgba(16, 18, 24, .1);
    --nt-sig: #3045b5; --nt-cop: #b4602f; --nt-n0: #9ba1ac; --nt-n1: #6b717c; --nt-n2: #383d47; --nt-cell: #d9dce2;
  }
  .nt, .nt *, .nt *::before, .nt *::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.nt-page .skip-link, .site-nav, .nt .nt-actions, body.nt-page .site-footer-grid { display: none !important; }
  .nt-screen, .nt-screen.is-flip, .nt-screen.nt-hero { min-height: 0 !important; padding: 28px 0 !important; gap: 20px 32px; }
  .nt-screen:not(.nt-hero) { break-inside: avoid; }
  .nt-screen + .nt-screen::before, .nt-cta::before { left: 0; right: 0; }
  .nt-cta { padding: 28px 0 12px; break-inside: avoid; }
  .nt-foot { padding: 0 0 12px; }
  .nt-fig { break-inside: avoid; }
  .nt-marks i { border-color: rgba(16, 18, 24, .3); }
  .nt-ledger { border-top-color: rgba(16, 18, 24, .4); }
  .nt-lane > span::before { background: rgba(48, 69, 181, .08); }
  body.nt-page.editorial-site footer.site-footer-refined { background: #fff !important; border-top-color: rgba(16, 18, 24, .2) !important; color: #383d47 !important; }
  body.nt-page .site-footer-bottom, body.nt-page .site-footer-bottom a, body.nt-page .site-footer-disclaimer { color: #383d47 !important; border-top-color: rgba(16, 18, 24, .2) !important; }
}

/* Limit repair: one limit moved the least (fixed income). Final state is the base style. */
.nt-fix { display: grid; gap: 26px; padding: 8px 0 4px; }
.nt-fix-row { display: grid; grid-template-columns: minmax(0, 20fr) minmax(0, 46fr) minmax(0, 22fr); gap: 16px; align-items: center; }
.nt-fix-row > b { font: 500 11px/1.4 var(--nt-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--nt-faint); }
.nt-fix-row > em { font: 400 14px/1.4 var(--nt-sans); font-style: normal; color: var(--nt-soft); text-align: right; }
.nt-fix-row.is-after > em { color: var(--nt-sig); }
.nt-fix-trk { position: relative; height: 34px; background: linear-gradient(90deg, var(--nt-rule) 0 1px, transparent 1px) 0 0 / 10% 100%; border-bottom: 1px solid var(--nt-rule); }
.nt-fix-band { position: absolute; top: 6px; bottom: 6px; left: calc(var(--l) * 100%); width: calc((var(--r) - var(--l)) * 100%); border: 1px solid var(--nt-n1); background: rgba(151, 164, 255, .08); }
.nt-fix-row.is-after .nt-fix-band { border-color: var(--nt-sig); }
.nt-fix-ext { position: absolute; top: 6px; bottom: 6px; left: calc(var(--l) * 100%); width: calc((var(--r) - var(--l)) * 100%); background: var(--nt-cop); opacity: .9; transform-origin: 0 50%; }
.nt-fix-need { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 100%); width: 2px; margin-left: -1px; background: var(--nt-sig); }
@media (prefers-reduced-motion: no-preference) {
  .nt-fix-ext { animation: nt-fix-grow 4s var(--nt-ease) 1; }
  @keyframes nt-fix-grow { 0%, 12% { transform: scaleX(0); } 38%, 100% { transform: scaleX(1); } }
}
@media (max-width: 760px) {
  .nt-fix-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .nt-fix-row > em { text-align: left; }
}
