/* KR Case File · the opened case study. Navy masthead, then light chapters only; navy appears as solid cards on light ground. */
.kcf-ov { position: fixed; inset: 0; z-index: 60; background: rgba(11, 22, 38, .84); overflow-y: auto; overscroll-behavior: contain;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
.kcf { /* every value below comes from the KR Brand Developer Kit tokens (kr-tokens.css) */
  --navy: var(--kr-navy); --edge: var(--kr-navy-2); --ivory: var(--kr-ivory); --paper: var(--kr-stone); --card: var(--kr-white); --ink: var(--kr-ink); --ink2: var(--kr-ink-2);
  --line: var(--kr-line); --line2: var(--kr-line-2); --gold: var(--kr-gold); --golddk: var(--kr-gold-deep); --goldhi: var(--kr-gold-hi);
  --on: var(--kr-on-dark); --on2: var(--kr-on-dark-2); --mute: var(--kr-muted); --serif: var(--kr-serif); --sans: var(--kr-sans);
  position: relative; width: min(1180px, 100%); margin: 16px auto 40px; background: var(--ivory); color: var(--ink); font-family: var(--sans);
  font-size: var(--kr-body-size); line-height: 1.65; border-radius: var(--kr-radius); overflow: clip; color-scheme: light; }
.kcf * { box-sizing: border-box; }
.kcf-x { position: sticky; top: 12px; float: right; margin: 12px 12px -52px 0; z-index: 6; width: 40px; height: 40px; border-radius: var(--kr-radius-btn);
  border: 1px solid var(--gold); background: var(--navy); color: var(--on); font: 400 24px/1 "Source Serif 4",Georgia, serif; cursor: pointer; display: grid; place-items: center; }
.kcf-x:hover { background: var(--kr-navy-2); }
.kcf :focus-visible { outline: 2px solid var(--golddk); outline-offset: 2px; }

/* masthead (the only dark band) */
.kcf-mast { background: var(--navy); color: var(--on); display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 10px 32px; padding: 40px 44px 36px; }
.kcf-eyebrow { margin: 0; font-size: 11.5px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; color: var(--goldhi); font-weight: 600; }
.kcf-mast h2 { margin: 10px 0 6px; font-family: var(--serif); font-weight: 600; font-size: min(var(--kr-h2), 3.5rem); line-height: 1.02; text-wrap: balance; }
.kcf-practice { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--goldhi); }
.kcf-facts { list-style: none; margin: 22px 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 0; border-top: 1px solid var(--kr-line-dark-2); }
.kcf-facts li { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--on); padding: 0 16px; display: inline-flex; align-items: center; gap: 9px; border-left: 1px solid var(--kr-line-dark-2); }
.kcf-facts li:first-child { padding-left: 0; border-left: 0; }
.kcf-facts li::before, .kcf-key i, .kcf-bcol li::before { content: ""; width: 8px; height: 8px; border-radius: 0; background: var(--goldhi); display: inline-block; flex: none; rotate: 45deg; }
.kcf-facts li.w::before { background: transparent; border: 1.5px solid var(--goldhi); }
.kcf-facts li.n::before { background: transparent; border: 1.5px solid var(--on2); }
.kcf-seal { position: relative; display: grid; place-items: center; align-self: center; }
.kcf-seal .rn { font-family: var(--serif); font-weight: 600; font-size: 150px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(226,200,145,.55); }
.kcf-seal svg { position: absolute; width: 128px; height: 128px; --ig: #C9A469; --ih: #E2C891; --if: rgba(199,206,216,.30); --ib: #101F32; }

/* proposition on ivory */
.kcf-prop { margin: 0; padding: 34px 44px 36px; background: var(--paper); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.kcf-prop::before { content: "\201C"; font-family: var(--serif); font-size: 84px; line-height: .75; color: var(--gold); }
.kcf-prop p { margin: 0; max-width: 60ch; font-family: var(--serif); font-size: 27px; line-height: 1.3; color: var(--ink); font-weight: 500; }
.kcf-prop small { display: block; margin-top: 12px; font-family: var(--sans); font-size: 11.5px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; color: var(--golddk); font-weight: 600; }

/* rail + chapters */
.kcf-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.kcf-rail { position: sticky; top: 0; align-self: start; padding: 30px 18px 28px 28px; }
.kcf-rail ol { list-style: none; margin: 0; padding: 0 0 0 16px; display: grid; gap: 4px; border-left: 1px solid var(--line2); }
.kcf-rail a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 600; padding: 7px 8px 7px 0; position: relative; }
.kcf-rail a b { font-variant-numeric: tabular-nums; color: var(--golddk); font-size: 11.5px; letter-spacing: .08em; padding-top: 2px; }
.kcf-rail a::before { content: ""; position: absolute; left: -21px; top: 13px; width: 9px; height: 9px; background: var(--ivory); border: 1.5px solid var(--gold); transform: rotate(45deg); }
.kcf-rail a[aria-current="true"] { color: var(--ink); }
.kcf-rail a[aria-current="true"]::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(177,138,88,.2); }
.kcf-rail .eng { margin: 22px 0 0; font-size: 12.5px; color: var(--ink2); }
.kcf-rail .eng b { display: block; color: var(--ink); font-size: 14.5px; }
.kcf-chs { min-width: 0; border-left: 1px solid var(--line); }
.kcf-ch { padding: 44px 48px 50px; scroll-margin-top: 8px; }
.kcf-ch.alt { background: var(--paper); }
.kcf-chhead { display: grid; gap: 4px; margin-bottom: 22px; }
.kcf-chno { font-size: 11.5px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; font-weight: 600; color: var(--golddk); }
.kcf-chhead h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); line-height: 1.06; text-wrap: balance; }
.kcf-p { margin: 0; max-width: 66ch; color: var(--ink2); font-size: var(--kr-body-size); }
.kcf-p + .kcf-p { margin-top: 12px; }
.kcf-sub { margin: 30px 0 12px; font-size: 11.5px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; font-weight: 600; color: var(--golddk); }
.kcf-sub2 { margin: 0 0 6px; font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.15; }
.kcf-lead { margin: 0 0 14px; font-family: var(--serif); font-size: 29px; line-height: 1.15; font-weight: 600; text-wrap: balance; }

