/* ==========================================================================
   Grey Sky Capital: Smart Core factsheet page (smart-core.html)
   --------------------------------------------------------------------------
   Technical Summary
   - Sits on top of strategy.css (shared with Smart Foundation) and adds the
     factsheet's own parts: a dark hero with three feature cards, a sticky section bar, the returns chart with period
     pills, three rings, the sector shift rows, disclosure cards, commentary,
     founders, the four model steps, skin-in-the-game tiles, the fee
     illustration, the "true to label" chips, the comparison table, the
     thesis line and the two steps to get started.
   - Motion lives here as transitions that core.js starts by adding is-in,
     is-drawn or is-on. All of it is switched off under reduced motion.
   - Colour and type come from tokens.css only. Smart Core's accent is lime:
     it appears as fill (bars, tags, markers), never as text on paper.
   ========================================================================== */

/* ------------------------------ Hero (dark band 1 of 2) ------------------------------ */
.cf-hero { position: relative; overflow: hidden; background: var(--slate-900); color: var(--grey-300); padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 0; }
/* The NAV line against its benchmark: a strip of its own under the copy, so no line runs behind text */
.cf-hero__grid { position: relative; display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .cf-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.cf-hero__copy { display: grid; gap: 18px; justify-items: start; }
.cf-pillnote { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--slate-600); font-family: var(--font-mono); font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-tr); text-transform: uppercase; color: var(--grey-300); }
.cf-hero__title { margin: 0 0 0 -0.045em; color: var(--grey-100); font-size: var(--hero-size); line-height: var(--hero-lh); letter-spacing: var(--hero-tr); font-weight: 700; }
.cf-hero__title span { display: block; color: var(--lime); }
.cf-hero__sub { margin: 0; max-width: 46ch; }
.cf-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.cf-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cf-feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 18px 20px; background: var(--slate-800); border: 1px solid var(--slate-600); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.cf-feat:hover { border-color: var(--lime); transform: translateX(-4px); }
.cf-feat svg { grid-row: span 2; width: 28px; height: 28px; stroke: var(--lime); fill: none; stroke-width: 1.6; }
.cf-feat b { color: var(--grey-100); font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); }
.cf-feat span { color: var(--grey-300); }
.cf-hero__firm { position: relative; margin: clamp(32px, 4vw, 56px) 0 0; padding-top: 20px; border-top: 1px solid var(--slate-600); color: var(--grey-400); }

