/* Leinaki skin for the WordPress pages (3 Dec 2026, ALLEINA-103732). Design source: leinaki.de
   (alleina-ai-app logs/leinaki/site/site.css, "ink and signal").
   Loaded on every template by inc/leinaki.php. Everything is under "lk-" classes, so a Tailwind page keeps its own
   look and only takes the shared header and footer. Skin pages (body.lk) take the whole design and no Tailwind.
   Colour follows the theme's own switch, html.dark (set by alleina_color_scheme_script before first paint).
   Motion: transform, opacity and stroke-dashoffset only. html.lk-sda = scroll-driven CSS; html.lk-io = leinaki.js
   adds .in; neither under prefers-reduced-motion, where every element rests in its finished state. */

:root{
  --lk-ink:#0f131a; --lk-blue:#518de1; --lk-blue-deep:#3f7bd2; --lk-lime:#8BC34A; --lk-amber:#F5A623;
  --lk-text:#0f131a; --lk-muted:#536d93; --lk-bg:#f6f7f8; --lk-surface:#ffffff; --lk-line:#e8ecf2;
  --lk-ring:rgba(15,19,26,.08); --lk-link:#2f6fc9;
  --lk-h1:clamp(2.25rem,1.4rem + 3.4vw,3.75rem); --lk-h2:clamp(1.5rem,1.1rem + 1.4vw,2.125rem);
  --lk-body:1.0625rem; --lk-small:.875rem;
  --lk-ease:cubic-bezier(.22,1,.36,1);
  --lk-font:Manrope,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
html.dark{
  --lk-text:#eef2f8; --lk-muted:#a3b1c6; --lk-bg:#0f131a; --lk-surface:#161b24; --lk-line:#263042;
  --lk-ring:rgba(255,255,255,.08); --lk-link:#8fb6ee;
}

/* Cross-document view transitions: a plain cross-fade between pages where the browser supports it (Chrome, Edge,
   Safari; Firefox ignores the rule). modern-web-guidance "cross-document-transitions": off under reduced motion. */
@media (prefers-reduced-motion:no-preference){@view-transition{navigation:auto}}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}