/* boards: readable card diagrams with measured connector lines */
.kb { position: relative; margin: 6px 0 0; }
.kb-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.kb-lines path { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-dasharray: 1 2; stroke-dashoffset: 1.02; transition: stroke-dashoffset 1.1s var(--kr-ease), stroke .3s, stroke-width .3s; }
.kcf-ch.in .kb-lines path { stroke-dashoffset: 0; }
.kb-lines path.on { stroke: var(--golddk); stroke-width: 3; }
.kb-card { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line2);
  border-radius: var(--kr-radius); padding: 10px 14px 10px 10px; font: 600 15.5px/1.25 var(--sans); text-align: left; box-shadow: var(--kr-lift); }
.kb-ic { width: 36px; height: 36px; border-radius: var(--kr-radius-btn); background: var(--kr-stone-2); display: grid; place-items: center; flex: none; }
.kb-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--golddk); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kb-card.core { background: var(--navy); color: var(--on); border-color: var(--navy); font-size: 17px; padding: 14px 18px 14px 14px; }
.kb-card.core .kb-ic { background: rgba(226,200,145,.14); }
.kb-card.core .kb-ic svg { stroke: var(--goldhi); }
button.kb-card { cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
button.kb-card:hover { border-color: var(--gold); }
button.kb-card.on { background: var(--navy); color: var(--on); border-color: var(--navy); }
button.kb-card.on .kb-ic { background: rgba(226,200,145,.14); }
button.kb-card.on .kb-ic svg { stroke: var(--goldhi); }
.kb.abs { height: var(--h, 440px); }
.kb.abs .kb-card { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); max-width: 200px; }
.kb.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; padding: 4px 0; }
.kb.grid .kb-card.core { grid-column: 1 / -1; justify-self: center; }
/* challenge board: the same parts, held apart */
.kb-apart .kb-card { border-style: dashed; border-color: var(--line2); box-shadow: none; background: var(--kr-white); }
.kb.abs.kb-apart .kb-card { transform: translate(-50%, -50%) rotate(var(--r, 0deg)); }
.kb.grid.kb-apart { padding: 8px 6px; }
.kb.grid.kb-apart .kb-card { transform: rotate(calc(var(--r, 0deg) * .6)); }
.kb.grid.kb-arch .kb-card:not(.core) { border-left: 4px solid var(--gold); }
.kb-void { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; border: 1.5px dashed var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-size: 40px; color: var(--golddk); background: rgba(250,248,243,.7); }
.kb.grid .kb-void { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; justify-self: center; width: 76px; height: 76px; font-size: 32px; }
.kcf-figcap { margin: 14px 0 0; font-size: 15px; color: var(--ink2); text-align: center; font-style: italic; }

/* architecture chapter */
.kcf-note { margin-top: 18px; background: var(--navy); color: var(--on); border-radius: var(--kr-radius); padding: 16px 20px; min-height: 86px; display: grid; gap: 2px; }
.kcf-note b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--goldhi); }
.kcf-note span { color: var(--on2); font-size: 16px; }
.kcf-hint { font-size: 14px; color: var(--ink2); margin: 8px 0 0; }
.kcf-arch2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 30px; align-items: start; }
.kcf-steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.kcf-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 18px; }
.kcf-steps li::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: var(--kr-radius-btn); border: 1.5px solid var(--gold); color: var(--golddk); display: grid; place-items: center;
  font-weight: 600; font-size: 14px; background: var(--card); position: relative; z-index: 1; }
.kcf-steps li::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; width: 1.5px; background: var(--line2); }
.kcf-steps li:last-child::after { display: none; }
.kcf-steps b { display: block; font-weight: 600; color: var(--ink); font-size: 16.5px; }
.kcf-steps span { color: var(--ink2); font-size: 15.5px; }
.kcf-lens-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kcf-lens-grid div { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--kr-radius); padding: 12px 14px; }
.kcf-lens-grid b { display: block; color: var(--ink); }
.kcf-lens-grid span { color: var(--ink2); font-size: 15px; }

/* judgment */
.kcf-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: c; }
.kcf-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--kr-radius); padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.kcf-card::before { counter-increment: c; content: counter(c, upper-roman); font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--golddk); line-height: 1; }
.kcf-card b { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.kcf-card span { color: var(--ink2); font-size: 15.5px; }
.kcf-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
.kcf-table th { text-align: left; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--golddk); padding: 12px 12px 10px; border-bottom: 2px solid var(--gold); }
.kcf-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink2); }
.kcf-table td:first-child { color: var(--ink); font-weight: 600; width: 30%; }
.kcf-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--kr-radius); }
.kcf-tnote { margin: 0 0 10px; font-size: 14px; color: var(--ink2); font-style: italic; }
.kcf-pull { margin: 26px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); }