/* ------------------------------ Section bar ------------------------------ */
.cf-nav { position: sticky; top: var(--nav-h); z-index: 20; background: var(--paper-100); border-bottom: 1px solid var(--paper-300); }
.cf-nav__in { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cf-nav a { flex: none; padding: 8px 14px; font-family: var(--font-mono); font-size: var(--eyebrow-size); font-weight: 500; letter-spacing: var(--eyebrow-tr); text-transform: uppercase; text-decoration: none; color: var(--ink-muted); transition: background-color .25s, color .25s; }
.cf-nav a:hover { color: var(--ink-head); }
.cf-nav a.is-on { background: var(--ink-head); color: var(--paper-100); }

/* ------------------------------ Sections ------------------------------ */
.cf-sec { background: var(--paper-100); padding: var(--space-continue) 0; scroll-margin-top: calc(var(--nav-h) + 48px); }
.cf-sec--deep { background: var(--paper-200); }
.cf-head { display: grid; gap: 12px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.cf-head h2 { margin: 0 0 0 -0.03em; font-size: var(--d1-size); line-height: var(--d1-lh); letter-spacing: var(--d1-tr); font-weight: 700; color: var(--ink-head); }
.cf-head p { margin: 0; max-width: 60ch; color: var(--ink-body); }
.cf-stack { display: grid; gap: clamp(20px, 3vw, 32px); }
.cf-stack > *, .cf-grid2 > *, .cf-grid3 > *, .cf-rings > * { min-width: 0; }   /* grid children may shrink, so nothing pushes past the page edge */
.cf-card { background: var(--paper-100); border: 1px solid var(--paper-300); padding: clamp(18px, 2.4vw, 28px); }
.cf-sec:not(.cf-sec--deep) .cf-card { background: var(--paper-200); }
.cf-card h3 { margin: 0; font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); font-weight: 700; color: var(--ink-head); }
.cf-card__sub { margin: 4px 0 0; color: var(--ink-muted); font-size: 14px; }
.cf-n { margin: 0; font-family: var(--font-mono); font-size: var(--eyebrow-size); font-weight: 500; letter-spacing: var(--eyebrow-tr); text-transform: uppercase; color: var(--rust); }
.cf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cf-note { margin: 0; }
.cf-grid3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cf-grid2 { display: grid; gap: 12px; }
@media (min-width: 760px) { .cf-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Rise in on entry */
[data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
[data-rise].is-in { opacity: 1; transform: none; }

/* Pills: period and month choosers */
.cf-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-pill { min-height: 36px; padding: 0 14px; background: transparent; border: 1px solid var(--grey-500); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.cf-pill:hover { border-color: var(--ink-head); }
.cf-pill[aria-pressed="true"] { background: var(--ink-head); border-color: var(--ink-head); color: var(--paper-100); }
.cf-pill:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

/* ------------------------------ Performance ------------------------------ */
.cf-perf__top { display: grid; gap: 20px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px); }
@media (min-width: 860px) { .cf-perf__top { grid-template-columns: minmax(0, 1fr) auto; } .cf-perf__top .cf-head { margin-bottom: 0; } }
.cf-aum { display: grid; gap: 6px; min-width: 260px; padding: 20px 24px; background: var(--slate-900); color: var(--grey-400); }
.cf-aum b { font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; color: var(--grey-100); font-variant-numeric: tabular-nums; }
.cf-chart__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.cf-alpha { margin: 0; font-family: var(--font-mono); font-size: var(--data-size); color: var(--ink-muted); }
.cf-alpha__v { font-size: 18px; font-weight: 500; color: var(--ink-head); }
.cf-alpha__v.is-pos { color: var(--moss); }
.cf-alpha__v.is-neg { color: var(--ember-ink); }
/* Returns against the benchmarks: a scale with round steps and dashed gridlines (mono ticks on the
   left), a dashed line at the Nifty 50 TRI, and the series as lit columns. Benchmarks are muted; Smart
   Core is lime, with its value in an ink chip and a bracket marking its alpha. */
.cf-bars { --axis: 52px; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 2vw, 28px);
  height: clamp(280px, 34vw, 380px); margin: 28px 0 64px; padding: 0 22px 0 var(--axis); }   /* room on the right for the alpha bracket */
.cf-grid, .cf-ref, .cf-bars__zero { position: absolute; left: var(--axis); right: 0; pointer-events: none; }
.cf-bars__zero { z-index: 1; }
.cf-grid { top: 0; bottom: 0; }
.cf-grid i { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--paper-300); transition: top .7s var(--ease); }
.cf-grid i.is-zero { border-top-color: transparent; }
.cf-grid span { position: absolute; right: calc(100% + 12px); top: -.75em; font-style: normal; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-grid i.is-zero span { color: var(--ink-head); }
.cf-bars__zero { height: 2px; margin-top: -1px; background: var(--ink-head); transition: top .7s var(--ease); }
.cf-ref { height: 0; border-top: 1px dashed color-mix(in srgb, var(--ink-head) 55%, transparent); transition: top .9s var(--ease); }
.cf-ref span { position: absolute; right: calc((100% - 22px - 5 * clamp(8px, 2vw, 28px)) / 6 + clamp(8px, 2vw, 28px) + 28px); bottom: 3px; padding: 0 4px; background: var(--bg-deep, var(--paper-200));   /* at the line's end, just before Smart Core's column */ font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.cf-bar { --c: var(--grey-500); --r: 6px; position: relative; }
.cf-bar[data-s="1"] { --c: var(--ink-muted); }
.cf-bar[data-s="2"] { --c: var(--grey-400); }
.cf-bar[data-s="3"] { --c: var(--azure-ink); }
.cf-bar[data-s="4"] { --c: var(--yellow); }
.cf-bar.is-ours { --c: var(--lime); }
/* Each bar is a lit column: the depth comes from light, not from drawn faces. Shading across the column brightens
   toward the centre and darkens at the edges, a sheen falls from the rounded cap, a thin highlight runs down one side,
   and a tight shadow sits under it. Negative bars hang from zero with the rounded end at the bottom. */
.cf-bar__fill {
  position: absolute; z-index: 2; left: 26%; right: 26%; overflow: hidden; border-radius: var(--r) var(--r) 0 0;
  background: var(--lit-col), var(--c);
  box-shadow: 0 1px 1px color-mix(in srgb, var(--ink-head) 18%, transparent), 0 14px 22px -14px color-mix(in srgb, var(--ink-head) 45%, transparent);
  transition: height .9s var(--ease), top .9s var(--ease), box-shadow .2s var(--ease);
}
.cf-bar__fill::after {                                   /* the highlight down the lit side */
  content: ''; position: absolute; top: 4px; bottom: 0; left: 28%; width: 4px; border-radius: 4px; filter: blur(1.5px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper-100) 55%, transparent), transparent 80%);
}
.cf-bar.is-neg .cf-bar__fill { border-radius: 0 0 var(--r) var(--r); }
.cf-bar.is-neg .cf-bar__fill::after { top: 0; bottom: 3px; }
.cf-bar:hover .cf-bar__fill { box-shadow: 0 1px 1px color-mix(in srgb, var(--ink-head) 22%, transparent), 0 18px 26px -14px color-mix(in srgb, var(--ink-head) 55%, transparent); }
.cf-bar.is-ours .cf-bar__fill {
  left: 18%; right: 18%; --r: 8px;
  box-shadow: 0 1px 1px color-mix(in srgb, var(--moss) 35%, transparent), 0 18px 28px -14px color-mix(in srgb, var(--moss) 60%, transparent);
}
.cf-bar__gap {                                     /* alpha: Nifty 50 TRI to Smart Core */
  position: absolute; left: calc(100% + 8px); width: 7px; border: 1.5px solid var(--moss); border-left: 0;
  transition: height .9s var(--ease), top .9s var(--ease);
}
.cf-bar__gap.is-neg { border-color: var(--ember-ink); }
.cf-bar__gap b { position: absolute; left: 12px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); white-space: nowrap; }
.cf-bar__gap.is-neg b { color: var(--ember-ink); }
.cf-bar__val { position: absolute; z-index: 3; left: -8px; right: -8px; text-align: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-body); transition: top .9s var(--ease); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cf-bar__val.is-up { transform: translateY(calc(-100% - 8px)); }
.cf-bar__val.is-down { transform: translateY(8px); }
.cf-bar.is-ours .cf-bar__val { left: 50%; right: auto; padding: 4px 9px; background: var(--ink-head); color: var(--lime); font-size: 13px; font-weight: 600; }
.cf-bar.is-ours .cf-bar__val.is-up { transform: translate(-50%, calc(-100% - 10px)); }
.cf-bar.is-ours .cf-bar__val.is-down { transform: translate(-50%, 10px); }
.cf-bar__name { position: absolute; left: -8px; right: -8px; top: calc(100% + 14px); text-align: center; font-size: 13px; line-height: 1.25; color: var(--ink-muted); overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.cf-bar.is-ours .cf-bar__name { font-weight: 700; color: var(--ink-head); }

/* ------------------------------ Rings ------------------------------ */
/* One block, three rings across: each a ring above its legend */
.cf-rings { display: grid; gap: clamp(28px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--paper-100); border: 1px solid var(--paper-300); }
@media (min-width: 900px) { .cf-rings { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cf-ringcard + .cf-ringcard { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--paper-300); } }
.cf-ringcard { display: grid; gap: 6px; align-content: start; justify-items: start; }
.cf-ringcard h3 { margin: 0; font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); font-weight: 700; color: var(--ink-head); }
.cf-ringcard .cf-ring { margin: 14px 0 10px; justify-self: center; }
.cf-ring { width: 170px; height: 170px; flex: none; overflow: visible; filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--ink-head) 16%, transparent)); }
.cf-ring text { text-anchor: middle; }
.cf-ring__lit { fill: none; stroke-width: 15; pointer-events: none; }   /* shading across the ring: dark at both rims, lit just inside the middle */
.cf-ring__rim { fill: none; stroke: color-mix(in srgb, var(--ink-head) 12%, transparent); stroke-width: .6; }
.cf-ring__base { fill: none; stroke: var(--paper-300); stroke-width: 15; }
.cf-ring__seg { fill: none; stroke-width: 15; opacity: 0; transition: opacity .5s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.is-drawn .cf-ring__seg { opacity: 1; }
.cf-ring__k { font-family: var(--font-mono); font-size: 6px; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-muted); }
.cf-ring__t { font-size: 12px; font-weight: 700; fill: var(--ink-head); }
.cf-legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; }
.cf-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-body); }
.cf-legend i { width: 10px; height: 10px; border-radius: 50%; }
.cf-legend b { font-family: var(--font-mono); font-weight: 500; color: var(--ink-head); }
[data-tone="a"] { stroke: var(--rust); background: var(--rust); }
[data-tone="b"] { stroke: var(--ink-head); background: var(--ink-head); }
[data-tone="c"] { stroke: var(--grey-500); background: var(--grey-500); }
[data-tone="d"] { stroke: var(--azure-ink); background: var(--azure-ink); }
[data-tone="e"] { stroke: var(--moss); background: var(--moss); }
[data-tone="f"] { stroke: var(--flare); background: var(--flare); }
[data-tone="g"] { stroke: var(--lime); background: var(--lime); }
[data-tone="h"] { stroke: var(--yellow); background: var(--yellow); }
[data-tone="i"] { stroke: var(--grey-300); background: var(--grey-300); }