/* ── Skin pages ─────────────────────────────────────────────────────────────────────────────────────────────── */
html:has(body.lk){scroll-padding-top:88px;-webkit-text-size-adjust:100%}
html.dark:has(body.lk){color-scheme:dark}
html:not(.dark):has(body.lk){color-scheme:light}
body.lk{margin:0;background:var(--lk-bg);color:var(--lk-text);font:400 var(--lk-body)/1.65 var(--lk-font);
  font-size-adjust:from-font;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
/* Base resets carry zero specificity (:where), so every component rule below, and the legal documents' own
   styles (inc/legal-documents.php), win over them. */
:where(body.lk) *,:where(body.lk) *::before,:where(body.lk) *::after{box-sizing:border-box}
:where(body.lk) :is(img,svg,video){display:block;max-width:100%}
:where(body.lk) img{height:auto}
:where(body.lk) a{color:inherit}
:where(body.lk) :is(h1,h2,h3){margin:0;text-wrap:balance;line-height:1.15;letter-spacing:-.02em}
:where(body.lk) p{margin:0}
:where(body.lk) :focus-visible{outline:2px solid var(--lk-blue);outline-offset:3px;border-radius:6px}
:where(body.lk) main{display:block}
/* German compounds ("Rechtsschutzversicherungsgesellschaften") must wrap, never run out of their card: measured
   clipped at 390 px before this rule. No hyphens:auto: the posts are often English on a German page, and German
   rules then split English words ("Adop-ting", measured). */
.lk-card :is(h2,h3,p),.lk-feature :is(h2,p),.lk-hero :is(h1,p),.lk-prose,.lk-legal{overflow-wrap:break-word}
.lk-feature[hidden]{display:none}

/* ── Shared parts (every template) ─────────────────────────────────────────────────────────────────────────── */
.lk-wrap{width:min(1200px,100% - 48px);margin-inline:auto}
.lk-skip{position:absolute;left:-999px;top:8px;z-index:60;background:var(--lk-surface);color:var(--lk-text);
  padding:10px 14px;border-radius:8px;font:600 var(--lk-small)/1.2 var(--lk-font)}
.lk-skip:focus{left:12px}
.lk-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lk-u{text-decoration:none;background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat;
  transition:background-size 240ms var(--lk-ease)}
.lk-u:hover,.lk-u:focus-visible{background-size:100% 2px}

/* Header. Solid by default, which is right on every Tailwind page; over a skin page's ink hero it starts clear and
   turns solid when the hero copy passes under it (leinaki.js), as on leinaki.de. */
.lk-top{position:fixed;inset:0 0 auto;z-index:50;font-family:var(--lk-font);color:var(--lk-text);
  background:color-mix(in srgb,var(--lk-surface) 92%,transparent);backdrop-filter:blur(12px);box-shadow:0 1px 0 var(--lk-line);
  transition:background-color 220ms var(--lk-ease),color 220ms var(--lk-ease),box-shadow 220ms var(--lk-ease)}
.lk-top.lk-clear{background:transparent;backdrop-filter:none;box-shadow:none;color:#fff}
.lk-bar{display:flex;align-items:center;gap:24px;height:72px}
.lk-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;flex:none}
.lk-brand b{display:block;font-size:1.375rem;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.lk-brand small{display:block;font-size:var(--lk-small);opacity:.75;line-height:1.3}
.lk-mark{flex:none;border-radius:9px;display:block}
.lk-nav{display:flex;gap:22px;margin-left:auto;font-weight:600;font-size:var(--lk-small);white-space:nowrap}
.lk-nav a{color:inherit}
.lk-signin{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid color-mix(in srgb,currentColor 30%,transparent);
  border-radius:8px;font-size:var(--lk-small);font-weight:700;text-decoration:none;white-space:nowrap;color:inherit;
  transition:background-color 180ms var(--lk-ease),border-color 180ms var(--lk-ease)}
.lk-signin:hover{background:color-mix(in srgb,currentColor 10%,transparent);border-color:color-mix(in srgb,currentColor 55%,transparent)}
.lk-signin:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.lk-langs{display:inline-flex;border:1px solid color-mix(in srgb,currentColor 30%,transparent);border-radius:999px;padding:3px;
  font-size:var(--lk-small);font-weight:700;flex:none}
.lk-langs > span[aria-hidden]{display:none}
.lk-lang{padding:4px 11px;border-radius:999px;text-decoration:none;color:inherit;line-height:1.4;
  transition:background-color 180ms var(--lk-ease),color 180ms var(--lk-ease)}
.lk-lang[aria-current]{background:var(--lk-text);color:var(--lk-bg)}
.lk-top.lk-clear .lk-lang[aria-current]{background:#fff;color:var(--lk-ink)}
a.lk-lang:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
@media (max-width:1180px){.lk-nav{gap:16px}.lk-bar{gap:18px}}
@media (max-width:1060px){.lk-nav{display:none}.lk-signin{margin-left:auto}}
@media (max-width:560px){.lk-wrap{width:min(1200px,100% - 32px)}.lk-brand small{display:none}.lk-bar{gap:12px}.lk-signin{padding:0 12px}}
/* Measured 3 Dec 2026: on a Spanish page (pill DE EN ES) the header ended at 366 px on a 360 px screen. */
@media (max-width:400px){.lk-bar{gap:8px}.lk-brand{gap:8px}.lk-brand b{font-size:1.1875rem}.lk-mark{width:36px;height:36px}.lk-signin{padding:0 10px}.lk-lang{padding:4px 8px}}

/* Footer */
.lk-footer{border-top:1px solid var(--lk-line);padding:44px 0 40px;font:400 var(--lk-small)/1.6 var(--lk-font);
  color:var(--lk-muted);background:var(--lk-bg)}
.lk-footer h2{margin:0 0 10px;font-size:var(--lk-small);font-weight:700;color:var(--lk-text);letter-spacing:0}
.lk-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.lk-footer a{color:inherit}
.lk-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 40px;padding-bottom:28px;
  border-bottom:1px solid var(--lk-line);color:var(--lk-text)}
.lk-foot .lk-brand b{font-size:var(--lk-body)}
.lk-foot-aiki{display:flex;align-items:center;gap:12px;color:var(--lk-muted);max-width:520px}
.lk-aiki{width:44px;flex:none;color:var(--lk-blue)}
.lk-foot-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.4fr);gap:28px 40px;padding:28px 0}
.lk-foot-langs{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:14px}
.lk-foot-langs > span[aria-hidden]{color:var(--lk-line)}
.lk-foot-langs .lk-on{font-weight:700;color:var(--lk-text)}
.lk-linkbtn{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:left}
.lk-funders{border-top:1px solid var(--lk-line);padding-top:24px;display:grid;gap:12px}
.lk-funders p{margin:0;max-width:72ch;font-size:.8125rem}
.lk-copy{margin:24px 0 0;font-size:.8125rem}
@media (max-width:960px){.lk-foot-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.lk-foot-cols .lk-news{grid-column:1/-1}}
@media (max-width:480px){.lk-foot-cols{grid-template-columns:1fr}}