/* scrutiny */
.kcf-exam { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.kb-seal { position: relative; z-index: 1; width: 112px; height: 112px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 44px; color: var(--goldhi); }
.kb.abs .kb-seal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.kb.grid .kb-seal { grid-column: 1 / -1; justify-self: center; }
.kcf-q { background: var(--navy); color: var(--on); border-radius: var(--kr-radius); padding: 22px 24px 24px; min-height: 170px; }
.kcf-q .who { margin: 0; font-size: 11.5px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; color: var(--goldhi); font-weight: 600; }
.kcf-q .ask { margin: 10px 0 0; font-family: var(--serif); font-size: 29px; line-height: 1.2; color: var(--on); text-wrap: balance; }

/* event */
.kcf-event { background: var(--navy); color: var(--on); border-radius: var(--kr-radius); padding: 28px 30px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.kcf-event::before { content: "\201C"; font-family: var(--serif); font-size: 64px; line-height: .8; color: var(--goldhi); }
.kcf-event p { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.kcf-event small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 11px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; color: var(--goldhi); font-weight: 600; }
.kcf-scen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kcf-scen div { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--kr-radius); padding: 16px; }
.kcf-scen b { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
.kcf-scen span { color: var(--ink2); font-size: 15px; }
.kcf-call { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.kcf-call .q { margin: 0 0 12px; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.2; }
.kcf-call .setup { margin: 0 0 6px; color: var(--ink2); }
.kcf-call .note { margin: 0 0 12px; color: var(--ink2); font-style: italic; font-size: 15px; }
.kcf-opts { display: grid; gap: 8px; }
.kcf-opt { text-align: left; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; background: var(--card); color: var(--ink);
  border: 1px solid var(--line2); border-radius: var(--kr-radius); padding: 12px 14px; cursor: pointer; font: 600 16px/1.35 var(--sans); transition: border-color .3s, background .3s; }
.kcf-opt:hover { border-color: var(--gold); }
.kcf-opt .k { width: 26px; height: 26px; border-radius: var(--kr-radius-btn); border: 1.5px solid var(--gold); color: var(--golddk); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.kcf-opt small { display: block; font-weight: 500; color: var(--ink2); font-size: 14.5px; margin-top: 2px; }
.kcf-opt[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.kcf-opt[aria-pressed="true"] .k { background: var(--navy); color: var(--on); border-color: var(--navy); }
.kcf-out { background: var(--navy); color: var(--on); border-radius: var(--kr-radius); padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
.kcf-out .lab { margin: 0; font-size: 11px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; color: var(--goldhi); font-weight: 600; }
.kcf-out h5 { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.1; }
.kcf-out p { margin: 0; color: var(--on2); }
.kcf-out p b { color: var(--on); font-weight: 600; }

/* boundary */
.kcf-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink2); margin: 0 0 16px; }
.kcf-key span { display: inline-flex; align-items: center; gap: 7px; }
.kcf-key i { background: var(--gold); }
.kcf-key i.w { background: transparent; border: 1.5px solid var(--gold); }
.kcf-key i.n { background: transparent; border: 1.5px solid var(--mute); }
.kcf-bound { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kcf-bcol { background: var(--card); border: 1px solid var(--line); border-radius: var(--kr-radius); padding: 16px 18px 18px; }
.kcf-bcol.d { border-top: 4px solid var(--gold); }
.kcf-bcol.w { border-top: 4px solid var(--kr-gold-hi); }
.kcf-bcol.n { border-top: 4px solid var(--kr-muted); }
.kcf-bcol h4 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; color: var(--ink); font-weight: 600; }
.kcf-bcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kcf-bcol li { color: var(--ink2); font-size: 15.5px; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px; align-items: baseline; }
.kcf-bcol li::before { background: var(--gold); transform: translateY(-1px); }
.kcf-bcol.w li::before { background: transparent; border: 1.5px solid var(--gold); }
.kcf-bcol.n li::before { background: transparent; border: 1.5px solid var(--mute); }
.kcf-aud { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.kcf-aud li { border-top: 1px solid var(--line2); padding: 11px 0 11px 20px; font-size: 16px; color: var(--ink); font-weight: 600; position: relative; }
.kcf-aud li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; background: var(--gold); rotate: 45deg; }
.kcf-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kcf-models div { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--kr-radius); padding: 12px 14px; }
.kcf-models b { display: block; color: var(--ink); }
.kcf-models span { color: var(--ink2); font-size: 15px; }
.kcf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding: 18px 20px; background: var(--navy); border-radius: var(--kr-radius); }
.kcf-foot .eng { color: var(--on2); font-size: 15px; }
.kcf-foot .eng b { color: var(--goldhi); }
.kcf-next { font: 600 14.5px/1 var(--sans); color: var(--navy); background: var(--goldhi); border: 0; border-radius: var(--kr-radius-btn); padding: 13px 18px; cursor: pointer; letter-spacing: .02em; }

/* responsive */
@media (max-width: 900px) {
  .kcf-mast { grid-template-columns: minmax(0, 1fr); padding: 30px 60px 28px 20px; }
  .kcf-seal { display: none; }
  .kcf-prop { padding: 26px 58px 28px 20px; grid-template-columns: 30px minmax(0, 1fr); }
  .kcf-prop::before { font-size: 60px; }
  .kcf-prop p { font-size: 22px; }
  .kcf-body { grid-template-columns: minmax(0, 1fr); }
  .kcf-chs { border-left: 0; }
  .kcf-rail { top: 0; z-index: 4; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 0 64px 0 6px; overflow-x: auto; scrollbar-width: none; }
  .kcf-rail ol { display: flex; gap: 0; border-left: 0; padding: 0; width: max-content; }
  .kcf-rail a { display: inline-flex; gap: 6px; padding: 9px 4px 10px; margin: 0 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; white-space: nowrap; font-size: 14px; background: none; }
  .kcf-rail a::before { display: none; }
  .kcf-rail a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--gold); }
  .kcf-rail a[aria-current="true"] b { color: var(--golddk); }
  .kcf-rail .eng { display: none; }
  .kcf-ch { padding: 32px 20px 36px; scroll-margin-top: 64px; }
  .kcf-arch2, .kcf-exam, .kcf-call { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .kcf-cards, .kcf-lens-grid, .kcf-scen, .kcf-bound, .kcf-models { grid-template-columns: minmax(0, 1fr); }
  .kcf-q .ask { font-size: 24px; }
  .kb-card { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .kcf * { transition: none !important; animation: none !important; } .kb-lines path { stroke-dashoffset: 0; } }

/* ── motion ─────────────────────────────────────────────────────────── */
@keyframes kcf-up { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes kcf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kcf-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kcf-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes kcf-pop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes kcf-slide { from { opacity: 0; translate: 22px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes kb-in { from { opacity: 0; translate: var(--fx, 0) var(--fy, 0); scale: .6; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes kb-float { 0%, 100% { translate: 0 0; } 50% { translate: var(--dx, 0) var(--dy, -6px); } }
@keyframes kb-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(177,138,88,.0), 0 6px 18px rgba(16,31,50,.16); } 50% { box-shadow: 0 0 0 8px rgba(177,138,88,.16), 0 6px 18px rgba(16,31,50,.16); } }
@keyframes kb-ring { 0% { box-shadow: 0 0 0 0 rgba(177,138,88,.45); } 100% { box-shadow: 0 0 0 22px rgba(177,138,88,0); } }
@keyframes kb-march { to { stroke-dashoffset: -.08; } }
@keyframes kb-void { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }

/* masthead opens */
.kcf.opening .kcf-eyebrow, .kcf.opening .kcf-mast h2, .kcf.opening .kcf-practice { animation: kcf-up .8s var(--kr-ease) both; }
.kcf.opening .kcf-mast h2 { animation-delay: .08s; }
.kcf.opening .kcf-practice { animation-delay: .18s; }
.kcf.opening .kcf-facts li { animation: kcf-up .6s var(--kr-ease) both; animation-delay: calc(.3s + var(--i, 0) * 90ms); }
.kcf.opening .kcf-seal { animation: kcf-fade 1.2s .2s both; }
.kcf.opening .kcf-prop::before { display: inline-block; animation: kcf-pop .7s .45s both; transform-origin: 50% 70%; }
.kcf.opening .kcf-prop p { animation: kcf-up .9s .5s var(--kr-ease) both; }
.kcf-practice { position: relative; display: inline-block; padding-bottom: 6px; }
.kcf-practice::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform-origin: left; }
.kcf.opening .kcf-practice::after { animation: kcf-sweep 1s .5s var(--kr-ease) both; }

/* chapters rise in as they arrive */
.kcf-ch.pre .rv { opacity: 0; }
.kcf-ch.in .rv { animation: kcf-up var(--kr-dur-slow) var(--kr-ease) both; animation-delay: calc(var(--i, 0) * var(--kr-stagger)); }
.kcf-chhead .kcf-chno { position: relative; padding-bottom: 8px; width: max-content; }
.kcf-chhead .kcf-chno::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 2px; background: var(--gold); transform-origin: left; }
.kcf-ch.in .kcf-chno::after { animation: kcf-sweep .9s .2s var(--kr-ease) both; }
.kcf-card { position: relative; border-top-color: transparent; }
.kcf-card::after { content: ""; position: absolute; left: -1px; right: -1px; top: -3px; height: 3px; background: var(--gold); border-radius: var(--kr-radius) var(--kr-radius) 0 0; transform-origin: left; }
.kcf-ch.in .kcf-card::after { animation: kcf-sweep .8s var(--kr-ease) both; animation-delay: calc(.25s + var(--i, 0) * 70ms); }
.kcf-ch.in .kcf-steps li::after { transform-origin: top; animation: kcf-grow .6s var(--kr-ease) both; animation-delay: calc(.35s + var(--i, 0) * 70ms); }
.kcf-ch.in .kcf-bcol li::before { animation: kcf-pop .5s both; animation-delay: calc(.4s + var(--i, 0) * 60ms); }

/* boards */
.kb-lines path { transition-delay: .55s; }
.kb-lines path.on { stroke-dasharray: .035 .035; animation: kb-march 1.3s linear infinite; }
.kb-pulse { fill: var(--goldhi); stroke: var(--golddk); stroke-width: 1; }
.kcf-ch.pre .kb-pulse { opacity: 0; }
.kcf-ch.in .kb.abs .kb-card, .kcf-ch.in .kb.abs .kb-seal { animation: kb-in .9s var(--kr-ease) both; animation-delay: var(--d, 0s); }
.kcf-ch.in .kb.grid .kb-card, .kcf-ch.in .kb.grid .kb-seal, .kcf-ch.in .kb.grid .kb-void { animation: kcf-up .7s var(--kr-ease) both; animation-delay: var(--d, 0s); }
.kcf-ch.in .kb-apart.abs .kb-card { animation: kb-in 1.1s var(--kr-ease) both, kb-float 7s ease-in-out infinite; animation-delay: var(--d, 0s), calc(1.3s + var(--d, 0s)); }
.kcf-ch.in .kb-apart.grid .kb-card { animation: kcf-up .7s var(--kr-ease) both, kb-float 7s ease-in-out infinite; animation-delay: var(--d, 0s), calc(1s + var(--d, 0s)); }
.kcf-ch.in .kb-apart.abs .kb-void { animation: kb-void 4s ease-in-out infinite; }
.kcf-ch.in .kb-arch .kb-card.core, .kcf-ch.in .kb-seal { animation-name: kb-in, kb-breathe; animation-duration: .9s, 4.5s; animation-iteration-count: 1, infinite; animation-delay: var(--d, 0s), 1.4s; animation-fill-mode: both, none; animation-timing-function: var(--kr-ease), ease-in-out; }
.kcf-ch.in .kb.grid .kb-card.core { animation-name: kcf-up, kb-breathe; }
button.kb-card.ping { animation: kb-ring .7s var(--kr-ease) !important; }

/* swaps: outcome, question, note */
.kcf-out.swap, .kcf-q.swap, .kcf-note.swap { animation: kcf-slide .55s var(--kr-ease) both; position: relative; overflow: hidden; }
.kcf-out.swap::before, .kcf-q.swap::before, .kcf-note.swap::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--goldhi); transform-origin: left; animation: kcf-sweep .7s .1s var(--kr-ease) both; }
.kcf-opt { transition: border-color .3s, background .3s, transform .25s; }
.kcf-opt:hover { transform: translateX(3px); }

/* rail progress */
.kcf-rail ol { position: relative; }
.kcf-prog { position: absolute; left: -1px; top: 0; width: 2px; height: var(--p, 0%); background: var(--gold); transition: height .15s linear; }
@media (max-width: 900px) {
  .kcf-rail { position: sticky; }
  .kcf-prog { left: 0; top: auto; bottom: -11px; height: 2px; width: var(--p, 0%); transition: width .15s linear; }
}
@media (prefers-reduced-motion: reduce) {
  .kcf-ch.pre .rv, .kcf-ch.pre .kb-pulse { opacity: 1; }
  .kb-pulse { display: none; }
  .kcf *, .kcf *::before, .kcf *::after { animation: none !important; transition: none !important; }
}

/* ── v6: richer case file, square forms, tilting challenge tiles ───── */
.kcf-subt { margin: 16px 0 0; max-width: 62ch; color: var(--on2); font-size: 17px; line-height: 1.55; }
.kcf-glance { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border-bottom: 1px solid var(--line); }
.kcf-glance > div { padding: 20px 24px 22px; border-left: 1px solid var(--line); position: relative; }
.kcf-glance > div:first-child { border-left: 0; padding-left: 44px; }
.kcf-glance > div::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; background: var(--gold); transform-origin: left; }
.kcf-glance > div:first-child::before { left: 44px; }
.kcf-glance dt { font-size: 11px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; font-weight: 600; color: var(--golddk); }
.kcf-glance dd { margin: 6px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.22; font-weight: 600; color: var(--ink); }

