/* Findable page. Palette and type: briefs/findable.md "Design". Motif: card-catalogue drawer (CSS + inline SVG, image pixel units scaled by --p). */
:root {
  --bg: #FEFEFE; --ink: #141414; --muted: #5A5E6B; --rule: #E3E4EA; --paper: #F3F3FB;
  --indigo: #1A1C9C; --lit: #2526CE; --deep: #0F0D80; --magenta: #D4188A; --magenta-ink: #B0146F; --well: #0C1648;
  --lit-back: #2E32DA; --side: #141395; --wall: #EEEEF0; --bar: #DCDDDE; --white: #FFFFFF;
  --lk-bg: var(--bg); --lk-panel: var(--paper); --lk-ink: var(--ink); --lk-muted: var(--muted); --lk-line: var(--rule);
  --lk-main: var(--indigo); --lk-on-main: var(--white); --lk-link: var(--indigo); --lk-focus: var(--magenta); --lk-accent: var(--indigo);
  --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-radius: 6px; --lk-max: 1120px; --lk-gutter: 16px;
  --fn-gut: clamp(24px, 6.67vw, 96px);
  --hh: max(min(calc(100svh - var(--lk-bar)), 800px), 640px);
  --p: min(calc(100vw / 1344), calc(var(--hh) / 752));
}
body { font-size: 18px; line-height: 1.6; }
a:hover { color: var(--lit); }
code { font: 500 0.88em/1.4 var(--lk-font-mono); }

/* ---------- Hero ---------- */
.fn-hero { position: relative; overflow: clip; min-height: var(--hh); --drawer: 1; --card: 1; --bub: 1; }
html.lk-js:not(.lk-reduced) .fn-hero { --drawer: 0; --card: 0; --bub: 0; }
.fn-copy { position: relative; z-index: 2; width: 50%; padding: calc(var(--hh) * 0.09) 0 48px var(--fn-gut); }
.fn-h1 { font-family: var(--lk-font-display); color: var(--ink); }
.fn-name { display: block; font: 600 20px/1.2 var(--lk-font-display); margin-bottom: calc(var(--hh) * 0.17); }
.fn-l { display: block; font-weight: 600; font-size: min(100px, 6.94vw); line-height: 1.04; letter-spacing: -0.01em; white-space: nowrap; }
.fn-one { margin-top: 16px; max-width: 34ch; font-size: 21px; line-height: 1.45; color: var(--muted); }
.fn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.fn-btn { min-height: 0; padding: 20px 40px; border: 0; border-radius: 4px; background: var(--indigo); color: var(--white); font-size: 19px; font-weight: 600; line-height: 1.2; }
.fn-btn:hover { background: var(--lit); color: var(--white); }
.fn-btn:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
.fn-link { font-size: 17px; font-weight: 500; text-decoration-thickness: 2px; }
.fn-status { flex-basis: 100%; font-size: 15px; min-height: 0; }
.fn-status:empty { display: none; }