/* ------------------------------ Sector shift ------------------------------ */
.cf-shift { display: grid; }
.cf-shift__axis, .cf-shift__row { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 56px; gap: 16px; align-items: center; }
.cf-shift__axis div { position: relative; height: 20px; }
.cf-shift__axis div span { position: absolute; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.cf-shift__row { padding: 11px 0; border-top: 1px solid var(--paper-300); }
.cf-shift__name { font-weight: 500; color: var(--ink-head); font-size: 15px; }
.cf-shift__track { position: relative; height: 12px; background: linear-gradient(var(--paper-300), var(--paper-300)) center / 100% 1px no-repeat; }
.cf-shift__bar { position: absolute; top: 3px; height: 6px; width: 0; background: var(--grey-500); transition: width 1s var(--ease) .15s; }
.is-add .cf-shift__bar { background: var(--moss); }
.is-cut .cf-shift__bar { background: var(--ember-ink); }
.is-drawn .cf-shift__bar { width: var(--w); }
.cf-shift__from, .cf-shift__to { position: absolute; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; }
.cf-shift__from { background: var(--paper-100); border: 2px solid var(--grey-500); }
.cf-shift__to { left: var(--from); background: var(--ink-head); transition: left 1s var(--ease) .15s; }
.is-add .cf-shift__to { background: var(--moss); }
.is-cut .cf-shift__to { background: var(--ember-ink); }
.is-drawn .cf-shift__to { left: var(--to); }
.cf-shift__d { text-align: right; font-family: var(--font-mono); font-size: var(--data-size); color: var(--ink-muted); }
.is-add .cf-shift__d { color: var(--moss); }
.is-cut .cf-shift__d { color: var(--ember-ink); }
.cf-key { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.cf-key li { display: inline-flex; align-items: center; gap: 8px; }
.cf-key i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-head); }
.cf-key .is-hollow { background: var(--paper-100); border: 2px solid var(--grey-500); }
.cf-key .is-add { background: var(--moss); }
.cf-key .is-cut { background: var(--ember-ink); }