/* challenge tiles: the parts held apart, each tilting on its own */
.kcf-fig { margin: 34px 0 0; }
.kb-apart { perspective: 1100px; }
.kb-apart .kb-card.kb-part { background: none; border: 0; padding: 0; box-shadow: none; display: block; width: 228px; max-width: 228px; }
.kb.abs.kb-apart .kb-card.kb-part { transform: translate(-50%, -50%); max-width: 228px; }
.kb-tile { display: block; background: var(--card); border: 1px solid var(--line2); border-top: 3px solid var(--gold); border-radius: var(--kr-radius); padding: 12px 14px 14px;
  box-shadow: var(--kr-lift); transform: rotate(var(--r, 0deg)); transform-origin: 50% 40%; will-change: transform; backface-visibility: hidden; }
.kb-tile .kb-h { display: flex; align-items: center; gap: 10px; }
.kb-tile .kb-h b { font: 600 16px/1.2 var(--sans); color: var(--ink); flex: 1; }
.kb-tile .kb-h i { font-style: normal; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--golddk); align-self: flex-start; }
.kb-tile .kb-ic { width: 32px; height: 32px; }
.kb-tile .kb-ic svg { width: 20px; height: 20px; }
.kb-tile .kb-d { display: block; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--ink2); font-weight: 500; }
.kb.grid.kb-apart { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 24px; padding: 14px 10px 18px; }
.kb.grid.kb-apart .kb-card.kb-part { width: auto; max-width: none; transform: none; }
.kb.grid.kb-apart .kb-card.kb-part.r { margin-top: 18px; }
.kb.grid.kb-apart .kb-void { margin-bottom: 4px; }
@keyframes kb-tilt {
  0%, 100% { transform: perspective(900px) rotate(var(--r, 0deg)) rotateY(-9deg) rotateX(3deg); }
  50% { transform: perspective(900px) rotate(calc(var(--r, 0deg) * -.85)) rotateY(9deg) rotateX(-3deg); }
}
.kcf-ch.in .kb-apart .kb-tile { animation: kb-tilt calc(6.2s + var(--t, 0) * .55s) ease-in-out infinite; animation-delay: calc(var(--t, 0) * -1.35s); }
.kcf-ch.in .kb-apart.abs .kb-card.kb-part { animation: kb-in 1.1s var(--kr-ease) both, kb-float 8s ease-in-out infinite; animation-delay: var(--d, 0s), calc(1.3s + var(--d, 0s)); }
.kcf-ch.in .kb-apart.grid .kb-card.kb-part { animation: kcf-up .7s var(--kr-ease) both; animation-delay: var(--d, 0s); }

