/* Articles: one readable column with figures that break out of it. Same tokens and marks as the app:
   "/" is a change, "\" (the same mark, mirrored) is a change put back. */
.art { max-width: 1180px; margin: 0 auto; padding: 56px max(20px, env(safe-area-inset-left, 0px)) 0; }
.art-col { max-width: 680px; margin: 0 auto; }
.art-head { max-width: 700px; margin: 0 auto 8px; text-align: left; }
.art-kick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-3); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.art-kick a { color: var(--text-2); }
.art-kick a:hover { color: var(--text); }
.art-kick .sep { opacity: .5; }
.art-head h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.045em; line-height: 1.02; margin: 18px 0 18px; font-weight: 600; text-wrap: balance; }
.art-meta { display: flex; gap: 10px; align-items: center; color: var(--text-3); font-size: 14px; }
.art-meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.art-meta .by img { width: 22px; height: 22px; border-radius: 6px; }

.art-body { font-size: 17px; line-height: 1.7; color: var(--body); }
.art-body > * { max-width: 700px; margin-left: auto; margin-right: auto; }
.art-body p { margin-top: 0; margin-bottom: 20px; }
.art-body .lede { font-size: 21px; line-height: 1.55; color: var(--text-2); margin-top: 28px; margin-bottom: 8px; letter-spacing: -0.01em; }
.art-body h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.2; color: var(--text); margin-top: 64px; margin-bottom: 14px; font-weight: 600; scroll-margin-top: 88px; }
.art-body b, .art-body strong { color: var(--text); font-weight: 600; }
.art-body a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }

/* the marks */
.mk { width: 7px; height: 12px; fill: currentColor; flex: none; }
.mk.undone { transform: scaleX(-1); }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--text-3); display: inline-block; flex: none; }
.aj-tile { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--panel-2); box-shadow: var(--ring); flex: none; }
.aj-tile img { width: 16px; height: 16px; }

/* figures: wider than the text, like a window from the app */
.art-body .art-fig { max-width: 860px; margin: 40px auto 44px; background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--nt-ring), var(--shadow); padding: 22px; position: relative; overflow: hidden; }
.art-fig::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 20% 0%, var(--glow-2), transparent 70%); pointer-events: none; }
.art-fig figcaption { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }

/* hero: one record, three moments */
.tape-head { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 18px; color: var(--text); }
.tape-head .dim { color: var(--text-3); margin-left: auto; font-size: 13px; }
.tape { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tape li { background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--ring); padding: 16px 16px 14px; position: relative; }
.tape li + li::before { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; height: 1px; background: var(--line-2); }
.tape .when { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.tape .when time { margin-left: auto; color: var(--text-3); font: 400 12px var(--mono); }
.tape .agent { box-shadow: var(--ring-2); }
.tape .back { box-shadow: var(--ring-3); background: var(--panel-2); }
.tape dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.tape dt { color: var(--text-3); }
.tape dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.tape s { color: var(--text-3); text-decoration-color: var(--text-3); margin-right: 6px; }
.tape .ok { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }

/* the short answer */
.art-body .verdicts, .prose .verdicts { list-style: none; padding: 0; margin: 24px auto 28px; border-radius: var(--r-lg); box-shadow: var(--ring); overflow: hidden; background: var(--panel); }
.verdicts li { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border-top: 1px solid var(--line); }
.verdicts li:first-child { border-top: 0; }
.v-what { display: grid; gap: 2px; }
.v-what b { font-size: 15.5px; font-weight: 500; }
.v-what small { color: var(--text-3); font-size: 13.5px; line-height: 1.4; }
.v-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: 13px; color: var(--text); box-shadow: var(--ring-2); background: var(--sel); }
.v-read .v-tag { color: var(--text-3); box-shadow: var(--ring); background: none; }
.v-no b { color: var(--text-2); }
.v-no .v-tag { color: var(--text-3); box-shadow: var(--ring); background: none; text-decoration: line-through; text-decoration-color: var(--text-3); }