/* ------------------------------ Disclosures (dark card on paper) ------------------------------ */
.cf-disc { background: var(--slate-800); color: var(--grey-300); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.cf-disc h3 { margin: 0; color: var(--grey-100); font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); }
.cf-disc dl { margin: 0; display: grid; gap: 20px clamp(20px, 3vw, 40px); }
@media (min-width: 860px) { .cf-disc dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cf-disc dl > div + div { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--slate-600); } }
.cf-disc dt { font-weight: 700; color: var(--grey-100); }
.cf-disc dd { margin: 4px 0 0; font-size: 14px; }

/* ------------------------------ Commentary ------------------------------ */
.cf-desk { display: grid; gap: 18px; }
.cf-desk__note { display: grid; gap: 10px; min-height: 150px; align-content: start; }
.cf-desk__note h3 { font-size: var(--d2-size); line-height: var(--d2-lh); letter-spacing: var(--d2-tr); }
.cf-desk__note p { margin: 0; max-width: 72ch; color: var(--ink-body); }
.cf-desk__pos { padding: 10px 14px; background: var(--paper-100); border-left: 2px solid var(--rust); }
.cf-desk__full { border-top: 1px solid var(--paper-300); margin-top: 6px; }
.cf-desk__full summary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--rust); }
.cf-desk__full summary::-webkit-details-marker { display: none; }
.cf-desk__full summary::after { content: '+'; font-family: var(--font-mono); }
.cf-desk__full[open] summary::after { content: '\2212'; }
.cf-desk__full summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.cf-desk__body { display: grid; gap: 14px; max-width: 72ch; padding-bottom: 8px; }
.cf-desk__body h4 { margin: 14px 0 0; font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); font-weight: 700; color: var(--ink-head); }
.cf-desk__body p { margin: 0; color: var(--ink-body); line-height: 1.65; }
.cf-desk__body strong, .cf-desk__note strong { color: var(--ink-head); }
.cf-desk__tablewrap { overflow-x: auto; }
.cf-desk__table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink-head); font-variant-numeric: tabular-nums; }
.cf-desk__table th, .cf-desk__table td { padding: 9px 0 9px 14px; text-align: right; border-bottom: 1px solid var(--paper-300); font-family: var(--font-mono); font-size: var(--data-size); color: var(--ink-body); }
.cf-desk__table th:first-child { padding-left: 0; text-align: left; font-family: var(--font-sans); font-weight: 500; color: var(--ink-head); }
.cf-desk__table thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cf-desk__note.is-swap { animation: cf-swap .5s var(--ease); }
@keyframes cf-swap { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------ Founders ------------------------------ */
.cf-founder { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: start; }
.cf-founder img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--paper-300); }
.cf-founder__role { margin: 2px 0 6px; font-weight: 500; color: var(--ink-body); }
.cf-ticks { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.cf-ticks li { position: relative; padding-left: 18px; color: var(--ink-body); }
.cf-ticks li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 1.5px; background: var(--ink-muted); }
@media (max-width: 520px) { .cf-founder { grid-template-columns: 1fr; } }