/* callouts, flows and rich cards */
.kcf-callout { margin: 30px 0 0; padding: 22px 26px 24px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--kr-radius); }
.kcf-callout .k { margin: 0 0 8px; font-size: 11.5px; letter-spacing: var(--kr-label-tracking); text-transform: uppercase; font-weight: 600; color: var(--golddk); }
.kcf-callout .t { margin: 0; max-width: 64ch; font-family: var(--serif); font-size: 23px; line-height: 1.32; font-weight: 500; color: var(--ink); }
.kcf-callout.big { margin-top: 38px; background: var(--navy); border-color: var(--navy); border-left-color: var(--goldhi); }
.kcf-callout.big .k { color: var(--goldhi); }
.kcf-callout.big .t { color: var(--on); font-size: 27px; }
.kcf-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; counter-reset: f; }
.kcf-flow li { display: flex; align-items: center; }
.kcf-flow li span { counter-increment: f; display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line2); border-radius: var(--kr-radius); padding: 11px 14px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.kcf-flow li span::before { content: counter(f, decimal-leading-zero); font-size: 11.5px; letter-spacing: .1em; color: var(--golddk); }
.kcf-flow li + li::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); margin: 0 2px; position: relative; }
.kcf-flow li:last-child span { background: var(--navy); color: var(--on); border-color: var(--navy); }
.kcf-flow li:last-child span::before { color: var(--goldhi); }
.kcf-table th[scope="row"] { text-align: left; color: var(--ink); font-weight: 600; width: 26%; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; letter-spacing: 0; text-transform: none; }
.kcf-tablewrap { border-radius: var(--kr-radius); }
.kcf-rich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kcf-rich.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kcf-ri { background: var(--card); border: 1px solid var(--line); border-radius: var(--kr-radius); padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; position: relative; }
.kcf-ri::after { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--gold); transform-origin: top; }
.kcf-ri i { font-style: normal; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--golddk); line-height: 1; }
.kcf-ri b { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.kcf-ri span { color: var(--ink2); font-size: 15.5px; }
.kcf-dist { border-top: 1px solid var(--line2); }
.kcf-dist p { margin: 0; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line2); font-size: 18px; line-height: 1.4; position: relative; }
.kcf-dist p::before { content: ""; position: absolute; left: 3px; top: 24px; width: 9px; height: 9px; border: 1.5px solid var(--gold); rotate: 45deg; }
.kcf-dist b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.kcf-dist span { color: var(--ink2); }

/* in practice */
.kcf-mom { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.kcf-mom::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1.5px; background: var(--line2); transform-origin: top; }
.kcf-mom li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; padding: 0 0 30px; position: relative; }
.kcf-mom li:last-child { padding-bottom: 0; }
.kcf-mom .no { width: 56px; height: 56px; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--gold); border-radius: var(--kr-radius-btn); font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--golddk); position: relative; z-index: 1; transform: rotate(45deg) scale(.78); }
.kcf-mom h4 { margin: 8px 0 8px; font-family: var(--serif); font-size: var(--kr-h3); font-weight: 600; line-height: 1.12; color: var(--ink); text-wrap: balance; }
.kcf-mom p { margin: 0; max-width: 68ch; color: var(--ink2); font-size: 17px; line-height: 1.62; }
.kcf-mom li > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--kr-radius); padding: 4px 24px 22px; }
.kcf-mom .no > * { transform: rotate(-45deg); }