/* The funder strip renders Tailwind class names (inc/funders.php). On a skin page there is no Tailwind, so these
   rules give the same result: each mark 40 px high, the light variant in light mode and the built dark variant in
   dark mode (funder-logos-by-theme: never a filter), the EU emblem in colour on its white border. Tailwind pages
   get the same from Tailwind, and these rules agree with it. */
.lk-funders > div{display:flex;flex-wrap:wrap;align-items:center;gap:24px 36px}
.lk-funders img.h-10{height:40px;width:auto;display:block}
.lk-funders img.hidden{display:none}
html.dark .lk-funders img.dark\:hidden{display:none}
html.dark .lk-funders img.dark\:block{display:block}
.lk-funders span.bg-white{display:inline-flex;background:#fff;padding:4px;border-radius:4px}

/* Forms and buttons */
.lk-input{font:inherit;font-size:var(--lk-small);color:var(--lk-text);background:var(--lk-surface);min-height:44px;padding:0 14px;
  border:1px solid var(--lk-line);border-radius:8px;width:100%;min-width:0}
.lk-input:focus-visible{outline:2px solid var(--lk-blue);outline-offset:1px;border-color:transparent}
.lk-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:8px;border:0;
  background:var(--lk-blue);color:#fff;font:700 var(--lk-small)/1 var(--lk-font);text-decoration:none;cursor:pointer;
  transition:background-color 200ms var(--lk-ease),transform 200ms var(--lk-ease)}
