/* tk-motion.css v6 (Nov 25: palette only, design review: paper white, labels slate #5F5E6B, text ink #1B1B2F). v5: phone strip width and Ledger head fixes, gatekeeper step 8. v4: shared styles for TK Motion components (Nov 25 2026; F379, F389, motion-style.md).
   v4 (wow pass step 3, F392, F394): handwriting C only, set larger (36px, a long value is scaled down by the script); 4 fixed lines;
   phone strip in Outfit; a long Ledger year sits on one or two lines.
   Loaded only on pages with a data-tkm element. Animates transform, opacity and clip-path only. Brand palette only; the handwriting
   fonts are a slip-only exception (F390). */
/* v3: the handwriting fonts are not declared here. tk-motion.js loads only the chosen one, only on a page with a slip
   (Chrome was fetching all three on every page that loads this file, About included). */

/* Components stay out of the layout until the shared script places them (no JavaScript: the page shows its own content). */
[data-tkm]{display:none}

/* ---------- TK Request Slip ---------- */
.tkm-anchor{position:relative}
.tkm-slip.tkm-on{display:block;position:absolute;left:0;top:calc(100% + 26px);width:min(100%,372px);z-index:1;pointer-events:none}
.tkm-slip-paper{position:relative;background:#FFFFFF;border:1px solid rgba(11,22,96,.16);padding:20px 22px 18px;color:#0B1660;transform:rotate(-1.1deg);transform-origin:30% 0}
.tkm-slip-t{font-family:Outfit,system-ui,sans-serif;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#5F5E6B;margin:0 64px 12px 0;padding-bottom:10px;border-bottom:1px solid rgba(11,22,96,.14)}
.tkm-slip-r{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:end;min-height:42px;border-bottom:1px solid rgba(11,22,96,.12)}
.tkm-slip-r[hidden]{display:none}
.tkm-slip-l{font-family:Outfit,system-ui,sans-serif;font-size:12px;letter-spacing:.04em;color:#5F5E6B;padding-bottom:7px}
.tkm-slip-v{position:relative;height:40px;white-space:nowrap;overflow:visible}
.tkm-slip-v>span{position:absolute;left:0;bottom:3px;display:inline-block;line-height:1;color:#0B1660}
.tkm-hand-c .tkm-slip-v>span{font-family:"TK Hand C",cursive;font-size:36px;bottom:0}
.tkm-slip-c{font-family:Outfit,system-ui,sans-serif;font-size:13px;color:#1B1B2F;margin:14px 0 0}
.tkm-slip-s{position:absolute;right:-16px;top:-22px;width:88px;height:88px;transform:rotate(-9deg);color:rgba(11,22,96,.5);background:radial-gradient(circle,rgba(255,255,255,.92) 62%,transparent 64%);border-radius:50%}
.tkm-slip-s>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tkm-slip-s svg{width:100%;height:100%;overflow:visible}
.tkm-slip-s svg text{font-family:Outfit,system-ui,sans-serif;font-size:7.6px;letter-spacing:.09em;text-transform:uppercase;fill:currentColor}
.tkm-slip-s svg .tkm-mono{font-family:Cardo,Georgia,serif;font-size:24px;letter-spacing:.02em;text-transform:none}
.tkm-slip-s svg circle{fill:none;stroke:currentColor;stroke-width:1}
.tkm-slip-sp{display:none}
/* Phone strip: inside the form, shown only on step 2, so it appears in the same frame as the step change. */
/* v5 (gatekeeper, Nov 25): width 0 plus min-width 100% keeps the one-line strip from setting the form's minimum width
   (it pushed the card past the screen edge at 390); a long value now ends in an ellipsis inside the strip. */
.tkm-strip{display:flex;gap:8px;align-items:baseline;width:0;min-width:100%;margin:0 0 14px;padding:8px 12px;background:#FFFFFF;border:1px solid rgba(11,22,96,.14);color:#0B1660;min-height:40px;box-sizing:border-box;overflow:hidden;white-space:nowrap}
.tkm-strip-l{font-family:Outfit,system-ui,sans-serif;font-size:12px;color:#5F5E6B;flex:none}
.tkm-strip-v{flex:1 1 auto;min-width:0;font-family:Outfit,system-ui,sans-serif;font-size:14px;font-weight:500;line-height:1.35;overflow:hidden;text-overflow:ellipsis}
form[data-step="1"] .tkm-strip{display:none}
/* Desktop shows the slip, phones show the strip. The approved closing line is said once: on desktop, while the slip shows,
   the form's identical line is visually hidden (kept for screen readers). */
@media (max-width:1024px){.tkm-slip.tkm-on{display:none}}
@media (min-width:1025px){.tkm-strip{display:none!important}body:has(.tkm-slip.tkm-on) .tkm-dup{color:transparent!important;user-select:none}}

/* ---------- TK Ledger ---------- */
.tkm-ledger.tkm-on{display:block;color:#0B1660}
/* v5 (gatekeeper, Nov 25): darker head and folio (slate since v6; was 3.6:1), and the source head
   and folio are hidden in book mode too (only the copies on the pages show; they were a loose line under the heading). */
.tkm-ledger-head,.tkm-ledger-folio{font-family:Outfit,system-ui,sans-serif;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#5F5E6B}
.tkm-ledger.tkm-book-on .tkm-ledger-head,.tkm-ledger.tkm-book-on .tkm-ledger-folio{display:none}
.tkm-ledger.tkm-book-on .tkm-ledger-scroll .tkm-ledger-head,.tkm-ledger.tkm-book-on .tkm-ledger-scroll .tkm-ledger-folio{display:block}
.tkm-ledger-list{list-style:none;margin:0;padding:0}
.tkm-ledger-y{display:block;font-family:Cardo,Georgia,serif;font-size:44px;line-height:1;color:#0B1660}
.tkm-ledger-ti{display:block;font-family:Cardo,Georgia,serif;font-size:24px;line-height:1.2;margin:10px 0 0;color:#0B1660}
.tkm-ledger-ln{font-family:Outfit,system-ui,sans-serif;font-size:16px;line-height:1.55;color:#1B1B2F;margin:12px 0 0}
.tkm-paper{background:#FFFFFF;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,rgba(11,22,96,.07) 31px,rgba(11,22,96,.07) 32px);background-position:0 18px}
/* Flat (phones and reduced motion): each entry is a page. */
.tkm-ledger.tkm-flat .tkm-ledger-head{display:none}
.tkm-ledger.tkm-flat .tkm-ledger-folio{display:none}
.tkm-ledger.tkm-flat .tkm-ledger-list{display:grid;gap:16px;margin-top:28px}
.tkm-ledger.tkm-flat .tkm-ledger-e{position:relative;padding:26px 24px 28px;border:1px solid rgba(11,22,96,.12);transform-origin:0 50%}
@media (min-width:1025px){.tkm-ledger.tkm-flat .tkm-ledger-list{grid-template-columns:1fr 1fr;gap:0}.tkm-ledger.tkm-flat .tkm-ledger-e:nth-child(odd){border-right:0}}
/* Book (desktop, motion allowed): the list stays in the page for screen readers; the turning leaves are an aria-hidden copy. */
.tkm-ledger.tkm-book-on .tkm-ledger-list{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tkm-ledger-scroll{position:relative;margin-top:32px}
.tkm-ledger-stage{position:sticky;top:12vh;height:76vh;display:flex;align-items:center;justify-content:center;perspective:2400px}
.tkm-book{position:relative;width:min(1000px,100%);height:min(560px,62vh);display:flex}
.tkm-book:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:48px;margin-left:-24px;background:linear-gradient(90deg,transparent,rgba(11,22,96,.10) 48%,rgba(11,22,96,.16) 50%,rgba(11,22,96,.10) 52%,transparent);z-index:60;pointer-events:none}
.tkm-pg{position:absolute;top:0;width:50%;height:100%;box-sizing:border-box;padding:34px 42px;border:1px solid rgba(11,22,96,.10)}
.tkm-pg-l{left:0}
.tkm-leaf{position:absolute;left:50%;top:0;width:50%;height:100%;transform-origin:0 50%;transform-style:preserve-3d;will-change:transform}
.tkm-face{position:absolute;inset:0;box-sizing:border-box;padding:34px 42px;border:1px solid rgba(11,22,96,.10);backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column}
.tkm-face-b{transform:rotateY(180deg)}
.tkm-face .tkm-ledger-folio{margin-top:auto}
.tkm-face-b .tkm-big{font-family:Cardo,Georgia,serif;font-size:min(140px,15vh);line-height:1;color:rgba(11,22,96,.13);margin-top:auto}
.tkm-face-b .tkm-big.tkm-big-long{font-size:min(64px,8vh);line-height:1.08}
.tkm-face-b .tkm-big-t{font-family:Cardo,Georgia,serif;font-size:22px;color:#0B1660;margin-top:14px}
.tkm-pg-l .tkm-cover{font-family:Cardo,Georgia,serif;font-size:30px;line-height:1.2;color:#0B1660;margin-top:auto}
@media (prefers-reduced-motion:reduce){.tkm-ledger-e,.tkm-leaf,.tkm-slip-v>span,.tkm-strip-v{animation:none!important;transition:none!important}}