/* scrutiny extras */
.kcf-qs { list-style: none; margin: 0; padding: 0; counter-reset: q; border-top: 1px solid var(--line2); }
.kcf-qs li { counter-increment: q; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line2); font-family: var(--serif); font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--ink); }
.kcf-qs li::before { content: counter(q, decimal-leading-zero); font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--golddk); font-weight: 600; }
.kcf-close { margin-top: 16px; }
.kcf-callout.gold { border-left-color: var(--golddk); }

/* why it matters */
.kcf-roles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.kcf-roles > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line2); }
.kcf-roles dt { font-weight: 600; color: var(--ink); font-size: 16px; }
.kcf-roles dd { margin: 0; color: var(--ink2); font-size: 15.5px; }
.kcf-seq { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; counter-reset: sq; }
.kcf-seq li { counter-increment: sq; background: var(--card); border: 1px solid var(--line); border-radius: var(--kr-radius); padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; font-weight: 600; font-size: 15.5px; color: var(--ink); position: relative; }
.kcf-seq li::before { content: counter(sq, decimal-leading-zero); font-size: 11.5px; letter-spacing: .12em; color: var(--golddk); font-weight: 600; padding-bottom: 8px; border-bottom: 2px solid var(--gold); width: 28px; }
.kcf-pos { margin: 36px 0 0; padding: 28px 30px 30px; background: var(--paper); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.kcf-ch.alt .kcf-pos { background: var(--card); }
.kcf-pos::before { content: "\201C"; font-family: var(--serif); font-size: 72px; line-height: .8; color: var(--gold); }
.kcf-pos p { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.3; font-weight: 500; color: var(--ink); max-width: 56ch; }

/* motion for the new parts */
.kcf.opening .kcf-glance > div { animation: kcf-up .7s var(--kr-ease) both; animation-delay: calc(.6s + var(--i, 0) * 110ms); }
.kcf.opening .kcf-glance > div::before { animation: kcf-sweep .9s var(--kr-ease) both; animation-delay: calc(.8s + var(--i, 0) * 110ms); }
.kcf-ch.in .kcf-ri::after { animation: kcf-grow .8s var(--kr-ease) both; animation-delay: calc(.25s + var(--i, 0) * 70ms); }
.kcf-ch.in .kcf-mom::before { animation: kcf-grow 1.8s .3s var(--kr-ease) both; }
.kcf-ch.in .kcf-flow li + li::before { transform-origin: left; animation: kcf-sweep .5s var(--kr-ease) both; animation-delay: calc(.3s + var(--i, 0) * 70ms); }
.kcf-ch.in .kcf-dist p::before { animation: kcf-pop .5s both; animation-delay: calc(.3s + var(--i, 0) * 70ms); }

@media (max-width: 900px) {
  .kcf-facts { flex-direction: column; align-items: flex-start; gap: 9px; }
  .kcf-facts li, .kcf-facts li:first-child { border-left: 0; padding: 0; }
  .kcf-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kcf-glance > div, .kcf-glance > div:first-child { padding: 16px 18px 18px 20px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .kcf-glance > div:nth-child(odd) { border-left: 0; }
  .kcf-glance > div::before, .kcf-glance > div:first-child::before { left: 20px; right: 18px; }
  .kcf-glance dd { font-size: 17.5px; }
  .kcf-subt { font-size: 16px; }
  .kcf-rich, .kcf-rich.n3, .kcf-roles { grid-template-columns: minmax(0, 1fr); }
  .kcf-callout { padding: 18px 18px 20px; }
  .kcf-callout .t { font-size: 20px; }
  .kcf-callout.big .t { font-size: 22px; }
  .kcf-mom::before { left: 19px; }
  .kcf-mom li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .kcf-mom .no { width: 40px; height: 40px; font-size: 18px; }
  .kcf-mom h4 { font-size: 22px; }
  .kcf-mom li > div { padding: 2px 16px 18px; }
  .kcf-mom p { font-size: 16px; }
  .kcf-qs li { font-size: 19px; grid-template-columns: 36px minmax(0, 1fr); }
  .kcf-dist b { font-size: 20px; }
  .kcf-dist p { font-size: 16.5px; }
  .kcf-pos { padding: 22px 18px 24px; grid-template-columns: 28px minmax(0, 1fr); }
  .kcf-pos p { font-size: 21px; }
  .kcf-roles > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kcf-flow li + li::before { width: 14px; }
  .kcf-table th[scope="row"] { width: 34%; }
}
@media (max-width: 560px) {
  .kcf-glance { grid-template-columns: minmax(0, 1fr); }
  .kcf-glance > div, .kcf-glance > div:nth-child(odd) { border-left: 0; }
  .kb.grid.kb-apart { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 12px 4px 20px; }
  .kb.grid.kb-apart .kb-card.kb-part { width: 88%; }
  .kb.grid.kb-apart .kb-card.kb-part.l { justify-self: start; }
  .kb.grid.kb-apart .kb-card.kb-part.r { justify-self: end; margin-top: 0; }
  .kcf-flow { flex-direction: column; align-items: stretch; gap: 0; }
  .kcf-flow li { flex-direction: column; align-items: stretch; }
  .kcf-flow li + li::before { width: 1.5px; height: 12px; margin: 0 0 0 22px; }
  .kcf-flow li span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-tile { transform: rotate(var(--r, 0deg)); }
}

/* brand standards: navy cards with gold top rule and navy lift (kit .kr-card--navy) */
.kcf-note, .kcf-q, .kcf-event, .kcf-out, .kcf-foot { border-top: 2px solid var(--kr-gold); box-shadow: var(--kr-lift-navy); }
.kcf-callout.big { border: 0; border-top: 2px solid var(--kr-gold); box-shadow: var(--kr-lift-navy); }
.kcf-callout, .kcf-ri, .kcf-seq li, .kcf-mom li > div, .kcf-card, .kcf-bcol, .kcf-lens-grid div, .kcf-scen div, .kcf-models div, .kcf-flow li span, .kcf-glance { box-shadow: var(--kr-lift); }
.kcf-glance { box-shadow: none; }
.kcf-mast { border-bottom: 1px solid var(--kr-line-dark); }
.kcf-eyebrow, .kcf-chno, .kcf-sub, .kcf-callout .k, .kcf-glance dt, .kcf-q .who, .kcf-out .lab { letter-spacing: var(--kr-label-tracking); }
.kcf-opt { border-radius: var(--kr-radius-btn); }
@media (max-width: 660px) { .kcf-p { font-size: var(--kr-body-size); } }
/* Source Serif 4 runs small on the x-height; serif lines sit a step larger, at the kit's 500-600 weights */
.kcf-practice { font-weight: 500; font-size: 24px; }
.kcf-lead { font-size: 32px; }
.kcf-glance dd { font-size: 22px; font-weight: 600; }
.kcf-callout .t { font-size: 25px; }
.kcf-callout.big .t { font-size: 29px; }
.kcf-dist b { font-size: 24px; }
.kcf-ri b, .kcf-card b { font-size: 23px; }
.kcf-qs li { font-size: 24px; }
.kcf-sub2 { font-size: 25px; }
.kcf-event p { font-size: 26px; }
.kcf-note b { font-size: 24px; }
.kcf-scen b { font-size: 22px; }
.kcf-pos p { font-size: 28px; }
@media (max-width: 900px) {
  .kcf-practice { font-size: 21px; }
  .kcf-lead { font-size: 27px; }
  .kcf-glance dd { font-size: 20px; }
  .kcf-callout .t { font-size: 22px; }
  .kcf-callout.big .t { font-size: 24px; }
  .kcf-dist b { font-size: 21px; }
  .kcf-qs li { font-size: 21px; }
  .kcf-pos p { font-size: 23px; }
  .kcf-event p { font-size: 23px; }
}
.kcf-facts { gap: 8px 24px; }
.kcf-facts li, .kcf-facts li:first-child { border-left: 0; padding: 0; }

/* Advanced Labs numerals read as figures, not roman numerals */
.kb-seal, .kcf-seal .rn { font-variant-numeric: lining-nums; }
.kcf-labs .kcf-seal svg { display: none; }
.kcf-labs .kcf-seal .rn { font-variant-numeric: lining-nums; }

/* ---------- Figures: brand charts rebuilt from each document's synthetic figures ---------- */
.kf { margin: 28px 0 0; padding: 24px 26px 20px; background: #fff; border: 1px solid var(--kr-line); border-top: 2px solid var(--kr-gold); box-shadow: var(--kr-lift); }
.kf .kcf-sub { margin-top: 0; }
.kf-cap { margin: 14px 0 0; font: italic 500 15px/1.5 var(--serif); color: var(--kr-muted); }
.kf-axes { margin: 6px 0 0; font: 600 10.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--kr-muted); }
.kf-leg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.kf-key { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--kr-line-2); background: var(--kr-ivory); cursor: pointer; font: 600 13px/1 var(--sans); color: var(--kr-navy); transition: opacity .4s var(--kr-ease), border-color .4s var(--kr-ease); }
.kf-key:hover { border-color: var(--kr-gold); }
.kf-key[aria-pressed="false"] { opacity: .45; }
.kf-key i { width: 10px; height: 10px; background: var(--c); flex: none; }
.kf-key i.o { border-radius: 50%; } .kf-key i.dm { transform: rotate(45deg); width: 9px; height: 9px; } .kf-key i.dash { background: none; border: 1.5px dashed var(--c); }
.kf-key i.bar { width: 16px; height: 8px; } .kf-key i.bar.n { background: #101F32; } .kf-key i.bar.g { background: #B18A58; }
.kf-lane { position: relative; height: 22px; margin-left: 44px; }
.kf-lane span { position: absolute; top: 0; text-align: right; white-space: nowrap; font: 600 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--kr-gold-deep); padding-top: 4px; border-top: 1px solid var(--kr-gold); }
.kf-plotwrap { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.kf-y { position: relative; }
.kf-y span { position: absolute; right: 10px; transform: translateY(-50%); font: 600 12px/1 var(--sans); color: var(--kr-muted); font-variant-numeric: tabular-nums; }
.kf-plot { position: relative; aspect-ratio: 2.7 / 1; border-left: 1px solid var(--kr-line-2); border-bottom: 1px solid var(--kr-line-2); }
.kf-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kf-grid { stroke: var(--kr-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.kf-shade { fill: rgba(177,138,88,.10); }
.kf-path { fill: none; stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; transition: opacity .45s var(--kr-ease); }
.kf-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--c); border: 2px solid #fff; box-sizing: content-box; transform-origin: center; transition: opacity .45s var(--kr-ease); }
.kf-dot.o { border-radius: 50%; } .kf-dot.sq { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-width: 1.5px; } .kf-dot.dm { transform: rotate(45deg); width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.kf-line[data-qual] .kf-dot { display: none; }
.kf-xrow { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.kf-x { position: relative; height: 26px; }
.kf-x span { position: absolute; top: 8px; transform: translateX(-50%); font: 600 12px/1 var(--sans); color: var(--kr-muted); white-space: nowrap; }
.kf-x span:first-child { transform: none; } .kf-x span:last-child { transform: translateX(-100%); }
.kf .off { opacity: .08; }
/* strip */
.kf-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.kf-steps:has(li:nth-child(4):last-child) { --n: 4; } .kf-steps:has(li:nth-child(6)) { --n: 6; }
.kf-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 16px; background: var(--kr-ivory); border: 1px solid var(--kr-line-2); min-width: 0; }
.kf-steps li.dk { background: #101F32; border-color: #101F32; }
.kf-steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -14px; width: 14px; height: 1px; background: var(--kr-gold); }
.kf-steps em { font: 600 22px/1 var(--serif); font-style: normal; color: var(--kr-gold); font-variant-numeric: lining-nums; }
.kf-steps em.tm { font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--kr-gold-deep); }
.kf-steps li.dk em.tm, .kf-steps li.dk em { color: #E2C891; }
.kf-steps b { font: 600 15px/1.3 var(--sans); color: var(--kr-navy); overflow-wrap: anywhere; }
.kf-steps span { font: 500 13px/1.45 var(--sans); color: var(--kr-ink-2); }
.kf-steps li.dk b { color: #F6F2EA; } .kf-steps li.dk span { color: #C7CED8; }
/* bars and pairs */
.kf-rows { display: grid; gap: 12px; margin-top: 6px; }
.kf-row { display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr); gap: 16px; align-items: center; }
.kf-rl { font: 600 14px/1.35 var(--sans); color: var(--kr-navy); }
.kf-track { position: relative; display: block; height: 12px; background: var(--kr-stone-2); }
.kf-track i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #21354C, #101F32); transition: width 1.2s var(--kr-ease) var(--d, 0s); }
.kf-tracks { display: grid; gap: 6px; }
.kf-tracks .kf-track { display: grid; grid-template-columns: 1fr 26px; background: none; height: 12px; }
.kf-tracks .kf-track i { position: relative; inset: auto; height: 12px; }
.kf-tracks .kf-track::before { content: ""; position: absolute; left: 0; right: 26px; top: 0; bottom: 0; background: var(--kr-stone-2); }
.kf-tracks .kf-track i { grid-column: 1; grid-row: 1; z-index: 1; }
.kf-tracks .kf-track b { grid-column: 2; grid-row: 1; text-align: right; font: 600 12px/12px var(--sans); color: var(--kr-navy); font-variant-numeric: tabular-nums; }
.kf-tracks .kf-track.g i { background: linear-gradient(90deg, #CDAA70, #A88250); }
.kf-tracks .off { opacity: .15; }
.kf-scale { display: grid; grid-template-columns: minmax(130px, 34%) minmax(0, 1fr) 26px; gap: 16px 0; margin-top: 8px; font: 600 11px/1 var(--sans); color: var(--kr-muted); }
.kf-scale span:first-child { grid-column: 2; } .kf-scale span:last-child { grid-column: 2; justify-self: end; }
/* loss grid */
.kf-tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--kr-line-2); margin: 4px 0 18px; width: max-content; max-width: 100%; }
.kf-tab { border: 0; border-right: 1px solid var(--kr-line-2); background: #fff; padding: 11px 16px; cursor: pointer; font: 600 13px/1 var(--sans); color: var(--kr-navy); transition: background .4s var(--kr-ease), color .4s var(--kr-ease); }
.kf-tab:last-child { border-right: 0; }
.kf-tab[aria-selected="true"] { background: #101F32; color: #F6F2EA; }
.kf-mx { display: grid; grid-template-columns: minmax(120px, 22%) repeat(var(--cols), minmax(0, 1fr)); gap: 12px 18px; align-items: center; }
.kf-ch { font: 600 10.5px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--kr-muted); transition: color .4s var(--kr-ease); }
.kf-ch.on { color: var(--kr-gold-deep); }
.kf-cell { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 8px; align-items: center; opacity: .45; transition: opacity .45s var(--kr-ease); }
.kf-cell.on { opacity: 1; }
.kf-cell b { font: 600 13px/1 var(--sans); color: var(--kr-navy); font-variant-numeric: tabular-nums; }
.kf-cell.best .kf-track i { background: linear-gradient(90deg, #CDAA70, #A88250); }
.kf-cell.best b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; background: var(--kr-gold); transform: rotate(45deg); vertical-align: 1px; }
.kf-read { margin: 16px 0 0; font: 500 15px/1.5 var(--sans); color: var(--kr-ink-2); min-height: 1.5em; }
.kf-read b { color: var(--kr-navy); }
/* reveal */
.kcf-ch.pre:not(.in) .kf-svg { clip-path: inset(0 100% 0 0); }
.kcf-ch.in .kf-svg { animation: kf-wipe 2s var(--kr-ease) both; }
.kcf-ch.pre:not(.in) .kf-dot, .kcf-ch.pre:not(.in) .kf-steps li { opacity: 0; }
.kcf-ch.in .kf-dot { animation: kf-pop .6s var(--kr-ease) both; animation-delay: calc(.6s + var(--d)); }
.kcf-ch.in .kf-steps li { animation: kf-rise .8s var(--kr-ease) both; animation-delay: var(--d); }
.kcf-ch.pre:not(.in) .kf-track i { width: 0; }
@keyframes kf-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kf-pop { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
@keyframes kf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .kf { padding: 18px 16px 16px; margin-left: -4px; margin-right: -4px; }
  .kf-plot { aspect-ratio: 1.45 / 1; }
  .kf-plotwrap, .kf-xrow { grid-template-columns: 36px minmax(0, 1fr); } .kf-lane { margin-left: 36px; }
  .kf-steps { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  .kf-steps li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 13px 14px; }
  .kf-steps li span { flex-basis: 100%; }
  .kf-steps li:not(:last-child)::after { top: auto; bottom: -10px; right: auto; left: 22px; width: 1px; height: 10px; }
  .kf-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .kf-scale { grid-template-columns: minmax(0, 1fr) 26px; } .kf-scale span:first-child, .kf-scale span:last-child { grid-column: 1; }
  .kf-mx { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .kf-mx .kf-ch, .kf-mx .kf-cell:not(.on) { display: none; }
  .kf-mx > span:first-child { display: none; }
  .kf-tab { padding: 10px 12px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .kf * { animation: none !important; transition: none !important; } .kcf-ch.pre .kf-svg { clip-path: none !important; } .kcf-ch.pre .kf-dot, .kcf-ch.pre .kf-steps li { opacity: 1 !important; } }
.kcf-ch.in .kf-dot { animation-delay: calc(.9s + var(--d)); }
@media (max-width: 760px) { .kf-lane span { left: auto !important; right: 0; width: auto !important; padding-left: 10px; letter-spacing: .12em; } .kf-key { padding: 7px 10px; font-size: 12.5px; } .kf-leg { gap: 6px; } }