/* undo checks first */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 4px; right: 4px; top: 30px; height: 1px; background: var(--line-2); }
.steps li { display: grid; grid-template-rows: auto 18px auto; gap: 10px; padding-right: 18px; position: relative; }
.steps time { font: 400 12px var(--mono); color: var(--text-3); }
.steps .mk, .steps .dot, .steps .badge { align-self: center; justify-self: start; background: var(--sheet); position: relative; z-index: 1; }
.steps .mk { color: var(--text); box-shadow: 0 0 0 5px var(--sheet); }
.steps .dot.person { width: 10px; height: 10px; background: var(--text); border-color: var(--text); box-shadow: 0 0 0 5px var(--sheet); }
.steps .badge { font-size: 12px; height: 22px; line-height: 20px; padding: 0 9px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text); background: var(--panel-2); }
.steps p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.steps b { color: var(--text); font-weight: 500; }

/* what no undo can reach */
.art-body .reach { max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px auto 30px; }
.reach > div { padding: 18px; border-radius: var(--r-lg); box-shadow: var(--ring); background: var(--tint); }
.reach b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.reach p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

/* end */
.art-body .art-cta { max-width: 860px; margin: 64px auto 0; display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--ring-2); }
.art-cta b { font-size: 20px; letter-spacing: -0.02em; }
.art-cta p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.art-cta .btn { margin-left: auto; }
.art-more { max-width: 680px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-3); display: flex; justify-content: space-between; gap: 16px; }
.art-more a { color: var(--text-2); }
.art-more a:hover { color: var(--text); }