/* Scene: image pixels (1344 x 752) times --p. Bleeds off the right and bottom edges, no floor. */
.fn-scene { position: absolute; z-index: 1; right: 0; bottom: 0; width: calc(1344 * var(--p)); height: calc(752 * var(--p)); pointer-events: none; --bs: 1; }
.fn-world { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.fn-cab { position: absolute; left: 0; top: 0; width: calc(1500 * var(--p)); height: calc(800 * var(--p)); max-width: none; overflow: visible; }
.fn-st-lit { stop-color: var(--lit); } .fn-st-back { stop-color: var(--lit-back); }
.fn-st-indigo { stop-color: var(--indigo); } .fn-st-deep { stop-color: var(--deep); }
.fn-drop { flood-color: var(--well); flood-opacity: 0.35; }
.fn-top { fill: url(#fn-gt); }
.fn-side { fill: var(--side); }
.fn-front { fill: url(#fn-gf); }
.fn-slot { fill: var(--well); }
.fn-line { fill: none; stroke: var(--white); stroke-opacity: 0.45; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.fn-knob { fill: var(--white); }
.fn-handle { fill: var(--white); }
.fn-handle-s { fill: var(--bar); }
.fn-wallA { fill: var(--wall); }
.fn-floor, .fn-wallR { fill: var(--white); }
/* Walls and floor are swept out of the cabinet by the drawer travel: far edge fixed, near edge follows the drawer */
.fn-wallA { transform: matrix(calc(var(--drawer) * -153), calc(var(--drawer) * 66), 0, 70, 916, 325); }
.fn-floor { transform: matrix(calc(var(--drawer) * -153), calc(var(--drawer) * 66), 146, 29, 916, 385); }
.fn-wallR { transform: matrix(calc(var(--drawer) * -153), calc(var(--drawer) * 66), 0, 143, 1215, 372); }
.fn-drawer { transform: translate(calc((1 - var(--drawer)) * 160px), calc((1 - var(--drawer)) * -66px)); }
.fn-pface { fill: var(--indigo); }
.fn-plip { fill: var(--lit); }
.fn-pline { fill: none; stroke: var(--white); stroke-opacity: 0.45; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.fn-cardface { fill: var(--magenta); }
.fn-cardline { fill: var(--white); }
.fn-card { transform: translateY(calc((1 - var(--card)) * 215px)) rotate(calc(var(--card) * 8deg)); }
.fn-lift { transition: transform 0.3s ease; }
.fn-hero:has(.fn-actions .fn-btn:is(:hover, :focus-visible)) .fn-lift { transform: translateY(-8px); }

.fn-bubble { position: absolute; left: calc(1047 * var(--p)); top: calc(208 * var(--p)); width: calc(135 * var(--p)); height: calc(60 * var(--p)); background: var(--white); border-radius: 10px; filter: drop-shadow(0 6px 16px rgba(20, 20, 60, 0.12));
  opacity: var(--bub); transform-origin: calc(26 * var(--p)) calc(72 * var(--p)); transform: scale(calc(var(--bs) * (0.9 + 0.1 * var(--bub)))); font-size: calc(14 * var(--p)); }
.fn-bubble::after { content: ""; position: absolute; left: calc(18 * var(--p)); top: calc(100% - 1px); width: calc(22 * var(--p)); height: calc(12 * var(--p)); background: var(--white); clip-path: polygon(0 0, 100% 0, 25% 100%); }
.fn-bubble-t { position: absolute; left: 11%; top: calc(11 * var(--p)); font-weight: 500; line-height: 1.3; color: var(--ink); white-space: nowrap; }
.fn-bar { position: absolute; left: 11%; top: calc(37 * var(--p)); width: 75%; height: max(2px, calc(3 * var(--p))); background: var(--bar); transition: width 0.3s ease; }
.fn-hero:has(.fn-actions .fn-btn:is(:hover, :focus-visible)) .fn-bar { width: 78%; }

.fn-toggle { position: absolute; z-index: 3; left: 52%; top: 84%; padding: 4px 2px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.fn-toggle[hidden] { display: none; }
.fn-toggle:hover { color: var(--indigo); text-decoration-color: currentColor; }
.fn-toggle:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

/* ---------- Below the hero: one catalogue, read top to bottom ----------
   Order: what, why, try, when, agent + you, items, money, end, run, terms, next.
   Sections are ruled sheets and bands, not stacked cards. Tabs are square (2-4px). */
:root { --lk-dock-bg: var(--indigo); --lk-dock-ink: var(--white); }
body { counter-reset: fnsec; }
.fn-wrap { width: 100%; max-width: calc(1120px + 2 * var(--fn-gut)); margin-inline: auto; padding-inline: var(--fn-gut); }
.fn-sec { position: relative; padding-block: 96px; scroll-margin-top: 16px; }
.fn-sec p { max-width: 68ch; }
.fn-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 600 14px/1 var(--lk-font-mono, ui-monospace, Consolas, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta-ink); }
.fn-eyebrow::before { counter-increment: fnsec; content: "FN." counter(fnsec, decimal-leading-zero); padding: 6px 8px; border-radius: 2px; background: var(--indigo); color: var(--white); letter-spacing: 0.04em; }
.fn-h2 { font: 600 clamp(34px, 5vw, 64px)/1.04 var(--lk-font-display); letter-spacing: -0.02em; margin-bottom: 24px; text-wrap: balance; max-width: 18ch; }
.fn-h3 { font: 600 22px/1.25 var(--lk-font-display); margin-bottom: 12px; }
.fn-lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin-bottom: 36px; }
.fn-big { font-size: 24px; line-height: 1.5; letter-spacing: -0.005em; }
.fn-list { list-style: none; }
.fn-list li { position: relative; padding-left: 22px; max-width: 64ch; }
.fn-list li + li { margin-top: 10px; }
.fn-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--indigo); }
.fn-ghost { padding: 10px 18px; border: 2px solid var(--indigo); border-radius: 3px; background: var(--white); color: var(--indigo); font: 600 15px/1.2 var(--lk-font-body); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.fn-ghost:hover { background: var(--indigo); color: var(--white); transform: translateY(-2px); }
.fn-ghost:active { transform: translateY(0) scale(0.97); }
.fn-ghost:focus-visible, .fn-btn:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.fn-btn { transition: background 0.2s, transform 0.2s; }
.fn-btn:active { transform: scale(0.97); }
.fn-btn--sm { padding: 14px 28px; font-size: 17px; }
.fn-btn:disabled { background: var(--muted); cursor: not-allowed; opacity: 0.85; }

/* what: editorial sheet, the three lenses are index dividers with staggered tabs */
.fn-what-sec { border-top: 1px solid var(--rule); }
.fn-what { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.fn-lenses { list-style: none; display: grid; gap: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.fn-lens { position: relative; padding: 40px 0 18px; border-top: 2px solid var(--ink); color: var(--muted); font-size: 17px; line-height: 1.4; transition: background 0.25s, padding-left 0.25s; }
.fn-lens:hover { background: var(--paper); padding-left: 10px; }
.fn-lens-t { position: absolute; top: -2px; left: 0; padding: 6px 14px 7px; border-radius: 0 0 3px 3px; background: var(--magenta-ink); color: var(--white); font: 600 14px/1 var(--lk-font-display); letter-spacing: 0.02em; }
.fn-lens:nth-child(2) .fn-lens-t { left: 33%; background: var(--indigo); }
.fn-lens:nth-child(3) .fn-lens-t { left: 66%; background: var(--deep); }

/* why: full-bleed indigo band, statement left, the stamp right */
.fn-why-sec { background: var(--indigo); color: var(--white); }
.fn-why-sec .fn-eyebrow { color: var(--white); }
.fn-why-sec .fn-eyebrow::before { background: var(--white); color: var(--indigo); }
.fn-why-sec a, .fn-why-sec a:hover { color: var(--white); text-decoration-thickness: 2px; }
.fn-why-sec :focus-visible { outline-color: var(--white); }
.fn-why { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "eye eye" "h2 big" ". stamp"; gap: 0 64px; align-items: start; }
.fn-why .fn-eyebrow { grid-area: eye; }
.fn-why .fn-h2 { grid-area: h2; margin: 0; }
.fn-why .fn-big { grid-area: big; max-width: 40ch; }
.fn-stamp { grid-area: stamp; justify-self: end; margin-top: 36px; padding: 10px 20px; border: 4px solid var(--white); border-radius: 2px; color: var(--white); font: 700 30px/1 var(--lk-font-mono, ui-monospace, Consolas, monospace); letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-6deg); }
.fn-sec.in .fn-stamp { animation: fn-stamp 0.5s 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) backwards; }
@keyframes fn-stamp { from { transform: rotate(-6deg) scale(2.2); } }

/* try: the snippet preview workbench */
.fn-try-sec { background: var(--paper); border-bottom: 1px solid var(--rule); }
.fn-try { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.fn-form { padding: 28px; background: var(--white); border: 1px solid var(--rule); border-top: 6px solid var(--indigo); border-radius: 2px; }
.fn-field { margin-bottom: 18px; }
.fn-field label { display: block; margin-bottom: 6px; font: 600 14px/1.2 var(--lk-font-body); color: var(--ink); }
.fn-field input, .fn-field textarea { display: block; width: 100%; padding: 12px 14px; border: 2px solid var(--rule); border-radius: 3px; background: var(--white); color: var(--ink); font: 400 17px/1.4 var(--lk-font-body); transition: border-color 0.2s; }
.fn-field textarea { resize: vertical; min-height: 104px; }
.fn-field input:hover, .fn-field textarea:hover { border-color: var(--indigo); }
.fn-field input:focus-visible, .fn-field textarea:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-color: var(--indigo); }
.fn-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.fn-form-row--go { margin: 20px 0 0; }
.fn-fit { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.fn-fit li { display: flex; gap: 8px; align-items: baseline; }
.fn-fit li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #0A7A3E; transform: translateY(1px); }
.fn-fit li.cut::before { background: var(--magenta-ink); border-radius: 1px; transform: rotate(45deg) translateY(1px); }
.fn-fit li.cut { color: var(--magenta-ink); font-weight: 600; }
.fn-copied { font-weight: 600; color: #0A6B38; font-size: 15px; }
.fn-cards { display: grid; gap: 0; min-width: 0; border-top: 2px solid var(--ink); }
.fn-pv { margin: 0; min-width: 0; padding: 18px 0 22px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.fn-pv figcaption { margin: 4px 0 0; font: 600 12px/1.35 var(--lk-font-mono, ui-monospace, Consolas, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fn-serp, .fn-social, .fn-ai { max-width: 600px; padding: 16px 18px; background: var(--white); border: 1px solid var(--rule); border-radius: 4px; transition: transform 0.25s; }
.fn-serp:hover, .fn-social:hover, .fn-ai:hover { transform: translateX(6px); }
.fn-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.fn-fav { width: 22px; height: 22px; border-radius: 50%; background: var(--magenta); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 11px var(--magenta); }
.fn-serp-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 20px/1.3 var(--lk-font-body); color: var(--indigo); }
.fn-serp-desc, .fn-social-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fn-social { display: grid; grid-template-columns: 132px minmax(0, 1fr); padding: 0; overflow: hidden; }
.fn-social-img { min-height: 104px; background: linear-gradient(135deg, var(--indigo) 0 55%, var(--magenta) 55% 100%); position: relative; }
.fn-social-img::after { content: ""; position: absolute; left: 22px; top: 18px; width: 48px; height: 56px; background: var(--white); border-radius: 2px; transform: rotate(8deg); }
.fn-social-body { padding: 14px 18px 16px; background: var(--paper); min-width: 0; }
.fn-social-site { font: 600 12px/1 var(--lk-font-mono, ui-monospace, Consolas, monospace); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fn-social-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 6px; font: 600 18px/1.3 var(--lk-font-display); color: var(--ink); }
.fn-ai { background: var(--well); border-color: var(--well); color: var(--white); }
.fn-ai-q { margin-bottom: 10px; padding: 4px 0 4px 10px; border-left: 3px solid var(--magenta); font: 600 14px/1.3 var(--lk-font-mono, ui-monospace, Consolas, monospace); }
.fn-ai-a { font-size: 17px; line-height: 1.55; }
.fn-cite { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; padding: 0 8px 0 0; border-radius: 2px; background: var(--white); color: var(--indigo); font-size: 14px; font-weight: 600; vertical-align: baseline; }
.fn-cite-n { display: grid; place-items: center; width: 20px; height: 22px; border-radius: 2px 0 0 2px; background: var(--magenta-ink); color: var(--white); font-size: 12px; }
.fn-empty { font-style: italic; }

/* when: a ruler timeline; the counts sit on the rule, the notes hang under their phase */
.fn-cabinet { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin-top: 8px; border-top: 3px solid var(--indigo); }
.fn-cabinet .lk-phase { position: relative; display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 22px 24px 0 0; border: 0; border-radius: 0; background: none; color: var(--ink); }
.fn-cabinet .lk-phase::before { content: ""; position: absolute; left: 0; top: -12px; width: 3px; height: 21px; background: var(--indigo); }
.fn-cabinet strong { order: -1; font: 600 clamp(56px, 7vw, 96px)/0.95 var(--lk-font-display); letter-spacing: -0.03em; color: var(--indigo); font-variant-numeric: tabular-nums; }
.fn-cabinet .fn-step-l { align-self: stretch; margin-top: 10px; color: var(--ink); font: 600 14px/1.25 var(--lk-font-mono, ui-monospace, Consolas, monospace); letter-spacing: 0.08em; text-transform: uppercase; }
.fn-cabinet .fn-step-l::after { content: ""; display: block; width: 100%; height: 6px; margin-top: 12px; background: var(--magenta); clip-path: inset(0 calc(100% - var(--r, 0) * 100%) 0 0); transition: clip-path 1s cubic-bezier(0.22, 0.9, 0.24, 1) 0.25s; }
html.lk-js:not(.lk-reduced) .fn-sec:not(.in) .fn-cabinet .fn-step-l::after { clip-path: inset(0 100% 0 0); }
.fn-when { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; }
.fn-when > div:first-child { grid-column: 2; }
.fn-when > div { padding: 0 24px 0 0; }
.fn-when .fn-h3 { font-size: 18px; }
.fn-when p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* agent + you: one split sheet, ruled down the middle */
.fn-pair--talk { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-block: 0 24px; }
.fn-talk { padding: 44px 48px 52px 0; border-top: 3px solid var(--ink); }
.fn-talk + .fn-talk { padding: 44px 0 52px 48px; border-left: 1px solid var(--rule); }
.fn-talk .fn-eyebrow { margin-bottom: 14px; }
.fn-talk .fn-h3--card { margin-bottom: 26px; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.015em; }
.fn-talk .fn-eyebrow::before { content: counter(fnsec, decimal-leading-zero); counter-increment: none; }
#you .fn-eyebrow::before { background: var(--magenta-ink); }
#you .fn-list li::before { background: var(--magenta-ink); }
.fn-talk .fn-list li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule); }
.fn-talk .fn-list li + li { margin-top: 0; }
.fn-talk .fn-list li::before { top: 1.45em; }

/* items: a two-column card index; each line is a catalogue entry, not a card */
#items { background: var(--paper); border-block: 1px solid var(--rule); }
#items .lk-filter { border-radius: 2px; background: var(--white); }
#items .lk-filter[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
#items .lk-items { list-style: none; margin: 28px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
#items .lk-items [hidden] { display: none !important; }
#items .lk-items .lk-cat { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 14px; margin: 40px 0 0; padding: 0 0 10px; border: 0; border-bottom: 3px solid var(--ink); background: none; font: 600 28px/1.1 var(--lk-font-display); letter-spacing: -0.01em; color: var(--ink); }
#items .lk-items .lk-cat:first-child { margin-top: 8px; }
#items .lk-items .lk-cat::before { content: ""; flex: none; width: 14px; height: 14px; margin-bottom: 6px; background: var(--magenta); }
#items .lk-item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "id title when" "id who when"; align-items: baseline; gap: 2px 14px; margin: 0; padding: 14px 10px 14px 0; background: none; border: 0; border-bottom: 1px solid #C9CBD6; border-radius: 0; scroll-margin-top: 80px; transition: background 0.2s, padding-left 0.2s; }
#items .lk-item:hover, #items .lk-item:target { background: var(--white); padding-left: 10px; box-shadow: inset 4px 0 0 var(--indigo); }
#items .lk-item[data-who="founder"]:hover, #items .lk-item[data-who="founder"]:target { box-shadow: inset 4px 0 0 var(--magenta-ink); }
#items .lk-id { grid-area: id; font: 600 13px/1.4 var(--lk-font-mono, ui-monospace, Consolas, monospace); letter-spacing: 0.04em; color: var(--indigo); }
#items .lk-title { grid-area: title; font: 600 18px/1.3 var(--lk-font-display); color: var(--ink); }
#items .lk-who { grid-area: who; justify-self: start; padding: 0; font-size: 14px; font-weight: 600; color: var(--indigo); }
#items .lk-item[data-who="founder"] .lk-who { color: var(--magenta-ink); }
#items .lk-who::before { content: "\2192\00a0"; }
#items .lk-when { grid-area: when; align-self: start; padding: 2px 0 0; font: 600 12px/1.3 var(--lk-font-mono, ui-monospace, Consolas, monospace); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* money: a ledger, the catch column marked */
#money .lk-table-wrap { border: 0; border-top: 3px solid var(--ink); border-radius: 0; }
#money .lk-money th { background: none; color: var(--muted); border-bottom: 1px solid var(--ink); }
#money .lk-money td { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
#money .lk-money tbody tr { transition: background 0.2s; }
#money .lk-money tbody tr:hover { background: var(--paper); }
#money .lk-money td:first-child { font: 600 18px/1.25 var(--lk-font-display); width: 15%; }
#money .lk-money td:nth-child(3) { box-shadow: inset 3px 0 0 var(--magenta); padding-left: 16px; }
#money .lk-money td:nth-child(5) { white-space: nowrap; color: var(--muted); font-size: 13px; }
#money .lk-money td:nth-child(6) { width: 17%; font-size: 13px; color: var(--muted); }

/* end: the filled-in catalogue card lying across the plate */
.fn-plate { display: block; overflow: hidden; border-radius: 2px; }
.fn-plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.fn-end { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: min(820px, 100%); margin: -96px 0 0 auto; padding: 40px 36px 44px; background-color: var(--white); border: 1px solid var(--rule); border-top: 6px solid var(--magenta); border-radius: 2px; box-shadow: 0 24px 44px -22px rgba(12, 22, 72, 0.6); }
.fn-end .fn-h3 { font-size: 20px; }
.fn-end p { color: var(--muted); }

/* run: a dark band, the prompt as the hero of it */
#run { background: var(--well); color: var(--white); }
#run .fn-eyebrow { color: var(--white); }
#run .fn-eyebrow::before { background: var(--magenta-ink); }
#run .fn-lede, #run .fn-note { color: #C9CDE6; }
#run .lk-run-note { color: #C9CDE6; }
#run a { color: var(--white); }
#run :focus-visible { outline-color: var(--white); }
#run code { color: var(--white); }
#run .fn-list li::before { background: var(--magenta); }
.fn-prompt { margin-bottom: 48px; max-width: 900px; }
.fn-prompt .lk-prompt-text { padding: 22px 24px; border: 1px solid #2B3770; border-left: 8px solid var(--magenta); border-radius: 2px; background: #060C2E; color: var(--white); font-size: 17px; }
#run .fn-btn { background: var(--white); color: var(--indigo); }
#run .fn-btn:hover { background: var(--paper); color: var(--deep); }
#run .lk-copy-status { color: var(--white); }
.fn-run-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.fn-run-grid > div { padding-top: 22px; border-top: 2px solid var(--white); }
.fn-files code { display: block; }
.fn-note { margin-top: 14px; font-size: 16px; color: var(--muted); }
.lk-filter:focus-visible { border-radius: 2px; }

/* terms: a dictionary in three columns, letters hung in the margin */
#terms .lk-terms { display: block; columns: 3 260px; column-gap: 48px; margin: 32px 0 0; padding-top: 8px; border-top: 3px solid var(--ink); }
#terms .lk-terms > div { position: relative; break-inside: avoid; margin: 0; padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
#terms .lk-terms > div:target { background: var(--paper); }
#terms .lk-terms dt { margin: 0 0 4px; font: 600 17px/1.25 var(--lk-font-display); color: var(--ink); }
#terms .lk-terms dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
#terms .lk-terms > div[data-l]::before { content: attr(data-l); display: block; margin: 10px 0 6px; font: 600 30px/1 var(--lk-font-display); color: var(--magenta-ink); }

/* next: two drawers either side, an arrow between */
#next { border-top: 1px solid var(--rule); }
#next .lk-next { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: start; margin-top: 8px; }
#next .lk-next::before { content: "\2192"; grid-column: 2; grid-row: 1; align-self: center; font: 600 48px/1 var(--lk-font-display); color: var(--magenta-ink); }
#next .lk-next > div { padding-top: 18px; border-top: 3px solid var(--indigo); }
#next .lk-next > div:first-child { grid-column: 1; grid-row: 1; }
#next .lk-next > div:last-child { grid-column: 3; grid-row: 1; }
#next .lk-next .lk-guide { font: 600 26px/1.2 var(--lk-font-display); }

/* ---------- Motion ---------- */
@keyframes fn-rise { from { transform: translateY(30px) scale(0.985); } }
html.lk-js:not(.lk-reduced) .fn-sec:not(.in) .fn-r { transform: translateY(30px) scale(0.985); }
html.lk-js:not(.lk-reduced) .fn-sec.in .fn-r { animation: fn-rise 0.7s cubic-bezier(0.22, 0.9, 0.24, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    body::before { content: ""; position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 4px; background: var(--magenta); transform-origin: 0 50%; transform: scaleX(0); animation: fn-prog linear both; animation-timeline: scroll(root); pointer-events: none; }
    .fn-plate img { animation: fn-drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes fn-prog { to { transform: scaleX(1); } }
@keyframes fn-drift { from { transform: scale(1.18) translateY(-4%); } to { transform: scale(1.18) translateY(4%); } }

/* ---------- Phones and narrow screens ---------- */
@media (max-width: 1000px) {
  .fn-try { grid-template-columns: 1fr; }
  .fn-what { grid-template-columns: 1fr; gap: 40px; }
  #items .lk-items { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --fn-gut: 16px; }
  body { font-size: 16px; line-height: 1.55; }
  .fn-hero { min-height: 0; overflow-x: clip; padding-bottom: 12px; }
  .fn-copy { width: auto; padding: 20px var(--fn-gut) 0; }
  .fn-name { margin-bottom: 18px; }
  .fn-l { font-size: 44px; line-height: 1.06; }
  .fn-one { margin-top: 18px; font-size: 17px; }
  .fn-actions { margin-top: 24px; gap: 14px 20px; }
  .fn-actions .fn-btn { width: 100%; }
  .fn-scene { position: relative; right: auto; bottom: auto; width: 100vw; height: 86vw; margin-top: 12px; overflow: hidden; --p: 0.165vw; --bs: 1.5; }
  .fn-world { left: calc(8vw - 752 * var(--p)); top: calc(14vw - 207 * var(--p)); }
  .fn-bubble { font-size: calc(14 * var(--p)); }
  .fn-toggle { position: static; display: block; margin: 8px var(--fn-gut) 0; }
  .fn-sec { padding-block: 56px; }
  .fn-h2 { font-size: 34px; max-width: none; }
  .fn-h3 { font-size: 19px; }
  .fn-lede { font-size: 17px; margin-bottom: 24px; }
  .fn-big { font-size: 20px; }
  .fn-lens { padding-top: 38px; }
  .fn-lens:nth-child(2) .fn-lens-t, .fn-lens:nth-child(3) .fn-lens-t { left: 0; }
  .fn-why { grid-template-columns: 1fr; grid-template-areas: "eye" "h2" "big" "stamp"; gap: 20px; }
  .fn-stamp { justify-self: start; margin: 18px 0 6px 6px; font-size: 22px; }
  .fn-form { padding: 20px 16px; }
  .fn-pv { grid-template-columns: 1fr; gap: 8px; }
  .fn-social { grid-template-columns: 96px minmax(0, 1fr); }
  .fn-cabinet { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .fn-cabinet .lk-phase { padding-right: 16px; }
  .fn-cabinet .lk-phase:nth-child(n+3)::before { top: -16px; }
  .fn-cabinet .lk-phase:nth-child(n+3) { border-top: 3px solid var(--indigo); padding-top: 22px; margin-top: -3px; }
  .fn-when { grid-template-columns: 1fr; gap: 20px; }
  .fn-when > div:first-child { grid-column: auto; }
  .fn-when > div { padding: 0 0 0 16px; border-left: 3px solid var(--magenta); }
  .fn-pair--talk { grid-template-columns: 1fr; }
  .fn-talk, .fn-talk + .fn-talk { padding: 36px 0 32px; border-left: 0; }
  #items .lk-item { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "id title" "id who" "id when"; }
  #items .lk-when { text-align: left; padding-top: 2px; }
  #items .lk-items .lk-cat { font-size: 23px; }
  #money .lk-table-wrap { border-top-width: 3px; }
  #money .lk-money td:first-child, #money .lk-money td:nth-child(6) { width: auto; }
  #money .lk-money td:nth-child(3) { box-shadow: none; padding-left: 0; }
  .fn-end { grid-template-columns: 1fr; margin: -32px 0 0; padding: 32px 20px 36px; }
  .fn-run-grid { grid-template-columns: 1fr; gap: 32px; }
  .fn-prompt .lk-prompt-text { font-size: 14px; padding: 16px; }
  #terms .lk-terms { columns: 1; }
  #next .lk-next { grid-template-columns: 1fr; gap: 24px; }
  #next .lk-next::before { display: none; }
  #next .lk-next > div:first-child, #next .lk-next > div:last-child { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fn-lift, .fn-bar { transition: none; }
  .fn-hero { --drawer: 1; --card: 1; --bub: 1; }
  .fn-sec *, .fn-sec *::before, .fn-sec *::after { transition: none !important; animation: none !important; }
}