/* ------------------------------ Features and the four steps ------------------------------ */
.cf-tile { display: grid; gap: 8px; align-content: start; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.cf-tile:hover { transform: translateY(-4px); border-color: var(--ink-head); }
.cf-tile p { margin: 0; color: var(--ink-body); }
.cf-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }
.cf-step { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 20px; background: var(--slate-900); color: var(--grey-300); border: 1px solid var(--slate-600); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.cf-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--slate-700); color: var(--grey-100); font-family: var(--font-mono); font-size: 13px; transition: background-color .4s var(--ease), color .4s var(--ease); }
.cf-step b { color: var(--grey-100); font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); }
.cf-step.is-on { border-color: var(--lime); transform: translateY(-6px); }
.cf-step.is-on::before { background: var(--lime); color: var(--fill-ink); }

/* ------------------------------ Skin in the game ------------------------------ */
.cf-skin { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cf-skin > div { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: var(--paper-100); border: 1px solid var(--paper-300); }
.cf-skin b { color: var(--ink-head); }
.cf-skin span { color: var(--ink-body); font-size: 14px; }
.cf-skin small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.cf-sim { display: grid; gap: 22px; }
.cf-sim label { display: grid; gap: 8px; font-family: var(--font-mono); font-size: var(--eyebrow-size); letter-spacing: var(--eyebrow-tr); text-transform: uppercase; color: var(--ink-body); }
.cf-sim output { font-family: var(--font-sans); font-size: var(--d3-size); font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--ink-head); }
.cf-sim input[type="range"] { width: 100%; accent-color: var(--ink-head); }
.cf-sim__in { display: grid; gap: 22px; }
.cf-sim__out { display: grid; gap: 14px; }
.cf-sim__opt { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--paper-300); background: var(--paper-100); }
.cf-sim__opt.is-rec { border: 2px solid var(--ink-head); }
.cf-sim__row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: var(--data-size); color: var(--ink-body); }
.cf-sim__row b { color: var(--ink-head); font-weight: 500; }
.cf-sim__track { height: 8px; background: var(--paper-300); }
.cf-sim__track i { display: block; height: 100%; width: 0; background: var(--ink-head); transition: width .5s var(--ease); }
.cf-sim__opt.is-rec .cf-sim__track i { background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink-head); }

/* True to label (dark card on paper) */
.cf-label { background: var(--slate-900); color: var(--grey-300); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.cf-label h3 { margin: 0; color: var(--grey-100); font-size: var(--d2-size); line-height: var(--d2-lh); letter-spacing: var(--d2-tr); }
.cf-label ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cf-label li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--slate-800); border: 1px solid var(--slate-600); color: var(--grey-100); }
.cf-label li::before { content: ''; width: 8px; height: 8px; background: var(--lime); flex: none; }