/* index */
.art-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.art-list a { display: grid; gap: 6px; padding: 22px 24px; border-radius: var(--r-lg); box-shadow: var(--ring); background: var(--panel); transition: box-shadow .15s, background .15s; }
.art-list a:hover { box-shadow: var(--ring-2); background: var(--panel-2); }
.art-list .k { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.art-list b { font-size: 21px; letter-spacing: -0.025em; font-weight: 600; color: var(--text); }
.art-list p { margin: 0; color: var(--text-2); font-size: 15px; }

@media (max-width: 760px) {
  .art { padding-top: 36px; }
  .art-body { font-size: 16.5px; }
  .art-body .lede { font-size: 19px; }
  .art-body .art-fig { padding: 16px; border-radius: var(--r-lg); margin-left: -4px; margin-right: -4px; }
  .tape, .art-body .reach { grid-template-columns: 1fr; }
  .tape li + li::before { left: 50%; top: -12px; width: 1px; height: 12px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps::before { left: 3px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .steps li { grid-template-columns: 18px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; padding-right: 0; }
  .steps li > * { grid-column: 2; }
  .steps .mk, .steps .dot { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: 3px; }
  .steps .badge { grid-column: 2; grid-row: auto; }
  .verdicts li { flex-wrap: wrap; gap: 8px 16px; }
  .v-tag { margin-left: 0; }
  .art-body .art-cta { flex-direction: column; align-items: flex-start; }
  .art-cta .btn { margin-left: 0; }
}
/* the end card holds the waitlist form before the app opens */
.art-body .art-cta:has(form) { flex-direction: column; align-items: stretch; }
.art-cta:has(form) .wl { max-width: 480px; }

@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* ---------- Backa notation: the drawing language for every article ----------
   ○ a person · / an agent's change (ink) · \ put back by Backa (the one warm light) · dashed / can't happen.
   Thin lines on a faint dot grid, numbered figures, nothing else coloured. */
.art { --lamp: #ffb23f; --lamp-soft: rgba(255, 178, 63, .14); --lamp-ink: #2a1a00; }
.notation .cover { max-width: 1100px; margin: 28px auto 0; padding: 0; position: relative; }
.cover-svg { display: block; width: 100%; height: auto; }
.cv-f { fill: var(--text); opacity: .09; }
.cv-k { fill: var(--text); }
.cv-u { fill: var(--lamp); filter: drop-shadow(0 0 10px var(--lamp)) drop-shadow(0 0 24px var(--lamp-soft)); }
.cv-r { fill: none; stroke: var(--text); stroke-width: 3; }
.cv-x { fill: none; stroke: var(--text-3); stroke-width: 2; stroke-dasharray: 4 4; }
.notation .cover figcaption { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 14px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.nt-key { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px auto 0; padding: 12px 18px; max-width: 700px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.nt-key li { display: inline-flex; align-items: center; gap: 8px; }
.nt-key svg { width: 16px; height: 20px; }

.nt-ink { fill: var(--text); }
.nt-lamp { fill: var(--lamp); filter: drop-shadow(0 0 8px var(--lamp-soft)); }
.nt-ring { fill: none; stroke: var(--text); stroke-width: 2.4; }
.nt-x { fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-dasharray: 3 3; }
.nt-card rect, .nt-card path, .nt-card line { fill: none; stroke: var(--text); stroke-width: 1.25; }
.nt-card-lit rect { stroke: var(--lamp); fill: var(--lamp-soft); }
.nt-out rect, .nt-out path { stroke: var(--text-3); stroke-dasharray: 5 4; }
.nt-t { fill: var(--text); font: 600 15px var(--sans); }
.nt-s { fill: var(--text-2); font: 400 14px var(--sans); }
.nt-v { fill: var(--text); font: 600 26px var(--sans); letter-spacing: -.02em; }
.nt-gone { fill: var(--text-3); text-decoration: line-through; }
.nt-m { fill: var(--text-3); font: 500 11px var(--mono); letter-spacing: .1em; }
.nt-lamp-t { fill: var(--lamp); }
.nt-time { stroke: var(--text-3); stroke-width: 1.25; stroke-dasharray: 1 6; stroke-linecap: round; }
.nt-tick { fill: var(--text); }
.nt-arrow { fill: none; stroke: var(--text); stroke-width: 1.4; }
.nt-stop { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.nt-reach { fill: var(--lamp-soft); stroke: var(--lamp); stroke-width: 1.25; stroke-dasharray: 6 5; }
.nt-hand { fill: var(--text-2); font: 600 22px "Caveat", cursive; }

.art-body .fig { max-width: 860px; margin: 40px auto 44px; padding: 26px 26px 18px; border-radius: var(--r-xl); position: relative;
  background-color: var(--sheet); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 18px 18px; box-shadow: var(--ring); }
.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig figcaption { margin-top: 14px; font: 400 12.5px var(--mono); color: var(--text-3); letter-spacing: .02em; }
.fig figcaption b { color: var(--text); font-weight: 500; margin-right: 8px; }

.art-body .nt-list { list-style: none; padding: 0; margin: 22px auto 28px; display: grid; gap: 0; }
.nt-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.nt-list li:last-child { border-bottom: 1px solid var(--line); }
.nt-list svg { width: 20px; height: 24px; flex: none; margin-top: 2px; }
.nt-list span { display: grid; gap: 2px; }
.nt-list b { font-size: 16px; font-weight: 500; }
.nt-list small { color: var(--text-2); font-size: 14.5px; }
.nt-list .off b { color: var(--text-2); }
@media (max-width: 760px) { .art-body .fig { padding: 14px 12px 12px; margin-left: -4px; margin-right: -4px; } .nt-hand { font-size: 26px; } }
@media (max-width: 760px) { .art-body .fig { overflow-x: auto; } .fig svg { min-width: 620px; } .notation .cover { margin-left: -16px; margin-right: -16px; } }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .art { --lamp: #e38a00; --lamp-soft: rgba(227, 138, 0, .12); } }
:root[data-theme="light"] .art { --lamp: #e38a00; --lamp-soft: rgba(227, 138, 0, .12); }

/* ---------- Sketched exploded view: Backa's article drawings (built by sketch.mjs) ----------
   Pencil on paper in light mode, chalk on black in dark mode. Orange only for what Backa does. */
@font-face { font-family: "Reenie Beanie"; src: url("/assets/fonts/reenie-beanie.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:is(.art, .cl, .al, .e404, .pg) { --sk-bg: transparent; --sk-ink: #e9e5dc; --sk-face: var(--bg); --sk-side: rgba(233, 229, 220, .07); --sk-side2: rgba(233, 229, 220, .14); --sk-or: #ff9a2e; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) :is(.art, .cl, .al, .e404, .pg) { --sk-bg: transparent; --sk-ink: #26241f; --sk-face: var(--bg); --sk-side: rgba(38, 36, 31, .07); --sk-side2: rgba(38, 36, 31, .14); --sk-or: #e9790f; } }
:root[data-theme="light"] :is(.art, .cl, .al, .e404, .pg) { --sk-bg: transparent; --sk-ink: #26241f; --sk-face: var(--bg); --sk-side: rgba(38, 36, 31, .07); --sk-side2: rgba(38, 36, 31, .14); --sk-or: #e9790f; }
.sk-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sketched .sk-cover { max-width: 1000px; margin: 32px auto 8px; padding: 0 var(--gut, 20px); }
.art-body .sk { max-width: 800px; margin: 36px auto 40px; }
.art-body .sk figcaption, .sk-cover figcaption { margin-top: 12px; font: 400 26px/1.2 "Reenie Beanie", cursive; color: var(--text-2); text-align: center; }

/* ---------- Article layout v2: wide opening, a pencil divider, contents and reading progress beside the text ---------- */
.a2 { max-width: 1180px; }
.a2-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 8px; }
.a2-hero.no-cover { grid-template-columns: minmax(0, 760px); }
.a2-text { display: grid; gap: 22px; align-content: center; min-width: 0; }
.a2 h1 { font-size: clamp(36px, 4.6vw, 62px); letter-spacing: -0.045em; line-height: 1.02; margin: 0; font-weight: 600; text-wrap: balance; }
.a2-lede { margin: 0; font-size: 20px; line-height: 1.55; color: var(--text-2); letter-spacing: -0.01em; max-width: 560px; }
.a2-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-3); font-size: 14px; }
.a2-meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.a2-meta .by img { width: 22px; height: 22px; border-radius: 6px; }
.a2-meta .sep { opacity: .6; }
.a2-cat { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--r-pill); box-shadow: var(--ring-2); background: var(--sel); color: var(--text); font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-right: 4px; }
.a2-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a2-sh { display: inline-flex; align-items: center; gap: 8px; height: 34px; min-width: 34px; justify-content: center; padding: 0 10px; border-radius: var(--r-pill); border: 0; background: none; box-shadow: var(--ring); color: var(--text-2); font: 500 13px var(--sans); cursor: pointer; transition: color .15s, box-shadow .15s, background .15s; }
.a2-sh:hover { color: var(--text); box-shadow: var(--ring-2); background: var(--sel); }
.a2-sh:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.a2-sh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.a2-sh .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.a2-cover { min-width: 0; }
.a2 .sk-cover { margin: 0; padding: 0; max-width: none; }

.a2-rule { margin: 56px 0 8px; color: var(--text-3); }
.sk-rule { display: block; width: 100%; height: 40px; --sk-ink: var(--text-3); }

.a2-main { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 72px; align-items: start; }
.a2-side { position: relative; height: 100%; }
.a2-stick { position: sticky; top: 96px; display: grid; gap: 22px; padding-top: 52px; }
.a2-prog { display: flex; align-items: baseline; gap: 8px; color: var(--text-3); font: 400 13px var(--mono); }
.a2-pct { font: 600 32px/1 var(--sans); letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; min-width: 2.6ch; }
.a2-toc b { display: block; font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.a2-toc ol { list-style: none; margin: 0; padding: 0 0 0 16px; display: grid; gap: 2px; position: relative; }
.a2-toc ol::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line-2); }
.a2-toc ol::after { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--sk-or); transform-origin: top; transform: scaleY(var(--p, 0)); }
.a2-toc a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.35; color: var(--text-3); transition: color .15s; }
.a2-toc a:hover { color: var(--text-2); }
.a2-toc a[aria-current] { color: var(--text); }
.a2 .art-body > * { margin-left: 0; margin-right: 0; }
.a2 .art-body h2:first-child, .a2 .art-body > :first-child { margin-top: 48px; }
.a2 .art-body .sk { max-width: 760px; }
.a2-bar { display: none; }
.a2 .art-more { max-width: 1012px; }

@media (max-width: 1020px) {
  .a2-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .a2-main { grid-template-columns: minmax(0, 720px); }
  .a2-side { display: none; }
  .a2 .art-body > * { margin-left: auto; margin-right: auto; }
  .a2-bar { display: block; position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; }
  .a2-bar i { display: block; height: 100%; background: var(--sk-or); transform-origin: left; transform: scaleX(0); }
  .a2-rule { margin: 36px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .a2-toc a, .a2-sh { transition: none; } }

/* Systems pages */
.sys-h { display: flex; align-items: center; gap: 14px; }
.sys-h img { flex: none; }
.prose .sys-list { list-style: none; padding: 0; margin: 12px 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sys-list li { margin: 0; }
.sys-list a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); box-shadow: var(--ring); background: var(--panel); text-decoration: none; color: inherit; height: 100%; }
.sys-list a:hover { box-shadow: var(--ring), 0 0 0 1px var(--line); }
.sys-list img { margin-top: 2px; flex: none; }
.sys-list b { display: block; color: var(--text); }
.sys-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; box-shadow: var(--ring); font: 500 11.5px/1.6 var(--sans); font-style: normal; color: var(--text-3); vertical-align: 2px; }
.sys-list small { display: block; color: var(--text-3); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
/* Black logos read as white on the dark theme */
:is(.sys-list, .sys-h) img:is([src$="/notion.svg"], [src$="/github.svg"], [src$="/intercom.svg"], [src$="/vercel.svg"]) { filter: invert(1); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) :is(.sys-list, .sys-h) img { filter: none; } }
:root[data-theme="light"] :is(.sys-list, .sys-h) img { filter: none; }

/* Backy alive. Pure CSS on the drawing's own groups; nothing moves for people who ask for less motion. */
.bky, .bky-eyes, .bky-brows, .bky-pupil { transform-box: fill-box; }
.bky { transform-origin: 50% 100%; animation: bky-hop 7s ease-in-out 1.2s infinite; }
.bky-eyes { transform-origin: 50% 50%; animation: bky-blink 4.3s infinite; }
.bky-pupil { animation: bky-look 9s ease-in-out infinite; }
.bky-brows { animation: bky-brow 9s ease-in-out infinite; }
@keyframes bky-hop {
  0%, 70%, 100% { transform: none; }
  73% { transform: scale(1.04, .94); }
  78% { transform: translateY(-14%) rotate(-3deg); }
  83% { transform: none; }
  85% { transform: scale(1.03, .96); }
  88% { transform: none; }
}
@keyframes bky-blink { 0%, 93%, 100% { transform: none; } 95% { transform: scaleY(.08); } }
@keyframes bky-look {
  0%, 18%, 100% { transform: none; }
  24%, 40% { transform: translate(-50%, -10%); }
  48%, 62% { transform: translate(50%, 6%); }
}
@keyframes bky-brow { 0%, 45%, 100% { transform: none; } 50%, 60% { transform: translateY(-14%); } }
@media (prefers-reduced-motion: reduce) { .bky, .bky-eyes, .bky-pupil, .bky-brows { animation: none; } }

/* /articles/: newest article large, the rest as cards with their cover drawings */
.al { padding-top: 56px; padding-bottom: 110px; }
.al h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.045em; line-height: 1.04; margin: 14px 0 12px; font-weight: 600; max-width: 18ch; }
.al-sub { color: var(--text-2); font-size: 18px; margin: 0 0 28px; }
.al-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.al-cats button { font: 500 14px/1 var(--sans, inherit); padding: 9px 14px; border-radius: 999px; border: 0; box-shadow: var(--ring); background: transparent; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.al-cats button span { color: var(--text-3); margin-left: 4px; font-variant-numeric: tabular-nums; }
.al-cats button:hover { color: var(--text); }
.al-cats button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.al-cats button[aria-pressed="true"] span { color: inherit; opacity: .6; }
/* filtered: plain cards in rows of three, no big lead card */
.al-grid.al-f .al-card { grid-column: span 2; }
.al-grid.al-f .al-big a { flex-direction: column; }
.al-grid.al-f .al-big .al-fig { flex: none; border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 8 / 5; padding: 18px 18px 0; }
.al-grid.al-f .al-big .al-txt { padding: 18px 20px 22px; justify-content: flex-start; }
.al-grid.al-f .al-big .al-txt b { font-size: 18px; letter-spacing: -.015em; line-height: 1.3; }
.al-grid.al-f .al-big .al-txt .d { font-size: 14.5px; }
.al-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.al-card { grid-column: span 2; }
.al-half { grid-column: span 3; }
.al-card a { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-lg); box-shadow: var(--ring); background: var(--panel); color: inherit; text-decoration: none; overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease-out); }
.al-card a:hover { box-shadow: var(--ring), 0 18px 40px -24px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.al-fig { display: block; padding: 18px 18px 0; aspect-ratio: 8 / 5; border-bottom: 1px solid var(--line); --sk-face: var(--panel); }

.al-fig svg { width: 100%; height: 100%; }
.al-txt { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.al-txt .k { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.al-txt b { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.al-txt .d { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.al-big { grid-column: 1 / -1; }
.al-big a { flex-direction: row; align-items: stretch; }
.al-big .al-fig { flex: 1.3; border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; padding: 28px; }
.al-big .al-txt { flex: 1; justify-content: center; padding: 36px 40px; }
.al-big .al-txt b { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.15; }
.al-big .al-txt .d { font-size: 16px; }
@media (max-width: 980px) { .al-card, .al-half { grid-column: span 3; } }
@media (max-width: 640px) {
  .al-card, .al-half { grid-column: 1 / -1; }
  .al-big a { flex-direction: column; }
  .al-big .al-fig { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; aspect-ratio: 8 / 5; }
  .al-big .al-txt { padding: 20px; }
}
@media (max-width: 980px) { .al-grid.al-f .al-card { grid-column: span 3; } }
@media (max-width: 640px) { .al-grid.al-f .al-card { grid-column: 1 / -1; } }

/* Videos (site/data/videos.json): poster is the intro card, native controls, nothing loads until play. */
.vid { margin: 0; min-width: 0; }
.vid video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #000; box-shadow: var(--ring), var(--card-lift); }
.vid figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.vid figcaption b { font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.vid figcaption span { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; padding-top: 2px; }
.art-body .vid { max-width: 760px; margin: 36px auto 40px; }
.vid-frame { position: relative; }
.vid-play { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0,0,0,0); cursor: pointer; border-radius: var(--r-lg); transition: background .15s; }
.vid-play:hover { background: rgba(0,0,0,.12); }
.vid-play:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.vid-play svg { display: none; }
.vid figcaption b { display: inline-flex; align-items: center; gap: 8px; }
.vid figcaption b::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 0a12 12 0 1 1 0 24a12 12 0 1 1 0-24zM9.5 7v10l8-5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 0a12 12 0 1 1 0 24a12 12 0 1 1 0-24zM9.5 7v10l8-5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.vid.playing figcaption b::before { opacity: .35; }
.vid.playing .vid-play { display: none; }