.lk-btn:hover{background:var(--lk-blue-deep);transform:translateY(-1px)}
.lk-btn[disabled]{opacity:.6;cursor:progress}
.lk-btn-quiet{background:transparent;color:var(--lk-text);border:1px solid var(--lk-line)}
.lk-btn-quiet:hover{background:var(--lk-ring)}
.lk-news h2{margin-bottom:10px}
.lk-news-row{display:flex;gap:8px}
.lk-news-msg{margin-top:8px;min-height:1.4em;font-size:.8125rem}
.lk-news-msg.ok{color:#4e8a1f}
.lk-news-msg.err{color:#c0362c}
html.dark .lk-news-msg.ok{color:var(--lk-lime)}
html.dark .lk-news-msg.err{color:#ff8a80}

/* ── Hero: the ink band with the dot grid, copy left, motif right (never behind the text) ─────────────────── */
.lk-hero{position:relative;background:var(--lk-ink);color:#fff;padding:136px 0 64px;overflow:clip;font-family:var(--lk-font);
  background-image:radial-gradient(rgba(255,255,255,.09) 1.2px,transparent 1.4px);background-size:40px 40px;background-position:20px 20px}
.lk-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px;align-items:end}
.lk-hero h1{font-size:var(--lk-h1);font-weight:800;line-height:1.04;letter-spacing:-.035em;max-width:18ch;margin:0}
.lk-hero .lk-lead{margin-top:18px;max-width:58ch;font-size:1.125rem;line-height:1.6;color:#c8d3e3}
.lk-hero .lk-meta{margin-top:20px;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:var(--lk-small);color:#a3b1c6}
.lk-hero .lk-meta a{color:#fff}
.lk-hero .lk-cta{margin-top:28px}
.lk-hero .lk-btn{min-height:48px;padding:0 22px;font-size:.9375rem}
.lk-lost{min-height:calc(100svh - 160px);display:flex;align-items:center}
.lk-lost > .lk-wrap{width:min(1200px,100% - 48px)}
/* The German note above an English-only legal document (inc/legal-documents.php prints Tailwind classes). */
.lk-legal > p[lang]{margin:0 0 8px;padding:12px 16px;border:1px solid var(--lk-line);border-radius:10px;font-size:var(--lk-small);color:var(--lk-muted)}
.lk-legal .legal-doc a{color:var(--lk-link)}
.lk-legal .legal-doc{margin-top:8px}
.lk-motif{width:320px;height:220px;overflow:visible}
@media (max-width:900px){.lk-hero-grid{grid-template-columns:1fr}.lk-motif{width:100%;max-width:320px;height:auto;justify-self:start}}
@media (max-width:640px){.lk-hero{padding:112px 0 44px}.lk-motif{display:none}}

/* Motif parts, in leinaki.de's colours. */
.lk-motif *{vector-effect:non-scaling-stroke}
.lk-motif .lk-rail{stroke:#fff;stroke-opacity:.14;stroke-width:1.5}
.lk-motif .lk-trail{stroke:var(--lk-blue);stroke-width:2.5;stroke-dasharray:1;stroke-dashoffset:0}
.lk-motif .lk-node{fill:var(--lk-blue);opacity:.9;transform-box:fill-box;transform-origin:center}
.lk-motif .lk-log{stroke:#fff;stroke-opacity:.22;stroke-width:3}
.lk-motif .lk-log.lk-new,.lk-motif .lk-log.lk-blue{stroke:var(--lk-blue);stroke-opacity:1}
.lk-motif .lk-pulse{fill:#fff;transform-box:view-box}
.lk-motif .lk-decide{stroke:var(--lk-amber);stroke-width:2;transform-box:fill-box;transform-origin:center}
.lk-motif .lk-person{stroke:var(--lk-lime);stroke-width:2}
.lk-motif .lk-tick{stroke:var(--lk-lime);stroke-width:3;stroke-dasharray:1;stroke-dashoffset:0}
.lk-motif .lk-gap{stroke:var(--lk-amber);stroke-width:2;stroke-dasharray:4 7}
.lk-motif .lk-back{stroke:#fff;stroke-opacity:.3;stroke-width:1.5;stroke-dasharray:3 6}
.lk-motif .lk-write{stroke-dasharray:1;stroke-dashoffset:0}

/* ── Page sections ────────────────────────────────────────────────────────────────────────────────────────── */
.lk-section{padding:56px 0}
.lk-section + .lk-section{padding-top:8px}
.lk-section h2{font-size:var(--lk-h2);font-weight:800}
.lk-section .lk-intro{margin-top:10px;max-width:64ch;color:var(--lk-muted)}

/* Blog: search and a segmented filter (radios, not a wall of buttons). */
.lk-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}
.lk-search{flex:1 1 280px;max-width:420px}
.lk-seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--lk-line);border-radius:12px;background:var(--lk-surface);margin:0}
.lk-seg legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.lk-seg label{position:relative;display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:8px;
  font-size:var(--lk-small);font-weight:600;color:var(--lk-muted);cursor:pointer;transition:background-color 180ms var(--lk-ease),color 180ms var(--lk-ease)}
.lk-seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.lk-seg label:has(input:checked){background:var(--lk-text);color:var(--lk-bg)}
.lk-seg label:has(input:focus-visible){outline:2px solid var(--lk-blue);outline-offset:2px}

.lk-feature{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:32px;align-items:center;padding:20px;
  background:var(--lk-surface);border:1px solid var(--lk-line);border-radius:16px;margin-bottom:40px;
  transition:box-shadow 240ms var(--lk-ease),border-color 240ms var(--lk-ease)}
.lk-feature h2{font-size:var(--lk-h2)}
.lk-feature h2 a{text-decoration:none}
.lk-feature h2 a::after{content:"";position:absolute;inset:0}
.lk-feature:hover{box-shadow:0 18px 40px -24px rgba(15,19,26,.35);border-color:color-mix(in srgb,var(--lk-blue) 40%,var(--lk-line))}
.lk-feature p{margin-top:10px;color:var(--lk-muted)}
.lk-media{aspect-ratio:1200/628;border-radius:12px;overflow:hidden;background:var(--lk-ink);
  background-image:radial-gradient(rgba(255,255,255,.09) 1.2px,transparent 1.4px);background-size:28px 28px}
.lk-media img{width:100%;height:100%;object-fit:cover}
.lk-media .lk-mark{width:72px;height:72px;margin:auto;position:relative;top:50%;transform:translateY(-50%)}
.lk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.lk-card{display:flex;flex-direction:column;background:var(--lk-surface);border:1px solid var(--lk-line);border-radius:14px;overflow:hidden;
  transition:transform 240ms var(--lk-ease),box-shadow 240ms var(--lk-ease),border-color 240ms var(--lk-ease)}
.lk-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px -24px rgba(15,19,26,.35);border-color:color-mix(in srgb,var(--lk-blue) 40%,var(--lk-line))}
.lk-card .lk-media{border-radius:0}
.lk-card-body{display:flex;flex-direction:column;gap:8px;padding:20px 20px 22px;flex:1}
.lk-card h3{font-size:1.1875rem;font-weight:700;line-height:1.3}
.lk-card h3 a{text-decoration:none}
.lk-card h3 a::after{content:"";position:absolute;inset:0}
.lk-card{position:relative}
.lk-card p{color:var(--lk-muted);font-size:var(--lk-small)}
.lk-kicker{font-size:.8125rem;font-weight:700;color:var(--lk-link)}
.lk-kicker span{color:var(--lk-muted);font-weight:500}
.lk-more{margin-top:auto;padding-top:6px;font-size:var(--lk-small);font-weight:700;color:var(--lk-link)}
.lk-empty{padding:40px 0;color:var(--lk-muted)}
.lk-card[hidden],.lk-empty[hidden]{display:none}
.lk-cards2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}
.lk-cards2 .lk-card-body{padding:24px}
.lk-band{background:var(--lk-surface);border-block:1px solid var(--lk-line)}
.lk-news-cta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:32px;align-items:center}
.lk-faq{max-width:780px;margin-top:20px;display:grid;gap:10px}
.lk-faq details{background:var(--lk-surface);border:1px solid var(--lk-line);border-radius:12px;padding:16px 20px}
.lk-faq summary{cursor:pointer;font-weight:700;list-style-position:outside}
.lk-faq details p{margin-top:10px;color:var(--lk-muted);font-size:var(--lk-small)}
@media (max-width:960px){.lk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lk-feature,.lk-news-cta{grid-template-columns:1fr}}
@media (max-width:640px){.lk-grid,.lk-cards2{grid-template-columns:1fr}.lk-section{padding:40px 0}}

/* Post. The pictures are the posts' 1200x628 social cards, with text in them, so every box keeps that ratio:
   object-fit: cover then crops nothing. */
.lk-article{max-width:720px;margin-inline:auto;padding:40px 0 24px}
.lk-figure{margin:0 auto 8px;max-width:1000px;border-radius:16px;overflow:hidden;background:var(--lk-ink);
  margin-top:-40px;position:relative;aspect-ratio:1200/628;box-shadow:0 30px 60px -40px rgba(15,19,26,.6)}
.lk-figure img{width:100%;height:100%;object-fit:cover}
.lk-prose{font-size:1.0625rem;line-height:1.75}
.lk-prose > * + *{margin-top:1.1em}
.lk-prose h2{font-size:1.75rem;font-weight:800;margin-top:2.2em}
.lk-prose h3{font-size:1.3125rem;font-weight:700;margin-top:1.8em}
.lk-prose a{color:var(--lk-link);text-decoration:underline;text-underline-offset:3px}
.lk-prose :is(ul,ol){padding-left:1.4em}
.lk-prose li + li{margin-top:.4em}
.lk-prose blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:3px solid var(--lk-blue);color:var(--lk-muted)}
.lk-prose img{border-radius:10px;height:auto}
.lk-prose figure{margin:1.6em 0}
.lk-prose figcaption{margin-top:8px;font-size:var(--lk-small);color:var(--lk-muted)}
.lk-prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em;background:var(--lk-ring);padding:.1em .35em;border-radius:4px}
.lk-prose pre{background:var(--lk-ink);color:#eef2f8;padding:16px;border-radius:10px;overflow-x:auto}
.lk-prose pre code{background:none;padding:0}
.lk-prose table{border-collapse:collapse;width:100%;font-size:var(--lk-small);display:block;overflow-x:auto}
.lk-prose :is(th,td){border-bottom:1px solid var(--lk-line);padding:8px 10px;text-align:left;vertical-align:top}
.lk-tags{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:36px;padding-top:20px;border-top:1px solid var(--lk-line);font-size:var(--lk-small)}
.lk-tags a{color:var(--lk-link)}
.lk-back{display:inline-flex;margin-top:28px;font-weight:700;color:var(--lk-link);text-decoration:none}
.lk-back:hover{text-decoration:underline}
@media (max-width:1060px){.lk-figure{margin-inline:24px}}
@media (max-width:640px){.lk-figure{margin-inline:16px;margin-top:-28px;border-radius:12px}}

/* Reading progress, drawn as the flow line under the header (post only). Decorative: aria-hidden in the markup. */
.lk-progress{position:fixed;left:0;right:0;top:72px;z-index:49;height:10px;width:100%;pointer-events:none;overflow:visible}
.lk-progress *{vector-effect:non-scaling-stroke}
.lk-progress .lk-rail{stroke:var(--lk-line);stroke-width:2}
.lk-progress .lk-trail{stroke:var(--lk-blue);stroke-width:2.5;stroke-dasharray:1;stroke-dashoffset:var(--lk-p-off,1)}
.lk-progress .lk-node{fill:var(--lk-surface);stroke:var(--lk-line);stroke-width:2;transform-box:fill-box;transform-origin:center}
.lk-progress .lk-node.on{fill:var(--lk-blue);stroke:var(--lk-blue)}
.lk-top.lk-clear ~ .lk-progress{opacity:0}
@supports (animation-timeline:scroll()){
  @media (prefers-reduced-motion:no-preference){
    .lk-progress .lk-trail{animation:lk-draw linear both;animation-timeline:scroll(root)}
    .lk-progress .lk-node{animation:lk-node-on linear both;animation-timeline:scroll(root);animation-range:var(--at) calc(var(--at) + 2%)}
  }
}
@keyframes lk-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes lk-node-on{from{fill:var(--lk-surface);stroke:var(--lk-line)}to{fill:var(--lk-blue);stroke:var(--lk-blue)}}
@media (prefers-reduced-motion:reduce){.lk-progress{display:none}}

/* Legal pages: the document column. */
.lk-legal{max-width:760px;margin-inline:auto;padding:40px 0 24px}
.lk-legal .lk-offer{padding:16px 20px;border:1px solid var(--lk-line);border-left:3px solid var(--lk-blue);border-radius:10px;
  background:var(--lk-surface);margin-bottom:28px}
.lk-legal-links{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:40px;padding-top:20px;border-top:1px solid var(--lk-line);font-size:var(--lk-small)}
.lk-legal-links a{color:var(--lk-link)}

/* 404 */
.lk-lost-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.lk-lost-links .lk-btn-quiet{color:#fff;border-color:rgba(255,255,255,.3)}
.lk-lost-links .lk-btn-quiet:hover{background:rgba(255,255,255,.08)}

/* Careers keeps Tailwind for its form; its hero is the Leinaki band, and the section below needs room for it. */
.lk-hero + .lk-under-hero{padding-top:24px}

/* ── Motion ───────────────────────────────────────────────────────────────────────────────────────────────── */
/* Reveal: [data-lk-reveal] rises in; --i staggers a row of cards. Rest state is the finished picture. */
@keyframes lk-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes lk-settle{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
html.lk-sda [data-lk-reveal]{animation:lk-rise linear both;animation-timeline:view();animation-range:entry 0% entry 70%}
html.lk-sda [data-lk-reveal="settle"]{animation-name:lk-settle}
html.lk-io [data-lk-reveal]{opacity:0;transform:translateY(22px);transition:opacity 620ms var(--lk-ease),transform 620ms var(--lk-ease);
  transition-delay:calc(var(--i,0) * 70ms)}
html.lk-io [data-lk-reveal="settle"]{transform:translateX(-14px)}
html.lk-io [data-lk-reveal].in{opacity:1;transform:none}

/* Hero copy arrives once on load (both modes). The h1 is usually the LCP element, and an element at opacity 0 is not
   painted for LCP, so the h1 only slides; the lines under it also fade. */
@keyframes lk-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes lk-in-y{from{transform:translateY(10px)}to{transform:none}}
html:is(.lk-sda,.lk-io) .lk-hero-copy > *{animation:lk-in 720ms var(--lk-ease) both}
html:is(.lk-sda,.lk-io) .lk-hero-copy > h1{animation-name:lk-in-y}
html:is(.lk-sda,.lk-io) .lk-hero-copy > :nth-child(2){animation-delay:120ms}
html:is(.lk-sda,.lk-io) .lk-hero-copy > :nth-child(3){animation-delay:220ms}

/* Looping motifs run only while the hero is on screen (leinaki.js toggles .lk-off). */
.lk-hero.lk-off .lk-motif *{animation-play-state:paused!important}
@media (prefers-reduced-motion:no-preference){
  /* Blog: the pulse runs down the rail, the fourth node lights, the new log line is written; 7 s loop. */
  .lk-m-blog .lk-m-blog-pulse{animation:lk-blog-pulse 7s var(--lk-ease) infinite}
  .lk-m-blog .lk-arrive{animation:lk-arrive 7s var(--lk-ease) infinite}
  .lk-m-blog .lk-new{stroke-dasharray:1;animation:lk-blog-write 7s var(--lk-ease) infinite}
  /* Careers: the steps light in turn, the trail follows, the tick lands; 9 s loop. */
  .lk-m-careers .lk-trail{animation:lk-car-trail 9s var(--lk-ease) infinite}
  .lk-m-careers .lk-step{animation:lk-car-step 9s var(--lk-ease) infinite;animation-delay:calc(var(--i) * 1.1s)}
  .lk-m-careers .lk-tick{animation:lk-car-tick 9s var(--lk-ease) infinite}
  /* Legal: the lines are written once, top to bottom, each stamped; then it stays. */
  .lk-m-legal .lk-write{animation:lk-write 900ms var(--lk-ease) both;animation-delay:calc(300ms + var(--i) * 260ms)}
  .lk-m-legal .lk-stamp{animation:lk-stamp 500ms var(--lk-ease) both;animation-delay:calc(700ms + var(--i) * 260ms)}
  /* 404: the pulse runs to the gap, waits at the amber diamond, then goes back by the dashed way; 6 s loop. */
  .lk-m-lost .lk-m-lost-pulse{animation:lk-lost 6s var(--lk-ease) infinite}
  .lk-m-lost .lk-decide{animation:lk-wait 6s ease-in-out infinite}
}
@keyframes lk-blog-pulse{0%{transform:translate(0,0);opacity:0}8%{opacity:1}55%{transform:translate(0,124px);opacity:1}62%,100%{transform:translate(0,124px);opacity:0}}
@keyframes lk-arrive{0%,52%{transform:scale(1);opacity:.35}60%{transform:scale(1.5);opacity:1}72%,100%{transform:scale(1);opacity:.9}}
@keyframes lk-blog-write{0%,56%{stroke-dashoffset:1}82%,100%{stroke-dashoffset:0}}
@keyframes lk-car-trail{0%{stroke-dashoffset:1}50%,88%{stroke-dashoffset:0}100%{stroke-dashoffset:0;opacity:0}}
@keyframes lk-car-step{0%{transform:scale(1);opacity:.35}6%{transform:scale(1.45);opacity:1}14%,80%{transform:scale(1);opacity:1}100%{opacity:.35}}
@keyframes lk-car-tick{0%,56%{stroke-dashoffset:1}68%,88%{stroke-dashoffset:0}100%{stroke-dashoffset:1}}
@keyframes lk-write{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes lk-stamp{from{transform:scale(0);opacity:0}70%{transform:scale(1.35);opacity:1}to{transform:scale(1);opacity:.9}}
@keyframes lk-lost{0%{transform:translate(0,0);opacity:0}6%{opacity:1}40%{transform:translate(106px,0)}62%{transform:translate(106px,0);opacity:1}
  72%{transform:translate(70px,44px)}84%{transform:translate(16px,30px);opacity:1}92%,100%{transform:translate(16px,18px);opacity:0}}
@keyframes lk-wait{0%,38%{transform:scale(1);opacity:.55}46%{transform:scale(1.25);opacity:1}62%{transform:scale(1);opacity:1}74%,100%{opacity:.55}}
