/* CashTrellis · homepage mock-up. The trellis is the structure, the evergreen line is your cash climbing on it. */
:root {
  --bone: #f4f1e8; --paper: #fbfaf6; --ink: #13171c; --ink-2: #5a6068; --rule: #dcd7ca;
  --green: #0e5a43; --leaf: #7fbf9a; --coral: #e2553a; --brass: #b8862b; --night: #0c1d17;
  --display: 'Fraunces', Georgia, serif; --text: 'Public Sans', system-ui, sans-serif; --data: 'Geist Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px); --e: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bone); }
body { color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.data { font-family: var(--data); }
.display { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 0; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter); transition: background .4s, box-shadow .4s, padding .4s, color .4s; }
.top.stuck { background: rgba(244, 241, 232, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); padding-block: 12px; }
.top.dark { background: rgba(12, 29, 23, .9); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .1); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 650 23px/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; overflow: visible; }
.top nav { display: flex; gap: clamp(18px, 2vw, 28px); margin-left: auto; font: 500 15px var(--text); white-space: nowrap; }
.top nav a { text-decoration: none; position: relative; }
.top nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--e); }
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top-cta { padding: 11px 18px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font: 600 14.5px var(--text); }
.top.dark .top-cta { background: #fff; color: var(--night); }
.menu { display: none; margin-left: auto; border: 1.5px solid currentColor; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity .4s; }
.top.stuck .progress, .top.dark .progress { opacity: 1; }
.top.dark .progress { background: var(--leaf); }

/* Hero */
.hero { min-height: 100svh; padding: clamp(96px, 12vh, 128px) var(--gutter) clamp(28px, 4vh, 48px); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: clamp(18px, 3vh, 32px); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 56px; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--data); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow i { width: 16px; height: 16px; background: linear-gradient(45deg, transparent 45%, var(--ink-2) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--ink-2) 45% 55%, transparent 55%); }
.title { margin-top: 18px; font: 600 clamp(46px, 6.4vw, 104px)/.95 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 0, 'opsz' 144; letter-spacing: -.035em; }
.title em { font-style: italic; color: var(--green); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.title .line { display: block; }
.lede { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 22px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font: 600 16px var(--text); overflow: hidden; isolation: isolate; }
.btn { transition: background-color .45s var(--e); }
.btn::before { content: none; }
.btn:hover { background: var(--green); }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

.board { position: relative; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(14px, 1.8vw, 24px) clamp(14px, 2vw, 28px) 14px; box-shadow: 0 40px 80px -50px rgba(19, 23, 28, .35); }
.board-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.switch { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bone); border: 1px solid var(--rule); }
.switch button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font: 600 14px var(--text); color: var(--ink-2); transition: color .4s; white-space: nowrap; }
.switch button[aria-pressed="true"] { color: #fff; }
.switch .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); }
.switch .timer { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--leaf); transform: scaleX(0); transform-origin: left; z-index: 2; }
.kpis { display: flex; gap: clamp(16px, 2.6vw, 44px); }
.kpi .v { font: 600 clamp(24px, 2.3vw, 36px)/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 72; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .v.bad { color: var(--coral); }
.kpi .l { margin-top: 6px; font: 500 11px/1.3 var(--data); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.chart { position: relative; margin-top: 10px; }
/* The ratio is known before the script runs (it sets the same one), so the board never jumps on load. */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; aspect-ratio: 1300 / 396; }
@media (max-width: 760px) { .chart svg { aspect-ratio: 700 / 630; } }
/* Chart: --u (chart units per CSS pixel, set by index.js) keeps strokes and labels the same size on screen. */
.chart svg { --px: calc(1px * var(--u, 1)); }
.chart .lattice line { stroke: var(--rule); stroke-width: var(--px); }
.chart .guide { stroke: var(--rule); stroke-width: var(--px); }
.chart .reserve { stroke: var(--brass); stroke-width: calc(2.5 * var(--px)); }
.chart .vine { fill: none; stroke: var(--green); stroke-width: calc(var(--vine, 6) * var(--px)); stroke-linecap: round; stroke-linejoin: round; }
.chart .vine.under { stroke: var(--coral); }
.chart .node { fill: var(--paper); stroke: var(--green); stroke-width: calc(3 * var(--px)); }
.chart .node.under { stroke: var(--coral); }
.chart .lbl { font: 500 calc(var(--lbl, 12.5) * var(--px)) var(--data); fill: var(--ink-2); }
.chart .lbl-brass { font: 600 calc(var(--lbl, 12.5) * var(--px)) var(--data); fill: var(--brass); }
.chart .lbl-bg { fill: var(--paper); }
.chart .zero { stroke: var(--ink-2); stroke-width: var(--px); opacity: .5; }
.chart .drop-line { stroke: var(--ink-2); stroke-width: calc(1.5 * var(--px)); }
.chart .low-wk { font-weight: 700; fill: var(--ink); }
.chart .low-wk .v { font-weight: 600; }
.chart .low-wk .bad { fill: var(--coral); }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font: 400 12px/1.5 var(--data); color: var(--ink-2); padding-top: 8px; }

