/* Quick page. Palette, type and geometry: briefs/quick.md "Design" (measured on the approved 1344 x 768 image).
   The hero motif is CSS only: streak, band, finish line, dashed track. Final state is the default; the intro is a keyframe animation. */
:root {
  --bg: #FEFDFD; --ink: #050505; --muted: #5C5C5C; --rule: #BDBDBD;
  --orange: #FC4F1E; --amber: #FD9B37; --band: #151515; --link: #B8380C; --hair: #6E6E6E; --dim: #A8A8A8;
  --lk-bg: var(--bg); --lk-panel: var(--bg); --lk-ink: var(--ink); --lk-muted: var(--muted); --lk-line: var(--rule);
  --lk-main: var(--orange); --lk-on-main: var(--ink); --lk-link: var(--link); --lk-focus: var(--ink); --lk-accent: var(--orange);
  --lk-font-display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-font-mono: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lk-radius: 0; --lk-max: 1120px; --lk-gutter: 16px;
  --qk-gut: clamp(16px, 5.56vw, 80px);
  --lk-dock-bg: var(--orange); --lk-dock-ink: var(--ink);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
body { font-size: 18px; line-height: 1.6; font-variant-numeric: tabular-nums; }
code { font: 500 0.88em/1.4 "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Hero (wide) ---------- */
/* Final state is the default. Intro: speed lines and the streak race in, the headline lands with a skid, the
   stopwatch counts to this page's LCP and the waterfall bars race in by their real start time. */
.qk-hero { --qk-h: max(780px, min(calc(100svh - var(--lk-bar)), 860px)); position: relative; overflow: hidden; height: var(--qk-h); background: var(--bg); }
.qk-motif { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.qk-band { position: absolute; left: 76%; right: 0; top: 36%; height: 24%; background: var(--band); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.qk-track { position: absolute; left: 44%; right: 0; top: 63%; height: 2px; background: repeating-linear-gradient(90deg, var(--rule) 0 14px, transparent 14px 24px); }
/* speed lines: thin motion-blur streaks at different speeds */
.qk-lines { position: absolute; inset: -10% -6%; transform: rotate(-7deg); }
.qk-lines i { position: absolute; left: 0; top: var(--y); width: var(--l); height: var(--h, 2px); background: linear-gradient(90deg, rgb(252 79 30 / 0), var(--c, var(--orange))); transform: translateX(var(--x)); }
.qk-lines i:nth-child(1) { --y: 30%; --l: 22%; --x: 58vw; --t: 1.9s; --dl: -.4s; }
.qk-lines i:nth-child(2) { --y: 33.5%; --l: 34%; --x: 20vw; --t: 1.3s; --dl: -1s; --h: 3px; --c: var(--amber); }
.qk-lines i:nth-child(3) { --y: 61%; --l: 18%; --x: 70vw; --t: 2.4s; --dl: -.2s; --c: var(--band); --h: 1px; }
.qk-lines i:nth-child(4) { --y: 64.5%; --l: 40%; --x: 8vw; --t: 1.1s; --dl: -.7s; --h: 4px; }
.qk-lines i:nth-child(5) { --y: 26%; --l: 14%; --x: 82vw; --t: 2.8s; --dl: -1.6s; --c: var(--band); --h: 1px; }
.qk-lines i:nth-child(6) { --y: 67.5%; --l: 26%; --x: 46vw; --t: 1.6s; --dl: -.9s; --c: var(--amber); }
.qk-lines i:nth-child(7) { --y: 22%; --l: 30%; --x: 30vw; --t: 2.1s; --dl: -1.3s; --c: var(--orange); --h: 1px; }
.qk-lines i:nth-child(8) { --y: 70.5%; --l: 12%; --x: 64vw; --t: 1.4s; --dl: -.1s; --c: var(--band); --h: 2px; }
.qk-lines i:nth-child(9) { --y: 35.2%; --l: 20%; --x: 2vw; --t: 0.9s; --dl: -.5s; --h: 2px; }
.qk-lines i:nth-child(10) { --y: 59.4%; --l: 28%; --x: 36vw; --t: 1.2s; --dl: -.3s; --c: var(--amber); --h: 3px; }
/* the comet: layered gradients plus a blurred copy behind for motion blur (decoration only, never text) */
.qk-run { position: absolute; inset: 0; }
.qk-streak { position: absolute; left: 40%; width: 53%; top: 38%; height: 20%; clip-path: polygon(0 0, 100% 0, calc(100% - 3.2vw) 100%, 0 100%);
  background: repeating-linear-gradient(180deg, rgb(255 214 150 / 0) 0 3px, rgb(255 214 150 / .16) 3px 4px, rgb(214 52 14 / .18) 4px 6px),
    linear-gradient(90deg, rgb(252 79 30 / 0) 0, rgb(252 79 30 / .35) 10%, rgb(252 79 30 / .8) 22%, var(--orange) 34%, var(--orange) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%); }
.qk-streak::after { content: ""; position: absolute; left: 75.5%; right: 0; top: 44%; height: 12%; clip-path: polygon(0 0, 100% 0, calc(100% - 1.6vw) 100%, 0 100%); background: linear-gradient(90deg, rgb(253 155 55 / 0), var(--amber) 40%, #FFD696 92%); }
.qk-tail { position: absolute; left: 93%; right: 0; top: calc(48% - 2px); height: 4px; background: var(--amber); transform: skewX(-30deg); }
.qk-finish { position: absolute; z-index: 3; left: 80%; top: 27%; height: 39%; width: 1px; background: var(--hair); transform-origin: top; }
.qk-finish::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 56px; background: repeating-conic-gradient(var(--ink) 0 25%, var(--bg) 0 50%) 0 0 / 14px 14px; }

.qk-h1 { margin: 0; }
.qk-name { position: absolute; z-index: 2; left: 14vw; top: 22%; font: 800 30px/1 var(--lk-font-display); letter-spacing: -0.02em; color: var(--ink); }
.qk-headline { position: absolute; z-index: 2; left: 14vw; top: calc(var(--qk-h) * 0.33 - 0.097em); display: block; white-space: nowrap; color: var(--ink);
  font: 800 clamp(72px, 11.67vw, 168px)/0.92 var(--lk-font-display); letter-spacing: -0.045em; word-spacing: 0.08em; }
.qk-l2 { display: inline-block; transform: skewX(-6deg); }
.qk-one { position: absolute; z-index: 2; left: 14vw; top: 70%; max-width: min(460px, calc(86vw - 14vw - 460px)); font: 400 20px/1.45 var(--lk-font-body); color: var(--muted); }
.qk-actions { position: absolute; z-index: 2; left: 14vw; top: 57%; display: flex; align-items: center; gap: 24px; }
.qk-btn { width: 192px; height: 60px; min-height: 0; padding: 0; border: 0; border-radius: 2px; background: var(--orange); color: var(--ink); font: 600 17px/1 var(--lk-font-body); box-shadow: 6px 6px 0 var(--ink); }
.qk-btn:hover { background: var(--amber); color: var(--ink); }
.qk-btn:focus-visible { border-radius: 2px; }
.qk-link { font: 500 17px/1.3 var(--lk-font-body); color: var(--link); }
.qk-status { position: absolute; left: 0; top: calc(100% + 10px); min-height: 0; font-size: 15px; white-space: nowrap; }
.qk-status:empty { display: none; }

/* the timing board: stopwatch + readings + waterfall */
.qk-side { position: absolute; z-index: 4; right: max(24px, 4vw); bottom: 80px; width: 440px; }
.qk-card { position: relative; width: 100%; padding: 16px 20px 18px; background: var(--band); color: var(--bg); border-top: 4px solid var(--orange); box-shadow: 10px 10px 0 rgb(5 5 5 / .12); }
.qk-card-t, .qk-fall-t { margin: 0 0 12px; font: 600 12px/1.2 var(--lk-font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.qk-watch { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #333; }
.qk-dial { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--bg);
  background: repeating-conic-gradient(from -1.5deg, #8A8A8A 0 3deg, transparent 3deg 30deg), radial-gradient(circle, #232323 0 62%, #1B1B1B 63%); }
.qk-dial::before { content: ""; position: absolute; left: 50%; top: -11px; width: 14px; height: 7px; margin-left: -7px; background: var(--bg); }
.qk-dial::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--orange); }
.qk-hand { position: absolute; left: 50%; top: 50%; width: 3px; height: 40%; margin-left: -1.5px; background: var(--orange); transform-origin: 50% 0; transform: rotate(calc(180deg + var(--a, 0deg))); }
.qk-read { display: grid; gap: 8px; margin: 0; }
.qk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.qk-row dt { font: 600 12px/1.25 var(--lk-font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.qk-row dd { margin: 0; min-height: 26px; font: 800 26px/1 var(--lk-font-display); text-align: right; color: var(--bg); font-variant-numeric: tabular-nums; }
.qk-row:first-child dd { font-size: 40px; min-height: 40px; color: var(--amber); }
.qk-row dd.qk-wait { min-height: 0; font: 500 13px/1.25 var(--lk-font-body); color: var(--dim); }
.qk-u { margin-left: 3px; font: 600 15px/1 var(--lk-font-body); color: var(--dim); }
.qk-fall-t { margin: 14px 0 8px; }
.qk-fall { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.qk-fall li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font: 500 12px/1.3 "JetBrains Mono", ui-monospace, Consolas, monospace; color: #D4D4D4; }
.qk-fn { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qk-fm { text-align: right; color: var(--dim); }
.qk-fb { position: relative; height: 10px; background: repeating-linear-gradient(90deg, #333 0 6px, transparent 6px 10px) center / 100% 1px no-repeat; }
.qk-fb::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--s, 0); width: var(--w, 30%); background: linear-gradient(90deg, var(--orange), var(--amber)); transform-origin: left; }
.qk-fall li:nth-child(1) { --s: 0%; --w: 34%; }
.qk-fall li:nth-child(2) { --s: 30%; --w: 18%; }
.qk-fall li:nth-child(3) { --s: 31%; --w: 22%; }
.qk-fall li:nth-child(4) { --s: 36%; --w: 40%; }
.qk-fall li:nth-child(5) { --s: 52%; --w: 26%; }
.qk-nojs { display: none; margin: 10px 0 0; font: 400 13px/1.3 var(--lk-font-body); color: var(--dim); }
html:not(.lk-js) .qk-nojs { display: block; }
.qk-replay { position: absolute; right: 14px; top: 10px; padding: 4px 2px; border: 0; background: none; color: var(--dim); font: 500 13px/1.3 var(--lk-font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qk-replay:hover { color: var(--bg); }
.qk-card :focus-visible { outline-color: var(--bg); }

@keyframes qk-run { from { transform: translateX(-110%); } to { transform: none; } }
@keyframes qk-head { from { transform: translateX(-48px) skewX(-14deg); } 70% { transform: translateX(6px) skewX(3deg); } to { transform: none; } }
@keyframes qk-fin { from { transform: scaleY(0); } to { transform: none; } }
@keyframes qk-zip { from { transform: translateX(-45vw); } to { transform: translateX(110vw); } }
@keyframes qk-grow { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .qk-run { animation: qk-run 520ms var(--ease) 80ms backwards; }
  .qk-headline { animation: qk-head 640ms var(--ease) 120ms backwards; }
  .qk-finish { animation: qk-fin 160ms ease-out 520ms backwards; }
  .qk-lines i { animation: qk-zip var(--t) linear var(--dl) infinite; }
  .qk-live .qk-fb::before { animation: qk-grow 420ms var(--ease) var(--d, 0ms) backwards; }
  .qk-hero.qk-still .qk-run, .qk-hero.qk-still .qk-headline, .qk-hero.qk-still .qk-finish, .qk-hero.qk-still .qk-fb::before { animation: none; }
}

/* ---------- Below the hero: race-band sections ---------- */
.qk-wrap { width: 100%; max-width: calc(1120px + 2 * var(--qk-gut)); margin-inline: auto; padding-inline: var(--qk-gut); }
section[id] { scroll-margin-top: 16px; }
.qk-h2 { font: 800 clamp(40px, 7.2vw, 100px)/0.92 var(--lk-font-display); letter-spacing: -0.045em; margin-bottom: 28px; text-wrap: balance; }
.qk-h2::after { content: ""; display: block; width: 96px; height: 6px; margin-top: 22px; background: var(--orange); transform-origin: left; }
.qk-eye { display: block; margin-bottom: 14px; font: 600 13px/1.2 var(--lk-font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qk-h3 { font: 800 22px/1.2 var(--lk-font-display); margin-bottom: 14px; }
.qk-sec2, .qk-try { padding-block: 88px; }
.qk-lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin-bottom: 36px; max-width: 62ch; }
p { max-width: 68ch; }
.qk-list { list-style: none; }
.qk-list li { position: relative; padding-left: 22px; max-width: 64ch; }
.qk-list li + li { margin-top: 10px; }
.qk-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 10px; background: var(--orange); }
.qk-note { margin-top: 14px; font-size: 16px; color: var(--muted); }

/* try: the race */
.qk-try { background: var(--bg); border-bottom: 2px solid var(--ink); }
.qk-lane { display: grid; grid-template-columns: 150px 170px minmax(0, 1fr) minmax(0, 300px); gap: 8px 28px; align-items: center; padding: 22px 0; border-top: 2px solid var(--ink); }
.qk-lane:last-of-type { border-bottom: 2px solid var(--ink); }
.qk-lane-l { font: 800 34px/1 var(--lk-font-display); letter-spacing: -0.03em; }
.qk-lane-l small { display: block; margin-top: 6px; font: 600 13px/1 var(--lk-font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.qk-in { width: 100%; min-width: 0; padding: 4px 0; border: 0; border-bottom: 4px solid var(--ink); border-radius: 0; background: none; color: var(--ink); font: 800 44px/1.1 var(--lk-font-display); letter-spacing: -0.03em; transition: border-color .15s; }
.qk-in::placeholder { color: #767676; font-weight: 600; }
.qk-in:hover { border-bottom-color: var(--orange); }
.qk-in:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-bottom-color: var(--orange); }
.qk-rail { position: relative; height: 30px; background: repeating-linear-gradient(90deg, var(--rule) 0 14px, transparent 14px 24px) center / 100% 2px no-repeat; }
.qk-bar { position: absolute; left: 0; top: 5px; height: 20px; width: var(--v, 0%); background: linear-gradient(90deg, rgb(252 79 30 / .25), var(--orange) 40%); border-radius: 0; transition: width .4s var(--ease), background-color .15s; }
.qk-lane[data-s="over"] .qk-bar { background: var(--band); }
.qk-line { position: absolute; left: 50%; top: -8px; bottom: -8px; width: 3px; background: var(--ink); }
.qk-verdict { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.qk-verdict small { font-size: 13px; }
.qk-state { display: block; margin-bottom: 2px; font: 800 18px/1.2 var(--lk-font-display); color: var(--ink); }
.qk-lane[data-s="over"] .qk-state::before { content: "\2715  "; }
.qk-lane[data-s="ok"] .qk-state::before { content: "\2713  "; }
.qk-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.qk-chip { min-height: 44px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 2px; background: var(--bg); color: var(--ink); font: 600 16px/1 var(--lk-font-body); cursor: pointer; transition: background-color .15s, color .15s, transform .1s; }
.qk-chip:hover { background: var(--ink); color: var(--bg); }
.qk-chip:active, .qk-btn:active { transform: scale(0.96); }
.qk-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.qk-result { margin: 24px 0 0; font: 800 clamp(24px, 3.4vw, 40px)/1.1 var(--lk-font-display); letter-spacing: -0.03em; }
.qk-out { margin-top: 28px; max-width: 860px; }
.qk-out-t { margin: 0; padding: 18px 20px; background: var(--band); color: var(--bg); border-left: 8px solid var(--orange); font: 500 15px/1.5 "JetBrains Mono", ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.qk-out-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.qk-copy2 { width: auto; padding: 0 28px; }
.qk-copied { font: 600 16px/1 var(--lk-font-body); }
.qk-copied:empty { display: none; }
.qk-nojs2 { display: none; color: var(--muted); }
html:not(.lk-js) .qk-nojs2 { display: block; margin-top: 16px; }
.qk-btn { transition: background-color .15s, transform .1s; }

/* what + why: two giant inverted statements */
.qk-stmt { padding-block: 104px; }
.qk-stmt--dark { position: relative; overflow: hidden; background: var(--band); color: var(--bg); }
.qk-stmt--dark::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 26%; pointer-events: none;
  background: linear-gradient(90deg, var(--band), rgb(21 21 21 / 0) 40%), repeating-linear-gradient(180deg, transparent 0 22px, rgb(252 79 30 / .9) 22px 24px, transparent 24px 37px, rgb(253 155 55 / .5) 37px 38px, transparent 38px 61px); }
.qk-stmt--dark .qk-wrap { position: relative; }
.qk-stmt--dark .qk-eye { color: var(--dim); }
.qk-stmt--light { background: var(--bg); color: var(--ink); border-bottom: 2px solid var(--ink); }
.qk-stmt--dark a { color: var(--amber); }
.qk-stmt--dark :focus-visible { outline-color: var(--bg); }
.qk-stmt p { max-width: 62ch; }
.qk-stmt p:first-of-type { max-width: 28ch; font: 800 clamp(26px, 3.9vw, 54px)/1.1 var(--lk-font-display); letter-spacing: -0.03em; margin-bottom: 36px; }
.qk-stmt--light p:first-of-type { max-width: 30ch; }
.qk-stmt--dark p + p { font-size: 19px; color: #D4D4D4; }
.qk-stmt--dark .qk-h2 { font-size: clamp(40px, 8vw, 112px); }

/* when: sector split-times */
.qk-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; counter-reset: sec; }
.qk-board .lk-phase { counter-increment: sec; display: flex; flex-direction: column; border: 0; border-top: 6px solid var(--ink); border-radius: 0; background: none; padding: 18px 24px 0 0; transition: border-color .15s; }
.qk-board .lk-phase:hover { border-top-color: var(--orange); }
.qk-board .qk-ph { order: 1; margin: 0 0 10px; font: 600 13px/1.3 var(--lk-font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.qk-board .qk-ph::before { content: "S" counter(sec) "  "; color: var(--link); font-weight: 800; }
.qk-board .lk-phase::after { content: ""; order: 3; display: block; height: 10px; margin-top: 16px; width: calc(var(--r, 1) * 100%); min-width: 6px; background: linear-gradient(90deg, rgb(252 79 30 / .2), var(--orange)); transform-origin: left; }
.qk-board strong { order: 2; font: 800 clamp(64px, 10vw, 140px)/0.9 var(--lk-font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ink); transition: transform .25s var(--ease); }
.qk-board .lk-phase:hover strong { transform: translateY(-6px); }
.qk-dash { margin-top: 32px; height: 2px; background: repeating-linear-gradient(90deg, var(--rule) 0 14px, transparent 14px 24px); }

/* agent + you: one split, black and white */
.qk-splitwrap { background: linear-gradient(90deg, var(--band) 50%, var(--bg) 50%); }
.qk-split { display: grid; grid-template-columns: 1fr 1fr; }
.qk-col { padding-block: 88px; }
.qk-col:first-child { padding-right: 64px; color: var(--bg); }
.qk-col:first-child a { color: var(--amber); }
.qk-col + .qk-col { padding-left: 64px; }
.qk-col .qk-lab { display: block; margin: 0 0 22px; font: 800 clamp(36px, 5vw, 68px)/0.95 var(--lk-font-display); letter-spacing: -0.04em; text-transform: none; }
.qk-col:first-child .qk-eye { color: var(--dim); }
.qk-col:first-child .qk-h3 { color: var(--bg); }
.qk-eye .qk-sq { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; background: var(--orange); }
.qk-eye .qk-sq--you { background: var(--ink); }
.qk-col .qk-list li { transition: transform .2s var(--ease); }
.qk-col .qk-list li:hover { transform: translateX(6px); }

/* money: the pit bill */
.qk-money .lk-table-wrap { border: 0; border-top: 6px solid var(--ink); }
.qk-money .lk-money th { background: var(--band); color: var(--bg); font-family: var(--lk-font-body); }
.qk-money .lk-money tbody tr { transition: background-color .15s, box-shadow .15s; }
.qk-money .lk-money tbody tr:hover { background: #F1F1F1; box-shadow: inset 6px 0 0 var(--orange); }
.qk-money .lk-money td:first-child { font: 800 16px/1.3 var(--lk-font-display); }
.qk-money .lk-money td:nth-child(4), .qk-money .lk-money td:nth-child(5) { font-variant-numeric: tabular-nums; }
.qk-money .lk-money td:nth-child(5) { white-space: nowrap; }
.qk-money .lk-money th:nth-child(6), .qk-money .lk-money td:nth-child(6) { width: 18%; overflow-wrap: anywhere; }
.qk-money .lk-money th:nth-child(1), .qk-money .lk-money td:nth-child(1) { width: 12%; }

/* items: three-column lap board */
#items .lk-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 0; padding-left: 1px; }
#items .lk-cat { grid-column: 1 / -1; padding: 40px 0 12px; font: 800 clamp(24px, 3vw, 36px)/1 var(--lk-font-display); letter-spacing: -0.03em; text-transform: none; color: var(--ink); border-bottom: 6px solid var(--ink); margin-left: -1px; }
#items .lk-item { grid-template-columns: auto 1fr; grid-template-areas: "id when" "title title" "who who"; gap: 8px 12px; align-content: start; min-height: 132px; padding: 16px 18px; margin: -1px 0 0 -1px; border: 1px solid var(--rule); border-top: 4px solid var(--orange); background: var(--bg); color: var(--ink); transition: background-color .15s, color .15s, transform .15s; }
#items .lk-item[data-who="founder"] { border-top-color: var(--ink); }
#items .lk-item { position: relative; overflow: hidden; }
#items .lk-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, rgb(252 79 30 / 0), var(--orange) 70%, var(--amber)); transform: translateX(-101%); transition: transform .35s var(--ease); }
#items .lk-item:hover::after { transform: none; }
#items .lk-item[hidden], #items .lk-cat[hidden] { display: none; }
#items .lk-item .lk-id { grid-area: id; font: 800 15px/1 var(--lk-font-display); color: var(--link); }
#items .lk-item .lk-title { grid-area: title; font: 800 19px/1.2 var(--lk-font-display); letter-spacing: -0.01em; }
#items .lk-item .lk-who { grid-area: who; font: 600 13px/1 var(--lk-font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#items .lk-item .lk-when { grid-area: when; justify-self: end; font: 600 13px/1 var(--lk-font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#items .lk-item:hover { background: var(--band); color: var(--bg); transform: translateY(-3px); position: relative; z-index: 1; }
#items .lk-item:hover .lk-id { color: var(--amber); }
#items .lk-item:hover .lk-who, #items .lk-item:hover .lk-when { color: var(--dim); }
#items .lk-filter { transition: background-color .15s, color .15s, transform .1s; }
#items .lk-filter:active { transform: scale(0.95); }

/* end: photo finish frame */
.qk-end { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; align-items: center; }
.qk-flag { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--band); clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%); }
.qk-flag i { position: absolute; left: var(--x); top: var(--y); width: var(--l); height: var(--h); background: linear-gradient(90deg, rgb(252 79 30 / 0), var(--orange) 45%, var(--amber)); clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); transform: rotate(-24deg); }
.qk-flag i:nth-child(1) { --x: -4%; --y: 46%; --l: 92%; --h: 16%; }
.qk-flag i:nth-child(2) { --x: 18%; --y: 30%; --l: 60%; --h: 3%; }
.qk-flag i:nth-child(3) { --x: 6%; --y: 72%; --l: 70%; --h: 5%; }
.qk-flag i:nth-child(4) { --x: 36%; --y: 18%; --l: 44%; --h: 1.5%; }
.qk-flag b { position: absolute; top: -10%; bottom: -10%; left: 64%; width: 30px; background: repeating-conic-gradient(var(--bg) 0 25%, var(--ink) 0 50%) 0 0 / 15px 15px; transform: skewX(-24deg); }
#end .qk-list, #run .qk-list { counter-reset: e; }
#end .qk-list li, #run .qk-list li { counter-increment: e; max-width: none; margin: 0; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--rule); transition: transform .2s var(--ease), background-color .15s; }
#end .qk-list li::before, #run .qk-list li::before { content: counter(e, decimal-leading-zero); width: auto; height: auto; top: 14px; background: none; color: var(--link); font: 800 15px/1.5 var(--lk-font-display); }
#end .qk-list li:hover, #run .qk-list li:hover { transform: translateX(8px); background: #F1F1F1; }
#end .qk-list li:first-child, #run .qk-list li:first-child { border-top: 2px solid var(--ink); }

/* run: run-in ticker lines */
.qk-prompt { margin-bottom: 44px; max-width: 900px; }
.qk-prompt .lk-prompt-text { border: 0; border-left: 8px solid var(--orange); background: var(--band); color: var(--bg); font-size: 16px; padding: 20px 22px; }
.qk-run-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; }
.qk-files code { display: block; color: var(--ink); }
.lk-filter:focus-visible { border-radius: 2px; }
#items .lk-filter { border-radius: 2px; border-color: var(--ink); }
#items .lk-filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* terms + next */
.lk-terms { gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.lk-terms > div { padding: 14px 0 16px; border-top: 2px solid var(--ink); transition: background-color .15s, padding-left .2s var(--ease); }
.lk-terms > div:hover { background: #F1F1F1; padding-left: 10px; }
.lk-terms dt { font: 800 18px/1.25 var(--lk-font-display); }
.lk-terms dd { color: var(--muted); }
#next { background: var(--band); color: var(--bg); }
#next .qk-eye { color: var(--dim); }
#next .lk-next h3 { color: var(--dim); }
#next .lk-next p, #next .lk-next li { font: 800 clamp(26px, 3.4vw, 44px)/1.1 var(--lk-font-display); letter-spacing: -0.03em; }
#next .lk-next p { color: var(--bg); }
#next a, #next .lk-guide { color: var(--amber); }
#next :focus-visible { outline-color: var(--bg); }

/* Scroll-linked touches, only where the browser supports them. Without them the final state shows. */
@keyframes qk-skid { from { transform: translateX(-28px) skewX(-16deg); } to { transform: skewX(-5deg); } }
@keyframes qk-wipe { from { transform: translateX(-110%); } to { transform: translateX(240%); } }
@keyframes qk-draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes qk-dash { from { transform: translateX(-70%) rotate(-24deg); } to { transform: rotate(-24deg); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .qk-h2::after { animation: qk-draw linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
    .qk-flag i { animation: qk-dash linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @media (min-width: 761px) { .qk-h2 { animation: qk-skid linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; } }
    .qk-try::after, .qk-sec2::after, .qk-stmt::after, .qk-splitwrap::after { animation: qk-wipe linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .qk-board .lk-phase::after { animation: qk-draw linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .qk-bar, .qk-in, .qk-chip, .qk-btn, #items .lk-item, .qk-col .qk-list li { transition: none; }
  #end .qk-list li:hover, #run .qk-list li:hover, #items .lk-item:hover, .qk-col .qk-list li:hover, .qk-board .lk-phase:hover strong { transform: none; }
}

/* ---------- Narrow screens: the hero stacks, the streak sits behind line 2 ---------- */
@media (max-width: 1000px) {
  .qk-hero { --qk-fs: clamp(72px, 18.46vw, 112px); --qk-y2: calc(60px + var(--qk-fs) * 0.95); --qk-st: calc(var(--qk-y2) - var(--qk-fs) * 0.0475); --qk-sh: calc(var(--qk-fs) * 1.045);
    height: auto; padding: 20px 16px 36px; }
  .qk-name { position: relative; inset: auto; z-index: 2; display: block; height: 28px; margin-bottom: 12px; font-size: 22px; line-height: 28px; }
  .qk-headline { position: relative; inset: auto; z-index: 2; display: block; white-space: normal; font-size: var(--qk-fs); line-height: 0.95; }
  .qk-l1, .qk-l2 { display: block; }
  .qk-band { left: 74%; top: calc(var(--qk-st) - var(--qk-sh) * 0.1); height: calc(var(--qk-sh) * 1.2); }
  .qk-streak { left: 20%; width: 73%; top: var(--qk-st); height: var(--qk-sh);
    background: linear-gradient(90deg, rgb(252 79 30 / 0) 0, rgb(252 79 30 / .35) 8%, rgb(252 79 30 / .8) 17%, var(--orange) 27%, var(--orange) 100%); }
  .qk-streak::after { left: 82.2%; }
  .qk-tail { top: calc(var(--qk-st) + var(--qk-sh) / 2 - 2px); }
  .qk-finish { top: calc(var(--qk-y2) - 12px); height: calc(var(--qk-fs) * 0.95 + 24px); }
  .qk-track { left: 20%; top: calc(var(--qk-st) + var(--qk-sh) * 1.1 + 12px); }
  .qk-one { position: static; max-width: none; margin-top: calc(var(--qk-fs) * 0.16 + 36px); font-size: 17px; }
  .qk-actions { position: static; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
  .qk-btn { width: 100%; }
  .qk-link { align-self: flex-start; }
  .qk-status { position: static; }
  .qk-side { position: static; width: auto; margin-top: 28px; }
  .qk-lines { top: 0; bottom: auto; height: calc(var(--qk-st) + var(--qk-sh) * 1.4); }
  .qk-side { width: 100%; max-width: 440px; }
  .qk-watch { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
  .qk-dial { width: 60px; height: 60px; border-width: 2px; }
  .qk-row:first-child dd { font-size: 32px; min-height: 32px; }
  .qk-row:last-child { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .qk-row:last-child dd { text-align: left; }
  .qk-fall li { grid-template-columns: 92px minmax(0, 1fr) 48px; gap: 8px; }
}
@media (max-width: 1000px) {
  .qk-lane { grid-template-columns: 130px minmax(0, 1fr); }
  .qk-rail, .qk-verdict { grid-column: 1 / -1; }
  #items .lk-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .qk-stmt--dark::before { display: none; }
  .qk-money .lk-money td:nth-child(n), .qk-money .lk-money th:nth-child(n) { width: auto; white-space: normal; }
  body { font-size: 16px; line-height: 1.55; }
  .qk-sec2, .qk-try { padding-block: 52px; }
  .qk-stmt { padding-block: 60px; }
  .qk-h2 { margin-bottom: 20px; }
  .qk-h3 { font-size: 19px; }
  .qk-lede { font-size: 17px; margin-bottom: 24px; }
  .qk-lane-l { font-size: 28px; }
  .qk-in { font-size: 36px; }
  .qk-board { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .qk-board .lk-phase:nth-child(even) { padding-left: 16px; padding-right: 8px; }
  .qk-splitwrap { background: none; }
  .qk-split { grid-template-columns: 1fr; }
  .qk-col { padding-block: 52px; }
  .qk-col:first-child { padding-right: var(--qk-gut); margin-inline: calc(-1 * var(--qk-gut)); padding-left: var(--qk-gut); background: var(--band); }
  .qk-col + .qk-col { padding-left: 0; }
  #items .lk-items { grid-template-columns: 1fr; }
  #items .lk-item { min-height: 0; }
  .qk-end { grid-template-columns: 1fr; gap: 28px; }
  .qk-flag { order: -1; }
  .qk-run-grid { grid-template-columns: 1fr; }
  .qk-prompt .lk-prompt-text { font-size: 14px; padding: 14px 16px; }
  .qk-out-row { flex-wrap: wrap; }
}

/* ---------- Diagonal speed language ---------- */
:root { --qk-sl: clamp(28px, 4.4vw, 64px); }
.qk-h2 { transform: skewX(-5deg); transform-origin: 0 100%; }
.qk-h2::after { width: 120px; height: 8px; background: linear-gradient(90deg, var(--orange) 0 70%, transparent 70% 76%, var(--amber) 76% 86%, transparent 86% 91%, var(--orange) 91%); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.qk-eye::before { content: ""; display: inline-block; width: 24px; height: 11px; margin-right: 10px; vertical-align: -1px; background: repeating-linear-gradient(115deg, var(--orange) 0 3px, transparent 3px 7px); }
.qk-col .qk-eye::before { display: none; }
.qk-list li::before { transform: skewX(-22deg); }
.qk-board .lk-phase::after { clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.qk-dash { height: 10px; background: repeating-linear-gradient(115deg, var(--rule) 0 3px, transparent 3px 14px); }
.qk-bar { clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.qk-try { border-bottom: 0; }
.qk-stmt--dark::before { background: linear-gradient(90deg, var(--band), rgb(21 21 21 / 0) 40%), repeating-linear-gradient(162deg, transparent 0 22px, rgb(252 79 30 / .9) 22px 24px, transparent 24px 37px, rgb(253 155 55 / .5) 37px 38px, transparent 38px 61px); }
/* slanted section edges */
.qk-stmt--dark { clip-path: polygon(0 var(--qk-sl), 100% 0, 100% calc(100% - var(--qk-sl)), 0 100%); padding-block: calc(104px + var(--qk-sl)); }
.qk-splitwrap { clip-path: polygon(0 0, 100% var(--qk-sl), 100% 100%, 0 calc(100% - var(--qk-sl))); padding-block: var(--qk-sl); }
#next { clip-path: polygon(0 var(--qk-sl), 100% 0, 100% 100%, 0 100%); padding-top: calc(88px + var(--qk-sl)); }
/* scroll wipe: a diagonal bundle of speed streaks crosses each section behind the text (transform only, parked off-screen at rest) */
.qk-try, .qk-sec2, .qk-stmt, .qk-splitwrap { position: relative; overflow: clip; }
.qk-wrap { position: relative; z-index: 1; }
.qk-try::after, .qk-sec2::after, .qk-stmt::after, .qk-splitwrap::after { content: ""; position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 46%; pointer-events: none; transform: translateX(-110%);
  background: repeating-linear-gradient(166deg, transparent 0 46px, rgb(252 79 30 / .5) 46px 48px, transparent 48px 96px, rgb(253 155 55 / .45) 96px 97px, transparent 97px 150px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 70%, transparent); }
@media (prefers-reduced-motion: reduce) { .qk-try::after, .qk-sec2::after, .qk-stmt::after, .qk-splitwrap::after { display: none; } }
@media (max-width: 760px) {
  .qk-stmt--dark { padding-block: calc(60px + var(--qk-sl)); }
  #next { padding-top: calc(52px + var(--qk-sl)); }
  .qk-flag b { width: 22px; background-size: 11px 11px; }
}