/* ------------------------------ Problem and solution ------------------------------ */
.cf-vs { display: grid; border: 1px solid var(--paper-300); }
@media (min-width: 760px) { .cf-vs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cf-vs > div { display: grid; align-content: start; background: var(--paper-200); }
.cf-vs > div.is-ours { background: var(--paper-100); box-shadow: inset 0 0 0 2px var(--ink-head); }
.cf-vs h3 { margin: 0; padding: 16px 20px; font-family: var(--font-mono); font-size: var(--eyebrow-size); font-weight: 500; letter-spacing: var(--eyebrow-tr); text-transform: uppercase; color: var(--ink-muted); }
.cf-vs dl { margin: 0; }
.cf-vs dl > div { padding: 16px 20px; border-top: 1px solid var(--paper-300); }
.cf-vs dt { font-weight: 700; color: var(--ink-head); }
.cf-vs dd { margin: 3px 0 0; color: var(--ink-body); }
.cf-vs__result { margin: 0; padding: 16px 20px; border-top: 1px solid var(--paper-300); font-weight: 600; color: var(--ink-head); }
.cf-thesis { margin: 0; max-width: 24ch; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; color: var(--ink-head); }

/* ------------------------------ Get started ------------------------------ */
.cf-start { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: start; }
@media (min-width: 760px) { .cf-start { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cf-start li { display: grid; gap: 10px; align-content: start; justify-items: start; }
.cf-start li::before { counter-increment: start; content: counter(start); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-head); color: var(--paper-100); font-family: var(--font-mono); font-size: 13px; }
.cf-start p { margin: 0; color: var(--ink-body); }
.cf-start a:not(.btn) { color: var(--rust); }

@media (max-width: 620px) {
  .cf-thesis [data-mark="highlight"] { white-space: normal; }   /* the highlighted phrase is wider than a phone: let it wrap (the highlight clones onto each line) */
  .cf-hero { padding-top: calc(var(--nav-h) + 32px); }
  .cf-bars { --axis: 34px; gap: 6px; }
  .cf-grid span { font-size: 9.5px; right: calc(100% + 6px); }
  .cf-bars { padding-right: 12px; }
  .cf-bar { --r: 4px; }
  .cf-bar__fill { left: 16%; right: 16%; }
  .cf-bar.is-ours .cf-bar__fill { left: 8%; right: 8%; --r: 5px; }
  .cf-bar.is-ours .cf-bar__val { font-size: 10.5px; padding: 3px 5px; }
  .cf-bar__gap { left: calc(100% + 3px); width: 5px; }
  .cf-bar__gap b, .cf-ref span { display: none; }
  .cf-bar__name { left: -3px; right: -3px; font-size: 10px; letter-spacing: -.01em; }
  .cf-bar__val { font-size: 10.5px; }
  .cf-shift__axis, .cf-shift__row { grid-template-columns: minmax(96px, 120px) minmax(0, 1fr) 44px; gap: 10px; }
  .cf-shift__name { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1; transform: none; transition: none; }
  .cf-ring__seg { opacity: 1; transition: none; }
  .cf-shift__bar { width: var(--w); transition: none; }
  .cf-shift__to { left: var(--to); transition: none; }
  .cf-bar__fill, .cf-bar__val, .cf-bars__zero, .cf-grid i, .cf-ref, .cf-bar__gap, .cf-sim__track i, .cf-feat, .cf-tile, .cf-step, .cf-step::before { transition: none; }
  .cf-desk__note.is-swap { animation: none; }
}

/* ------------------------------ Depth on the other charts (tokens.css, --lit-*) ------------------------------ */
.cf-legend i { background-image: var(--lit-bead); box-shadow: var(--lit-drop); }
.cf-shift__track .cf-shift__bar { top: 2px; height: 8px; border-radius: 4px; background-image: var(--lit-bar); box-shadow: var(--lit-drop); }
.cf-shift__track .cf-shift__from { box-shadow: var(--lit-drop); }
.cf-shift__track .cf-shift__to { background-image: var(--lit-bead); box-shadow: var(--lit-drop); }
.cf-sim__track { height: 10px; border-radius: 5px; box-shadow: var(--lit-well); }
.cf-sim__opt .cf-sim__track i, .cf-sim__opt.is-rec .cf-sim__track i { border-radius: 5px; background-image: var(--lit-bar); box-shadow: var(--lit-drop); }