/* Sections */
.section { position: relative; padding: clamp(80px, 9vw, 136px) var(--gutter); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--data); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.kicker b { font-weight: 500; color: var(--c, var(--green)); }
.h2 { font: 600 clamp(38px, 5.2vw, 84px)/.98 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.035em; }
.h2 em { font-style: italic; color: var(--c, var(--green)); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.head2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.head2 p { color: var(--ink-2); }

/* Tools 1 and 2 (pinned on a desktop) */
.aging { background: var(--paper); border-top: 1px solid var(--rule); }
.swap { background: var(--bone); }
.aging-frame, .swap-frame { height: 100svh; min-height: 720px; padding: clamp(92px, 11vh, 120px) var(--gutter) clamp(24px, 3.5vh, 40px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px; overflow: hidden; }
.aging .h2, .swap .h2 { font-size: clamp(34px, 4vw, 64px); }
.aging .head2, .swap .head2 { margin-bottom: 0; }
.hire-foot, .aging-foot { font: 400 12px/1.6 var(--data); color: var(--ink-2); max-width: 96ch; }

/* Tool 1 · A/R aging: five buckets, one chip per invoice, the date on a time line drawn to scale */
.aging-body { align-self: center; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(24px, 3vw, 56px); align-items: start; }
.ar { display: grid; gap: 14px; }
.asof { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px 18px; }
.asof-l { font: 500 12px var(--data); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.asof-d { display: inline-block; min-width: 7.4em; font: 600 24px/1.2 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; letter-spacing: -.02em; }
.asof-track { position: relative; height: 46px; margin: 0 30px; }
.asof-rail { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--rule); }
.asof-fill { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.asof .timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--leaf); transform: scaleX(0); transform-origin: left; }
.stop { position: absolute; top: 0; translate: -50% 0; display: grid; justify-items: center; gap: 7px; padding: 8px 4px 0; font: 500 11.5px var(--data); color: var(--ink-2); white-space: nowrap; }
.stop::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); transition: border-color .4s, background .4s; }
.stop.on::before { border-color: var(--ink); background: var(--ink); }
.stop[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.bucket[data-b="current"], .k0 { --kc: var(--green); }
.bucket[data-b="1-30"], .k1 { --kc: #4f8f6b; }
.bucket[data-b="31-60"], .k2 { --kc: var(--brass); }
.bucket[data-b="61-90"], .k3 { --kc: #c8642c; }
.bucket[data-b="91+"], .k4 { --kc: var(--coral); }
.ks { --kc: #8d939a; }
.buckets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bucket { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 206px; padding: 12px 10px 10px; border-radius: 16px; background: var(--bone); border: 1px solid var(--rule); transition: opacity .6s; }
.bucket.empty { opacity: .5; }
.b-head { display: grid; gap: 6px; padding: 0 4px; }
.b-l { display: flex; align-items: center; gap: 7px; font: 500 11.5px var(--data); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.b-l::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--kc); }
.b-v { font: 600 clamp(20px, 1.8vw, 28px)/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 72; letter-spacing: -.02em; }
.b-chips { display: grid; gap: 8px; align-content: start; }
.chip { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; row-gap: 3px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 8px 16px -12px rgba(19, 23, 28, .45); }
.chip i { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--text); font-style: normal; color: #fff; background: var(--kc); transition: background .7s var(--e); }
.c-amt { font: 600 17px/1.1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; letter-spacing: -.01em; }
.c-age { display: block; overflow: hidden; font: 500 11px/1.4 var(--data); color: var(--ink-2); white-space: nowrap; }
.chip.ks { background: transparent; box-shadow: none; }
.chip.ks .c-amt { color: var(--ink-2); }
/* The tray's 32 px gap puts each settled chip exactly under a bucket column, at the same width. */
.settled { display: grid; gap: 8px; padding: 10px; border: 1px dashed #cfc8b6; border-radius: 16px; }
.settled-l { padding: 0 4px; font: 500 11px var(--data); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.settled .b-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; min-height: 58px; }
.review { display: grid; gap: 14px; align-content: start; }
.ar-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.ar-totals .v { font: 600 clamp(30px, 3vw, 46px)/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.03em; }
.ar-totals .v.bad { color: var(--coral); }
.ar-totals .l { margin-top: 6px; font: 500 11px var(--data); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.review-t { display: grid; gap: 3px; font: 600 15px var(--text); }
.review-t span { font: 400 11.5px var(--data); color: var(--ink-2); }
.review-list { position: relative; display: grid; gap: 8px; list-style: none; }
.r-item { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--bone); border: 1px solid var(--rule); }
.r-top { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.r-top i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--text); font-style: normal; color: #fff; background: var(--kc); }
.r-who { font: 600 14.5px var(--text); }
.r-who small { margin-left: 4px; font: 500 11px var(--data); color: var(--ink-2); }
.r-amt { font: 600 19px/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.r-meta, .r-calc { padding-left: 34px; font: 500 11.5px/1.45 var(--data); color: var(--ink-2); }
.r-calc { color: var(--ink); }
.r-calc .nb { white-space: nowrap; }
.r-flags { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 0 34px; }
.r-flags span { padding: 3px 9px; border-radius: 999px; background: rgba(184, 134, 43, .14); color: #7a5a1c; font: 500 11px/1.4 var(--data); }

/* Tool 2 · switching cost: the bill, then the months it leaves */
.swap-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.stack { display: grid; gap: 10px; }
.stack-bar { display: flex; height: 64px; border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); }
.stack-bar i { display: block; height: 100%; width: 0; }
.stack-legend { display: grid; }
.stack-legend div { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); opacity: .25; transition: opacity .5s; }
.stack-legend div.on { opacity: 1; }
.stack-legend b { width: 14px; height: 14px; border-radius: 4px; }
.stack-legend span { font-size: 15px; }
.stack-legend em { font: 500 15px var(--data); font-style: normal; }
.stack-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.stack-total .v { font: 600 clamp(44px, 5vw, 80px)/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.04em; }
.stack-total .l { font: 500 12px var(--data); text-transform: uppercase; color: var(--ink-2); }
.stack-time { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 12px; border: 1px dashed #cfc8b6; font: 500 13px var(--data); color: var(--ink-2); opacity: .25; }
.stack-time em { font-style: normal; color: var(--ink); }
.calendar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 260px; padding-bottom: 28px; position: relative; border-bottom: 1px solid var(--rule); }
.calendar .col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
.calendar .col span { position: absolute; bottom: -24px; left: 50%; translate: -50% 0; font: 500 10.5px var(--data); color: var(--ink-2); white-space: nowrap; }
.calendar .chunk { border-radius: 6px; height: 0; }
.months .col { flex-direction: row; align-items: flex-end; }
.months .stk { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
.months .col { gap: 3px; }
.months .keep, .keep-key b { flex: 0 0 38%; border: 1.5px dashed var(--brass); border-radius: 4px; background: rgba(184, 134, 43, .12); }
.months .keep { transform: scaleY(0); transform-origin: bottom; }
.keep-key { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 8px; font: 500 11.5px var(--data); color: var(--ink-2); opacity: .25; }
.keep-key b { flex: none; width: 12px; height: 14px; }
.cal-note > div:last-child { opacity: .25; }
.cal-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 22px; }
.cal-note .v { font: 600 clamp(26px, 2.6vw, 40px)/1 var(--display); letter-spacing: -.03em; }
.cal-note .v.bad { color: var(--coral); }
.cal-note .l { margin-top: 6px; font: 500 11.5px/1.4 var(--data); text-transform: uppercase; color: var(--ink-2); max-width: 30ch; }

/* What getting paid really costs */
.lanes { display: grid; gap: 22px; }
.lane { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding: 20px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; }
.lane h3 { font: 600 22px/1.1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; }
.lane small { display: block; margin-top: 6px; font: 500 12px/1.4 var(--data); color: var(--ink-2); }
.track { position: relative; height: 84px; }
.track .rail { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--rule); }
.track .gate { position: absolute; left: 62%; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--ink); }
.track .gate::after { content: attr(data-label); position: absolute; top: -6px; left: 10px; font: 500 11px var(--data); color: var(--ink-2); white-space: nowrap; }
.token { position: absolute; top: 50%; left: 0; translate: 0 -50%; padding: 6px 10px; border-radius: 8px; background: var(--green); color: #fff; font: 600 12px var(--data); white-space: nowrap; }
.drop { position: absolute; left: 62%; top: calc(50% + 14px); translate: 10px 0; font: 600 11.5px var(--data); color: var(--coral); white-space: nowrap; opacity: 0; }
.lane-total { text-align: right; }
.lane-total .v { font: 600 clamp(30px, 3vw, 46px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lane-total .l { margin-top: 6px; font: 500 11px/1.4 var(--data); text-transform: uppercase; color: var(--ink-2); }
.lanes-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 22px; font: 400 12.5px/1.6 var(--data); color: var(--ink-2); }
.again { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 14px var(--text); color: var(--ink); }

/* Tools */
.tools { background: var(--paper); }
.tool { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--rule); text-decoration: none; isolation: isolate; }
.tool:last-child { border-bottom: 1px solid var(--rule); }
.tool::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background:
  repeating-linear-gradient(45deg, rgba(14, 90, 67, .09) 0 1px, transparent 1px 26px), repeating-linear-gradient(-45deg, rgba(14, 90, 67, .09) 0 1px, transparent 1px 26px);
  clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--e); }
.tool:hover::before { clip-path: inset(0 0 0 0); }
.tool .n { font: 500 13px var(--data); color: var(--ink-2); }
.tool h3 { font: 600 clamp(28px, 3vw, 46px)/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.03em; }
.tool p { color: var(--ink-2); }
.tool .go { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .4s, color .4s, transform .7s var(--e); }
.tool:hover .go { background: var(--ink); color: #fff; transform: rotate(-45deg); }

/* Method */
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle h3 { font: 600 clamp(22px, 2vw, 30px)/1.1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 72; letter-spacing: -.02em; }
.principle p { margin-top: 10px; color: var(--ink-2); }

/* Night */
/* The vine's frame: the free band under the text, so the lattice never runs behind a line of text. */
.night { --art: clamp(260px, 30vw, 440px); background: var(--night); color: #fff; overflow: hidden; padding-bottom: calc(var(--art) + 32px); }
.n-art { position: absolute; inset: auto 0 0 0; height: var(--art); }
.n-art svg { display: block; width: 100%; height: 100%; }
.n-end { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity .7s var(--e); }
.n-end.on { opacity: 1; }
.n-end b { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--night); border: 4px solid var(--leaf); box-shadow: 0 0 0 8px rgba(127, 191, 154, .18); }
.n-end span { position: absolute; right: 18px; bottom: 16px; white-space: nowrap; font: 500 12.5px var(--data); color: var(--leaf); letter-spacing: .02em; }
.night .lattice line { stroke: rgba(255, 255, 255, .07); }
.night .vine { fill: none; stroke: var(--leaf); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.night .glow { fill: none; stroke: var(--leaf); stroke-width: 26; opacity: .18; filter: blur(12px); stroke-linecap: round; }
.night-inner { position: relative; display: grid; gap: 22px; max-width: 900px; }
/* The bottom margin clears the descender of "paid." from the paragraph under it. */
.giant { margin-bottom: .16em; font: 600 clamp(96px, 16vw, 260px)/.85 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; letter-spacing: -.05em; }
.giant em { font-style: italic; color: var(--leaf); }
.night p { color: rgba(255, 255, 255, .78); max-width: 48ch; font-size: clamp(17px, 1.4vw, 20px); }
.night .btn { background: #fff; color: var(--night); justify-self: start; }
.night .btn:hover { background: var(--leaf); }
.night .src { max-width: none; font: 400 12px var(--data); color: rgba(255, 255, 255, .5); }

footer { background: var(--night); color: rgba(255, 255, 255, .72); padding: 0 var(--gutter) 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 56px 0 36px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-cols p { font: 500 11.5px var(--data); text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .45); margin-bottom: 12px; }
.foot-cols nav { display: grid; gap: 8px; }
.foot-cols a { text-decoration: none; }
.disclose { max-width: 84ch; font-size: 14px; padding-bottom: 26px; }
.wordmark { display: block; font: 600 clamp(64px, 14vw, 230px)/.85 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; letter-spacing: -.05em; color: #fff; text-decoration: none; padding-bottom: 18px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 400 12px var(--data); color: rgba(255, 255, 255, .45); }
.badge-mock { position: fixed; right: 14px; bottom: 14px; z-index: 50; font: 500 11px var(--data); text-transform: uppercase; background: var(--ink); color: #fff; padding: 7px 11px; border-radius: 999px; }

/* Odometer */
.odo { display: inline-flex; white-space: nowrap; }
.odo .c { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo .r { display: block; }
.odo .r span { display: block; height: 1em; line-height: 1; text-align: center; }
.odo .s { display: inline-block; height: 1em; line-height: 1; }

@media (max-width: 980px) {
  .top nav, .top-cta { display: none; } .menu { display: block; }
  .hero-head, .head2, .aging-body, .swap-body { grid-template-columns: minmax(0, 1fr); }
  .board-top { flex-direction: column; align-items: stretch; }
  .switch { overflow-x: auto; max-width: 100%; }
  .kpis { justify-content: space-between; }
  .aging-frame, .swap-frame { height: auto; min-height: 0; padding-block: clamp(72px, 12vw, 96px); }
  .asof { grid-template-columns: auto minmax(0, 1fr); }
  .asof-track { grid-column: 1 / -1; margin: 0 24px; }
  .buckets { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bucket { grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 10px; min-height: 0; padding: 10px; }
  .b-head { padding: 0; }
  .b-chips, .settled .b-chips { display: grid; grid-template-columns: repeat(2, 112px); gap: 8px; min-height: 50px; }
  /* Fixed width, so a chip keeps its size from one bucket to the next and to the tray. */
  .chip { width: 112px; grid-template-columns: 22px minmax(0, 1fr); column-gap: 7px; padding: 8px; }
  .chip i { grid-row: 1; width: 22px; height: 22px; font-size: 11.5px; }
  .chip .c-age { grid-column: 1 / -1; }
  .c-amt { font-size: 15.5px; }
  .lane { grid-template-columns: minmax(0, 1fr); }
  .lane-total { text-align: left; }
  .tool { grid-template-columns: minmax(0, 1fr) auto; }
  .tool .n { grid-column: 1 / -1; }
  .tool p { grid-column: 1 / -1; }
  .tool .go { grid-row: 2; grid-column: 2; width: 44px; height: 44px; }
  .method-grid, .foot-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .switch button { padding: 8px 6px; font-size: 13px; line-height: 1.2; white-space: normal; }
  .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .kpi .v { font-size: 24px; }
  .kpi .l { font-size: 10px; }
  .chart { --vine: 4.5; --lbl: 11; --co: 12; }
  .calendar { height: 200px; gap: 3px; }
  .calendar .col:nth-child(even) span { display: none; }
  .keep-key { top: -26px; }
  .calendar .chunk, .months .keep { border-radius: 3px; }
  .asof-track { height: 56px; } /* the autoplay timer runs well under the dates, never like an underline */
}
@media (prefers-reduced-motion: reduce) { .btn::before, .tool::before, .tool .go, .top nav a::after { transition: none; } }
